diff --git a/.gitignore b/.gitignore index 6eda196..d079bb3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,8 +2,6 @@ /vendor /modules /public/*.lock -/public/index.html -/public/assets # 通过 Git 部署项目至线上时可以考虑删除的忽略规则 /public/storage/* diff --git a/app/admin/controller/user/User.php b/app/admin/controller/user/Member.php similarity index 99% rename from app/admin/controller/user/User.php rename to app/admin/controller/user/Member.php index a22a060..973f220 100644 --- a/app/admin/controller/user/User.php +++ b/app/admin/controller/user/Member.php @@ -9,7 +9,7 @@ use app\common\controller\Backend; use app\admin\model\User as UserModel; use app\admin\model\UserScore; -class User extends Backend +class Member extends Backend { /** * @var object diff --git a/public/assets.zip b/public/assets.zip new file mode 100644 index 0000000..af161db Binary files /dev/null and b/public/assets.zip differ diff --git a/public/assets/401-DEWuow56.js b/public/assets/401-DEWuow56.js new file mode 100644 index 0000000..e6566c3 --- /dev/null +++ b/public/assets/401-DEWuow56.js @@ -0,0 +1 @@ +import{_}from"./index-CLyTskad.js";import{D as d,G as e,U as a,H as o,P as t,I as r,C as p,V as u}from"./vue-DweYBrEc.js";const f={},m={class:"page"},g={class:"container"},v={class:"warning"},b={class:"page-footer"};function k(s,n){const l=r("router-link"),i=r("el-button"),c=r("el-button-group");return p(),d("div",m,[e("div",g,[n[1]||(n[1]=e("div",{class:"fbi"},"401 WARNING",-1)),e("div",v,a(s.$t("401.noPowerTip")),1),e("div",b,[o(c,null,{default:t(()=>[o(i,{size:"large",type:"info"},{default:t(()=>[o(l,{class:"stopcode-a",to:"/"},{default:t(()=>[u(a(s.$t("404.Return to home page")),1)]),_:1})]),_:1}),o(i,{size:"large",type:"info"},{default:t(()=>[o(l,{class:"stopcode-a",to:""},{default:t(()=>[e("span",{onClick:n[0]||(n[0]=N=>s.$router.back())},a(s.$t("404.Back to previous page")),1)]),_:1})]),_:1})]),_:1})])])])}const C=_(f,[["render",k],["__scopeId","data-v-b6724a97"]]);export{C as default}; diff --git a/public/assets/404-DqBTm10J.js b/public/assets/404-DqBTm10J.js new file mode 100644 index 0000000..a3547c9 --- /dev/null +++ b/public/assets/404-DqBTm10J.js @@ -0,0 +1 @@ +import{B as m,b as _,o as v,j as f,D as h,G as e,U as o,V as n,H as c,P as d,I as g,a0 as k,C}from"./vue-DweYBrEc.js";import{_ as $}from"./index-CLyTskad.js";const B="/assets/qr-CamScR9_.png",b={class:"page"},w={class:"container"},M={class:"tip"},R={class:"complete"},V={class:"percentage"},I={class:"details"},N={class:"stopcode"},T={class:"stopcode-text"},q={class:"stopcode-text"},y=m({__name:"404",setup(D){const p=k(),a=_(0);var r=null;function u(){a.value+=Math.floor(Math.random()*50),a.value>=100?(a.value=100,p.back()):i()}function i(){r=setTimeout(u,Math.random()*500+500)}return v(()=>{i()}),f(()=>{clearTimeout(r)}),(t,s)=>{const l=g("router-link");return C(),h("div",b,[e("div",w,[s[3]||(s[3]=e("div",{class:"font-h1"},":(",-1)),e("div",M,o(t.$t("404.problems tip")),1),e("div",R,[n(o(t.$t("Complete"))+" ",1),e("span",V,o(a.value),1),s[1]||(s[1]=n("% "))]),e("div",I,[s[2]||(s[2]=e("div",{class:"qr-image"},[e("img",{src:B,alt:"QR Code"})],-1)),e("div",N,[e("div",T,o(t.$t("404.We will automatically return to the previous page when we are finished")),1),e("div",q,[c(l,{class:"stopcode-a",to:""},{default:d(()=>[e("span",{onClick:s[0]||(s[0]=S=>t.$router.back())},o(t.$t("404.Back to previous page")),1)]),_:1}),c(l,{class:"stopcode-a",to:"/"},{default:d(()=>[n(o(t.$t("404.Return to home page")),1)]),_:1})])])])])])}}}),x=$(y,[["__scopeId","data-v-1e5abc9c"]]);export{x as default}; diff --git a/public/assets/add-D6F8RUy4.js b/public/assets/add-D6F8RUy4.js new file mode 100644 index 0000000..f9ab7bc --- /dev/null +++ b/public/assets/add-D6F8RUy4.js @@ -0,0 +1 @@ +import{_ as o}from"./add.vue_vue_type_script_setup_true_lang-C2miOuOK.js";import"./vue-DweYBrEc.js";import"./index-CcxeqWzf.js";import"./index-DQmocF1u.js";import"./index-CLyTskad.js";import"./index-Cca48yw_.js";import"./validate-Cv_tWIu0.js";export{o as default}; diff --git a/public/assets/add.vue_vue_type_script_setup_true_lang-C2miOuOK.js b/public/assets/add.vue_vue_type_script_setup_true_lang-C2miOuOK.js new file mode 100644 index 0000000..a1c0c44 --- /dev/null +++ b/public/assets/add.vue_vue_type_script_setup_true_lang-C2miOuOK.js @@ -0,0 +1,2 @@ +import{B as Ae,a as q,C as d,D as _e,O as m,u as n,W as g,a7 as S,a6 as N,a8 as Me,I as _,X as F,P as v,H as b,G as Ee,F as De,V as O,U as W,_ as Ie}from"./vue-DweYBrEc.js";import{F as f}from"./index-CcxeqWzf.js";import{c as Pe,b as h}from"./validate-Cv_tWIu0.js";import{c as R,j as Ue,e as Se,x as qe}from"./index-CLyTskad.js";import{i as M}from"./index-DQmocF1u.js";const k="/admin/routine.Config/",B=new Map([["index",k+"index"],["add",k+"add"],["edit",k+"edit"],["del",k+"del"],["sendTestMail",k+"sendTestMail"]]);function je(){return R({url:B.get("index"),method:"get"})}function Re(c,y){return R({url:B.get(c),method:"post",data:y},{showSuccessMessage:!0})}function Ge(c){return R({url:B.get("del"),method:"DELETE",params:{ids:c}},{showSuccessMessage:!0})}function Le(c,y){return R({url:B.get("sendTestMail"),method:"POST",data:Object.assign({},c,{testMail:y})},{showSuccessMessage:!0})}const Be=Ae({__name:"createData",props:{dataTitle:{default:Ue.global.t("utils.Var")},modelValue:{default:()=>({name:"",title:"",type:"",tip:"",rule:[],extend:"",dict:"",inputExtend:""})},options:{},excludeInputTypes:{default:()=>[]},excludeValidatorRule:{default:()=>[]}},emits:["update:modelValue"],setup(c,{emit:y}){var w,V,u,E,D,C,I,P,U,A,r,j,G,L,$,H,X,J,Q,Y,Z,ee,te,le,ae,oe,ie,ne,ue,se,de,re;const{t:i}=Ue.global,t=c,x=["radio","checkbox","select","selects"],e=q({name:{show:((V=(w=t.options)==null?void 0:w.name)==null?void 0:V.show)!==!1,value:t.modelValue.name,title:((E=(u=t.options)==null?void 0:u.name)==null?void 0:E.title)??t.dataTitle+i("utils.Name")},title:{show:((C=(D=t.options)==null?void 0:D.title)==null?void 0:C.show)!==!1,value:t.modelValue.title,title:((P=(I=t.options)==null?void 0:I.title)==null?void 0:P.title)??t.dataTitle+i("utils.Title")},type:{show:((A=(U=t.options)==null?void 0:U.type)==null?void 0:A.show)!==!1,value:t.modelValue.type,title:((j=(r=t.options)==null?void 0:r.type)==null?void 0:j.title)??t.dataTitle+i("utils.type")},tip:{show:((L=(G=t.options)==null?void 0:G.tip)==null?void 0:L.show)!==!1,value:t.modelValue.tip,title:((H=($=t.options)==null?void 0:$.tip)==null?void 0:H.title)??i("utils.Tip")},rule:{show:((J=(X=t.options)==null?void 0:X.rule)==null?void 0:J.show)!==!1,value:t.modelValue.rule,title:((Y=(Q=t.options)==null?void 0:Q.rule)==null?void 0:Y.title)??i("utils.Rule")},extend:{show:((ee=(Z=t.options)==null?void 0:Z.extend)==null?void 0:ee.show)!==!1,value:t.modelValue.extend,title:((le=(te=t.options)==null?void 0:te.extend)==null?void 0:le.title)??"FormItem "+i("utils.Extend")},dict:{show:((oe=(ae=t.options)==null?void 0:ae.dict)==null?void 0:oe.show)!==!1,value:t.modelValue.dict,title:((ne=(ie=t.options)==null?void 0:ie.dict)==null?void 0:ne.title)??i("utils.Dict")},inputExtend:{show:((se=(ue=t.options)==null?void 0:ue.inputExtend)==null?void 0:se.show)!==!1,value:t.modelValue.inputExtend,title:((re=(de=t.options)==null?void 0:de.inputExtend)==null?void 0:re.title)??"Input "+i("utils.Extend")}}),o=q({validators:{},inputTypes:{}}),T=y,l=()=>{T("update:modelValue",{name:e.name.value??"",title:e.title.value??"",type:e.type.value??"",tip:e.tip.value??"",rule:e.rule.value??[],extend:e.extend.value??"",dict:x.includes(e.type.value??"")?e.dict.value??"":"",inputExtend:e.inputExtend.value??""})};return(()=>{let K={};for(const p in M)t.excludeInputTypes.includes(M[p])||(K[M[p]]=M[p]);o.inputTypes=K;let a={};for(const p in Pe)t.excludeValidatorRule.includes(p)||(a[p]=Pe[p]);o.validators=a,l()})(),(K,a)=>{var p,pe,me,fe,ce,ge,ye,Ve,ve,be,he,xe,we,Ce,ke,Te;return d(),_e("div",null,[e.name.show?(d(),m(f,{key:0,label:e.name.title,type:"string",modelValue:e.name.value,"onUpdate:modelValue":a[0]||(a[0]=s=>e.name.value=s),placeholder:n(i)("Please input field",{field:e.name.title}),"input-attr":{onChange:l,...(pe=(p=t.options)==null?void 0:p.name)==null?void 0:pe.inputAttr},prop:"name"},null,8,["label","modelValue","placeholder","input-attr"])):g("",!0),e.title.show?(d(),m(f,{key:1,label:e.title.title,type:"string",modelValue:e.title.value,"onUpdate:modelValue":a[1]||(a[1]=s=>e.title.value=s),placeholder:n(i)("Please input field",{field:e.title.title}),"input-attr":{onChange:l,...(fe=(me=t.options)==null?void 0:me.title)==null?void 0:fe.inputAttr},prop:"title"},null,8,["label","modelValue","placeholder","input-attr"])):g("",!0),e.type.show?(d(),m(f,{key:2,label:e.type.title,type:"select",modelValue:e.type.value,"onUpdate:modelValue":a[2]||(a[2]=s=>e.type.value=s),placeholder:n(i)("Please select field",{field:e.type.title}),"input-attr":{onChange:l,content:o.inputTypes,...(ge=(ce=t.options)==null?void 0:ce.type)==null?void 0:ge.inputAttr},prop:"type"},null,8,["label","modelValue","placeholder","input-attr"])):g("",!0),e.dict.show&&x.includes(e.type.value)?(d(),m(f,{key:3,label:e.dict.title,type:"textarea",modelValue:e.dict.value,"onUpdate:modelValue":a[3]||(a[3]=s=>e.dict.value=s),"input-attr":{rows:3,placeholder:n(i)("utils.One line at a time, without quotation marks, for example: key1=value1"),onChange:l,...(Ve=(ye=t.options)==null?void 0:ye.dict)==null?void 0:Ve.inputAttr},prop:"dict",onKeyup:a[4]||(a[4]=S(N(()=>{},["stop"]),["enter"]))},null,8,["label","modelValue","input-attr"])):g("",!0),e.tip.show?(d(),m(f,{key:4,label:e.tip.title,type:"string",modelValue:e.tip.value,"onUpdate:modelValue":a[5]||(a[5]=s=>e.tip.value=s),placeholder:n(i)("Please input field",{field:e.tip.title}),"input-attr":{onChange:l,...(be=(ve=t.options)==null?void 0:ve.tip)==null?void 0:be.inputAttr},prop:"tip"},null,8,["label","modelValue","placeholder","input-attr"])):g("",!0),e.rule.show?(d(),m(f,{key:5,label:e.rule.title,type:"selects",modelValue:e.rule.value,"onUpdate:modelValue":a[6]||(a[6]=s=>e.rule.value=s),placeholder:n(i)("Please select field",{field:e.rule.title}),"input-attr":{onChange:l,content:o.validators,...(xe=(he=t.options)==null?void 0:he.rule)==null?void 0:xe.inputAttr},prop:"rule"},null,8,["label","modelValue","placeholder","input-attr"])):g("",!0),e.extend.show?(d(),m(f,{key:6,label:e.extend.title,type:"textarea",modelValue:e.extend.value,"onUpdate:modelValue":a[7]||(a[7]=s=>e.extend.value=s),"input-attr":{onChange:l,placeholder:n(i)("utils.One attribute per line without quotation marks(formitem)"),...(Ce=(we=t.options)==null?void 0:we.extend)==null?void 0:Ce.inputAttr},prop:"extend",onKeyup:a[8]||(a[8]=S(N(()=>{},["stop"]),["enter"]))},null,8,["label","modelValue","input-attr"])):g("",!0),e.inputExtend.show?(d(),m(f,{key:7,label:e.inputExtend.title,type:"textarea",modelValue:e.inputExtend.value,"onUpdate:modelValue":a[9]||(a[9]=s=>e.inputExtend.value=s),"input-attr":{onChange:l,placeholder:n(i)("utils.Extended properties of Input, one line without quotation marks, such as: size=large"),...(Te=(ke=t.options)==null?void 0:ke.inputExtend)==null?void 0:Te.inputAttr},prop:"inputExtend",onKeyup:a[10]||(a[10]=S(N(()=>{},["stop"]),["enter"]))},null,8,["label","modelValue","input-attr"])):g("",!0)])}}}),Ke={class:"title"},$e=Ae({__name:"add",props:{modelValue:{type:Boolean,default:!1},configGroup:{default:()=>({})}},emits:["update:modelValue"],setup(c,{emit:y}){const i=Se(),t=c,x=y,e=()=>{x("update:modelValue",!1)},{t:o}=qe.useI18n(),T=Me("formRef"),l=q({inputTypes:{},labelWidth:180,submitLoading:!1,addConfig:{group:"",weigh:0,content:""},formItemData:{dict:`key1=value1 +key2=value2`}}),z=q({group:[h({name:"required",trigger:"change",message:o("Please select field",{field:o("routine.config.Variable group")})})],name:[h({name:"required",title:o("routine.config.Variable name")}),h({name:"varName",message:o("Please enter the correct field",{field:o("routine.config.Variable name")})})],title:[h({name:"required",title:o("routine.config.Variable title")})],type:[h({name:"required",trigger:"change",message:o("Please select field",{field:o("routine.config.Variable type")})})],weigh:[h({name:"integer",title:o("routine.config.number")})]}),w=()=>{var V;(V=T.value)==null||V.validate(u=>{u&&(l.addConfig.content=l.formItemData.dict,delete l.formItemData.dict,Re("add",{...l.addConfig,...l.formItemData}).then(()=>{x("update:modelValue",!1)}))})};return(V,u)=>{const E=_("el-form"),D=_("el-scrollbar"),C=_("el-button"),I=_("el-dialog"),P=F("drag"),U=F("zoom"),A=F("blur");return d(),m(I,{class:"ba-operate-dialog","close-on-click-modal":!1,"model-value":t.modelValue,onClose:e},{header:v(()=>[Ie((d(),_e("div",Ke,[O(W(n(o)("routine.config.Add configuration item")),1)])),[[P,[".ba-operate-dialog",".el-dialog__header"]],[U,".ba-operate-dialog"]])]),footer:v(()=>[Ee("div",{style:De("width: calc(100% - "+l.labelWidth/1.8+"px)")},[b(C,{onClick:e},{default:v(()=>[O(W(n(o)("Cancel")),1)]),_:1}),Ie((d(),m(C,{loading:l.submitLoading,onClick:u[4]||(u[4]=r=>w()),type:"primary"},{default:v(()=>[O(W(n(o)("Add")),1)]),_:1},8,["loading"])),[[A]])],4)]),default:v(()=>[b(D,{class:"ba-table-form-scrollbar"},{default:v(()=>[Ee("div",{class:"ba-operate-form ba-add-form",style:De(n(i).layout.shrink?"":"width: calc(100% - "+l.labelWidth/2+"px)")},[b(E,{ref_key:"formRef",ref:T,onKeyup:u[3]||(u[3]=S(r=>w(),["enter"])),rules:z,model:{...l.addConfig,...l.formItemData},"label-position":n(i).layout.shrink?"top":"right","label-width":160},{default:v(()=>[b(f,{label:n(o)("routine.config.Variable group"),type:"select",modelValue:l.addConfig.group,"onUpdate:modelValue":u[0]||(u[0]=r=>l.addConfig.group=r),prop:"group","input-attr":{content:V.configGroup},placeholder:n(o)("Please select field",{field:n(o)("routine.config.Variable group")})},null,8,["label","modelValue","input-attr","placeholder"]),b(Be,{modelValue:l.formItemData,"onUpdate:modelValue":u[1]||(u[1]=r=>l.formItemData=r)},null,8,["modelValue"]),b(f,{label:n(o)("Weigh"),type:"number",modelValue:l.addConfig.weigh,"onUpdate:modelValue":u[2]||(u[2]=r=>l.addConfig.weigh=r),prop:"weigh"},null,8,["label","modelValue"])]),_:1},8,["rules","model","label-position"])],4)]),_:1})]),_:1},8,["model-value"])}}});export{$e as _,Le as a,Ge as d,je as i,Re as p}; diff --git a/public/assets/admin-KRgauoDe.js b/public/assets/admin-KRgauoDe.js new file mode 100644 index 0000000..468a98a --- /dev/null +++ b/public/assets/admin-KRgauoDe.js @@ -0,0 +1 @@ +const a={username:"Username",nickname:"Nickname",group:"Group",avatar:"Avatar",email:"Email",mobile:"Mobile Number","Last login":"Last login",Password:"Password","Please leave blank if not modified":"Please leave blank if you do not modify.","Personal signature":"Personal Signature","Administrator login":"Administrator Login Name"};export{a as default}; diff --git a/public/assets/admin-Vvx8AucK.js b/public/assets/admin-Vvx8AucK.js new file mode 100644 index 0000000..272a870 --- /dev/null +++ b/public/assets/admin-Vvx8AucK.js @@ -0,0 +1 @@ +const a={username:"用户名",nickname:"昵称",group:"角色组",avatar:"头像",email:"电子邮箱",mobile:"手机号","Last login":"最后登录",Password:"密码","Please leave blank if not modified":"不修改请留空","Personal signature":"个性签名","Administrator login":"管理员登录名"};export{a as default}; diff --git a/public/assets/adminInfo-B3OEBH2S.js b/public/assets/adminInfo-B3OEBH2S.js new file mode 100644 index 0000000..dc24091 --- /dev/null +++ b/public/assets/adminInfo-B3OEBH2S.js @@ -0,0 +1 @@ +const e={"Last logged in on":"上次登录于","user name":"用户名","User nickname":"用户昵称","Please enter a nickname":"请输入昵称","e-mail address":"邮箱地址","phone number":"手机号码",autograph:"签名","This guy is lazy and doesn write anything":"这家伙很懒,什么也没写","New password":"新密码","Please leave blank if not modified":"不修改请留空","Save changes":"保存修改","Operation log":"操作日志"};export{e as default}; diff --git a/public/assets/adminInfo-DO0DyOrC.js b/public/assets/adminInfo-DO0DyOrC.js new file mode 100644 index 0000000..834a4b9 --- /dev/null +++ b/public/assets/adminInfo-DO0DyOrC.js @@ -0,0 +1 @@ +const e={"Last logged in on":"Last logged on","user name":"Username","User nickname":"User nickname","Please enter a nickname":"Please enter a nickname","e-mail address":"E-mail address","phone number":"Mobile number",autograph:"Signature","This guy is lazy and doesn write anything":"This guy is lazy and didn't write anything.","New password":"New password","Please leave blank if not modified":"Please leave blank if you do not modify","Save changes":"Save changes","Operation log":"Operation log"};export{e as default}; diff --git a/public/assets/adminInfo-FsG9ji9V.js b/public/assets/adminInfo-FsG9ji9V.js new file mode 100644 index 0000000..29c2573 --- /dev/null +++ b/public/assets/adminInfo-FsG9ji9V.js @@ -0,0 +1 @@ +import{B as X,a8 as Y,a as P,I as m,X as Z,C as p,D as U,H as o,P as i,G as u,u as a,p as J,O as _,W as Q,U as c,a7 as V,a6 as z,V as w,_ as ee,Z as ne,Y as ae}from"./vue-DweYBrEc.js";import{c as k,x as oe,w as te,y as F,f as le,T as S,G as ie,a9 as de,_ as me}from"./index-CLyTskad.js";import{b as I}from"./validate-Cv_tWIu0.js";const D="/admin/routine.AdminInfo/",y=new Map([["index",D+"index"],["edit",D+"edit"],["log","/admin/auth.AdminLog/index"]]);function re(){return k({url:y.get("index"),method:"get"})}function se(g={}){return k({url:y.get("log"),method:"get",params:g})}function T(g){return k({url:y.get("edit"),method:"post",data:g},{showSuccessMessage:!0})}const ue={class:"default-main"},fe={class:"admin-info"},pe={class:"image-slot"},ce={class:"admin-info-base"},ge={class:"admin-nickname"},_e={class:"admin-other"},Ie={class:"admin-info-form"},be=X({name:"routine/adminInfo",__name:"adminInfo",setup(g){const{t}=oe.useI18n(),b=Y("formRef"),x=te(),e=P({adminInfo:{},formKey:F(),buttonLoading:!1,log:[],logFilter:{limit:12},logCurrentPage:1,logPageSize:12,logTotal:100,logLoading:!0});re().then(d=>{e.adminInfo=d.data.info,e.formKey=F(),e.logFilter.search=[{field:"admin_id",val:d.data.info.id,operator:"eq"}],v()});const v=()=>{se(e.logFilter).then(d=>{e.log=d.data.list,e.logTotal=d.data.total,e.logLoading=!1}).catch(()=>{e.logLoading=!1})},B=d=>{e.logPageSize=d,e.logFilter.limit=d,v()},K=d=>{e.logCurrentPage=d,e.logFilter.page=d,v()},R=P({nickname:[I({name:"required",title:t("routine.adminInfo.User nickname")})],email:[I({name:"email",title:t("routine.adminInfo.e-mail address")})],mobile:[I({name:"mobile",message:t("Please enter the correct field",{field:t("routine.adminInfo.phone number")})})],password:[I({name:"password"})]}),A=d=>{let n=new FormData;n.append("file",d.raw),de(n).then(r=>{r.code==1&&T({id:e.adminInfo.id,avatar:r.data.file.url}).then(()=>{x.dataFill({avatar:r.data.file.full_url}),e.adminInfo.avatar=r.data.file.full_url})})},h=()=>{var d;(d=b.value)==null||d.validate(n=>{if(n){let r={...e.adminInfo};delete r.last_login_time,delete r.username,delete r.avatar,e.buttonLoading=!0,T(r).then(()=>{x.dataFill({nickname:e.adminInfo.nickname}),e.buttonLoading=!1}).catch(()=>{e.buttonLoading=!1})}})};return(d,n)=>{const r=m("Icon"),N=m("el-image"),j=m("el-upload"),f=m("el-input"),s=m("el-form-item"),C=m("el-button"),$=m("el-form"),L=m("el-col"),E=m("el-timeline-item"),M=m("el-timeline"),q=m("el-pagination"),G=m("el-card"),O=m("el-row"),H=Z("loading");return p(),U("div",ue,[o(O,{gutter:30},{default:i(()=>[o(L,{class:"lg-mb-20",xs:24,sm:24,md:24,lg:10},{default:i(()=>[u("div",fe,[a(J)(e.adminInfo)?Q("",!0):(p(),_(j,{key:0,class:"avatar-uploader",action:"","show-file-list":!1,onChange:A,"auto-upload":!1,accept:"image/gif, image/jpg, image/jpeg, image/bmp, image/png, image/webp"},{default:i(()=>[o(N,{fit:"cover",src:a(le)(e.adminInfo.avatar),class:"avatar"},{error:i(()=>[u("div",pe,[o(r,{size:"30",color:"#c0c4cc",name:"el-icon-Picture"})])]),_:1},8,["src"])]),_:1})),u("div",ce,[u("div",ge,c(e.adminInfo.nickname),1),u("div",_e,[u("div",null,c(a(t)("routine.adminInfo.Last logged in on"))+" "+c(a(S)(e.adminInfo.last_login_time)),1)])]),u("div",Ie,[(p(),_($,{onKeyup:n[10]||(n[10]=V(l=>h(),["enter"])),key:e.formKey,"label-position":"top",rules:R,ref_key:"formRef",ref:b,model:e.adminInfo},{default:i(()=>[o(s,{label:a(t)("routine.adminInfo.user name")},{default:i(()=>[o(f,{disabled:"",modelValue:e.adminInfo.username,"onUpdate:modelValue":n[0]||(n[0]=l=>e.adminInfo.username=l)},null,8,["modelValue"])]),_:1},8,["label"]),o(s,{label:a(t)("routine.adminInfo.User nickname"),prop:"nickname"},{default:i(()=>[o(f,{placeholder:a(t)("routine.adminInfo.Please enter a nickname"),modelValue:e.adminInfo.nickname,"onUpdate:modelValue":n[1]||(n[1]=l=>e.adminInfo.nickname=l)},null,8,["placeholder","modelValue"])]),_:1},8,["label"]),o(s,{label:a(t)("routine.adminInfo.e-mail address"),prop:"email"},{default:i(()=>[o(f,{placeholder:a(t)("Please input field",{field:a(t)("routine.adminInfo.e-mail address")}),modelValue:e.adminInfo.email,"onUpdate:modelValue":n[2]||(n[2]=l=>e.adminInfo.email=l)},null,8,["placeholder","modelValue"])]),_:1},8,["label"]),o(s,{label:a(t)("routine.adminInfo.phone number"),prop:"mobile"},{default:i(()=>[o(f,{placeholder:a(t)("Please input field",{field:a(t)("routine.adminInfo.phone number")}),modelValue:e.adminInfo.mobile,"onUpdate:modelValue":n[3]||(n[3]=l=>e.adminInfo.mobile=l)},null,8,["placeholder","modelValue"])]),_:1},8,["label"]),o(s,{label:a(t)("routine.adminInfo.autograph"),prop:"motto"},{default:i(()=>[o(f,{onKeyup:[n[4]||(n[4]=V(z(()=>{},["stop"]),["enter"])),n[5]||(n[5]=V(z(l=>h(),["ctrl"]),["enter"]))],placeholder:a(t)("routine.adminInfo.This guy is lazy and doesn write anything"),type:"textarea",modelValue:e.adminInfo.motto,"onUpdate:modelValue":n[6]||(n[6]=l=>e.adminInfo.motto=l)},null,8,["placeholder","modelValue"])]),_:1},8,["label"]),o(s,{label:a(t)("routine.adminInfo.New password"),prop:"password"},{default:i(()=>[o(f,{type:"password",placeholder:a(t)("routine.adminInfo.Please leave blank if not modified"),modelValue:e.adminInfo.password,"onUpdate:modelValue":n[7]||(n[7]=l=>e.adminInfo.password=l)},null,8,["placeholder","modelValue"])]),_:1},8,["label"]),o(s,null,{default:i(()=>[o(C,{type:"primary",loading:e.buttonLoading,onClick:n[8]||(n[8]=l=>h())},{default:i(()=>[w(c(a(t)("routine.adminInfo.Save changes")),1)]),_:1},8,["loading"]),o(C,{onClick:n[9]||(n[9]=l=>a(ie)(a(b)))},{default:i(()=>[w(c(a(t)("Reset")),1)]),_:1})]),_:1})]),_:1},8,["rules","model"]))])])]),_:1}),ee((p(),_(L,{xs:24,sm:24,md:24,lg:12},{default:i(()=>[o(G,{header:a(t)("routine.adminInfo.Operation log"),shadow:"never"},{default:i(()=>[o(M,null,{default:i(()=>[(p(!0),U(ne,null,ae(e.log,(l,W)=>(p(),_(E,{key:W,size:"large",timestamp:a(S)(l.create_time)},{default:i(()=>[w(c(l.title),1)]),_:2},1032,["timestamp"]))),128))]),_:1}),o(q,{currentPage:e.logCurrentPage,"page-size":e.logPageSize,"page-sizes":[12,22,52,100],background:"",layout:"prev, next, jumper",total:e.logTotal,onSizeChange:B,onCurrentChange:K},null,8,["currentPage","page-size","total"])]),_:1},8,["header"])]),_:1})),[[H,e.logLoading]])]),_:1})])}}}),we=me(be,[["__scopeId","data-v-63de0f4f"]]);export{we as default}; diff --git a/public/assets/adminLog-CJcRZUUn.js b/public/assets/adminLog-CJcRZUUn.js new file mode 100644 index 0000000..6b70364 --- /dev/null +++ b/public/assets/adminLog-CJcRZUUn.js @@ -0,0 +1 @@ +const a={admin_id:"Manage ID",username:"Manage Username",title:"Title",data:"Request Data",url:"URL",ip:"IP",useragent:"UserAgent","Operation administrator":"Operation administrator","Operator IP":"Operator IP","Request data":"Request Data"};export{a as default}; diff --git a/public/assets/adminLog-F4wjgJZH.js b/public/assets/adminLog-F4wjgJZH.js new file mode 100644 index 0000000..a1420d3 --- /dev/null +++ b/public/assets/adminLog-F4wjgJZH.js @@ -0,0 +1 @@ +const a={admin_id:"管理ID",username:"管理用户名",title:"标题",data:"请求数据",url:"URL",ip:"IP",useragent:"UserAgent","Operation administrator":"操作管理员","Operator IP":"操作人IP","Request data":"请求数据"};export{a as default}; diff --git a/public/assets/annualReport-DV8erxCK.js b/public/assets/annualReport-DV8erxCK.js new file mode 100644 index 0000000..b8138b6 --- /dev/null +++ b/public/assets/annualReport-DV8erxCK.js @@ -0,0 +1 @@ +import{i as W}from"./echarts-e5otCyz6.js";import{x as H,_ as Z}from"./index-CLyTskad.js";import{a as $}from"./moneyLog-DXD0yS7z.js";import{B as X,b as f,l as C,a as z,w as q,o as J,j as K,I as j,X as Q,C as l,D as u,G as o,U as r,u as d,H as ee,P as te,Z as R,Y as b,O as ae,_ as oe,n as B}from"./vue-DweYBrEc.js";const ne={class:"default-main annual-report"},re={class:"report-heading"},le={class:"report-content"},se={class:"report-table-wrap"},ie={class:"report-table"},ue={class:"year-total"},ce={class:"chart-card"},me={class:"chart-card"},pe=X({name:"user/moneyLog/annualReport",__name:"annualReport",setup(ye){const{locale:F,t:e}=H.useI18n(),A=new Date().getFullYear(),m=f(A),v=f(!1),L=f(),_=f();let s,i;const k=C(()=>[e("user.moneyLog.annualReport.months.jan"),e("user.moneyLog.annualReport.months.feb"),e("user.moneyLog.annualReport.months.mar"),e("user.moneyLog.annualReport.months.apr"),e("user.moneyLog.annualReport.months.may"),e("user.moneyLog.annualReport.months.jun"),e("user.moneyLog.annualReport.months.jul"),e("user.moneyLog.annualReport.months.aug"),e("user.moneyLog.annualReport.months.sep"),e("user.moneyLog.annualReport.months.oct"),e("user.moneyLog.annualReport.months.nov"),e("user.moneyLog.annualReport.months.dec")]),U=[{key:"deposit",label:"user.moneyLog.annualReport.deposit",currency:!0},{key:"withdraw",label:"user.moneyLog.annualReport.withdraw",currency:!0},{key:"transactionDeposit",label:"user.moneyLog.annualReport.transactionDeposit",currency:!1},{key:"transactionWithdraw",label:"user.moneyLog.annualReport.transactionWithdraw",currency:!1},{key:"activePlayer",label:"user.moneyLog.annualReport.activePlayer",currency:!1},{key:"firstDeposit",label:"user.moneyLog.annualReport.firstDeposit",currency:!1},{key:"unclaimReceipt",label:"user.moneyLog.annualReport.unclaimReceipt",currency:!1},{key:"unclaimAmount",label:"user.moneyLog.annualReport.unclaimAmount",currency:!0}],S=()=>({deposit:Array(12).fill(0),withdraw:Array(12).fill(0),transactionDeposit:Array(12).fill(0),transactionWithdraw:Array(12).fill(0),activePlayer:Array(12).fill(0),firstDeposit:Array(12).fill(0),unclaimReceipt:Array(12).fill(0),unclaimAmount:Array(12).fill(0)}),x=()=>({deposit:0,withdraw:0,transactionDeposit:0,transactionWithdraw:0,activePlayer:0,firstDeposit:0,unclaimReceipt:0,unclaimAmount:0}),c=z(S()),D=z(x()),V=C(()=>Array.from({length:8},(n,t)=>A-t)),M={DEPOSIT:"deposit",WITHDRAW:"withdraw","TRANSACTION (DEPOSIT)":"transactionDeposit","TRANSACTION (WITHDRAW)":"transactionWithdraw","ACTIVE PLAYER":"activePlayer","FIRST DEPOSIT":"firstDeposit","UNCLAIM RECEIPT":"unclaimReceipt","UNCLAIM AMOUNT":"unclaimAmount"},I=n=>{const t=Number(n);return Number.isFinite(t)?t:0},Y=n=>{var h;const t=S(),p=x(),g=(n==null?void 0:n.report_table)??((h=n==null?void 0:n.data)==null?void 0:h.report_table);return Array.isArray(g)?(g.forEach(a=>{const y=M[String(a.title||"").trim().toUpperCase()];y&&(t[y]=Array.from({length:12},(O,G)=>I(a[`month_${G+1}`])),p[y]=I(a.year_total))}),{data:t,totals:p}):{data:t,totals:p}},T=(n,t)=>new Intl.NumberFormat(void 0,{minimumFractionDigits:t?2:0,maximumFractionDigits:t?2:0}).format(n),w=()=>({animationDuration:500,grid:{left:58,right:24,top:52,bottom:70},toolbox:{right:14,feature:{saveAsImage:{title:e("user.moneyLog.annualReport.download")}}},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:k.value,axisLine:{lineStyle:{color:"#d8d8d8"}},axisLabel:{color:"#777"}},yAxis:{type:"value",splitLine:{lineStyle:{color:"#ededed"}},axisLabel:{color:"#777"}},dataZoom:[{type:"slider",height:18,bottom:14,start:0,end:100},{type:"inside"}]}),E=()=>{L.value&&(s||(s=W(L.value)),s.setOption({...w(),legend:{top:10,data:[e("user.moneyLog.annualReport.deposit"),e("user.moneyLog.annualReport.withdraw")]},series:[{name:e("user.moneyLog.annualReport.deposit"),type:"line",smooth:!0,symbolSize:6,data:c.deposit,itemStyle:{color:"#32b36b"},lineStyle:{width:2},areaStyle:{color:"rgba(50, 179, 107, 0.22)"}},{name:e("user.moneyLog.annualReport.withdraw"),type:"line",smooth:!0,symbolSize:6,data:c.withdraw,itemStyle:{color:"#ef5b5b"},lineStyle:{width:2},areaStyle:{color:"rgba(239, 91, 91, 0.18)"}}]})),_.value&&(i||(i=W(_.value)),i.setOption({...w(),xAxis:{...w().xAxis,boundaryGap:!0},legend:{top:10,data:[e("user.moneyLog.annualReport.activePlayer"),e("user.moneyLog.annualReport.transactionDeposit"),e("user.moneyLog.annualReport.transactionWithdraw")]},series:[{name:e("user.moneyLog.annualReport.activePlayer"),type:"bar",data:c.activePlayer,itemStyle:{color:"#4f8edc"}},{name:e("user.moneyLog.annualReport.transactionDeposit"),type:"bar",data:c.transactionDeposit,itemStyle:{color:"#32b36b"}},{name:e("user.moneyLog.annualReport.transactionWithdraw"),type:"bar",data:c.transactionWithdraw,itemStyle:{color:"#f2b441"}}]}))},P=async()=>{v.value=!0;try{const n=await $({year:m.value}),t=Y(n.data);Object.assign(c,t.data),Object.assign(D,t.totals),await B(),E()}finally{v.value=!1}},N=()=>{s==null||s.resize(),i==null||i.resize()};return q(F,async()=>{await B(),E()}),J(()=>{window.addEventListener("resize",N),P()}),K(()=>{window.removeEventListener("resize",N),s==null||s.dispose(),i==null||i.dispose()}),(n,t)=>{const p=j("el-option"),g=j("el-select"),h=Q("loading");return l(),u("div",ne,[o("div",re,[o("h1",null,r(d(e)("user.moneyLog.annualReport.title")),1),ee(g,{modelValue:m.value,"onUpdate:modelValue":t[0]||(t[0]=a=>m.value=a),class:"year-select",onChange:P},{default:te(()=>[(l(!0),u(R,null,b(V.value,a=>(l(),ae(p,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),oe((l(),u("div",le,[o("div",se,[o("table",ie,[o("thead",null,[o("tr",null,[t[1]||(t[1]=o("th",null,null,-1)),(l(!0),u(R,null,b(k.value,a=>(l(),u("th",{key:a},r(a),1))),128)),o("th",null,r(d(e)("user.moneyLog.annualReport.year")),1)])]),o("tbody",null,[(l(),u(R,null,b(U,a=>o("tr",{key:a.key},[o("th",null,r(d(e)(a.label)),1),(l(!0),u(R,null,b(c[a.key],(y,O)=>(l(),u("td",{key:O},r(T(y,a.currency)),1))),128)),o("td",ue,r(T(D[a.key],a.currency)),1)])),64))])])]),o("div",ce,[o("h2",null,r(m.value)+" "+r(d(e)("user.moneyLog.annualReport.depositWithdraw")),1),o("div",{ref_key:"depositChartRef",ref:L,class:"report-chart"},null,512)]),o("div",me,[o("h2",null,r(m.value)+" "+r(d(e)("user.moneyLog.annualReport.transactionActive")),1),o("div",{ref_key:"transactionChartRef",ref:_,class:"report-chart"},null,512)])])),[[h,v.value]])])}}}),Re=Z(pe,[["__scopeId","data-v-909448c8"]]);export{Re as default}; diff --git a/public/assets/attachment-BC9DmiIE.js b/public/assets/attachment-BC9DmiIE.js new file mode 100644 index 0000000..828e8f3 --- /dev/null +++ b/public/assets/attachment-BC9DmiIE.js @@ -0,0 +1 @@ +const e={"Upload administrator":"Upload administrator","Upload user":"Upload member","Storage mode":"Storage mode","Physical path":"Physical path","image width":"Picture width","Picture height":"Picture height","file size":"file size","mime type":"mime type ","SHA1 code":"SHA1","The file is saved in the directory, and the file will not be automatically transferred if the record is modified":"The file had saved in the directory, and the modification record will not automatically tansfer the file.","File saving path Modifying records will not automatically transfer files":"The file had saved in the path, and the modification record will not automatically tansfer the file.","Width of picture file":"The width of the image file.","Height of picture file":"The height of the image file.","Original file name":"Original name of the file","File size (bytes)":"File size (Bytes)","File MIME type":"File MIME type","Upload (Reference) times of this file":"Upload (Reference) times of this file","When the same file is uploaded multiple times, only one attachment record will be saved and added":"When the same file is uploaded many times, only one attachment record will be saved and added.","SHA1 encoding of file":"The SHA1 encoding of file","Files and records will be deleted at the same time Are you sure?":"Files and records will be deleted at the same time Are you sure?"};export{e as default}; diff --git a/public/assets/attachment-Bk2xuZDZ.js b/public/assets/attachment-Bk2xuZDZ.js new file mode 100644 index 0000000..405eb68 --- /dev/null +++ b/public/assets/attachment-Bk2xuZDZ.js @@ -0,0 +1 @@ +const e={"Upload administrator":"上传管理员","Upload user":"上传会员","Storage mode":"存储方式","Physical path":"物理路径","image width":"图片宽度","Picture height":"图片高度","file size":"文件大小","mime type":"mime类型","SHA1 code":"sha1","The file is saved in the directory, and the file will not be automatically transferred if the record is modified":"文件保存目录,修改记录不会自动转移文件","File saving path Modifying records will not automatically transfer files":"文件保存路径,修改记录不会自动转移文件","Width of picture file":"图片文件的宽度","Height of picture file":"图片文件的高度","Original file name":"文件原始名称","File size (bytes)":"文件大小(bytes)","File MIME type":"文件mime类型","Upload (Reference) times of this file":"此文件的上传(引用)次数","When the same file is uploaded multiple times, only one attachment record will be saved and added":"同一文件被多次上传时,只会保存一份和增加一条附件记录","SHA1 encoding of file":"文件的sha1编码","Files and records will be deleted at the same time Are you sure?":"将同时删除文件和记录,确认吗?"};export{e as default}; diff --git a/public/assets/baAccount-0xHyeyV1.js b/public/assets/baAccount-0xHyeyV1.js new file mode 100644 index 0000000..e7289fb --- /dev/null +++ b/public/assets/baAccount-0xHyeyV1.js @@ -0,0 +1 @@ +import{B as P,aE as x,a8 as G,a as w,w as S,I as d,X as B,C as m,D as b,H as i,u as a,P as c,_ as y,G as n,U as u,O as A,V as f,a7 as E,aF as N}from"./vue-DweYBrEc.js";import{x as T,u as q,y as K,_ as j}from"./index-CLyTskad.js";import{u as H,b as O,c as X}from"./index-LESJQkWP.js";import{c as J}from"./index-BLaAO5aC.js";import{F as C}from"./index-CcxeqWzf.js";import{b as v}from"./validate-Cv_tWIu0.js";const Q={key:0,class:"userinfo"},W={class:"user-avatar-box"},Y=["src"],Z={class:"username"},ee={class:"user-info"},ae={class:"userinfo-buttons"},oe={href:"https://uni.buildadmin.com/user",target:"_blank",rel:"noopener noreferrer"},te={key:1,class:"ba-login"},se={class:"ba-title"},ne={target:"_blank",class:"ba-account-register",href:"https://uni.buildadmin.com/user/login?type=register",rel:"noopener noreferrer"},le=P({__name:"baAccount",props:N({loginCallback:{type:Function,default:()=>{}}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(h){const{t:l}=T.useI18n(),t=H(),F=q(),g=x(h,"modelValue"),k=G("baAccountFormRef"),L=h,o=w({loading:!0,submitLoading:!1,user:{tab:"login",username:"",password:"",captchaId:K(),captchaInfo:"",keep:!1}}),I=()=>{var s;(s=k.value)==null||s.validate(e=>{e&&J(o.user.captchaId,_=>U(_),{apiBaseURL:F.apiUrl})})},U=(s="")=>{o.submitLoading=!0,o.user.captchaInfo=s,O(o.user).then(e=>{t.dataFill(e.data.userInfo,!1),L.loginCallback(e)}).finally(()=>{o.submitLoading=!1})},z=w({username:[v({name:"required",title:l("layouts.Username")})],password:[v({name:"required",title:l("layouts.Password")}),v({name:"password"})]});return S(()=>g.value,s=>{s&&t.token&&X().then(e=>{t.dataFill(e.data.userInfo)}).catch(()=>{t.removeToken()}).finally(()=>{o.loading=!1})}),(s,e)=>{const _=d("Icon"),p=d("el-button"),R=d("el-form-item"),$=d("el-form"),D=d("el-dialog"),V=B("blur"),M=B("loading");return m(),b("div",null,[i(D,{modelValue:g.value,"onUpdate:modelValue":e[5]||(e[5]=r=>g.value=r),class:"ba-account-dialog",width:"25%",title:a(l)("layouts.Member information")},{default:c(()=>[a(t).token?y((m(),b("div",Q,[n("div",W,[n("img",{class:"user-avatar",src:a(t).avatar,alt:""},null,8,Y),i(_,{class:"user-avatar-gender",name:a(t).getGenderIcon().name,size:"14",color:a(t).getGenderIcon().color},null,8,["name","color"])]),n("p",Z,u(a(t).nickname),1),n("p",ee,[n("span",null,u(s.$t("Integral")+" "+a(t).score),1),n("span",null,u(s.$t("Balance")+" "+a(t).money),1)]),n("div",ae,[n("a",oe,[y((m(),A(p,{size:"default",type:"primary"},{default:c(()=>[f(u(s.$t("layouts.Member center")),1)]),_:1})),[[V]])]),y((m(),A(p,{onClick:e[0]||(e[0]=r=>a(t).logout()),size:"default",type:"warning"},{default:c(()=>[f(u(s.$t("layouts.Logout")),1)]),_:1})),[[V]])])])),[[M,o.loading]]):(m(),b("div",te,[n("h3",se,u(a(l)("layouts.Login to the buildadmin")),1),i($,{onKeyup:e[4]||(e[4]=E(r=>I(),["enter"])),ref_key:"baAccountFormRef",ref:k,rules:z,class:"ba-account-login-form",model:o.user},{default:c(()=>[i(C,{modelValue:o.user.username,"onUpdate:modelValue":e[1]||(e[1]=r=>o.user.username=r),type:"string",prop:"username",placeholder:a(l)("layouts.Please enter buildadmin account name or email"),"input-attr":{size:"large"}},null,8,["modelValue","placeholder"]),i(C,{modelValue:o.user.password,"onUpdate:modelValue":e[2]||(e[2]=r=>o.user.password=r),type:"password",prop:"password",placeholder:a(l)("layouts.Please enter the buildadmin account password"),"input-attr":{size:"large"}},null,8,["modelValue","placeholder"]),i(R,{class:"form-buttons"},{default:c(()=>[i(p,{onClick:e[3]||(e[3]=r=>I()),loading:o.submitLoading,round:"",type:"primary",size:"large"},{default:c(()=>[f(u(a(l)("layouts.Login")),1)]),_:1},8,["loading"]),n("a",ne,[i(p,{round:"",plain:"",type:"info",size:"large"},{default:c(()=>[f(u(a(l)("layouts.Register")),1)]),_:1})])]),_:1})]),_:1},8,["rules","model"])]))]),_:1},8,["modelValue","title"])])}}}),pe=j(le,[["__scopeId","data-v-3d2b2a16"]]);export{pe as B}; diff --git a/public/assets/balance-DNOPtc84.js b/public/assets/balance-DNOPtc84.js new file mode 100644 index 0000000..7707eb4 --- /dev/null +++ b/public/assets/balance-DNOPtc84.js @@ -0,0 +1 @@ +const a={"Change time":"Change time","Current balance":"Current balance","Balance after change":"Balance after change","Balance change record":"Balance change record"};export{a as default}; diff --git a/public/assets/balance-DXvZWTY3.js b/public/assets/balance-DXvZWTY3.js new file mode 100644 index 0000000..10345c6 --- /dev/null +++ b/public/assets/balance-DXvZWTY3.js @@ -0,0 +1 @@ +const a={"Change time":"变更时间","Current balance":"当前余额","Balance after change":"变更后余额","Balance change record":"余额变更记录"};export{a as default}; diff --git a/public/assets/balance-Rvik9ThJ.js b/public/assets/balance-Rvik9ThJ.js new file mode 100644 index 0000000..fb4c660 --- /dev/null +++ b/public/assets/balance-Rvik9ThJ.js @@ -0,0 +1 @@ +import{b,a as k,T as z,ad as B,_ as P}from"./index-CLyTskad.js";import{B as S,a as $,o as w,I as l,X as D,C as t,D as s,H as g,P as d,_ as L,Z as I,Y as T,G as c,U as n,u as i,O as j}from"./vue-DweYBrEc.js";const F={class:"user-views"},M={class:"card-header"},N={class:"right-title"},U={class:"logs"},V={class:"log-title"},E={key:0,class:"log-change-amount increase"},G={key:1,class:"log-change-amount reduce"},H={class:"log-after"},O={class:"log-change-time"},X={key:0,class:"log-footer"},Y=S({__name:"balance",setup(Z){const u=b(),_=k(),e=$({logs:[],currentPage:1,total:0,pageSize:10,pageLoading:!0}),p=a=>{e.pageSize=a,r()},h=a=>{e.currentPage=a,r()},r=()=>{B(e.currentPage,e.pageSize).then(a=>{e.pageLoading=!1,e.logs=a.data.list,e.total=a.data.total})};return w(()=>{r()}),(a,q)=>{const m=l("el-pagination"),v=l("el-empty"),f=l("el-card"),y=D("loading");return t(),s("div",F,[g(f,{class:"user-views-card",shadow:"hover"},{header:d(()=>[c("div",M,[c("span",null,n(a.$t("user.account.balance.Balance change record")),1),c("span",N,n(a.$t("user.account.balance.Current balance")+" "+i(u).money),1)])]),default:d(()=>[L((t(),s("div",U,[(t(!0),s(I,null,T(e.logs,(o,C)=>(t(),s("div",{class:"log-item",key:C},[c("div",V,n(o.memo),1),o.money>0?(t(),s("div",E,n(a.$t("Balance")+":+"+o.money),1)):(t(),s("div",G,n(a.$t("Balance")+":"+o.money),1)),c("div",H,n(a.$t("user.account.balance.Balance after change")+":"+o.after),1),c("div",O,n(a.$t("user.account.balance.Change time")+":"+i(z)(o.create_time)),1)]))),128))])),[[y,e.pageLoading]]),e.total>0?(t(),s("div",X,[g(m,{currentPage:e.currentPage,"page-size":e.pageSize,"page-sizes":[10,20,50,100],background:"",layout:i(_).state.shrink?"prev, next, jumper":"sizes, ->, prev, pager, next, jumper",total:e.total,onSizeChange:p,onCurrentChange:h},null,8,["currentPage","page-size","layout","total"])])):(t(),j(v,{key:1}))]),_:1})])}}}),J=P(Y,[["__scopeId","data-v-3a90286f"]]);export{J as default}; diff --git a/public/assets/bank-CRIO1aQZ.js b/public/assets/bank-CRIO1aQZ.js new file mode 100644 index 0000000..ac2504a --- /dev/null +++ b/public/assets/bank-CRIO1aQZ.js @@ -0,0 +1 @@ +const a={id:"id",weigh:"weigh",bank_name:"bank_name",bank_account:"bank_account",safe_alert:"safe_alert","safe_alert 0":"safe_alert 0","safe_alert 1":"safe_alert 1","safe_alert 2":"safe_alert 2","safe_alert 3":"safe_alert 3","safe_alert 4":"safe_alert 4","safe_alert 5":"safe_alert 5","safe_alert 6":"safe_alert 6",tx_in:"tx_in",tx_out:"tx_out",fund_in:"fund_in",fund_out:"fund_out",label_color:"label_color",status:"status","status 0":"status 0","status 1":"status 1",create_time:"create_time",update_time:"update_time","quick Search Fields":"id"};export{a as default}; diff --git a/public/assets/bank-i32-Zwxz.js b/public/assets/bank-i32-Zwxz.js new file mode 100644 index 0000000..66c1934 --- /dev/null +++ b/public/assets/bank-i32-Zwxz.js @@ -0,0 +1 @@ +const e={id:"ID",weigh:"权重",bank_name:"账户名",bank_account:"账户",safe_alert:"安全警报","safe_alert 0":"off","safe_alert 1":"hourly","safe_alert 2":"daily","safe_alert 3":"weekly","safe_alert 4":"monthly","safe_alert 5":"yearly","safe_alert 6":"lifetime",tx_in:"tx in",tx_out:"tx out",fund_in:"fund in",fund_out:"fund out",label_color:"标签颜色",status:"状态","status 0":"禁用","status 1":"启用",create_time:"创建时间",update_time:"修改时间","quick Search Fields":"ID"};export{e as default}; diff --git a/public/assets/bg-CbEgS_OD.jpg b/public/assets/bg-CbEgS_OD.jpg new file mode 100644 index 0000000..ddf4655 Binary files /dev/null and b/public/assets/bg-CbEgS_OD.jpg differ diff --git a/public/assets/buy-CD5E9si3.js b/public/assets/buy-CD5E9si3.js new file mode 100644 index 0000000..8ce0ead --- /dev/null +++ b/public/assets/buy-CD5E9si3.js @@ -0,0 +1 @@ +import{x as B,_ as I}from"./index-CLyTskad.js";import{s as o,a as N,c as P,o as _,b as U}from"./index-DtbFrpAe.js";import{u as $}from"./index-LESJQkWP.js";import{B as A,I as f,X as v,C as a,D as r,H as g,u as e,P as u,_ as m,p as D,G as s,U as t,V as d,Z as k,O as y,W as b}from"./vue-DweYBrEc.js";import"./terminal-CSXwygCi.js";const O={key:0,class:"order-info"},E={class:"order-info-item"},M={class:"order-info-item"},z={class:"order-info-item"},W={class:"order-info-item"},j={key:0,class:"order-price"},F={key:1,class:"order-price"},G={class:"order-footer"},H={class:"order-agreement"},S={href:"https://doc.buildadmin.com/guide/other/appendix/templateAgreement.html",target:"_blank",rel:"noopener noreferrer"},T={class:"order-info-buttons"},X=A({__name:"buy",setup(Z){const{t:l}=B.useI18n(),h=$();return(q,n)=>{const x=f("el-alert"),C=f("el-checkbox"),c=f("el-button"),V=f("el-dialog"),p=v("blur"),w=v("loading");return a(),r("div",null,[g(V,{modelValue:e(o).dialog.buy,"onUpdate:modelValue":n[6]||(n[6]=i=>e(o).dialog.buy=i),class:"buy-dialog",title:e(l)("module.Confirm order info"),top:"20vh",width:"28%"},{default:u(()=>[m((a(),r("div",null,[g(x,{title:e(l)("module.Module installation warning"),type:"error",center:!0,closable:!1},null,8,["title"]),e(D)(e(o).buy.info)?b("",!0):(a(),r("div",O,[s("div",E,t(e(l)("module.Order title"))+":"+t(e(o).buy.info.title),1),s("div",M,t(e(l)("module.Order No"))+":"+t(e(o).buy.info.sn),1),s("div",z,t(e(l)("module.Purchase user"))+":"+t(e(N)(e(h))),1),s("div",W,[d(t(e(l)("module.Order price"))+": ",1),e(o).buy.info.purchased?(a(),r("span",F,t(e(l)("module.Purchased, can be installed directly")),1)):(a(),r("span",j,t(e(P)(e(o).buy.info.amount,e(o).buy.info.pay.money?1:0)),1))]),s("div",G,[s("div",H,[g(C,{modelValue:e(o).buy.agreement,"onUpdate:modelValue":n[0]||(n[0]=i=>e(o).buy.agreement=i),size:"small",label:""},null,8,["modelValue"]),s("span",null,[d(t(e(l)("module.Understand and agree"))+"《 ",1),s("a",S,t(e(l)("module.Module purchase and use agreement")),1),n[7]||(n[7]=d(" 》 "))])]),s("div",T,[e(o).buy.info.purchased?m((a(),y(c,{key:1,loading:e(o).loading.common,onClick:n[5]||(n[5]=i=>e(U)(e(o).buy.info.uid,e(o).buy.info.id,!0)),type:"warning"},{default:u(()=>[d(t(e(l)("module.Install now")),1)]),_:1},8,["loading"])),[[p]]):(a(),r(k,{key:0},[e(o).buy.info.pay.score?m((a(),y(c,{key:0,loading:e(o).loading.common,onClick:n[1]||(n[1]=i=>e(_)("score")),type:"warning"},{default:u(()=>[d(t(e(l)("module.Point payment")),1)]),_:1},8,["loading"])),[[p]]):b("",!0),e(o).buy.info.pay.money?(a(),r(k,{key:1},[m((a(),y(c,{loading:e(o).loading.common,onClick:n[2]||(n[2]=i=>e(_)("balance")),type:"warning"},{default:u(()=>[d(t(e(l)("module.Balance payment")),1)]),_:1},8,["loading"])),[[p]]),m((a(),y(c,{loading:e(o).loading.common,onClick:n[3]||(n[3]=i=>e(_)("wx")),type:"success"},{default:u(()=>[d(t(e(l)("module.Wechat payment")),1)]),_:1},8,["loading"])),[[p]]),m((a(),y(c,{loading:e(o).loading.common,onClick:n[4]||(n[4]=i=>e(_)("zfb")),type:"primary"},{default:u(()=>[d(t(e(l)("module.Alipay payment")),1)]),_:1},8,["loading"])),[[p]])],64)):b("",!0)],64))])])]))])),[[w,e(o).loading.buy]])]),_:1},8,["modelValue","title"])])}}}),Y=I(X,[["__scopeId","data-v-13d418e1"]]);export{Y as default}; diff --git a/public/assets/changePassword-B2fpdBlM.js b/public/assets/changePassword-B2fpdBlM.js new file mode 100644 index 0000000..3b72bfb --- /dev/null +++ b/public/assets/changePassword-B2fpdBlM.js @@ -0,0 +1 @@ +import{B as b,a8 as v,a as V,I as m,C as y,D as C,H as n,P as l,G as S,a7 as I,u as r,V as f,U as p}from"./vue-DweYBrEc.js";import{x as N,b as R,G as $,ae as x,_ as L}from"./index-CLyTskad.js";import{b as u}from"./validate-Cv_tWIu0.js";import{F as i}from"./index-CcxeqWzf.js";import"./index-DQmocF1u.js";import"./index-Cca48yw_.js";const U={class:"user-views"},B={class:"change-password"},k=b({__name:"changePassword",setup(q){const{t:s}=N.useI18n(),P=R(),w=v("formRef"),e=V({formSubmitLoading:!1,form:{oldPassword:"",newPassword:"",confirmPassword:""},rules:{oldPassword:[u({name:"required",title:s("user.account.changePassword.Old password")})],newPassword:[u({name:"required",title:s("user.account.changePassword.New password")}),u({name:"password"})],confirmPassword:[u({name:"required",title:s("user.account.changePassword.Confirm new password")}),u({name:"password"}),{validator:(d,o,a)=>{(e.form.newPassword||e.form.confirmPassword)&&(e.form.newPassword==e.form.confirmPassword?a():a(new Error(s("user.account.changePassword.The duplicate password does not match the new password")))),a()},trigger:"blur"}]}}),c=()=>{var d;(d=w.value)==null||d.validate(o=>{o&&(e.formSubmitLoading=!0,x(e.form).then(a=>{e.formSubmitLoading=!1,a.code==1&&P.logout()}).catch(()=>{e.formSubmitLoading=!1}))})};return(d,o)=>{const a=m("el-button"),g=m("el-form-item"),h=m("el-form"),_=m("el-card");return y(),C("div",U,[n(_,{class:"user-views-card",shadow:"hover",header:r(s)("user.account.changePassword.Change Password")},{default:l(()=>[S("div",B,[n(h,{model:e.form,rules:e.rules,"label-position":"top",ref_key:"formRef",ref:w,onKeyup:o[5]||(o[5]=I(t=>c(),["enter"]))},{default:l(()=>[n(i,{label:r(s)("user.account.changePassword.Old password"),type:"password",modelValue:e.form.oldPassword,"onUpdate:modelValue":o[0]||(o[0]=t=>e.form.oldPassword=t),prop:"oldPassword","input-attr":{showPassword:!0},placeholder:r(s)("user.account.changePassword.Please enter your current password")},null,8,["label","modelValue","placeholder"]),n(i,{label:r(s)("user.account.changePassword.New password"),type:"password",modelValue:e.form.newPassword,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.newPassword=t),prop:"newPassword","input-attr":{showPassword:!0},placeholder:r(s)("Please input field",{field:r(s)("user.account.changePassword.New password")})},null,8,["label","modelValue","placeholder"]),n(i,{label:r(s)("user.account.changePassword.Confirm new password"),type:"password",modelValue:e.form.confirmPassword,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.confirmPassword=t),prop:"confirmPassword","input-attr":{showPassword:!0},placeholder:r(s)("Please input field",{field:r(s)("user.account.changePassword.Confirm new password")})},null,8,["label","modelValue","placeholder"]),n(g,{class:"submit-buttons"},{default:l(()=>[n(a,{onClick:o[3]||(o[3]=t=>r($)(r(w)))},{default:l(()=>[f(p(d.$t("Reset")),1)]),_:1}),n(a,{type:"primary",loading:e.formSubmitLoading,onClick:o[4]||(o[4]=t=>c())},{default:l(()=>[f(p(d.$t("Save")),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["header"])])}}}),O=L(k,[["__scopeId","data-v-9cc2dcfb"]]);export{O as default}; diff --git a/public/assets/changePassword-E1K_Kp15.js b/public/assets/changePassword-E1K_Kp15.js new file mode 100644 index 0000000..3057088 --- /dev/null +++ b/public/assets/changePassword-E1K_Kp15.js @@ -0,0 +1 @@ +const s={"Change Password":"修改密码","Old password":"旧密码","New password":"新密码","Confirm new password":"确认新密码","Please enter your current password":"请输入现在的密码","The duplicate password does not match the new password":"重复密码与新密码不相符"};export{s as default}; diff --git a/public/assets/changePassword-UlRVPHpK.js b/public/assets/changePassword-UlRVPHpK.js new file mode 100644 index 0000000..5efbaed --- /dev/null +++ b/public/assets/changePassword-UlRVPHpK.js @@ -0,0 +1 @@ +const s={"Change Password":"Change Password","Old password":"Old password","New password":"New password","Confirm new password":"Confirm new password","Please enter your current password":"Please enter your current password","The duplicate password does not match the new password":"The duplicate password does not match the new password"};export{s as default}; diff --git a/public/assets/commonDialog-yQQqMsw-.js b/public/assets/commonDialog-yQQqMsw-.js new file mode 100644 index 0000000..7247f04 --- /dev/null +++ b/public/assets/commonDialog-yQQqMsw-.js @@ -0,0 +1 @@ +import{s as o}from"./index-DtbFrpAe.js";import f from"./commonDone-0W7z_R0p.js";import g from"./commonSelectVersion-DHRUKayH.js";import C from"./confirmFileConflict-DmOTN7P8.js";import k from"./installConflict-_0dZR3AP.js";import y from"./uploadInstall-CdXuyfO9.js";import{B as v,I as i,X as V,C as t,D as a,H as c,u as e,P as s,_ as D,W as l,O as m}from"./vue-DweYBrEc.js";import{_ as x}from"./index-CLyTskad.js";import"./index-LESJQkWP.js";import"./terminal-CSXwygCi.js";import"./index-DQmocF1u.js";import"./index-Cca48yw_.js";import"./index-CcxeqWzf.js";const I=["element-loading-text"],b=v({__name:"commonDialog",setup(h){return(r,n)=>{const d=i("el-scrollbar"),p=i("el-dialog"),u=V("loading");return t(),a("div",null,[c(p,{"close-on-press-escape":e(o).common.quickClose,title:e(o).common.dialogTitle,"close-on-click-modal":e(o).common.quickClose,modelValue:e(o).dialog.common,"onUpdate:modelValue":n[0]||(n[0]=_=>e(o).dialog.common=_),class:"common-dialog"},{default:s(()=>[c(d,{height:500},{default:s(()=>[e(o).common.type=="loading"?D((t(),a("div",{"element-loading-text":e(o).common.loadingTitle?r.$t("module.stateTitle "+e(o).common.loadingTitle):"",key:e(o).common.loadingComponentKey,class:"common-loading"},null,8,I)),[[u,!0]]):l("",!0),e(o).common.type=="selectVersion"?(t(),m(g,{key:1})):l("",!0),e(o).common.type=="installConflict"?(t(),m(k,{key:2})):l("",!0),e(o).common.type=="disableConfirmConflict"?(t(),m(C,{key:3})):l("",!0),e(o).common.type=="done"?(t(),m(f,{key:4})):l("",!0),e(o).common.type=="uploadInstall"?(t(),m(y,{key:5})):l("",!0)]),_:1})]),_:1},8,["close-on-press-escape","title","close-on-click-modal","modelValue"])])}}}),W=x(b,[["__scopeId","data-v-deb1af09"]]);export{W as default}; diff --git a/public/assets/commonDone-0W7z_R0p.js b/public/assets/commonDone-0W7z_R0p.js new file mode 100644 index 0000000..7e5f3bd --- /dev/null +++ b/public/assets/commonDone-0W7z_R0p.js @@ -0,0 +1 @@ +import{x as L,R as S,_ as C}from"./index-CLyTskad.js";import{s,m as d,d as w,e as N}from"./index-DtbFrpAe.js";import{B as V}from"./index-DQmocF1u.js";import{F as R}from"./index-CcxeqWzf.js";import{u as H,t as M}from"./terminal-CSXwygCi.js";import{B as U,a as P,I as h,X as b,C as n,D as a,G as l,u as e,U as o,_ as D,W as m,V as r,H as u,P as p,O as W,ag as j}from"./vue-DweYBrEc.js";import"./index-LESJQkWP.js";import"./index-Cca48yw_.js";const F={class:"install-done"},O={class:"install-done-title"},z={key:0},G={key:1},X={key:2},$={key:3},q={class:"install-tis-box"},J={key:0,class:"depend-box"},K={key:0,class:"depend-loading"},Q={class:"depend-tis"},Y={key:0},Z={class:"color-red"},ee={key:0},te={key:1},oe={key:1,class:"color-green"},le={key:2,class:"exec-fail color-red"},se={key:1,class:"depend-tis"},ne={key:2},ae={key:0,class:"install-tis-box text-align-center"},de={class:"install-tis"},ie={class:"dependency-installation-fail-tips"},me={class:"install-tis-box"},ce={class:"install-tis"},re={class:"install-tis-box"},ue={class:"install-form"},pe={key:1,class:"install-tis-box"},_e={class:"install-form"},he={class:"el-popover__title"},fe={class:"reload-hot-server-content"},ve={class:"block-help hot-server-tips"},ye={class:"install-done-button-box"},Se=U({__name:"commonDone",setup(be){const{t}=L.useI18n(),_=H(),i=P({rebuild:0,reloadHotServer:0}),v=()=>{_.toggle(!0)},I=()=>{s.dialog.common=!1,i.rebuild==1?(_.toggle(!0),_.addTaskPM("web-build",!1,"",y=>{y==M.Success&&(_.toggle(!1),i.reloadHotServer==1&&s.common.moduleState!=d.DISABLE)})):i.reloadHotServer==1&&s.common.moduleState!=d.DISABLE},g=()=>{j.confirm(t("module.Is the command that failed on the WEB terminal executed manually or in other ways successfully?"),t("Reminder"),{confirmButtonText:t("module.yes"),cancelButtonText:t("Cancel"),type:"warning"}).then(()=>{s.loading.common=!0,w(s.common.uid).then(()=>{N(),s.loading.common=!1,s.common.dependInstallState="success"})})};return(y,c)=>{const k=h("el-link"),x=h("el-popover"),E=h("el-form-item"),T=h("el-button"),A=b("loading"),B=b("blur");return n(),a("div",F,[l("div",O,[e(s).common.moduleState==e(d).INSTALLED?(n(),a("span",z,o(e(t)("module.Congratulations, module installation is complete")),1)):e(s).common.moduleState==e(d).DISABLE?(n(),a("span",G,o(e(t)("module.Module is disabled")),1)):e(s).common.moduleState==e(d).DEPENDENT_WAIT_INSTALL?(n(),a("span",X,o(e(t)("module.Congratulations, the code of the module is ready")),1)):(n(),a("span",$,o(e(t)("module.Unknown state")),1))]),l("div",q,[e(s).common.dependInstallState!="none"?(n(),a("div",J,[e(s).common.dependInstallState=="executing"?D((n(),a("div",K,null,512)),[[A,!0]]):m("",!0),l("div",Q,[e(s).common.dependInstallState=="executing"?(n(),a("div",Y,[l("span",Z,o(e(t)("module.Do not refresh the page!")),1),e(s).common.moduleState==e(d).DISABLE?(n(),a("span",ee,o(e(t)("module.New adjustment of dependency detected")),1)):e(s).common.moduleState==e(d).DEPENDENT_WAIT_INSTALL?(n(),a("span",te,o(e(t)("module.This module adds new dependencies")),1)):m("",!0),c[2]||(c[2]=l("span",null,",",-1)),l("span",null,o(e(t)("module.The built-in terminal of the system is automatically installing these dependencies, please wait~")),1),l("span",{class:"span-a",onClick:v},o(e(t)("module.View progress")),1)])):m("",!0),e(s).common.dependInstallState=="success"?(n(),a("div",oe,o(e(t)("module.Dependency installation completed~")),1)):m("",!0),e(s).common.dependInstallState=="fail"?(n(),a("div",le,[r(o(e(t)("module.Dependency installation fail 1"))+" ",1),l("span",{class:"span-a",onClick:v},o(e(t)("module.Dependency installation fail 2")),1),r(" "+o(e(t)("module.Dependency installation fail 3"))+" ",1),u(k,{target:"_blank",type:"primary",href:"https://doc.buildadmin.com/guide/install/manualOperation.html"},{default:p(()=>[r(o(e(t)("module.Dependency installation fail 4")),1)]),_:1})])):m("",!0)])])):e(s).common.moduleState==e(d).INSTALLED?(n(),a("div",se,o(e(t)("module.This module does not add new dependencies")),1)):(n(),a("div",ne,o(e(t)("module.There is no adjustment for system dependency")),1))]),e(s).common.dependInstallState=="fail"?(n(),a("div",ae,[l("div",de,[r(o(e(t)("module.Dependency installation fail 5"))+" ",1),l("span",{class:"span-a",onClick:g},o(e(t)("module.Dependency installation fail 6")),1),r(" "+o(e(t)("module.Dependency installation fail 7"))+" ",1),l("span",ie,o(e(t)("module.dependency-installation-fail-tips")),1)])])):m("",!0),l("div",me,[l("div",ce,o(e(t)("module.please"))+" "+o(e(s).common.moduleState==e(d).DISABLE?"":e(t)("module.After installation 1"))+" "+o(e(t)("module.Manually clean up the system and browser cache")),1)]),l("div",re,[l("div",ue,[u(R,{label:(e(s).common.moduleState==e(d).DISABLE?"":e(t)("module.After installation 2"))+e(t)("module.Automatically execute reissue command?"),modelValue:i.rebuild,"onUpdate:modelValue":c[0]||(c[0]=f=>i.rebuild=f),type:"radio","input-attr":{border:!0,content:{0:e(t)("module.no"),1:e(t)("module.yes")}}},null,8,["label","modelValue","input-attr"])])]),e(S).dirtyFile&&e(s).common.moduleState!=e(d).DISABLE?(n(),a("div",pe,[l("div",_e,[u(E,{label:e(t)("module.After installation 2")+e(t)("module.Restart Vite hot server")},{default:p(()=>[u(V,{modelValue:i.reloadHotServer,"onUpdate:modelValue":c[1]||(c[1]=f=>i.reloadHotServer=f),type:"radio",attr:{class:"hot-server-input",border:!0,content:{0:e(t)("vite.Later")+e(t)("module.Manual restart"),1:e(t)("module.Restart Now")}}},null,8,["modelValue","attr"]),u(x,{width:360,placement:"top"},{reference:p(()=>[l("div",ve,o(e(t)("module.detailed information"))+"?",1)]),default:p(()=>[l("div",null,[l("div",he,o(e(t)("vite.Reload hot server title")),1),l("div",fe,[l("p",null,[l("span",null,o(e(t)("vite.Reload hot server tips 1")),1),l("span",null,"【"+o(e(t)(`vite.Close type ${e(S).closeType}`))+"】",1),l("span",null,o(e(t)("vite.Reload hot server tips 2")),1)]),l("p",null,o(e(t)("vite.Reload hot server tips 3")),1),l("p",null,o(e(t)("module.Restart Vite hot server tips")),1)])])]),_:1})]),_:1},8,["label"])])])):m("",!0),l("div",ye,[D((n(),W(T,{disabled:!(e(s).common.dependInstallState!="executing"||e(s).common.moduleState==e(d).INSTALLED),size:"large",class:"install-done-button",type:"primary",loading:e(s).loading.common,onClick:I},{default:p(()=>[r(o(e(s).common.moduleState==e(d).DISABLE?e(t)("Complete"):e(t)("module.End of installation")),1)]),_:1},8,["disabled","loading"])),[[B]])])])}}}),Be=C(Se,[["__scopeId","data-v-fabd7ed2"]]);export{Be as default}; diff --git a/public/assets/commonSelectVersion-DHRUKayH.js b/public/assets/commonSelectVersion-DHRUKayH.js new file mode 100644 index 0000000..fa0d812 --- /dev/null +++ b/public/assets/commonSelectVersion-DHRUKayH.js @@ -0,0 +1 @@ +import{x as B,T as b,_ as S}from"./index-CLyTskad.js";import{s as a,f as z,g as D,h as F}from"./index-DtbFrpAe.js";import{B as M,aH as w,I as _,C as s,D as c,H as i,u as e,P as d,G as u,O as p,U as m,V as h}from"./vue-DweYBrEc.js";import"./index-LESJQkWP.js";import"./terminal-CSXwygCi.js";const N={key:0},T={class:"available-system-version"},j={class:"available-system-version-text"},A={key:1},E={key:0},H={key:0,class:"renewal-text"},L={key:1},O={key:2},$={class:"renewal"},G={class:"renewal-text"},P=M({__name:"commonSelectVersion",setup(R){const{t}=B.useI18n(),k=w(o=>(o=o.replace(/^v/,""),o=o.split(".").map(l=>l.padStart(2,"0")).join(""),parseInt(o))),x=o=>{const l=a.installedModule.find(r=>r.uid==a.common.uid);return!!(l&&(o=o.replace(/^v/,""),l.version=l.version.replace(/^v/,""),o==l.version))},v=w(o=>k(a.sysVersion)>parseInt(o)),g=(o,l,r)=>{a.dialog.common=!0,a.common.dialogTitle=t("module.Install"),D("download"),a.dialog.baAccount=!1,a.dialog.buy=!1,a.dialog.goodsInfo=!1,F(o,l,r,a.common.update)};return(o,l)=>{const r=_("el-table-column"),f=_("Icon"),y=_("el-button"),C=_("el-tooltip"),I=_("el-table");return s(),c("div",null,[i(I,{data:e(a).common.versions,class:"w100",stripe:""},{default:d(()=>[i(r,{property:"version",align:"center",label:e(t)("module.Version")},null,8,["label"]),i(r,{property:"short_describe","show-overflow-tooltip":!0,align:"center",label:e(t)("module.Description")},null,8,["label"]),i(r,{property:"available_system_version_text",align:"center",label:e(t)("module.Available system version")},{default:d(n=>[n.row.available_system_version&&e(a).sysVersion?(s(),c("div",N,[u("div",T,[e(v)(n.row.available_system_version)?(s(),p(f,{key:0,name:"el-icon-CircleCheckFilled",color:"var(--el-color-success)",size:"14"})):(s(),p(f,{key:1,name:"el-icon-CircleCloseFilled",size:"14",color:"var(--el-color-danger)"})),u("div",j,m(n.row.available_system_version_text),1)])])):(s(),c("div",A,"-"))]),_:1},8,["label"]),i(r,{property:"createtime_text",align:"center",label:e(t)("Create time")},null,8,["label"]),i(r,{label:e(t)("module.Install"),align:"center","min-width":140},{default:d(n=>[n.row.downloadable?(s(),c("div",E,[x(n.row.version)?(s(),c("div",H,m(e(t)("module.Current installed version")),1)):e(v)(n.row.available_system_version)?(s(),c("div",O,[i(y,{type:"primary",onClick:V=>g(n.row.uid,n.row.order_id,n.row.version)},{default:d(()=>[h(m(e(t)("module.Click to install")),1)]),_:2},1032,["onClick"])])):(s(),c("div",L,m(e(t)("module.Insufficient system version")),1))])):(s(),p(C,{key:1,effect:"dark",content:e(t)("module.Order expiration time",{expiration_time:e(b)(n.row.order_expiration_time),create_time:e(b)(n.row.createtime)}),placement:"top"},{default:d(()=>[u("div",$,[u("div",G,m(e(t)("module.Versions released beyond the authorization period")),1),i(y,{onClick:l[0]||(l[0]=V=>e(z)(!0)),type:"danger"},{default:d(()=>[h(m(e(t)("module.Renewal")),1)]),_:1})])]),_:2},1032,["content"]))]),_:1},8,["label"])]),_:1},8,["data"])])}}}),W=S(P,[["__scopeId","data-v-5678fe15"]]);export{W as default}; diff --git a/public/assets/config-CL1AJtKy.js b/public/assets/config-CL1AJtKy.js new file mode 100644 index 0000000..f959d9f --- /dev/null +++ b/public/assets/config-CL1AJtKy.js @@ -0,0 +1 @@ +const e={"Are you sure to delete the configuration item?":"确定删除配置项吗?","Add configuration item":"添加配置项","Quick configuration entry":"快捷配置入口","Variable name":"变量名","Variable group":"变量分组","Variable title":"变量标题","Variable type":"变量类型",number:"数字","Please enter the recipient email address":"请输入接收者邮箱地址","Test mail sending":"测试邮件发送","send out":"发送","Please enter the correct email address":"请输入正确的电子邮箱地址",Sending:"发送中...","Please enter the correct mail configuration":"请输入正确的邮件配置"};export{e as default}; diff --git a/public/assets/config-gD5afaNN.js b/public/assets/config-gD5afaNN.js new file mode 100644 index 0000000..2dbcff7 --- /dev/null +++ b/public/assets/config-gD5afaNN.js @@ -0,0 +1 @@ +const e={"Are you sure to delete the configuration item?":"Are you sure to delete the configuration item?","Add configuration item":"Add configuration item","Quick configuration entry":"Quick configuration entry","Variable name":"Variable name","Variable group":"Variable group","Variable title":"Variable title","Variable type":"Variable type",number:"Number","Please enter the recipient email address":"Please enter the recipient email address","Test mail sending":"Test mail sending","send out":"send","Please enter the correct email address":"Please enter the correct email address",Sending:"Sending","Please enter the correct mail configuration":"Please enter the correct mail configuration"};export{e as default}; diff --git a/public/assets/confirmFileConflict-DmOTN7P8.js b/public/assets/confirmFileConflict-DmOTN7P8.js new file mode 100644 index 0000000..1bda67d --- /dev/null +++ b/public/assets/confirmFileConflict-DmOTN7P8.js @@ -0,0 +1 @@ +import{s as t,i as k}from"./index-DtbFrpAe.js";import{B,I as i,X as F,C as s,D as m,G as u,u as n,Z as g,U as d,H as l,P as a,W as p,_ as C,O as $,V as h}from"./vue-DweYBrEc.js";import{_ as N}from"./index-CLyTskad.js";import"./index-LESJQkWP.js";import"./terminal-CSXwygCi.js";const T={class:"confirm-file-conflict"},U={class:"conflict-title"},I={class:"conflict-title"},z={key:0},E={class:"center-buttons"},G=B({__name:"confirmFileConflict",setup(H){const w=()=>{t.dialog.common=!1,t.goodsInfo.enable=!0};return(e,r)=>{const D=i("el-alert"),c=i("el-table-column"),b=i("el-table"),f=i("el-option"),y=i("el-select"),_=i("el-button"),v=F("blur");return s(),m("div",null,[u("div",T,[n(t).common.disableConflictFile.length?(s(),m(g,{key:0},[u("div",U,d(e.$t("module.File conflict")),1),l(D,{closable:!1,center:!0,title:e.$t("module.Update warning"),class:"alert-warning",type:"warning"},null,8,["title"]),l(b,{data:n(t).common.disableConflictFile,stripe:"",border:"",style:{width:"100%",marginBottom:"20px"}},{default:a(()=>[l(c,{prop:"file",label:e.$t("module.Conflict file")},null,8,["label"])]),_:1},8,["data"])],64)):p("",!0),n(t).common.disableDependConflict.length>0?(s(),m(g,{key:1},[u("div",I,d(e.$t("module.The module declares the added dependencies")),1),l(b,{data:n(t).common.disableDependConflict,stripe:"",border:"",style:{width:"100%"}},{default:a(()=>[l(c,{prop:"env",label:e.$t("module.environment")},{default:a(o=>[o.row.env?(s(),m("span",z,d(e.$t("module.env "+o.row.env)),1)):p("",!0)]),_:1},8,["label"]),l(c,{prop:"dependTitle",label:e.$t("module.Dependencies")},null,8,["label"]),l(c,{prop:"solution",width:"200",label:e.$t("module.Treatment scheme"),align:"center"},{default:a(o=>[l(y,{modelValue:o.row.solution,"onUpdate:modelValue":V=>o.row.solution=V},{default:a(()=>[l(f,{label:e.$t("Delete"),value:"delete"},null,8,["label"]),l(f,{label:e.$t("module.retain"),value:"retain"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"])]),_:1},8,["data"])],64)):p("",!0)]),u("div",E,[C((s(),$(_,{class:"center-button",loading:n(t).loading.common,disabled:n(t).loading.common,size:"large",type:"primary",onClick:r[0]||(r[0]=o=>n(k)(!0))},{default:a(()=>[h(d(e.$t("module.Confirm to disable the module")),1)]),_:1},8,["loading","disabled"])),[[v]]),C((s(),$(_,{class:"center-button",size:"large",onClick:r[1]||(r[1]=o=>w())},{default:a(()=>[h(d(e.$t("Cancel")),1)]),_:1})),[[v]])])])}}}),Z=N(G,[["__scopeId","data-v-c638e996"]]);export{Z as default}; diff --git a/public/assets/crud-DXxZfGlJ.js b/public/assets/crud-DXxZfGlJ.js new file mode 100644 index 0000000..4ae3862 --- /dev/null +++ b/public/assets/crud-DXxZfGlJ.js @@ -0,0 +1 @@ +const e={show:"在表格列中显示",width:"表格列宽度",sortable:"字段排序",operator:"公共搜索操作符",comSearchRender:"公共搜索输入框渲染方案",comSearchInputAttr:"公共搜索输入框扩展属性",comSearchInputAttrTip:"格式如:size=large,一行一个属性,远程下拉的公共搜索也渲染为远程下拉时,此处免填远程下拉组件的必填属性",render:"渲染方案",timeFormat:"格式化方式",step:"步进值",rows:"行数","api url":"数据接口URL","api url example":"比如: /admin/user.User/index","remote-pk":"远程下拉 value 字段","remote-field":"远程下拉 label 字段","remote-url":"远程下拉数据接口 URL","remote-controller":"关联表的控制器","remote-table":"关联数据表","remote-model":"关联表的模型","remote-primary-table-alias":"主表别名","relation-fields":"关联表显示字段","image-multi":"图片多选上传","file-multi":"文件多选上传","select-multi":"下拉框多选",validator:"验证规则",validatorMsg:"验证错误提示",copy:"复制设计","CRUD record":"CRUD 记录","Delete Code":"删除代码","Start CRUD design with this record?":"以此记录开始 CRUD 设计?","Are you sure to delete the generated CRUD code?":"确认删除生成的 CRUD 代码?",start:"开始",create:"新建",or:"或","New background CRUD from zero":"从零新建后台 CRUD","Select Data Table":"选择数据表","Select a designed data table from the database":"从数据库中选择一个设计好的数据表","Start with previously generated CRUD code":"从以往生成的 CRUD 代码开始","Fast experience":"快速体验","Please enter SQL":"请输入 SQL","Please select a data table":"请选择数据表","data sheet help":"数据表前缀需要同项目配置的数据表前缀一致","data sheet":"数据表","table create SQL":"建表 SQL","Please enter the table creation SQL":"请输入建表 SQL","experience 1 1":"准备好","experience 1 2":"开发环境","experience 1 3":"(站点端口为:1818)","experience 2 1":"在本页点击","experience 2 2":"选择数据表","experience 2 3":"(可选择 test_build 数据表)","experience 3 1":"点击","experience 3 2":"生成 CRUD 代码","experience 3 3":",点击","experience 3 4":"继续生成","experience 4 1":"您当前未在开发环境,请 ","experience 4 2":"搭建开发环境","experience 4 3":",或生成好代码之后点击右上角终端内的","experience 4 4":"重新发布","Name of the data table":"数据表的名称","Data Table Notes":"数据表注释","Generate CRUD code":"生成 CRUD 代码","give up":"放弃","Table Quick Search Fields":"表格快速搜索字段","Table Default Sort Fields":"表格默认排序字段","sort order":"排序方式","sort order asc":"asc-顺序","sort order desc":"desc-倒序","Fields as Table Columns":"作为表格列的字段","Fields as form items":"作为表单项的字段","The relative path to the generated code":"生成代码的相对位置","For quick combination code generation location, please fill in the relative path":"快速的组合代码生成位置,请填写相对路径","Generated Controller Location":"生成的控制器位置","Generated Data Model Location":"生成的数据模型位置","Generated Validator Location":"生成的验证器位置","WEB end view directory":"WEB端视图目录","Check model class":"请检查以上数据模型类中是否已经配置 protected $connection = '{connection}';","There is no connection attribute in model class":"未配置请手动配置。","Common model":"公共模型","Advanced Configuration":"高级配置","Common Fields":"常用字段","Base Fields":"基础字段","Advanced Fields":"高级字段","Field Name":"字段名","field comment":"字段注释","Please select a field from the left first":"请先从左侧选择一个字段",Common:"常用","Generate type":"生成类型","Field comments (CRUD dictionary)":"字段注释(CRUD 字典)","Field Properties":"字段属性","Field Type":"字段类型",length:"长度","decimal point":"小数点","Field Defaults":"字段默认值","Please input the default value":"请输入默认值","Auto increment":"自动递增",Unsigned:"无符号","Allow NULL":"允许 NULL","Field Form Properties":"字段表单属性","Field Table Properties":"字段表格属性","Remote drop-down association information":"远程下拉关联信息","Associated Data Table":"关联数据表","Drop down value field":"下拉 value 字段","Drop down label field":"下拉 label 字段","Please select the value field of the select component":"请选择 select 组件的 value 字段","Please select the label field of the select component":"请选择 select 组件的 label 字段","Fields displayed in the table":"在表格中显示的字段","Please select the fields displayed in the table":"请选择在表格中显示的字段","Controller position":"控制器位置","Please select the controller of the data table":"请选择数据表的控制器","Data Model Location":"数据模型位置","Please select the data model location of the data table":"请选择数据表的数据模型位置","Data source configuration type":"数据源配置类型","Fast configuration with generated controllers and models":"通过已生成好的控制器和模型快速配置","Custom configuration":"自定义配置","If the remote interface query involves associated query of multiple tables, enter the alias of the primary data table here":"如果远程接口查询数据时涉及多表关联查询,请在此填写主数据表的别名","Confirm CRUD code generation":"确认生成 CRUD 代码","Continue building":"继续生成","Please enter the data table name!":"请输入数据表名!","Please enter the correct table name!":"请输入正确的数据表名!","Use lower case underlined for table names":"请使用小写加下划线作为表名,小写字母开头,可以带有数字","Please design the primary key field!":"请设计主键字段!","It is irreversible to give up the design Are you sure you want to give up?":"放弃设计不可逆,确定要放弃吗?","There can only be one primary key field":"只可以有一个主键字段。","Drag the left element here to start designing CRUD":"拖动左侧元素至此处以开始设计CRUD","The data table already exists Continuing to generate will automatically delete the original table and create a new one!":"数据表已经存在,继续生成将自动删除原表并建立新的数据表(数据表是空的或您已勾选删表重建)!","The controller already exists Continuing to generate will automatically overwrite the existing code!":"控制器已经存在,继续生成将自动覆盖已有代码!","The menu rule with the same name already exists The menu and permission node will not be created in this generation":"同名菜单规则已经存在,本次生成将不会创建菜单和权限节点!","For example: `user table` will be generated into `user management`":"如:会员表(将生成为会员管理)","The remote pull-down will request the corresponding controller to obtain data, so it is recommended that you create the CRUD of the associated table":"远程下拉将请求该控制器的 index 方法来获取 value 和 label 字段数据,所以请先生成好被关联表的CRUD","If it is left blank, the model of the associated table will be generated automatically If the table already has a model, it is recommended to select it to avoid repeated generation":"留空则自动生成关联表的模型,若该表已有模型,请选择好以免重复生成","The field comment will be used as the CRUD dictionary, and will be identified as the field title before the colon, and as the data dictionary after the colon":"字段注释将作为 CRUD 字典,冒号前将识别为字段标题,冒号后识别为数据字典","Field name is invalid It starts with a letter or underscore and cannot contain any character other than letters, digits, or underscores":"字段名 {field} 不符合规范,请以 字母、_ 开头,不能出现 字母、数字、下划线 以外的字符","The selected table has already generated records You are advised to start with historical records":"选择的表已有成功生成的记录,建议从历史记录开始~","Start with the historical record":"从历史记录开始","Add field":"添加字段","Modify field properties":"修改字段属性","Modify field name":"修改字段名称","Delete field":"删除字段","Modify field order":"修改字段顺序","First field":"第一个字段",After:"之后","Table design change":"表设计变更","Data table design changes preview":"数据表设计变更预览",designChangeTips:"取消勾选后,则该项变动不会尝试同步至数据表(通常用于已经手动修改过表结构等情况)",tableReBuild:"删表重建",tableReBuildBlockHelp:"不调整表结构,直接删除已有数据表并重建,此举可以确保CRUD代码/记录与数据表结构一致",Yes:"是",No:"否","If the data is abnormal, repeat the previous step":"数据异常,请重做上步操作","Field name duplication":"字段名称 {field} 重复!","Design remote select tips":"将自动根据表名生成本字段的名称;确认生成时,字段名 user_id 生成的关联方法名为 user,字段名 developer_done_id 生成的关联方法名为 developerDone,请注意远程下拉字段的名称前缀不要重复","Vite hot warning":"未找到 Vite 热更新服务,请在开发环境生成代码,或点击右上角的WEB终端重新发布","Reset generate type attr":"字段生成类型已修改,是否将字段设计重置为新类型预设的方案?","Design efficiency":"自行确定设计有效性"};export{e as default}; diff --git a/public/assets/crud-DruxP4Rp.js b/public/assets/crud-DruxP4Rp.js new file mode 100644 index 0000000..d98c072 --- /dev/null +++ b/public/assets/crud-DruxP4Rp.js @@ -0,0 +1 @@ +const e={show:"Show in Table Columns",width:"Width",sortable:"sortable",operator:"Search operator",comSearchRender:"Common search render",comSearchInputAttr:"Common search render input extend properties",comSearchInputAttrTip:"Remote pull-down field, no need to fill in the mandatory attributes of the component.",render:"table column render",timeFormat:"Format",step:"Step",rows:"Rows","api url":"api url","api url example":"For example: /admin/user.User/index","remote-pk":"value field","remote-field":"label field","remote-url":"remote URL","remote-table":"remote table","remote-controller":"remote controller","remote-model":"remote model","remote-primary-table-alias":"primary table alias","relation-fields":"relation fields","image-multi":"Multiple upload","file-multi":"Multiple upload","select-multi":"Multiple",validator:"validator",validatorMsg:"validator error message",copy:"Copy","CRUD record":"CRUD record","Delete Code":"Delete Code","Start CRUD design with this record?":"Start CRUD design with this record?","Are you sure to delete the generated CRUD code?":"Are you sure to delete the generated CRUD code?",start:"Start",create:"Create",or:" or ","New background CRUD from zero":"New background CRUD from zero","Select Data Table":"Select data table","Select a designed data table from the database":"Select a designed data table from the database","Start with previously generated CRUD code":"Start with previously generated CRUD code","Fast experience":"Fast experience","Please enter SQL":"Please enter SQL","Please select a data table":"Please select a data table","data sheet help":"The table prefix must be the same as the table prefix configured for the project","data sheet":"data sheet","table create SQL":"table creation SQL","Please enter the table creation SQL":"Please enter the table creation SQL","experience 1 1":"Prepare the ","experience 1 2":"development environment","experience 1 3":"(The site port is 1818)","experience 2 1":"On this page, click to","experience 2 2":"Select data table","experience 2 3":"(You can select the test_build data table)","experience 3 1":"Click","experience 3 2":"Generate CRUD Code","experience 3 3":", and click ","experience 3 4":"Continue to Generate","experience 4 1":"You are not currently in the development environment, ","experience 4 2":"please set up the development environment","experience 4 3":", or after generating the code, click on the upper right corner of the terminal to","experience 4 4":"Republish","Name of the data table":"Name of the data table","Data Table Notes":"Data Table Notes","Generate CRUD code":"Generate CRUD code","give up":"give up","Table Quick Search Fields":"Table Quick Search Fields","Table Default Sort Fields":"Table Default Sort Fields","sort order":"sort order","sort order asc":"asc","sort order desc":"desc","Fields as Table Columns":"Fields as Table Columns","Fields as form items":"Fields as form items","The relative path to the generated code":"The relative path to the generated code","For quick combination code generation location, please fill in the relative path":"For quick combination code generation location, please fill in the relative path","Generated Controller Location":"Generated Controller Location","Generated Data Model Location":"Generated Data Model Location","Generated Validator Location":"Generated Validator Location","Common model":"Common model","WEB end view directory":"WEB end view directory","Check model class":"Check whether protected $connection = '{connection}'; is configured in the above data model class","There is no connection attribute in model class":"If no configuration is available, you can configure it manually","Advanced Configuration":"Advanced Configuration","Common Fields":"Common Fields","Base Fields":"Base Fields","Advanced Fields":"Advanced Fields","Field Name":"Field Name","field comment":"field comment","Please select a field from the left first":"Please select a field from the left first",Common:"Common","Generate type":"generate type","Field comments (CRUD dictionary)":"Field comments (CRUD dictionary)","Field Properties":"Field Properties","Field Type":"Field Type",length:"length","decimal point":"decimal point","Field Defaults":"Field Defaults","Please input the default value":"Please input the default value","Auto increment":"Auto increment",Unsigned:"Unsigned","Allow NULL":"Allow NULL","Field Form Properties":"Field Form Properties","Field Table Properties":"Field Table Properties","Remote drop-down association information":"Remote drop-down association information","Associated Data Table":"Associated Data Table","Drop down value field":"Drop down value field","Drop down label field":"Drop down label field","Please select the value field of the select component":"Please select the value field of the select component","Please select the label field of the select component":"Please select the label field of the select component","Fields displayed in the table":"Fields displayed in the table","Please select the fields displayed in the table":"Please select the fields displayed in the table","Controller position":"Controller position","Please select the controller of the data table":"Please select the controller of the data table","Data Model Location":"Data Model Location","Data source configuration type":"Data source configuration type","Fast configuration with generated controllers and models":"Fast configuration with generated controllers and models","Custom configuration":"Custom configuration","If the remote interface query involves associated query of multiple tables, enter the alias of the primary data table here":"If the remote interface query involves associated query of multiple tables, enter the alias of the primary data table here","Please select the data model location of the data table":"Please select the data model location of the data table","Confirm CRUD code generation":"Confirm CRUD code generation","Continue building":"Continue building","Please enter the data table name!":"Please enter the data table name!","Please enter the correct table name!":"Please enter the correct table name!","Use lower case underlined for table names":"Use lower case underlined for table names","Please design the primary key field!":"Please design the primary key field!","It is irreversible to give up the design Are you sure you want to give up?":"It is irreversible to give up the design. Are you sure you want to give up?","There can only be one primary key field":"There can only be one primary key field.","Drag the left element here to start designing CRUD":"Drag the left element here to start designing CRUD","The data table already exists Continuing to generate will automatically delete the original table and create a new one!":"The data table already exists Continuing to generate will automatically delete the original table and create a new one!","The controller already exists Continuing to generate will automatically overwrite the existing code!":"The controller already exists Continuing to generate will automatically overwrite the existing code!","The menu rule with the same name already exists The menu and permission node will not be created in this generation":"The menu rule with the same name already exists The menu and permission node will not be created in this generation","For example: `user table` will be generated into `user management`":"For example: `user table` will be generated into `user management`","The remote pull-down will request the corresponding controller to obtain data, so it is recommended that you create the CRUD of the associated table":"The remote pull-down will request the corresponding controller to obtain data, so it is recommended that you create the CRUD of the associated table","If it is left blank, the model of the associated table will be generated automatically If the table already has a model, it is recommended to select it to avoid repeated generation":"If it is left blank, the model of the associated table will be generated automatically If the table already has a model, it is recommended to select it to avoid repeated generation","The field comment will be used as the CRUD dictionary, and will be identified as the field title before the colon, and as the data dictionary after the colon":"The field comment will be used as the CRUD dictionary, and will be identified as the field title before the colon, and as the data dictionary after the colon","Field name is invalid It starts with a letter or underscore and cannot contain any character other than letters, digits, or underscores":"Field name {field} is invalid. It starts with a letter or underscore and cannot contain any character other than letters, digits, or underscores","The selected table has already generated records You are advised to start with historical records":"The selected table has already generated records. You are advised to start with historical records","Start with the historical record":"Start with the historical record","Add field":"Add field","Modify field properties":"Modify field properties","Modify field name":"Modify field name","Delete field":"Delete field","Modify field order":"Modify field order","First field":"First field",After:"after","Table design change":"Table design change","Data table design changes preview":"Data table design changes preview",designChangeTips:"When unchecked, the change will not be synchronized to the data table (the table structure has been manually modified, etc)",tableReBuild:"Delete and rebuild",tableReBuildBlockHelp:"Deleting existing data tables and rebuilding them without adjusting the table structure ensures that CRUD code/records are consistent with the table structure",Yes:"Yes",No:"No","If the data is abnormal, repeat the previous step":"If the data is abnormal, repeat the previous step","Field name duplication":"field name {field} is duplicate","Design remote select tips":"The name of the cost field is automatically generated from the table name; Confirm that when the field name user_id is generated, the association method generated by the field name user_id is named user, and the association method generated by the field name developer_done_id is named developerDone. Note that the name prefix of the remote drop-down field is not the same","Vite hot warning":"Vite Hot Update service not found, please generate code in the development environment, or click the WEB terminal in the upper right corner to republish","Reset generate type attr":"The field generation type has been changed. Do you want to reset the field design to the preset scheme for the new type?","Design efficiency":"Determine design validity by yourself"};export{e as default}; diff --git a/public/assets/customerReport-DYQ7L5yy.js b/public/assets/customerReport-DYQ7L5yy.js new file mode 100644 index 0000000..5c1fb3e --- /dev/null +++ b/public/assets/customerReport-DYQ7L5yy.js @@ -0,0 +1 @@ +import{x as X,_ as Z}from"./index-CLyTskad.js";import{c as q}from"./moneyLog-DXD0yS7z.js";import{B as J,b as h,l as k,a as Y,o as K,I as f,X as Q,C as c,D as m,G as e,U as o,u as n,H as p,P,V,_ as ee,Z as y,Y as C,$ as te,W as oe,F as se}from"./vue-DweYBrEc.js";const ae={class:"default-main admin-report-page customer-report"},ne={class:"admin-report-filter report-filter"},re={class:"admin-report-heading"},le={class:"admin-report-filter-content filter-content"},ue={class:"filter-item"},ie={class:"filter-item"},ce={class:"filter-item"},me={class:"filter-item"},de={class:"admin-report-actions filter-actions"},pe={class:"admin-report-summary date-summary"},_e={class:"admin-report-table-wrap report-table-wrap"},ge={rowspan:"2",class:"date-column"},ve={rowspan:"2",class:"username-column"},he={colspan:"2"},ye={colspan:"2"},be={rowspan:"2"},fe={rowspan:"2"},Re={rowspan:"2"},Le={class:"username-cell"},we={class:"deposit-value"},Ve={class:"deposit-value"},Ce={class:"withdraw-value"},De={class:"withdraw-value"},$e={class:"reward-cell"},ke={class:"reward-cell"},xe={key:0},ze=["colspan"],Ne={class:"admin-report-footer table-footer"},Pe={class:"admin-report-page-size page-size"},Me=J({name:"user/moneyLog/customerReport",__name:"customerReport",setup(Se){const{t:a}=X.useI18n(),R=h([]),A=k(()=>["deposit","withdraw",...R.value.map(r=>r.id)]),F=k(()=>9+R.value.length*2),I=k(()=>1580+R.value.length*250),j=[100,500,1e3,5e3],x=h([]),M=h(0),_=h(1),S=h(1),D=h(100),z=h(!1),d=Y({start:"",end:"",username:"",loseRebate:""}),u=Y({...d}),B=k(()=>u.start&&u.end?`${u.start} to ${u.end}`:u.start?`${u.start} -`:u.end?`- ${u.end}`:a("user.moneyLog.customerReport.allTime")),i=r=>{const t=Number(r);return Number.isFinite(t)?t:0},O=r=>{const t=(r==null?void 0:r.data)??r??{},g=t.games&&typeof t.games=="object"?t.games:{},L=Object.entries(g).map(([l,v])=>({id:l,name:String(v)})),w=Array.isArray(t.list)?t.list:[];return{games:L,rows:w.map(l=>({registerDate:String(l.register_date??""),username:String(l.username??""),depositCount:i(l.deposit_count),depositAmount:i(l.deposit_total),withdrawCount:i(l.withdraw_count),withdrawAmount:i(l.withdraw_total),winLose:i(l.win_lose),loseRebate:i(l.lose_rebate),referral:i(l.referral_count),rewards:L.map(v=>({gameId:v.id,count:i(l[`game_${v.id}_count`]),amount:i(l[`game_${v.id}_total`])}))})),total:i(t.count??t.total??w.length),currentPage:i(t.current_page)||_.value,lastPage:i(t.last_page)||1}},$=async()=>{z.value=!0;try{const r=await q({start:u.start,end:u.end,username:u.username,lose_rebate:u.loseRebate,page:_.value,limit:D.value}),t=O(r.data);R.value=t.games,x.value=t.rows,M.value=t.total,_.value=t.currentPage,S.value=t.lastPage}finally{z.value=!1}},U=async()=>{Object.assign(u,d),_.value=1,await $()},G=async()=>{Object.assign(d,{start:"",end:"",username:"",loseRebate:""}),await U()},W=async()=>{_.value=1,await $()},b=(r,t=!1)=>{const g=new Intl.NumberFormat(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}).format(Number(r)||0);return t?`AUD${g}`:g},E=r=>{const t=Number(r)||0;return t===0?b(0):`${t>0?"+":"-"}${b(Math.abs(t))}`};return K($),(r,t)=>{const g=f("el-date-picker"),L=f("el-input"),w=f("el-button"),l=f("el-pagination"),v=f("el-option"),H=f("el-select"),T=Q("loading");return c(),m("div",ae,[e("section",ne,[e("header",re,o(n(a)("user.moneyLog.customerReport.title")),1),e("div",le,[e("div",ue,[e("label",null,o(n(a)("user.moneyLog.customerReport.startDate"))+":",1),p(g,{modelValue:d.start,"onUpdate:modelValue":t[0]||(t[0]=s=>d.start=s),type:"date","value-format":"YYYY-MM-DD",clearable:""},null,8,["modelValue"])]),e("div",ie,[e("label",null,o(n(a)("user.moneyLog.customerReport.endDate"))+":",1),p(g,{modelValue:d.end,"onUpdate:modelValue":t[1]||(t[1]=s=>d.end=s),type:"date","value-format":"YYYY-MM-DD",clearable:""},null,8,["modelValue"])]),e("div",ce,[e("label",null,o(n(a)("user.moneyLog.customerReport.fullUsername"))+":",1),p(L,{modelValue:d.username,"onUpdate:modelValue":t[2]||(t[2]=s=>d.username=s),placeholder:n(a)("user.moneyLog.customerReport.options"),clearable:""},null,8,["modelValue","placeholder"])]),e("div",me,[e("label",null,o(n(a)("user.moneyLog.customerReport.loseRebate"))+":",1),p(L,{modelValue:d.loseRebate,"onUpdate:modelValue":t[3]||(t[3]=s=>d.loseRebate=s),placeholder:n(a)("user.moneyLog.customerReport.rebatePlaceholder"),clearable:""},null,8,["modelValue","placeholder"])]),e("div",de,[p(w,{type:"primary",onClick:U},{default:P(()=>[V(o(n(a)("user.moneyLog.customerReport.search")),1)]),_:1}),p(w,{onClick:G},{default:P(()=>[V(o(n(a)("user.moneyLog.customerReport.clear")),1)]),_:1})])])]),e("div",pe,[e("strong",null,o(n(a)("user.moneyLog.customerReport.dateOfData"))+":",1),V(" "+o(B.value),1)]),ee((c(),m("div",_e,[e("table",{class:"admin-report-table report-table",style:se({minWidth:`${I.value}px`})},[e("thead",null,[e("tr",null,[e("th",ge,o(n(a)("user.moneyLog.customerReport.registerDate"))+" ↓",1),e("th",ve,o(n(a)("user.moneyLog.customerReport.username")),1),e("th",he,o(n(a)("user.moneyLog.customerReport.deposit")),1),e("th",ye,o(n(a)("user.moneyLog.customerReport.withdraw")),1),e("th",be,o(n(a)("user.moneyLog.customerReport.winLose"))+" ↕",1),e("th",fe,[V(o(n(a)("user.moneyLog.customerReport.loseRebate"))+" ",1),e("small",null,"("+o(n(a)("user.moneyLog.customerReport.option"))+")",1)]),e("th",Re,o(n(a)("user.moneyLog.customerReport.referral"))+" ↕",1),(c(!0),m(y,null,C(R.value,s=>(c(),m("th",{key:s.id,colspan:"2",class:"reward-heading"},o(n(a)("user.moneyLog.customerReport.reward",{game:s.name})),1))),128))]),e("tr",null,[(c(!0),m(y,null,C(A.value,s=>(c(),m(y,{key:s},[e("th",null,o(n(a)("user.moneyLog.customerReport.count"))+" ↕",1),e("th",null,o(n(a)("user.moneyLog.customerReport.amount"))+" ↕",1)],64))),128))])]),e("tbody",null,[(c(!0),m(y,null,C(x.value,s=>(c(),m("tr",{key:`${s.registerDate}-${s.username}`},[e("td",null,o(s.registerDate),1),e("td",Le,[t[6]||(t[6]=e("span",{class:"user-icon"},"♟",-1)),V(o(s.username),1)]),e("td",we,o(s.depositCount),1),e("td",Ve,o(b(s.depositAmount,!0)),1),e("td",Ce,o(s.withdrawCount),1),e("td",De,o(b(s.withdrawAmount,!0)),1),e("td",{class:te(s.winLose>=0?"positive-value":"negative-value")},o(E(s.winLose)),3),e("td",null,o(b(s.loseRebate)),1),e("td",null,o(s.referral),1),(c(!0),m(y,null,C(s.rewards,N=>(c(),m(y,{key:N.gameId},[e("td",$e,o(N.count),1),e("td",ke,o(b(N.amount)),1)],64))),128))]))),128)),x.value.length===0?(c(),m("tr",xe,[e("td",{class:"empty-row",colspan:F.value},o(n(a)("user.moneyLog.customerReport.noData")),9,ze)])):oe("",!0)])],4)])),[[T,z.value]]),e("div",Ne,[e("div",null,o(n(a)("user.moneyLog.customerReport.totalRecords",{total:M.value})),1),p(l,{"current-page":_.value,"onUpdate:currentPage":t[4]||(t[4]=s=>_.value=s),small:"",background:"",layout:"prev, pager, next","page-size":D.value,"page-count":S.value,onCurrentChange:$},null,8,["current-page","page-size","page-count"]),e("div",Pe,[e("span",null,o(n(a)("user.moneyLog.customerReport.show")),1),p(H,{modelValue:D.value,"onUpdate:modelValue":t[5]||(t[5]=s=>D.value=s),onChange:W},{default:P(()=>[(c(),m(y,null,C(j,s=>p(v,{key:s,label:s,value:s},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),e("span",null,o(n(a)("user.moneyLog.customerReport.entries")),1)])])])}}}),Fe=Z(Me,[["__scopeId","data-v-adc861f2"]]);export{Fe as default}; diff --git a/public/assets/dailyReport-D51a2yAH.js b/public/assets/dailyReport-D51a2yAH.js new file mode 100644 index 0000000..84e77dd --- /dev/null +++ b/public/assets/dailyReport-D51a2yAH.js @@ -0,0 +1 @@ +import{x as z,_ as B}from"./index-CLyTskad.js";import{d as U}from"./moneyLog-DXD0yS7z.js";import{B as j,a as A,b as D,l as C,o as G,I as W,X as E,C as d,D as c,G as e,U as a,u as i,H as k,Z as p,Y as h,$ as w,_ as H,W as O,F as P}from"./vue-DweYBrEc.js";const X={class:"default-main admin-report-page daily-report"},Z={class:"admin-report-filter report-filter"},q={class:"admin-report-heading"},J={class:"admin-report-filter-content filter-content"},K={class:"date-fields"},Q={class:"admin-report-tabs period-tabs"},ee=["onClick"],te={class:"admin-report-table-wrap report-table-wrap"},ae={rowspan:"2",class:"date-column"},oe={colspan:"2"},se={colspan:"2"},ne={rowspan:"2",class:"single-column"},le={colspan:"2"},ie={rowspan:"2",class:"single-column"},re={rowspan:"2",class:"single-column"},de={rowspan:"2",class:"single-column"},ce={class:"count-column"},ue={class:"total-column"},me={class:"date-cell"},pe={class:"deposit-value"},_e={class:"deposit-value"},ye={class:"withdraw-value"},ge={class:"withdraw-value"},he={class:"reward-cell"},ve={class:"reward-cell"},be={key:0},fe=["colspan"],we=j({name:"user/moneyLog/dailyReport",__name:"dailyReport",setup(Re){const{t:l}=z.useI18n(),M=s=>{const o=m=>String(m).padStart(2,"0");return`${s.getFullYear()}-${o(s.getMonth()+1)}-${o(s.getDate())}`},v=new Date,Y=new Date(v.getFullYear(),v.getMonth(),1),$=new Date(v.getFullYear(),v.getMonth()+1,0),u=A({start:M(Y),end:M($),period:"daily"}),F=[{value:"daily",label:"user.moneyLog.dailyReport.daily"},{value:"monthly",label:"user.moneyLog.dailyReport.monthly"},{value:"yearly",label:"user.moneyLog.dailyReport.yearly"}],_=D([]),N=C(()=>["deposit","withdraw","unclaim",..._.value.map(s=>s.id)]),V=C(()=>11+_.value.length*2),x=C(()=>1596+_.value.length*230),R=D([]),L=D(!1),r=s=>{const o=Number(s);return Number.isFinite(o)?o:0},I=s=>{const o=(s==null?void 0:s.data)??s??{},m=o.games&&typeof o.games=="object"?o.games:{},f=Object.entries(m).map(([n,g])=>({id:n,name:String(g)})),t=Array.isArray(o.list)?o.list:[];return{games:f,rows:t.map(n=>({date:String(n.date??""),depositCount:r(n.deposit_count),depositTotal:r(n.deposit_total),withdrawCount:r(n.withdraw_count),withdrawTotal:r(n.withdraw_total),winLose:r(n.win_lose),unclaimCount:r(n.unclaim_count),unclaimTotal:r(n.unclaim_total),activeMember:r(n.active_member),newDeposit:r(n.new_deposit),newRegister:r(n.new_register),rewards:f.map(g=>({gameId:g.id,count:r(n[`game_${g.id}_count`]),total:r(n[`game_${g.id}_total`])}))}))}},b=async()=>{L.value=!0;try{const s=await U({start:u.start,end:u.end,type:u.period}),o=I(s.data);_.value=o.games,R.value=o.rows}finally{L.value=!1}},T=s=>{u.period!==s&&(u.period=s,b())},y=(s,o=!1)=>{const m=new Intl.NumberFormat(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}).format(Number(s)||0);return o?`AUD${m}`:m},S=s=>{const o=Number(s)||0;return`${o>=0?"+":"-"}${y(Math.abs(o))}`};return G(b),(s,o)=>{const m=W("el-date-picker"),f=E("loading");return d(),c("div",X,[e("section",Z,[e("header",q,a(i(l)("user.moneyLog.dailyReport.title")),1),e("div",J,[e("div",K,[e("label",null,a(i(l)("user.moneyLog.dailyReport.startDate"))+":",1),k(m,{modelValue:u.start,"onUpdate:modelValue":o[0]||(o[0]=t=>u.start=t),type:"date","value-format":"YYYY-MM-DD",clearable:!1,onChange:b},null,8,["modelValue"]),e("label",null,a(i(l)("user.moneyLog.dailyReport.endDate"))+":",1),k(m,{modelValue:u.end,"onUpdate:modelValue":o[1]||(o[1]=t=>u.end=t),type:"date","value-format":"YYYY-MM-DD",clearable:!1,onChange:b},null,8,["modelValue"])]),e("div",Q,[(d(),c(p,null,h(F,t=>e("button",{key:t.value,type:"button",class:w({active:u.period===t.value}),onClick:n=>T(t.value)},a(i(l)(t.label)),11,ee)),64))])])]),H((d(),c("div",te,[e("table",{class:"admin-report-table report-table",style:P({minWidth:`${x.value}px`})},[e("thead",null,[e("tr",null,[e("th",ae,a(i(l)("user.moneyLog.dailyReport.date")),1),e("th",oe,a(i(l)("user.moneyLog.dailyReport.deposit")),1),e("th",se,a(i(l)("user.moneyLog.dailyReport.withdraw")),1),e("th",ne,a(i(l)("user.moneyLog.dailyReport.winLose")),1),e("th",le,a(i(l)("user.moneyLog.dailyReport.unclaim")),1),e("th",ie,a(i(l)("user.moneyLog.dailyReport.activeMember")),1),e("th",re,a(i(l)("user.moneyLog.dailyReport.newDeposit")),1),e("th",de,a(i(l)("user.moneyLog.dailyReport.newRegister")),1),(d(!0),c(p,null,h(_.value,t=>(d(),c("th",{key:t.id,colspan:"2",class:"reward-heading"},a(i(l)("user.moneyLog.dailyReport.reward",{game:t.name})),1))),128))]),e("tr",null,[(d(!0),c(p,null,h(N.value,t=>(d(),c(p,{key:t},[e("th",ce,a(i(l)("user.moneyLog.dailyReport.count")),1),e("th",ue,a(i(l)("user.moneyLog.dailyReport.total")),1)],64))),128))])]),e("tbody",null,[(d(!0),c(p,null,h(R.value,t=>(d(),c("tr",{key:t.date},[e("td",me,a(t.date),1),e("td",pe,a(t.depositCount),1),e("td",_e,a(y(t.depositTotal,!0)),1),e("td",ye,a(t.withdrawCount),1),e("td",ge,a(y(t.withdrawTotal,!0)),1),e("td",{class:w(t.winLose>=0?"positive-value":"negative-value")},a(S(t.winLose)),3),e("td",{class:w({"unclaim-value":t.unclaimCount>0})},a(t.unclaimCount),3),e("td",{class:w({"unclaim-value":t.unclaimTotal>0})},a(y(t.unclaimTotal,!0)),3),e("td",null,a(t.activeMember),1),e("td",null,a(t.newDeposit),1),e("td",null,a(t.newRegister),1),(d(!0),c(p,null,h(t.rewards,n=>(d(),c(p,{key:n.gameId},[e("td",he,a(n.count),1),e("td",ve,a(y(n.total)),1)],64))),128))]))),128)),R.value.length===0?(d(),c("tr",be,[e("td",{class:"empty-row",colspan:V.value},a(i(l)("user.moneyLog.dailyReport.noData")),9,fe)])):O("",!0)])],4)])),[[f,L.value]])])}}}),Me=B(we,[["__scopeId","data-v-5899792f"]]);export{Me as default}; diff --git a/public/assets/darkSwitch-D7cNosid.js b/public/assets/darkSwitch-D7cNosid.js new file mode 100644 index 0000000..5e8b277 --- /dev/null +++ b/public/assets/darkSwitch-D7cNosid.js @@ -0,0 +1 @@ +import{_ as t}from"./index-CLyTskad.js";import{I as e,C as a,D as n,G as s,H as c}from"./vue-DweYBrEc.js";const g="/assets/logo-t5WO8pHa.png",i={},r={class:"theme-toggle-content"},_={class:"switch"},l={class:"switch-action"};function d(p,h){const o=e("Icon");return a(),n("div",r,[s("div",_,[s("div",l,[c(o,{name:"local-dark",color:"#f2f2f2",size:"13px",class:"switch-icon dark-icon"}),c(o,{name:"local-light",color:"#303133",size:"13px",class:"switch-icon light-icon"})])])])}const k=t(i,[["render",d],["__scopeId","data-v-62d134a8"]]);export{k as D,g as _}; diff --git a/public/assets/dashboard-B5-kDdZ8.js b/public/assets/dashboard-B5-kDdZ8.js new file mode 100644 index 0000000..7f2736f --- /dev/null +++ b/public/assets/dashboard-B5-kDdZ8.js @@ -0,0 +1 @@ +const e={"You have worked today":"You have worked today: ","Continue to work":"Keep working","have a bit of rest":"Take a break","Member registration":"Member registration","Total number of members":"Total number of members","Number of installed plug-ins":"Number of installed plug-ins","Membership growth":"Membership growth","Annex growth":"Annex Growth","New member":"New Member","Joined us":"Joined us","Member source":"Member source","Member last name":"Member last name",Loading:"Loading",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sunday:"Sunday",Visits:"Visits","Registration volume":"The number of registered users",picture:"picture",file:"file",table:"table",other:"other","Compressed package":"Compressed package",Baidu:"Baidu","Direct access":"Direct access","take a plane":"Take a plane","Take the high-speed railway":"Take the high-speed rail","full name":"Full name",hour:"Hour",minute:"Minute",second:"Second",day:"Day","Number of attachments Uploaded":"Number of attachments upload","Available Bank Balance":"Available Bank Balance","Bank Name":"Bank Name","Current Balance":"Current Balance","Transaction Breakdown":"Transaction Breakdown","Safe Alert":"Safe Alert","Fast Calculation":"Fast Calculation","Calculation placeholder":"e.g. +10+50-20","Fast Calculation Support":"Fast Calculation Support",Transfer:"Transfer","No Alert":"No Alert","No bank data":"No bank data","Show less":"Show less","More info":"More info","Customer Summary":"Customer Summary","Create New Transaction":"Create New Transaction","Edit Transaction":"Edit Transaction #{id}","Webhook enabled":"The Transaction Mode you currently set has the Webhook (JDK) feature enabled","Webhook hint":'Hint: If a transaction approved in the JK backend is not automatically recorded here within 10 minutes, click "Create New Transaction" to record it manually.',"Start Date":"Start Date","End Date":"End Date",Today:"Today","Date of data":"Date of data","Date range":"{start} to {end} ({days} {unit})",Day:"Day",Days:"Days","Total Deposit / IN":"Total Deposit / IN","Total Withdraw / OUT":"Total Withdraw / OUT","Deposit Count":"Deposit Count","Withdraw Count":"Withdraw Count","Active Player":"Active Player","First Deposit Player":"First Deposit Player","Unclaimed Amount":"Unclaimed Amount","Unclaimed Receipt":"Unclaimed Receipt","Created by":"Created by","Created Time":"Created Time",Category:"Category",Username:"Username",Remark:"Remark",Bank:"Bank",Type:"Type","Amount (AUD)":"Amount (AUD)",Label:"Label","Game Ticket":"Game Ticket",Action:"Action",History:"History","Date & Time":"Date & Time",Auto:"Auto",Manual:"Manual",Customer:"Customer","Other Adjust":"Other Adjust",Deposit:"Deposit",Withdraw:"Withdraw","Username placeholder":"e.g. PLAYER001",Optional:"(optional)","Optional select":"- (optional) -","First Deposit":"First Deposit",Unclaim:"Unclaim","Game Ticket Auto":"Game Ticket Auto","Auto generate ticket":"Auto generate ticket","Transaction Edit History":"Transaction Edit History","History retention note":"Transaction edit history is only kept for the most recent 12 months.","No Record":"No Record","Tx ID":"Tx ID","Edit By":"Edit By","Edit Time":"Edit Time",Changes:"Changes (Old → New)","Bank change":"Bank:{before}→{after}","Bank Transfer":"Bank Transfer","Transfer (From)":"Transfer (From)","Transfer (To)":"Transfer (To)","Select Bank":"- Select Bank -",Amount:"Amount","Hourly Alert":"Hourly Alert","Daily Alert":"Daily Alert","Weekly Alert":"Weekly Alert","Monthly Alert":"Monthly Alert","Yearly Alert":"Yearly Alert","Lifetime Alert":"Lifetime Alert"};export{e as default}; diff --git a/public/assets/dashboard-Cma2guMj.js b/public/assets/dashboard-Cma2guMj.js new file mode 100644 index 0000000..567bd3d --- /dev/null +++ b/public/assets/dashboard-Cma2guMj.js @@ -0,0 +1 @@ +import{B as oa,b as ae,a as $,l as z,o as na,I as v,X as ra,C,D as x,G as s,U as u,u as o,Z as R,Y as H,F as da,$ as te,H as n,P as i,V as b,aG as sa,W as fe,O as le,_ as ia}from"./vue-DweYBrEc.js";import{c as Y,x as ua,_ as ca}from"./index-CLyTskad.js";const O="/admin/Dashboard/";function ma(A){return Y({url:O+"index",method:"get",params:A})}function ba(A){return Y({url:O+"bankTransact",method:"post",data:A},{showSuccessMessage:!0})}function pa(A){return Y({url:O+"newTransact",method:"post",data:A},{showSuccessMessage:!0})}function ha(A){return Y({url:O+"editTransact",method:"post",data:A},{showSuccessMessage:!0})}function fa(A){return Y({url:O+"delTransact",method:"get",params:A})}function ga(A){return Y({url:O+"logHistory",method:"get",params:A})}const _a={class:"default-main bookkeeping-dashboard"},va={class:"dashboard-grid"},ya={class:"dashboard-panel bank-panel"},ka={class:"panel-title"},wa={class:"table-scroll"},Ca={class:"bank-table"},Ta={class:"balance"},Va={class:"bank-operate"},Aa=["id"],Da={class:"bank-operate-main"},Ua=["for","aria-label","title"],xa={class:"breakdown"},Ma={class:"breakdown-row breakdown-in"},Na={class:"breakdown-count"},$a={class:"breakdown-row breakdown-out"},Ia={class:"breakdown-count"},Sa={class:"bank-calculator"},Fa={class:"calculator-formula"},Ba={class:"calculator-hint"},Pa={key:0},za={class:"empty-banks",colspan:"4"},Ra={class:"summary-side"},Ya={class:"dashboard-panel summary-panel"},Oa={class:"panel-title"},Wa={class:"transaction-section"},Ha={class:"filter-row"},La={class:"date-filter"},Ea={class:"totals"},ja={class:"pagination"},Ga={class:"dialog-note"},qa=oa({name:"dashboard",__name:"dashboard",setup(A){const{t}=ua.useI18n(),L=()=>{const a=new Date,e=r=>r.toString().padStart(2,"0");return`${a.getFullYear()}-${e(a.getMonth()+1)}-${e(a.getDate())}`},M=a=>Number(a).toLocaleString("en-AU",{minimumFractionDigits:2,maximumFractionDigits:2}),f=a=>{const e=Number(a);return Number.isFinite(e)?e:0},ge=a=>a.replace(/,/g,"").replace(/乘以/g,"*").replace(/除以/g,"/").replace(/加/g,"+").replace(/减/g,"-").replace(/[+]/g,"+").replace(/[-–—]/g,"-").replace(/[×*xX]/g,"*").replace(/[÷/]/g,"/").replace(/\s+/g,"").replace(/^=/,""),_e=a=>{let e=0;const r=()=>{const g=a.slice(e).match(/^(?:\d+(?:\.\d*)?|\.\d+)/);return g?(e+=g[0].length,Number(g[0])):null},d=()=>{const g=a[e];if(g==="+")return e+=1,d();if(g==="-"){e+=1;const h=d();return h===null?null:-h}if(g==="("){e+=1;const h=c();return h===null||a[e]!==")"?null:(e+=1,h)}return r()},p=()=>{let g=d();if(g===null)return null;for(;a[e]==="*"||a[e]==="/";){const h=a[e];e+=1;const U=d();if(U===null)return null;g=h==="*"?g*U:U===0?Number.NaN:g/U}return g};function c(){let g=p();if(g===null)return null;for(;a[e]==="+"||a[e]==="-";){const h=a[e];e+=1;const U=p();if(U===null)return null;g=h==="+"?g+U:g-U}return g}const T=c();return T!==null&&e===a.length&&Number.isFinite(T)?T:null},ve=(a,e)=>{const r=ge(e);if(!r)return{valid:!0,value:a};if(!/^[\d+\-*/().]+$/.test(r))return{valid:!1,value:a};const d=/^[+\-*/]/.test(r)?`${a}${r}`:`${a}+${r}`,p=_e(d);return p===null?{valid:!1,value:a}:{valid:!0,value:p}},E=a=>Math.min(255,Math.max(0,Math.round(a))),Z=a=>{const e=Number(a);return Number.isFinite(e)?E(e):0},ye=a=>{if(a===void 0)return 1;const e=Number(a);return Number.isFinite(e)?Math.min(1,Math.max(0,e)):1},oe=a=>{const e=a.trim(),r=e.match(/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i);if(r){const p=r[1],c=p.length===3?p.split("").map(T=>T+T).join(""):p;return{r:Number.parseInt(c.slice(0,2),16),g:Number.parseInt(c.slice(2,4),16),b:Number.parseInt(c.slice(4,6),16),a:c.length===8?Number.parseInt(c.slice(6,8),16)/255:1}}const d=e.match(/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)$/i);return d?{r:Z(d[1]),g:Z(d[2]),b:Z(d[3]),a:ye(d[4])}:null},ke=a=>`rgb(${E(a.r)}, ${E(a.g)}, ${E(a.b)})`,we=(a,e,r)=>({r:a.r*(1-r)+e.r*r,g:a.g*(1-r)+e.g*r,b:a.b*(1-r)+e.b*r}),Ce=a=>{const e=oe(a);if(!e)return a;const r={r:e.r*e.a+255*(1-e.a),g:e.g*e.a+255*(1-e.a),b:e.b*e.a+255*(1-e.a)},d=Math.max(r.r,r.g,r.b),p=Math.min(r.r,r.g,r.b);return d-p<18?ke(we(r,{r:241,g:245,b:249},.72)):r.g>=r.r&&r.g>=r.b?"#d9f3e5":r.r>=r.g&&r.r>=r.b?"#f8dde2":"#dbeafe"},K=a=>{const e=a/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)},ne=a=>.2126*K(a.r)+.7152*K(a.g)+.0722*K(a.b),J=(a,e)=>{const r=Math.max(a,e),d=Math.min(a,e);return(r+.05)/(d+.05)},Te=a=>{const e=oe(a);if(!e)return"#172033";const r={r:e.r*e.a+255*(1-e.a),g:e.g*e.a+255*(1-e.a),b:e.b*e.a+255*(1-e.a)},d=ne(r),p=J(d,ne({r:23,g:32,b:51})),c=J(d,1),T=J(d,0);return p>=4.5||p>=c?"#172033":c>=T?"#ffffff":"#000000"},Ve=a=>{if(!a.labelColor)return{};const e=Ce(a.labelColor),r=Te(e),d=r==="#ffffff";return{backgroundColor:e,"--bank-row-text-color":r,"--bank-row-muted-color":d?"rgba(255, 255, 255, 0.82)":"rgba(0, 0, 0, 0.72)","--bank-row-border-color":d?"rgba(255, 255, 255, 0.24)":"rgba(0, 0, 0, 0.16)","--bank-row-control-bg":d?"rgba(255, 255, 255, 0.16)":"rgba(255, 255, 255, 0.72)","--bank-row-control-hover-bg":d?"rgba(255, 255, 255, 0.26)":"rgba(255, 255, 255, 0.88)"}},re=a=>{if(typeof a=="string"&&a.trim()&&!Number.isFinite(Number(a)))return a;const e=f(a);if(!e)return"";const r=new Date(e*1e3),d=p=>p.toString().padStart(2,"0");return`${r.getFullYear()}-${d(r.getMonth()+1)}-${d(r.getDate())} ${d(r.getHours())}:${d(r.getMinutes())}:${d(r.getSeconds())}`},Ae=a=>{const e=f(a.total_fund_in??a.fund_in),r=f(a.total_fund_out??a.fund_out),d=String(a.safe_alert??"0");return{id:a.id,name:a.bank_name||"-",account:a.bank_account||"",balance:f(a.current_balance??a.balance??e-r),deposit:e,withdraw:r,depositCount:f(a.count_fund_in??a.deposit_count??a.tx_in),withdrawCount:f(a.count_fund_out??a.withdraw_count??a.tx_out),alertCode:d,rowClass:String(a.status??"1")==="0"?"bank-muted":"",labelColor:a.label_color||""}},F=ae([]),de=ae([]),y=$({totalDeposit:0,totalWithdraw:0,countDeposit:0,countWithdraw:0,activePlayer:0,firstDeposit:0,unclaimAmount:0,unclaimReceipt:0}),j=$({totalDeposit:0,totalWithdraw:0}),D=$({startDate:L(),endDate:L()}),k=$({count:0,currentPage:1,lastPage:1,pageSize:10}),W=ae(!1),Q=$({}),se=z(()=>W.value?F.value:F.value.slice(0,4)),De=z(()=>j.totalDeposit),Ue=z(()=>j.totalWithdraw),xe=z(()=>{const a=new Date(`${D.startDate}T00:00:00`),e=new Date(`${D.endDate}T00:00:00`),r=Math.max(1,Math.floor((e.getTime()-a.getTime())/864e5)+1);return t("dashboard.Date range",{start:D.startDate,end:D.endDate,days:r,unit:t(r===1?"dashboard.Day":"dashboard.Days")})}),Me=z(()=>[{label:t("dashboard.Total Deposit / IN"),value:`AUD ${M(y.totalDeposit)}`},{label:t("dashboard.Total Withdraw / OUT"),value:`AUD ${M(y.totalWithdraw)}`},{label:t("dashboard.Deposit Count"),value:y.countDeposit},{label:t("dashboard.Withdraw Count"),value:y.countWithdraw},{label:t("dashboard.Active Player"),value:y.activePlayer},{label:t("dashboard.First Deposit Player"),value:y.firstDeposit},{label:t("dashboard.Unclaimed Amount"),value:`AUD ${M(y.unclaimAmount)}`},{label:t("dashboard.Unclaimed Receipt"),value:y.unclaimReceipt}]),G=a=>String(a.id),ie=a=>`bank-calculator-${G(a).replace(/[^a-zA-Z0-9_-]/g,"-")}`,ue=a=>ve(a.balance,Q[G(a)]||""),Ne=a=>!ue(a).valid,$e=a=>{const e=ue(a);return e.valid?`AUD ${M(e.value)}`:"AUD --"},_=$({visible:!1,loading:!1,mode:"create",editId:""}),Ie=z(()=>_.mode==="edit"?t("dashboard.Edit Transaction",{id:_.editId}):t("dashboard.Create New Transaction")),m=$({time:"",timeMode:"Auto",category:1,type:1,username:"",remark:"",amount:0,bank:"",label:"",ticketAuto:!0}),N=$({visible:!1,loading:!1,rows:[]}),I=$({visible:!1,loading:!1}),w=$({bankFrom:"",fromName:"",bankTo:"",money:0,remark:""}),Se=a=>({1:t("dashboard.Hourly Alert"),2:t("dashboard.Daily Alert"),3:t("dashboard.Weekly Alert"),4:t("dashboard.Monthly Alert"),5:t("dashboard.Yearly Alert"),6:t("dashboard.Lifetime Alert")})[a]||t("dashboard.No Alert"),Fe=a=>({1:t("dashboard.Deposit"),2:t("dashboard.Withdraw"),3:"IN",4:"OUT"})[a]||a,Be=a=>({1:t("dashboard.Customer"),2:t("dashboard.Other Adjust")})[a]||a,Pe=a=>({1:t("dashboard.First Deposit"),2:t("dashboard.Unclaim")})[a]||"",ze=a=>{const e=String(a.type??"");return{id:a.id,createdBy:a.created_by||"",createdTime:re(a.create_time),categoryId:String(a.category??""),username:a.user_name||"",remark:a.memo||"",bank:a.bank_name||"",bankId:a.bank_id||"",typeId:e,flow:["1","3"].includes(e)?"in":"out",amount:f(a.money),labelId:String(a.label??""),ticket:Array.isArray(a.scoreLog)?a.scoreLog.map(r=>`${r.game_type_text||""} : ${r.score??""}`).filter(r=>r.trim()!==":"):[]}},B=(a=k.currentPage)=>ma({start:D.startDate,end:D.endDate,page:a}).then(e=>{var T;const r=Array.isArray(e.data.bank)?e.data.bank:(T=e.data.bank)==null?void 0:T.list;F.value=Array.isArray(r)?r.map(Ae):[];const d=e.data.transaction,p=Array.isArray(d==null?void 0:d.list)?d.list:[];de.value=p.map(ze),k.count=f(d==null?void 0:d.count),k.currentPage=f(d==null?void 0:d.current_page)||a,k.lastPage=f(d==null?void 0:d.last_page)||1,k.pageSize=k.lastPage>0?Math.max(1,Math.ceil(k.count/k.lastPage)):10,j.totalDeposit=f(d==null?void 0:d.total_deposit),j.totalWithdraw=f(d==null?void 0:d.total_withdraw);const c=e.data.customer;y.totalDeposit=f(c==null?void 0:c.total_deposit),y.totalWithdraw=f(c==null?void 0:c.total_withdraw),y.countDeposit=f(c==null?void 0:c.count_deposit),y.countWithdraw=f(c==null?void 0:c.count_withdraw),y.activePlayer=f(c==null?void 0:c.active_player),y.firstDeposit=f(c==null?void 0:c.first_deposit),y.unclaimAmount=f(c==null?void 0:c.unclaim_amount),y.unclaimReceipt=f(c==null?void 0:c.unclaim_receipt)}),Re=()=>{Object.assign(m,{time:"",timeMode:"Auto",category:1,type:1,username:"",remark:"",amount:0,bank:"",label:"",ticketAuto:!0})},Ye=()=>{Re(),_.mode="create",_.editId="",_.visible=!0},Oe=a=>{var e;Object.assign(m,{time:a.createdTime,timeMode:"Manual",category:f(a.categoryId)||1,type:f(a.typeId)||1,username:a.username,remark:a.remark,amount:a.amount,bank:a.bankId||((e=F.value.find(r=>r.name===a.bank))==null?void 0:e.id)||"",label:a.labelId?f(a.labelId):"",ticketAuto:a.ticket.length>0}),_.mode="edit",_.editId=a.id,_.visible=!0},We=()=>{if(m.timeMode==="Auto"||!m.time)return Math.floor(Date.now()/1e3);const a=new Date(m.time.replace(" ","T")),e=Math.floor(a.getTime()/1e3);return Number.isFinite(e)?e:Math.floor(Date.now()/1e3)},ce=()=>({create_time:We(),category:m.category,type:m.type,user_name:m.username,memo:m.remark,money:m.amount,bank_id:m.bank,label:m.label,game_ticket:m.ticketAuto?1:0}),He=()=>{_.loading=!0,(_.mode==="edit"&&_.editId!==""?ha({...ce(),id:_.editId}):pa(ce())).then(()=>(_.visible=!1,k.currentPage=1,B(1))).finally(()=>{_.loading=!1})},Le=a=>({id:a.id||a.money_log_id||"",editedBy:String(a.admin_name||""),editedTime:re(a.create_time),bankBefore:String(a.bank_befter??""),bankAfter:String(a.bank_after??"")}),Ee=a=>t("dashboard.Bank change",{before:a.bankBefore,after:a.bankAfter}),je=a=>{N.visible=!0,N.loading=!0,N.rows=[],ga({id:a.id}).then(e=>{var d;const r=Array.isArray(e.data)?e.data:(d=e.data)==null?void 0:d.list;N.rows=Array.isArray(r)?r.map(p=>Le(p)):[]}).finally(()=>{N.loading=!1})},Ge=a=>{Object.assign(w,{bankFrom:a.id,fromName:a.name,bankTo:"",money:0,remark:""}),I.visible=!0},qe=()=>{I.loading=!0,ba({money:w.money,bank_from:w.bankFrom,bank_to:w.bankTo,remark:w.remark}).then(()=>(I.visible=!1,B())).finally(()=>{I.loading=!1})},Xe=a=>{fa({id:a.id}).then(()=>B(k.currentPage))},Ze=()=>{D.startDate=L(),D.endDate=L(),k.currentPage=1,B(1).catch(()=>{})},Ke=()=>{k.currentPage=1,B(1).catch(()=>{})},Je=a=>{B(a).catch(()=>{})},Qe=({row:a})=>a.flow==="in"?"transaction-in":"transaction-out";return na(()=>{B().catch(()=>{})}),(a,e)=>{const r=v("Icon"),d=v("el-button"),p=v("el-input"),c=v("el-tag"),T=v("el-alert"),g=v("el-date-picker"),h=v("el-table-column"),U=v("el-table"),ea=v("el-pagination"),me=v("el-radio"),be=v("el-radio-group"),V=v("el-form-item"),P=v("el-option"),q=v("el-select"),X=v("el-radio-button"),pe=v("el-input-number"),aa=v("el-checkbox"),he=v("el-form"),ee=v("el-dialog"),ta=ra("loading");return C(),x("div",_a,[s("section",va,[s("div",ya,[s("div",ka,u(o(t)("dashboard.Available Bank Balance")),1),s("div",wa,[s("table",Ca,[s("thead",null,[s("tr",null,[s("th",null,u(o(t)("dashboard.Bank Name")),1),s("th",null,u(o(t)("dashboard.Current Balance")),1),s("th",null,u(o(t)("dashboard.Transaction Breakdown")),1),s("th",null,u(o(t)("dashboard.Safe Alert")),1)])]),s("tbody",null,[(C(!0),x(R,null,H(se.value,l=>(C(),x("tr",{key:l.id,class:te([l.rowClass,{"bank-colored":l.labelColor}]),style:da(Ve(l))},[s("td",null,[s("strong",null,u(l.name),1),s("small",null,u(l.account),1)]),s("td",Ta,"AUD "+u(M(l.balance)),1),s("td",null,[s("div",Va,[s("input",{id:ie(l),class:"calculator-toggle",type:"checkbox"},null,8,Aa),s("div",Da,[s("label",{class:"calculator-button",for:ie(l),"aria-label":o(t)("dashboard.Fast Calculation"),title:o(t)("dashboard.Fast Calculation")},[n(r,{name:"fa fa-calculator",size:"13",color:"currentColor"})],8,Ua),n(d,{size:"small",icon:o(sa),onClick:S=>Ge(l)},{default:i(()=>[b(u(o(t)("dashboard.Transfer")),1)]),_:2},1032,["icon","onClick"]),s("div",xa,[s("div",Ma,[e[24]||(e[24]=s("span",{class:"breakdown-label"},"入",-1)),s("span",Na,"("+u(l.depositCount)+")",1),s("strong",null,u(M(l.deposit)),1)]),s("div",$a,[e[25]||(e[25]=s("span",{class:"breakdown-label"},"出",-1)),s("span",Ia,"("+u(l.withdrawCount)+")",1),s("strong",null,u(M(l.withdraw)),1)])])]),s("div",Sa,[s("div",Fa,[n(p,{modelValue:Q[G(l)],"onUpdate:modelValue":S=>Q[G(l)]=S,class:"calculator-input",size:"small",placeholder:o(t)("dashboard.Calculation placeholder"),clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]),e[26]||(e[26]=s("span",{class:"calculator-equals"},"=",-1)),s("strong",{class:te(["calculator-result",{"is-invalid":Ne(l)}])},u($e(l)),3)]),s("div",Ba,[b(u(o(t)("dashboard.Fast Calculation Support"))+" ",1),e[27]||(e[27]=s("span",null,"+ − × ÷",-1))])])])]),s("td",null,[n(c,{size:"small",effect:"plain",type:l.alertCode!=="0"?"danger":"info"},{default:i(()=>[b(u(Se(l.alertCode)),1)]),_:2},1032,["type"])])],6))),128)),se.value.length?fe("",!0):(C(),x("tr",Pa,[s("td",za,u(o(t)("dashboard.No bank data")),1)]))])])]),F.value.length>4?(C(),x("button",{key:0,class:"more-info",type:"button",onClick:e[0]||(e[0]=l=>W.value=!W.value)},[b(u(W.value?o(t)("dashboard.Show less"):o(t)("dashboard.More info"))+" ",1),n(r,{name:W.value?"fa fa-caret-up":"fa fa-caret-down"},null,8,["name"])])):fe("",!0)]),s("aside",Ra,[s("div",Ya,[s("div",Oa,u(o(t)("dashboard.Customer Summary")),1),s("dl",null,[(C(!0),x(R,null,H(Me.value,l=>(C(),x(R,{key:l.label},[s("dt",null,u(l.label)+":",1),s("dd",null,u(l.value),1)],64))),128))])]),n(d,{class:"create-button",type:"success",onClick:Ye},{default:i(()=>[b(u(o(t)("dashboard.Create New Transaction")),1)]),_:1})])]),n(T,{class:"webhook-alert",type:"warning",closable:!0,"show-icon":""},{title:i(()=>[s("strong",null,u(o(t)("dashboard.Webhook enabled")),1)]),default:i(()=>[s("p",null,u(o(t)("dashboard.Webhook hint")),1)]),_:1}),s("section",Wa,[s("div",Ha,[s("div",La,[s("label",null,u(o(t)("dashboard.Start Date"))+":",1),n(g,{modelValue:D.startDate,"onUpdate:modelValue":e[1]||(e[1]=l=>D.startDate=l),type:"date","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),s("label",null,u(o(t)("dashboard.End Date"))+":",1),n(g,{modelValue:D.endDate,"onUpdate:modelValue":e[2]||(e[2]=l=>D.endDate=l),type:"date","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),n(d,{onClick:Ke},{default:i(()=>[b(u(o(t)("Search")),1)]),_:1}),n(d,{onClick:Ze},{default:i(()=>[b(u(o(t)("dashboard.Today")),1)]),_:1})]),s("div",Ea,[s("span",null,u(o(t)("dashboard.Date of data"))+": "+u(xe.value),1),s("b",null,[b(u(o(t)("dashboard.Total Deposit / IN"))+": ",1),s("em",null,"AUD "+u(M(De.value)),1)]),s("b",null,[b(u(o(t)("dashboard.Total Withdraw / OUT"))+": ",1),s("em",null,"AUD "+u(M(Ue.value)),1)])])]),n(U,{data:de.value,border:"",size:"small",class:"transaction-table","row-class-name":Qe},{default:i(()=>[n(h,{prop:"createdBy",label:o(t)("dashboard.Created by"),width:"110"},null,8,["label"]),n(h,{prop:"createdTime",label:o(t)("dashboard.Created Time"),width:"170"},null,8,["label"]),n(h,{label:o(t)("dashboard.Category"),width:"100"},{default:i(({row:l})=>[b(u(Be(l.categoryId)),1)]),_:1},8,["label"]),n(h,{prop:"username",label:o(t)("dashboard.Username"),width:"110"},null,8,["label"]),n(h,{prop:"remark",label:o(t)("dashboard.Remark"),"min-width":"205"},null,8,["label"]),n(h,{prop:"bank",label:o(t)("dashboard.Bank"),"min-width":"165"},null,8,["label"]),n(h,{label:o(t)("dashboard.Type"),width:"95"},{default:i(({row:l})=>[b(u(Fe(l.typeId)),1)]),_:1},8,["label"]),n(h,{label:o(t)("dashboard.Amount (AUD)"),width:"130",align:"right"},{default:i(({row:l})=>[s("strong",{class:te(l.flow==="in"?"amount-in":"amount-out")},u(M(l.amount)),3)]),_:1},8,["label"]),n(h,{label:o(t)("dashboard.Label"),width:"100"},{default:i(({row:l})=>[b(u(Pe(l.labelId)),1)]),_:1},8,["label"]),n(h,{label:o(t)("dashboard.Game Ticket"),"min-width":"140"},{default:i(({row:l})=>[(C(!0),x(R,null,H(l.ticket,(S,la)=>(C(),x("div",{key:`${S}-${la}`},u(S),1))),128))]),_:1},8,["label"]),n(h,{label:o(t)("dashboard.Action"),fixed:"right",width:"180"},{default:i(({row:l})=>[n(d,{link:"",type:"primary",size:"small",onClick:S=>je(l)},{default:i(()=>[b(u(o(t)("dashboard.History")),1)]),_:2},1032,["onClick"]),n(d,{link:"",type:"primary",size:"small",onClick:S=>Oe(l)},{default:i(()=>[b(u(o(t)("Edit")),1)]),_:2},1032,["onClick"]),n(d,{link:"",type:"danger",size:"small",onClick:S=>Xe(l)},{default:i(()=>[b(u(o(t)("Delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),s("div",ja,[n(ea,{"current-page":k.currentPage,"onUpdate:currentPage":e[3]||(e[3]=l=>k.currentPage=l),background:"",layout:"prev, pager, next",total:k.count,"page-size":k.pageSize,onCurrentChange:Je},null,8,["current-page","total","page-size"])])]),n(ee,{modelValue:_.visible,"onUpdate:modelValue":e[15]||(e[15]=l=>_.visible=l),title:Ie.value,width:"680px"},{footer:i(()=>[n(d,{type:"primary",loading:_.loading,onClick:He},{default:i(()=>[b(u(o(t)("Confirm")),1)]),_:1},8,["loading"]),n(d,{onClick:e[14]||(e[14]=l=>_.visible=!1)},{default:i(()=>[b(u(o(t)("Cancel")),1)]),_:1})]),default:i(()=>[n(he,{model:m,"label-width":"145px"},{default:i(()=>[n(V,{label:o(t)("dashboard.Date & Time")},{default:i(()=>[n(g,{modelValue:m.time,"onUpdate:modelValue":e[4]||(e[4]=l=>m.time=l),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"]),n(be,{modelValue:m.timeMode,"onUpdate:modelValue":e[5]||(e[5]=l=>m.timeMode=l),class:"inline-mode"},{default:i(()=>[n(me,{value:"Auto"},{default:i(()=>[b(u(o(t)("dashboard.Auto")),1)]),_:1}),n(me,{value:"Manual"},{default:i(()=>[b(u(o(t)("dashboard.Manual")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Category")},{default:i(()=>[n(q,{modelValue:m.category,"onUpdate:modelValue":e[6]||(e[6]=l=>m.category=l)},{default:i(()=>[n(P,{label:o(t)("dashboard.Customer"),value:1},null,8,["label"]),n(P,{label:o(t)("dashboard.Other Adjust"),value:2},null,8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Type")},{default:i(()=>[n(be,{modelValue:m.type,"onUpdate:modelValue":e[7]||(e[7]=l=>m.type=l)},{default:i(()=>[n(X,{value:1},{default:i(()=>[b(u(o(t)("dashboard.Deposit")),1)]),_:1}),n(X,{value:2},{default:i(()=>[b(u(o(t)("dashboard.Withdraw")),1)]),_:1}),n(X,{value:3},{default:i(()=>e[28]||(e[28]=[b("IN")])),_:1}),n(X,{value:4},{default:i(()=>e[29]||(e[29]=[b("OUT")])),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Username")},{default:i(()=>[n(p,{modelValue:m.username,"onUpdate:modelValue":e[8]||(e[8]=l=>m.username=l),disabled:_.mode==="edit",placeholder:o(t)("dashboard.Username placeholder")},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Remark")},{default:i(()=>[n(p,{modelValue:m.remark,"onUpdate:modelValue":e[9]||(e[9]=l=>m.remark=l),placeholder:o(t)("dashboard.Optional")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Amount (AUD)")},{default:i(()=>[n(pe,{modelValue:m.amount,"onUpdate:modelValue":e[10]||(e[10]=l=>m.amount=l),min:0,precision:2},null,8,["modelValue"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Bank")},{default:i(()=>[n(q,{modelValue:m.bank,"onUpdate:modelValue":e[11]||(e[11]=l=>m.bank=l),placeholder:o(t)("dashboard.Optional select")},{default:i(()=>[(C(!0),x(R,null,H(F.value,l=>(C(),le(P,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Label")},{default:i(()=>[n(q,{modelValue:m.label,"onUpdate:modelValue":e[12]||(e[12]=l=>m.label=l),placeholder:o(t)("dashboard.Optional select")},{default:i(()=>[n(P,{label:o(t)("dashboard.First Deposit"),value:1},null,8,["label"]),n(P,{label:o(t)("dashboard.Unclaim"),value:2},null,8,["label"])]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Game Ticket Auto")},{default:i(()=>[n(aa,{modelValue:m.ticketAuto,"onUpdate:modelValue":e[13]||(e[13]=l=>m.ticketAuto=l)},{default:i(()=>[b(u(o(t)("dashboard.Auto generate ticket")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),n(ee,{modelValue:N.visible,"onUpdate:modelValue":e[17]||(e[17]=l=>N.visible=l),title:o(t)("dashboard.Transaction Edit History"),width:"720px"},{footer:i(()=>[n(d,{onClick:e[16]||(e[16]=l=>N.visible=!1)},{default:i(()=>[b(u(o(t)("Cancel")),1)]),_:1})]),default:i(()=>[s("p",Ga,u(o(t)("dashboard.History retention note")),1),ia((C(),le(U,{data:N.rows,border:"",size:"small","empty-text":o(t)("dashboard.No Record")},{default:i(()=>[n(h,{prop:"id",label:o(t)("dashboard.Tx ID"),width:"100"},null,8,["label"]),n(h,{prop:"editedBy",label:o(t)("dashboard.Edit By"),width:"120"},null,8,["label"]),n(h,{prop:"editedTime",label:o(t)("dashboard.Edit Time"),width:"170"},null,8,["label"]),n(h,{label:o(t)("dashboard.Changes")},{default:i(({row:l})=>[b(u(Ee(l)),1)]),_:1},8,["label"])]),_:1},8,["data","empty-text"])),[[ta,N.loading]])]),_:1},8,["modelValue","title"]),n(ee,{modelValue:I.visible,"onUpdate:modelValue":e[23]||(e[23]=l=>I.visible=l),title:o(t)("dashboard.Bank Transfer"),width:"560px"},{footer:i(()=>[n(d,{type:"primary",loading:I.loading,onClick:qe},{default:i(()=>[b(u(o(t)("Confirm")),1)]),_:1},8,["loading"]),n(d,{onClick:e[22]||(e[22]=l=>I.visible=!1)},{default:i(()=>[b(u(o(t)("Cancel")),1)]),_:1})]),default:i(()=>[n(he,{model:w,"label-width":"125px"},{default:i(()=>[n(V,{label:o(t)("dashboard.Transfer (From)")},{default:i(()=>[n(p,{modelValue:w.fromName,"onUpdate:modelValue":e[18]||(e[18]=l=>w.fromName=l),disabled:""},null,8,["modelValue"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Transfer (To)")},{default:i(()=>[n(q,{modelValue:w.bankTo,"onUpdate:modelValue":e[19]||(e[19]=l=>w.bankTo=l),placeholder:o(t)("dashboard.Select Bank")},{default:i(()=>[(C(!0),x(R,null,H(F.value,l=>(C(),le(P,{key:l.id,label:l.name,value:l.id,disabled:l.id===w.bankFrom},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Amount")},{default:i(()=>[n(pe,{modelValue:w.money,"onUpdate:modelValue":e[20]||(e[20]=l=>w.money=l),min:0,precision:2},null,8,["modelValue"])]),_:1},8,["label"]),n(V,{label:o(t)("dashboard.Remark")},{default:i(()=>[n(p,{modelValue:w.remark,"onUpdate:modelValue":e[21]||(e[21]=l=>w.remark=l),placeholder:o(t)("dashboard.Optional")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),Ka=ca(qa,[["__scopeId","data-v-6fc92eea"]]);export{Ka as default}; diff --git a/public/assets/dashboard-DfyiaDqw.js b/public/assets/dashboard-DfyiaDqw.js new file mode 100644 index 0000000..e264843 --- /dev/null +++ b/public/assets/dashboard-DfyiaDqw.js @@ -0,0 +1 @@ +const e={"You have worked today":"您今天已工作了","Continue to work":"继续工作","have a bit of rest":"休息片刻","Member registration":"会员注册量","Total number of members":"会员总数","Number of installed plug-ins":"已装插件数","Membership growth":"会员增长情况","Annex growth":"附件增长情况","New member":"刚刚加入的会员","Joined us":"加入了我们","Member source":"会员来源","Member last name":"会员姓氏",Loading:"加载中...",Monday:"周一",Tuesday:"周二",Wednesday:"周三",Thursday:"周四",Friday:"周五",Saturday:"周六",Sunday:"周日",Visits:"访问量","Registration volume":"注册量",picture:"图片",file:"文档",table:"表格",other:"其它","Compressed package":"压缩包",Baidu:"百度","Direct access":"直接访问","take a plane":"坐飞机","Take the high-speed railway":"坐高铁","full name":"姓名",hour:"小时",minute:"分",second:"秒",day:"天","Number of attachments Uploaded":"附件上传量","Available Bank Balance":"可用银行余额","Bank Name":"银行名称","Current Balance":"当前余额","Transaction Breakdown":"交易明细","Safe Alert":"安全提醒","Fast Calculation":"快速计算","Calculation placeholder":"e.g. +10+50-20","Fast Calculation Support":"Fast Calculation Support",Transfer:"转账","No Alert":"无提醒","No bank data":"暂无银行数据","Show less":"收起","More info":"查看更多","Customer Summary":"客户汇总","Create New Transaction":"新建交易","Edit Transaction":"编辑交易 #{id}","Webhook enabled":"当前设置的交易模式已启用 Webhook(JDK)功能","Webhook hint":"提示:如果 JK 后台已批准的交易在 10 分钟内没有自动记录,请点击“新建交易”手动记录。","Start Date":"开始日期","End Date":"结束日期",Today:"今天","Date of data":"数据日期","Date range":"{start} 至 {end}({days} {unit})",Day:"天",Days:"天","Total Deposit / IN":"总存款 / 转入","Total Withdraw / OUT":"总提款 / 转出","Deposit Count":"存款笔数","Withdraw Count":"提款笔数","Active Player":"活跃玩家","First Deposit Player":"首存玩家","Unclaimed Amount":"未认领金额","Unclaimed Receipt":"未认领凭证","Created by":"创建者","Created Time":"创建时间",Category:"分类",Username:"用户名",Remark:"备注",Bank:"银行",Type:"类型","Amount (AUD)":"金额(AUD)",Label:"标签","Game Ticket":"游戏票据",Action:"操作",History:"历史记录","Date & Time":"日期和时间",Auto:"自动",Manual:"手动",Customer:"客户","Other Adjust":"其他调整",Deposit:"存款",Withdraw:"提款","Username placeholder":"例如 PLAYER001",Optional:"(可选)","Optional select":"- 可选 -","First Deposit":"首次存款",Unclaim:"未认领","Game Ticket Auto":"自动游戏票据","Auto generate ticket":"自动生成票据","Transaction Edit History":"交易编辑历史","History retention note":"交易编辑历史仅保留最近 12 个月。","No Record":"暂无记录","Tx ID":"交易 ID","Edit By":"编辑者","Edit Time":"编辑时间",Changes:"变更内容(旧 → 新)","Bank change":"银行:{before}→{after}","Bank Transfer":"银行转账","Transfer (From)":"转出银行","Transfer (To)":"转入银行","Select Bank":"- 选择银行 -",Amount:"金额","Hourly Alert":"每小时提醒","Daily Alert":"每日提醒","Weekly Alert":"每周提醒","Monthly Alert":"每月提醒","Yearly Alert":"每年提醒","Lifetime Alert":"永久提醒"};export{e as default}; diff --git a/public/assets/dataRecycle-CHOKVf0o.js b/public/assets/dataRecycle-CHOKVf0o.js new file mode 100644 index 0000000..f6e5f12 --- /dev/null +++ b/public/assets/dataRecycle-CHOKVf0o.js @@ -0,0 +1 @@ +const e={"Rule name":"Rule name",controller:"Controller","data sheet":"Data table","Data table primary key":"Data table primary key","Deleting monitoring":"Delete monitoring","The rule name helps to identify deleted data later":"Rule names help to identify deleted data subsequently later.","The data collection mechanism will monitor delete operations under this controller":"The data recycle mechanism will monitor the delete operations under this controller.","Corresponding data sheet":"Corresponding data sheet"};export{e as default}; diff --git a/public/assets/dataRecycle-gNM0idy0.js b/public/assets/dataRecycle-gNM0idy0.js new file mode 100644 index 0000000..1eb7066 --- /dev/null +++ b/public/assets/dataRecycle-gNM0idy0.js @@ -0,0 +1 @@ +const e={"Rule name":"规则名称",controller:"控制器","data sheet":"数据表","Data table primary key":"数据表主键","Deleting monitoring":"删除监控中","The rule name helps to identify deleted data later":"规则名称有助于后续识别被删数据","The data collection mechanism will monitor delete operations under this controller":"数据回收机制将监控此控制器下的删除操作","Corresponding data sheet":"对应数据表"};export{e as default}; diff --git a/public/assets/dataRecycleLog-CHRTnOTc.js b/public/assets/dataRecycleLog-CHRTnOTc.js new file mode 100644 index 0000000..60c2837 --- /dev/null +++ b/public/assets/dataRecycleLog-CHRTnOTc.js @@ -0,0 +1 @@ +const e={restore:"Restore","Are you sure to restore the selected records?":"Are you sure to restore the selected records?","Restore the selected record to the original data table":"Restore the selected record to the original data table.","Operation administrator":"Operation administrator","Recycling rule name":"Recycling rule name","Rule name":"Rule name",controller:"Controller","data sheet":"Data table",DeletedData:"Deleted data","Arbitrary fragment fuzzy query":"Arbitrary fragment fuzzy query","Click to expand":"Click to expand","Data table primary key":"Data table primary key","Operator IP":"Operator IP","Deleted data":"Deleted data","Delete time":"Delete time"};export{e as default}; diff --git a/public/assets/dataRecycleLog-Cuy0TitL.js b/public/assets/dataRecycleLog-Cuy0TitL.js new file mode 100644 index 0000000..9754abc --- /dev/null +++ b/public/assets/dataRecycleLog-Cuy0TitL.js @@ -0,0 +1 @@ +const e={restore:"还原","Are you sure to restore the selected records?":"确定还原选中记录?","Restore the selected record to the original data table":"还原选中记录到原数据表","Operation administrator":"操作管理员","Recycling rule name":"回收规则名称","Rule name":"规则名称",controller:"控制器","data sheet":"数据表",DeletedData:"被删数据","Arbitrary fragment fuzzy query":"任意片段模糊查询","Click to expand":"点击展开","Data table primary key":"数据表主键","Operator IP":"操作者IP","Deleted data":"被删除的数据","Delete time":"删除时间"};export{e as default}; diff --git a/public/assets/design-BzGDBCWS.js b/public/assets/design-BzGDBCWS.js new file mode 100644 index 0000000..e11cdfd --- /dev/null +++ b/public/assets/design-BzGDBCWS.js @@ -0,0 +1 @@ +import{B as We,a9 as Qe,a8 as Ce,a as ke,o as Xe,n as re,aC as we,I as F,X as ie,C as s,D as y,G as m,H as d,P as c,u as n,O as p,V as w,U as h,W as S,_ as T,Z as C,Y as P,ac as Ze,$ as el,a6 as $,p as j,a7 as ll,as as I,ag as Ve,z as R}from"./vue-DweYBrEc.js";import{x as tl,e as al,N as ol,ao as rl,ap as il,a6 as A,aq as Pe,y as nl,_ as dl}from"./index-CLyTskad.js";import{S as _e,B as Te}from"./index-DQmocF1u.js";import{f as U,s as k,d as Ne,t as D,g as ne,a as sl,u as cl,b as ul,c as ml,e as De,h as fl,p as pl,i as bl}from"./index-Di_ch-O3.js";import{F as g}from"./index-CcxeqWzf.js";import{u as gl}from"./terminal-CSXwygCi.js";import{b as x,a as yl}from"./validate-Cv_tWIu0.js";import"./index-Cca48yw_.js";import"./index-LESJQkWP.js";const hl={class:"default-main"},Fl={class:"header-config-box"},vl={class:"header"},Sl={class:"header-item-box"},Cl={class:"header-right"},kl={key:0,class:"header-senior-config-box"},wl={class:"header-senior-config-form"},Vl={class:"default-sort-field-box"},Pl=["onClick","data-id"],_l={class:"design-field"},Tl={class:"design-field"},Nl={class:"design-field-right"},Dl={key:0,class:"design-field-empty"},Ul={class:"field-config ba-scroll-style"},xl={key:0,class:"design-field-empty"},Ll={class:"field-inline"},Il={class:"field-inline"},Rl={class:"field-inline"},Al={class:"ba-operate-form",style:"width: calc(100% - 80px)"},Kl={class:"block-help"},Gl={class:"block-help"},El={style:"width: calc(100% - 88px)"},ql={class:"confirm-generate-dialog-body"},Bl={class:"confirm-generate-dialog-footer"},Ml={class:"design-timeline-box"},$l={class:"design-change-tips"},jl={key:1,class:"design-change-tips"},zl={class:"confirm-generate-dialog-footer"},Ol=We({__name:"design",setup(Hl){Qe(t=>({"1bb2fb2c":e.error.tableName?"70px":"60px","6e828e72":e.draggingField?"1px dashed var(--el-color-primary)":e.fields.length?"none":"1px dashed var(--el-border-color)"}));let de=1;const{t:r}=tl.useI18n(),z=al(),E=gl(),O=Ce("formRef"),q=ol(),se=Ce("designWindowRef"),e=ke({loading:{init:!1,generate:!1,remoteSelect:!1},sync:0,table:{name:"",comment:"",quickSearchField:[],defaultSortField:"",formFields:[],columnFields:[],defaultSortType:"desc",generateRelativePath:"",isCommonModel:0,modelFile:"",controllerFile:"",validateFile:"",webViewsDir:"",databaseConnection:"",designChange:[],rebuild:"No"},fields:[],activateField:-1,fieldCollapseName:["common","base","senior"],remoteSelectPre:{show:!1,index:-1,fieldList:[],modelFileList:[],controllerFileList:[],loading:!1,hideDelField:!1,form:{table:"",pk:"",label:"",joinField:[],sourceConfigType:"crud",remoteUrl:"",modelFile:"",controllerFile:"",primaryTableAlias:""}},showHeaderSeniorConfig:!1,confirmGenerate:{show:!1,menu:!1,table:!1,controller:!1},draggingField:!1,showDesignChangeLog:!1,error:{tableName:"",fieldName:null,fieldNameDuplication:null}}),Ue=t=>{e.activateField=t},xe=t=>{let l=null;for(const i in U){const f=A(U[i],"designType",t);if(f!==!1){l=I(U[i][f]);break}}if(!l||!ce(l,e.activateField))return!1;const o=I(e.fields[e.activateField]);o.designType=t;for(const i in o.table)o.table[i]=o.table[i].value;for(const i in o.form)o.form[i]=o.form[i].value;e.fields[e.activateField]=K(o),e.fields[e.activateField].uuid=o.uuid,Ve.confirm(r("crud.crud.Reset generate type attr"),r("Reminder"),{confirmButtonText:r("Confirm")+r("Reset"),cancelButtonText:r("crud.crud.Design efficiency"),type:"warning",closeOnClickModal:!1}).then(()=>{_(),ue(e.fields[e.activateField].uuid);const i=e.fields[e.activateField].name;e.fields[e.activateField]=K(l),e.fields[e.activateField].name=i,l.primaryKey&&(e.table.quickSearchField.push(e.fields[e.activateField].uuid),e.table.defaultSortField||(e.table.defaultSortField=e.fields[e.activateField].uuid)),l.designType=="weigh"&&(e.table.defaultSortField=e.fields[e.activateField].uuid),["remoteSelect","remoteSelects"].includes(l.designType)&&Y(e.activateField,!0),l.formBuildExclude||e.table.formFields.push(e.fields[e.activateField].uuid),l.tableBuildExclude||e.table.columnFields.push(e.fields[e.activateField].uuid)}).catch(()=>{})},H=(t,l)=>{const o=e.fields[l].name;e.fields[l].name=t,G({type:"change-field-name",index:e.activateField,oldName:o,newName:t})},ce=(t,l=-1)=>t.primaryKey===!0&&e.fields.find((i,f)=>l>-1&&f==l?!1:i.primaryKey)?(R({type:"error",message:r("crud.crud.There can only be one primary key field")}),!1):!0,Le=t=>{e.error.fieldName&&(e.error.fieldName.close(),e.error.fieldName=null);for(const l in e.fields)if(!yl(e.fields[l].name)){let o=r("crud.crud.Field name is invalid It starts with a letter or underscore and cannot contain any character other than letters, digits, or underscores",{field:e.fields[l].name});return R({type:"error",message:o}),!1}return!0},Ie=t=>{e.error.fieldNameDuplication&&(e.error.fieldNameDuplication.close(),e.error.fieldNameDuplication=null);for(const l in e.fields){let o=0;for(const i in e.fields)if(e.fields[l].name==e.fields[i].name&&o++,o>1){let f=r("crud.crud.Field name duplication",{field:e.fields[l].name});return R({type:"error",message:f}),!1}}return!0},_=()=>{G({type:"change-field-attr",index:e.activateField,oldName:e.fields[e.activateField].name,newName:""})},ue=t=>{t==e.table.defaultSortField&&(e.table.defaultSortField="");for(const l in D){const o=e.table[D[l]].findIndex(i=>i==t);o!=-1&&e.table[D[l]].splice(o,1)}},me=t=>{if(e.fields[t]){if(e.activateField=-1,ue(e.fields[t].uuid),G({type:"del-field",oldName:e.fields[t].name,newName:""}),e.fields[t].designType=="weigh"){const l=e.fields.find(o=>["pk","spk"].includes(o.designType));l&&(e.table.defaultSortField=l.uuid)}e.fields.splice(t,1)}},Y=(t,l=!1)=>{e.remoteSelectPre.show=!0,e.remoteSelectPre.loading=!0,e.remoteSelectPre.index=t,e.remoteSelectPre.hideDelField=l,e.fields[t]&&e.fields[t].form["remote-table"].value&&(e.remoteSelectPre.form.table=e.fields[t].form["remote-table"].value,e.remoteSelectPre.form.pk=e.fields[t].form["remote-pk"].value,e.remoteSelectPre.form.label=e.fields[t].form["remote-field"].value,e.remoteSelectPre.form.controllerFile=e.fields[t].form["remote-controller"].value,e.remoteSelectPre.form.modelFile=e.fields[t].form["remote-model"].value,e.remoteSelectPre.form.remoteUrl=e.fields[t].form["remote-url"].value,e.remoteSelectPre.form.sourceConfigType=e.fields[t].form["remote-source-config-type"].value,e.remoteSelectPre.form.primaryTableAlias=e.fields[t].form["remote-primary-table-alias"].value,e.remoteSelectPre.form.joinField=e.fields[t].form["relation-fields"].value.split(","),Pe(e.fields[t].form["remote-table"].value,!0,e.table.databaseConnection).then(o=>{const i={};for(const f in o.data.fieldList)i[f]=(f?f+" - ":"")+o.data.fieldList[f];e.remoteSelectPre.fieldList=i}),(j(e.remoteSelectPre.modelFileList)||j(e.remoteSelectPre.controllerFileList))&&ne(e.fields[t].form["remote-table"].value).then(o=>{e.remoteSelectPre.modelFileList=o.data.modelFileList,e.remoteSelectPre.controllerFileList=o.data.controllerFileList})),e.remoteSelectPre.loading=!1},Re=(t,l)=>{if(["remoteSelect","remoteSelects"].includes(l.designType))return Y(t)},J=()=>{e.confirmGenerate.show=!1},W=()=>{e.loading.generate=!0;const t=I(e.fields);for(const o in t){for(const i in t[o].table)t[o].table[i]=t[o].table[i].value;for(const i in t[o].form)t[o].form[i]=t[o].form[i].value}const l=I(e.table);if(l.defaultSortField){const o=A(e.fields,"uuid",l.defaultSortField);o!==!1&&(l.defaultSortField=e.fields[o].name)}for(const o in D){const i=[],f=l[D[o]];for(const v in f){const b=A(e.fields,"uuid",f[v]);b!==!1&&i.push(e.fields[b].name)}l[D[o]]=i}sl({type:k.type,table:l,fields:t}).then(o=>{const i=()=>{const f=e.table.webViewsDir.replace(/^web/,".");E.toggle(!0),E.addTask("npx.prettier",!1,f,()=>{E.toggle(!1),E.toggleDot(!0),re(()=>{R({type:"error",message:r("crud.crud.Vite hot warning")})})})};e.sync>0&&z.crud.syncedUpdate==="yes"||e.sync==0&&z.crud.syncType=="automatic"?cl({logs:[{...o.data.crudLog,public:z.crud.syncAutoPublic==="yes"?1:0,newLog:1}],save:1}).then(f=>{ul({syncIds:f.data.syncIds}).finally(()=>{i()})}).catch(()=>{i()}):i()}).finally(()=>{e.loading.generate=!1,J()})},Ae=()=>{if(!Le()||!Ie())return;let t="";if(e.fields.findIndex(o=>o.primaryKey)===-1&&(t=r("crud.crud.Please design the primary key field!")),e.table.name||(t=r("crud.crud.Please enter the data table name!")),e.error.tableName&&(t=r("crud.crud.Please enter the correct table name!")),t){R({type:"error",message:t});return}e.loading.generate=!0,ml({table:e.table.name,connection:e.table.databaseConnection,webViewsDir:e.table.webViewsDir,controllerFile:e.table.controllerFile}).then(()=>{W()}).catch(o=>{e.loading.generate=!1,o.code==-1?(e.confirmGenerate.menu=o.data.menu,e.confirmGenerate.table=o.data.table,e.confirmGenerate.controller=o.data.controller,fe()||e.confirmGenerate.controller||e.confirmGenerate.menu?e.confirmGenerate.show=!0:W()):R({type:"error",message:o.msg})})},fe=()=>e.confirmGenerate.table&&(k.type=="create"||e.table.rebuild=="Yes"),Ke=()=>{if(!e.table.name&&!e.table.comment&&!e.fields.length)return De("start");Ve.confirm(r("crud.crud.It is irreversible to give up the design Are you sure you want to give up?"),r("Reminder"),{confirmButtonText:r("crud.crud.give up"),cancelButtonText:r("Cancel"),type:"warning"}).then(()=>{De("start")}).catch(()=>{})},K=t=>{t=I(t);const l=I(Ne[t.designType]);for(const o in t.form)l.form[o]&&(l.form[o].value=t.form[o]),o=="image-multi"&&t.form[o]&&(l.table.render=fl("render","images"));for(const o in t.table)l.table[o]&&(l.table[o].value=t.table[o]);return t.form=l.form,t.table=l.table,t.uuid=nl(),t},pe=t=>{if(_(),["enum","set"].includes(e.fields[e.activateField].type)){if(!t){e.fields[e.activateField].dataType=`${e.fields[e.activateField].type}()`;return}t=t.replaceAll(":",":"),t=t.replaceAll(",",",");let l=t.split(":");l[1]&&(l=l[1].split(","),l=l.map(o=>{if(!o)return"";let i=o.split("=");return i[0]&&i[1]?`'${i[0]}'`:""}).filter(o=>o!=""),e.fields[e.activateField].dataType=`${e.fields[e.activateField].type}(${l.join(",")})`)}},Ge=()=>{if(Q(),!!["db","sql","log"].includes(k.type)){if(e.loading.init=!0,k.type=="log"){pl(k.startData.logId,k.startData.logType).then(t=>{const l=t.data.fields;for(const o in l){const i=K(l[o]);typeof i.defaultType>"u"&&(i.default&&["none","null","empty string"].includes(i.default)?(i.defaultType=i.default.toUpperCase(),i.default=""):i.defaultType="INPUT"),e.fields.push(i)}if(t.data.table.defaultSortField){const o=A(e.fields,"name",t.data.table.defaultSortField);o!==!1&&(t.data.table.defaultSortField=e.fields[o].uuid)}for(const o in D){const i=[],f=t.data.table[D[o]];for(const v in f){const b=A(e.fields,"name",f[v]);b!==!1&&i.push(e.fields[b].uuid)}t.data.table[D[o]]=i}e.sync=t.data.sync,e.table=t.data.table,Q(),t.data.table.empty&&(e.table.rebuild="Yes"),e.table.isCommonModel=parseInt(t.data.table.isCommonModel),e.table.databaseConnection=t.data.table.databaseConnection?t.data.table.databaseConnection:""}).finally(()=>{e.loading.init=!1});return}bl({type:k.type,table:k.startData.table,sql:k.startData.sql,connection:k.startData.databaseConnection}).then(t=>{let l=[];for(const o in t.data.columns){const i=K(t.data.columns[o]);["id","update_time","create_time","updatetime","createtime"].includes(i.name)||e.table.formFields.push(i.uuid),["textarea","file","files","editor","password","array"].includes(i.designType)||e.table.columnFields.push(i.uuid),i.designType=="pk"&&(e.table.defaultSortField=i.uuid,e.table.quickSearchField.push(i.uuid)),i.designType=="weigh"&&(e.table.defaultSortField=i.uuid),l.push(i)}e.fields=l,e.table.comment=t.data.comment,e.table.databaseConnection=k.startData.databaseConnection,t.data.empty&&(e.table.rebuild="Yes"),k.type=="db"&&k.startData.table&&(e.table.name=k.startData.table,B(k.startData.table))}).finally(()=>{e.loading.init=!1})}},be=t=>A(e.fields,"name",t)!==!1?(t+=de,de++,be(t)):t;Xe(()=>{Ge();const t=_e.create(se.value,{group:"design-field",animation:200,filter:".design-field-empty",onAdd:l=>{var f,v;const o=(v=(f=l.originalEvent)==null?void 0:f.dataTransfer)==null?void 0:v.getData("name"),i=U[o];if(i&&i[l.oldIndex]){const b=K(i[l.oldIndex]);if(b.primaryKey)if(ce(b))e.table.quickSearchField.push(b.uuid),e.table.defaultSortField||(e.table.defaultSortField=b.uuid);else return l.item.remove();b.designType=="weigh"&&(e.table.defaultSortField=b.uuid),b.name=be(b.name),e.fields.splice(l.newIndex,0,b),G({type:"add-field",index:l.newIndex,newName:b.name,oldName:"",after:l.newIndex===0?"FIRST FIELD":e.fields[l.newIndex-1].name}),["remoteSelect","remoteSelects"].includes(b.designType)&&Y(l.newIndex,!0),b.formBuildExclude||e.table.formFields.push(b.uuid),b.tableBuildExclude||e.table.columnFields.push(b.uuid)}l.item.remove(),re(()=>{t.sort(we(e.fields.length).map(b=>b.toString()))})},onEnd:l=>{const o=e.fields[l.oldIndex];e.fields.splice(l.oldIndex,1),e.fields.splice(l.newIndex,0,o),G({type:"change-field-order",index:l.newIndex,newName:"",oldName:o.name,after:l.newIndex===0?"FIRST FIELD":e.fields[l.newIndex-1].name}),re(()=>{t.sort(we(e.fields.length).map(i=>i.toString()))})}});q.value.forEach((l,o)=>{_e.create(l,{sort:!1,group:{name:"design-field",pull:"clone",put:!1},animation:200,setData:i=>{i.setData("name",Object.keys(U)[o])},onStart:()=>{e.draggingField=!0},onEnd:()=>{e.draggingField=!1}})})});const Ee=t=>{if(!t)return e.error.tableName="";/^[a-z_][a-z0-9_]*$/.test(t)?(e.error.tableName="",B(t)):e.error.tableName=r("crud.crud.Use lower case underlined for table names"),Q()},Q=()=>{e.table.rebuild="No",e.table.designChange=[]},B=t=>{t&&ne(t,e.table.isCommonModel).then(l=>{e.table.modelFile=l.data.modelFile,e.table.controllerFile=l.data.controllerFile,e.table.validateFile=l.data.validateFile,e.table.webViewsDir=l.data.webViewsDir,e.table.generateRelativePath=t.replaceAll("/","\\")})},qe=()=>{B(e.table.generateRelativePath)},Be=()=>{e.remoteSelectPre.form.table&&(X(["table"]),e.loading.remoteSelect=!0,Pe(e.remoteSelectPre.form.table,!0,e.table.databaseConnection).then(t=>{e.remoteSelectPre.form.pk=t.data.pk;const l=["name","title","username","nickname"];for(const i in t.data.fieldList)if(l.includes(i)){e.remoteSelectPre.form.label=i,e.remoteSelectPre.form.joinField.push(i);break}const o={};for(const i in t.data.fieldList)o[i]=(i?i+" - ":"")+t.data.fieldList[i];e.remoteSelectPre.fieldList=o}).finally(()=>{e.loading.remoteSelect=!1}),ne(e.remoteSelectPre.form.table).then(t=>{e.remoteSelectPre.modelFileList=t.data.modelFileList,e.remoteSelectPre.controllerFileList=t.data.controllerFileList,Object.keys(t.data.modelFileList).includes(t.data.modelFile)&&(e.remoteSelectPre.form.modelFile=t.data.modelFile),Object.keys(t.data.controllerFileList).includes(t.data.controllerFile)&&(e.remoteSelectPre.form.controllerFile=t.data.controllerFile)}))},ge=()=>{const t=()=>{if(e.fields[e.remoteSelectPre.index].name=="remote_select"){const l=e.remoteSelectPre.form.table+(e.fields[e.remoteSelectPre.index].designType=="remoteSelect"?"_id":"_ids");H(l,e.remoteSelectPre.index)}e.fields[e.remoteSelectPre.index].form["remote-table"].value=e.remoteSelectPre.form.table,e.fields[e.remoteSelectPre.index].form["remote-pk"].value=e.remoteSelectPre.form.pk,e.fields[e.remoteSelectPre.index].form["remote-field"].value=e.remoteSelectPre.form.label,e.fields[e.remoteSelectPre.index].form["remote-controller"].value=e.remoteSelectPre.form.controllerFile,e.fields[e.remoteSelectPre.index].form["remote-model"].value=e.remoteSelectPre.form.modelFile,e.fields[e.remoteSelectPre.index].form["remote-url"].value=e.remoteSelectPre.form.remoteUrl,e.fields[e.remoteSelectPre.index].form["remote-source-config-type"].value=e.remoteSelectPre.form.sourceConfigType,e.fields[e.remoteSelectPre.index].form["remote-primary-table-alias"].value=e.remoteSelectPre.form.primaryTableAlias,e.fields[e.remoteSelectPre.index].form["relation-fields"].value=e.fields[e.remoteSelectPre.index].designType=="remoteSelect"?e.remoteSelectPre.form.joinField.join(","):e.remoteSelectPre.form.label,e.remoteSelectPre.index=-1,e.remoteSelectPre.show=!1,X()};O.value&&O.value.validate(l=>{l&&t()})},ye=()=>{e.remoteSelectPre.show=!1,X(),e.remoteSelectPre.index!==-1&&e.remoteSelectPre.hideDelField&&me(e.remoteSelectPre.index)},X=(t=[])=>{for(const l in e.remoteSelectPre.form)t.includes(l)||(l=="joinField"?e.remoteSelectPre.form[l]=[]:l=="sourceConfigType"?e.remoteSelectPre.form[l]="crud":e.remoteSelectPre.form[l]="")},Me=ke({table:[x({name:"required",title:r("crud.crud.remote-table")})],pk:[x({name:"required",title:r("crud.crud.Drop down value field")})],label:[x({name:"required",title:r("crud.crud.Drop down label field")})],joinField:[x({name:"required",title:r("crud.crud.Fields displayed in the table")})],controllerFile:[x({name:"required",title:r("crud.crud.Controller position")})],modelFile:[x({name:"required",title:r("crud.crud.Data Model Location")})],remoteUrl:[x({name:"required",title:r("crud.crud.remote-url")})]}),G=t=>{if(k.type=="create")return;let l=!0;if(t.type=="change-field-name"){for(const o in e.table.designChange)e.table.designChange[o].type=="change-field-attr"&&t.oldName==e.table.designChange[o].oldName&&(e.table.designChange[o].oldName=t.newName),e.table.designChange[o].type=="change-field-order"&&t.oldName==e.table.designChange[o].oldName&&(e.table.designChange[o].oldName=t.newName),e.table.designChange[o].after==t.oldName&&(e.table.designChange[o].after=t.newName);for(const o in e.table.designChange){if(e.table.designChange[o].type=="add-field"&&e.table.designChange[o].newName==t.oldName){e.table.designChange[o].newName=t.newName,l=!1;break}if(e.table.designChange[o].type=="change-field-name"&&e.table.designChange[o].newName==t.oldName){t.oldName=e.table.designChange[o].oldName,e.table.designChange[o]=t,e.table.designChange[o].newName==e.table.designChange[o].oldName&&e.table.designChange.splice(o,1),l=!1;break}}}else if(t.type=="del-field"){let o=!1;e.table.designChange=e.table.designChange.filter(i=>{o=i.type=="add-field"&&i.newName==t.oldName;const f=i.type=="change-field-attr"&&i.oldName==t.oldName,v=i.type=="change-field-order"&&i.oldName==t.oldName;return!o&&!f&&!v}),e.table.designChange=e.table.designChange.filter(i=>{const f=i.type=="change-field-name"&&i.newName==t.oldName;return f&&(t.oldName=i.oldName),!f}),o&&(l=!1);for(const i in e.table.designChange)if(e.table.designChange[i].type=="del-field"&&e.table.designChange[i].oldName==t.oldName){l=!1;break}}else if(t.type=="change-field-attr")for(const o in e.table.designChange){if(e.table.designChange[o].type=="change-field-attr"&&e.table.designChange[o].oldName==t.oldName){l=!1;break}if(e.table.designChange[o].type=="add-field"&&e.table.designChange[o].newName==t.oldName){l=!1;break}}else if(t.type=="change-field-order")for(const o in e.table.designChange){if(e.table.designChange[o].type=="add-field"&&e.table.designChange[o].newName==t.oldName){e.table.designChange[o].after=t.after,l=!1;break}if(e.table.designChange[o].type=="change-field-order"&&e.table.designChange[o].oldName==t.oldName){e.table.designChange[o]=t,l=!1;break}}t.sync=!0,l&&e.table.designChange.push(t)},$e=t=>{switch(t.type){case"add-field":return r("crud.crud.Add field")+" "+t.newName;case"change-field-attr":return r("crud.crud.Modify field properties")+" "+t.oldName;case"change-field-name":return r("crud.crud.Modify field name")+" "+t.oldName+" => "+t.newName;case"del-field":return r("crud.crud.Delete field")+" "+t.oldName;case"change-field-order":return r("crud.crud.Modify field order")+" "+t.oldName+" => "+(t.after=="FIRST FIELD"?r("crud.crud.First field"):t.after+" "+r("crud.crud.After"));default:return r("Unknown")}},je=t=>{let l="";switch(t){case"change-field-name":l="warning";break;case"del-field":l="danger";break;case"add-field":l="primary";break;case"change-field-attr":l="success";break;case"change-field-order":l="info";break;default:l="success";break}return l};return(t,l)=>{const o=F("el-link"),i=F("el-button"),f=F("el-row"),v=F("el-option"),b=F("el-select"),N=F("el-form-item"),he=F("el-checkbox"),Fe=F("el-input"),Z=F("Icon"),ee=F("el-collapse-item"),ze=F("el-collapse"),le=F("el-col"),M=F("el-divider"),ve=F("el-form"),Oe=F("el-text"),Se=F("el-scrollbar"),te=F("el-dialog"),ae=F("el-alert"),He=F("el-timeline-item"),Ye=F("el-timeline"),L=ie("blur"),oe=ie("loading"),Je=ie("drag");return s(),y("div",hl,[m("div",Fl,[d(f,{class:"header-box"},{default:c(()=>[m("div",vl,[m("div",Sl,[d(g,{class:"mr-20 table-name-item",label:n(r)("crud.log.table_name"),modelValue:e.table.name,"onUpdate:modelValue":l[0]||(l[0]=a=>e.table.name=a),type:"string",placeholder:n(r)("crud.crud.Name of the data table"),"input-attr":{onChange:Ee},error:e.error.tableName},null,8,["label","modelValue","placeholder","input-attr","error"]),d(g,{class:"table-comment-item",label:n(r)("crud.crud.Data Table Notes"),modelValue:e.table.comment,"onUpdate:modelValue":l[1]||(l[1]=a=>e.table.comment=a),type:"string",placeholder:n(r)("crud.crud.For example: `user table` will be generated into `user management`")},null,8,["label","modelValue","placeholder"])]),m("div",Cl,[n(k).type!="create"?(s(),p(o,{key:0,onClick:l[2]||(l[2]=a=>e.showDesignChangeLog=!0),class:"design-change-log",type:"primary"},{default:c(()=>[w(h(n(r)("crud.crud.Table design change")),1)]),_:1})):S("",!0),T((s(),p(i,{type:"primary",loading:e.loading.generate,onClick:Ae},{default:c(()=>[w(h(n(r)("crud.crud.Generate CRUD code")),1)]),_:1},8,["loading"])),[[L]]),T((s(),p(i,{onClick:Ke,type:"danger"},{default:c(()=>[w(h(n(r)("crud.crud.give up")),1)]),_:1})),[[L]])])])]),_:1}),d(Ze,{name:e.showHeaderSeniorConfig?"el-zoom-in-top":"el-zoom-in-bottom"},{default:c(()=>[e.showHeaderSeniorConfig?(s(),y("div",kl,[m("div",wl,[d(N,{"label-width":140,label:n(r)("crud.crud.Table Quick Search Fields")},{default:c(()=>[d(b,{clearable:!0,multiple:!0,class:"w100",modelValue:e.table.quickSearchField,"onUpdate:modelValue":l[3]||(l[3]=a=>e.table.quickSearchField=a),placement:"bottom"},{default:c(()=>[(s(!0),y(C,null,P(e.fields,(a,u)=>(s(),p(v,{key:u+a.uuid,label:a.name+(a.comment?"-"+a.comment:a.title),value:a.uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),m("div",Vl,[d(N,{"label-width":140,class:"default-sort-field mr-20",label:n(r)("crud.crud.Table Default Sort Fields")},{default:c(()=>[d(b,{clearable:!0,modelValue:e.table.defaultSortField,"onUpdate:modelValue":l[4]||(l[4]=a=>e.table.defaultSortField=a),placement:"bottom"},{default:c(()=>[(s(!0),y(C,null,P(e.fields,(a,u)=>(s(),p(v,{key:u+a.uuid,label:a.name+(a.comment?"-"+a.comment:a.title),value:a.uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),d(g,{class:"default-sort-field-type",label:n(r)("crud.crud.sort order"),modelValue:e.table.defaultSortType,"onUpdate:modelValue":l[5]||(l[5]=a=>e.table.defaultSortType=a),type:"select","input-attr":{content:{desc:n(r)("crud.crud.sort order desc"),asc:n(r)("crud.crud.sort order asc")}}},null,8,["label","modelValue","input-attr"])]),d(N,{"label-width":140,label:n(r)("crud.crud.Fields as Table Columns")},{default:c(()=>[d(b,{clearable:!0,multiple:!0,class:"w100",modelValue:e.table.columnFields,"onUpdate:modelValue":l[6]||(l[6]=a=>e.table.columnFields=a),placement:"bottom"},{default:c(()=>[(s(!0),y(C,null,P(e.fields,(a,u)=>(s(),p(v,{key:u+a.uuid,label:a.name+(a.comment?"-"+a.comment:a.title),value:a.uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),d(N,{"label-width":140,label:n(r)("crud.crud.Fields as form items")},{default:c(()=>[d(b,{clearable:!0,multiple:!0,class:"w100",modelValue:e.table.formFields,"onUpdate:modelValue":l[7]||(l[7]=a=>e.table.formFields=a),placement:"bottom"},{default:c(()=>[(s(!0),y(C,null,P(e.fields,(a,u)=>(s(),p(v,{key:u+a.uuid,label:a.name+(a.comment?"-"+a.comment:a.title),value:a.uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),d(g,{label:n(r)("crud.crud.The relative path to the generated code"),modelValue:e.table.generateRelativePath,"onUpdate:modelValue":l[8]||(l[8]=a=>e.table.generateRelativePath=a),type:"string","label-width":140,"block-help":n(r)("crud.crud.For quick combination code generation location, please fill in the relative path"),"input-attr":{onChange:B}},null,8,["label","modelValue","block-help","input-attr"]),d(g,{label:n(r)("crud.crud.Generated Controller Location"),modelValue:e.table.controllerFile,"onUpdate:modelValue":l[9]||(l[9]=a=>e.table.controllerFile=a),type:"string","label-width":140},null,8,["label","modelValue"]),d(N,{label:n(r)("crud.crud.Generated Data Model Location"),"label-width":140},{default:c(()=>[d(Fe,{modelValue:e.table.modelFile,"onUpdate:modelValue":l[11]||(l[11]=a=>e.table.modelFile=a),type:"string"},{append:c(()=>[d(he,{onChange:qe,modelValue:e.table.isCommonModel,"onUpdate:modelValue":l[10]||(l[10]=a=>e.table.isCommonModel=a),label:n(r)("crud.crud.Common model"),size:"small","true-value":1,"false-value":0},null,8,["modelValue","label"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),d(g,{label:n(r)("crud.crud.Generated Validator Location"),modelValue:e.table.validateFile,"onUpdate:modelValue":l[12]||(l[12]=a=>e.table.validateFile=a),type:"string","label-width":140},null,8,["label","modelValue"]),d(g,{label:n(r)("crud.crud.WEB end view directory"),modelValue:e.table.webViewsDir,"onUpdate:modelValue":l[13]||(l[13]=a=>e.table.webViewsDir=a),type:"string","label-width":140},null,8,["label","modelValue"]),d(g,{label:n(r)("Database connection"),modelValue:e.table.databaseConnection,"onUpdate:modelValue":l[14]||(l[14]=a=>e.table.databaseConnection=a),type:"remoteSelect","label-width":140,"block-help":n(r)("Database connection help"),"input-attr":{pk:"key",field:"key",remoteUrl:n(rl)}},null,8,["label","modelValue","block-help","input-attr"])])])):S("",!0)]),_:1},8,["name"]),m("div",{onClick:l[15]||(l[15]=a=>e.showHeaderSeniorConfig=!e.showHeaderSeniorConfig),class:"header-senior-config"},[m("span",null,h(n(r)("crud.crud.Advanced Configuration")),1),d(Z,{class:"senior-config-arrow-icon",size:"14",color:"var(--el-text-color-primary)",name:e.showHeaderSeniorConfig?"el-icon-ArrowUp":"el-icon-ArrowDown"},null,8,["name"])])]),T((s(),p(f,{class:"fields-box",gutter:20},{default:c(()=>[d(le,{xs:24,span:6},{default:c(()=>[d(ze,{class:"field-collapse",modelValue:e.fieldCollapseName,"onUpdate:modelValue":l[16]||(l[16]=a=>e.fieldCollapseName=a)},{default:c(()=>[d(ee,{title:n(r)("crud.crud.Common Fields"),name:"common"},{default:c(()=>[m("div",{class:"field-box",ref:n(q).set},[(s(!0),y(C,null,P(n(U).common,(a,u)=>(s(),y("div",{key:u,class:"field-item"},[m("span",null,h(a.title),1)]))),128))],512)]),_:1},8,["title"]),d(ee,{title:n(r)("crud.crud.Base Fields"),name:"base"},{default:c(()=>[m("div",{class:"field-box",ref:n(q).set},[(s(!0),y(C,null,P(n(U).base,(a,u)=>(s(),y("div",{key:u,class:"field-item"},[m("span",null,h(a.title),1)]))),128))],512)]),_:1},8,["title"]),d(ee,{title:n(r)("crud.crud.Advanced Fields"),name:"senior"},{default:c(()=>[m("div",{class:"field-box",ref:n(q).set},[(s(!0),y(C,null,P(n(U).senior,(a,u)=>(s(),y("div",{key:u,class:"field-item"},[m("span",null,h(a.title),1)]))),128))],512)]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1}),d(le,{xs:24,span:12},{default:c(()=>[m("div",{ref_key:"designWindowRef",ref:se,class:"design-window ba-scroll-style"},[(s(!0),y(C,null,P(e.fields,(a,u)=>(s(),y("div",{key:u,class:el([u===e.activateField?"activate":"","design-field-box"]),onClick:V=>Ue(u),"data-id":u},[m("div",_l,[m("span",null,h(n(r)("crud.crud.Field Name"))+":",1),d(Te,{onPointerdown:l[17]||(l[17]=$(()=>{},["stop"])),class:"design-field-name-input","model-value":a.name,type:"string",attr:{size:"small",onInput:V=>H(V,u)}},null,8,["model-value","attr"])]),m("div",Tl,[m("span",null,h(n(r)("crud.crud.field comment"))+":",1),d(Te,{onPointerdown:l[18]||(l[18]=$(()=>{},["stop"])),class:"design-field-name-comment",modelValue:a.comment,"onUpdate:modelValue":V=>a.comment=V,type:"string",attr:{size:"small",onChange:pe}},null,8,["modelValue","onUpdate:modelValue","attr"])]),m("div",Nl,[["remoteSelect","remoteSelects"].includes(a.designType)?T((s(),p(i,{key:0,onClick:$(V=>Re(u,a),["stop"]),type:"primary",size:"small",circle:""},{default:c(()=>[d(Z,{color:"var(--el-color-white)",size:"15",name:"fa fa-pencil icon"})]),_:2},1032,["onClick"])),[[L]]):S("",!0),T((s(),p(i,{onClick:$(V=>me(u),["stop"]),type:"danger",size:"small",circle:""},{default:c(()=>[d(Z,{color:"var(--el-color-white)",size:"15",name:"fa fa-trash"})]),_:2},1032,["onClick"])),[[L]])])],10,Pl))),128)),!e.fields.length&&!e.draggingField?(s(),y("div",Dl,h(n(r)("crud.crud.Drag the left element here to start designing CRUD")),1)):S("",!0)],512)]),_:1}),d(le,{xs:24,span:6},{default:c(()=>[m("div",Ul,[e.activateField===-1?(s(),y("div",xl,h(n(r)("crud.crud.Please select a field from the left first")),1)):(s(),y("div",{key:"activate-field-"+e.activateField},[d(ve,{"label-position":"top"},{default:c(()=>[d(M,{"content-position":"left"},{default:c(()=>[w(h(n(r)("crud.crud.Common")),1)]),_:1}),d(N,{label:n(r)("crud.crud.Generate type")},{default:c(()=>[d(b,{onChange:l[19]||(l[19]=a=>xe(a)),class:"w100","model-value":e.fields[e.activateField].designType,placement:"bottom"},{default:c(()=>[(s(!0),y(C,null,P(n(Ne),(a,u)=>(s(),p(v,{key:u,label:a.name,value:u},null,8,["label","value"]))),128))]),_:1},8,["model-value"])]),_:1},8,["label"]),d(g,{label:n(r)("crud.crud.Field comments (CRUD dictionary)"),type:"textarea","input-attr":{rows:2,onChange:pe},placeholder:n(r)("crud.crud.The field comment will be used as the CRUD dictionary, and will be identified as the field title before the colon, and as the data dictionary after the colon"),modelValue:e.fields[e.activateField].comment,"onUpdate:modelValue":l[20]||(l[20]=a=>e.fields[e.activateField].comment=a)},null,8,["label","input-attr","placeholder","modelValue"]),d(M,{"content-position":"left"},{default:c(()=>[w(h(n(r)("crud.crud.Field Properties")),1)]),_:1}),d(g,{label:n(r)("crud.crud.Field Name"),type:"string","model-value":e.fields[e.activateField].name,"input-attr":{onInput:a=>H(a,e.activateField)}},null,8,["label","model-value","input-attr"]),e.fields[e.activateField].dataType?(s(),p(g,{key:0,label:n(r)("crud.crud.Field Type"),"input-attr":{onChange:_},type:"textarea",modelValue:e.fields[e.activateField].dataType,"onUpdate:modelValue":l[21]||(l[21]=a=>e.fields[e.activateField].dataType=a)},null,8,["label","input-attr","modelValue"])):(s(),y(C,{key:1},[d(g,{label:n(r)("crud.crud.Field Type"),"input-attr":{onChange:_},type:"string",modelValue:e.fields[e.activateField].type,"onUpdate:modelValue":l[22]||(l[22]=a=>e.fields[e.activateField].type=a)},null,8,["label","input-attr","modelValue"]),m("div",Ll,[d(g,{label:n(r)("crud.crud.length"),type:"number",modelValue:e.fields[e.activateField].length,"onUpdate:modelValue":l[23]||(l[23]=a=>e.fields[e.activateField].length=a),"input-attr":{onChange:_}},null,8,["label","modelValue","input-attr"]),d(g,{label:n(r)("crud.crud.decimal point"),type:"number",modelValue:e.fields[e.activateField].precision,"onUpdate:modelValue":l[24]||(l[24]=a=>e.fields[e.activateField].precision=a),"input-attr":{onChange:_}},null,8,["label","modelValue","input-attr"])])],64)),d(N,{label:n(r)("crud.crud.Field Defaults")},{default:c(()=>[d(b,{modelValue:e.fields[e.activateField].defaultType,"onUpdate:modelValue":l[25]||(l[25]=a=>e.fields[e.activateField].defaultType=a)},{default:c(()=>[d(v,{label:"手动输入",value:"INPUT"}),d(v,{label:"EMPTY STRING(空字符串)",value:"EMPTY STRING"}),d(v,{label:"NULL",value:"NULL"}),d(v,{label:"无(不设默认值)",value:"NONE"})]),_:1},8,["modelValue"]),e.fields[e.activateField].defaultType=="INPUT"?(s(),p(Fe,{key:0,placeholder:n(r)("crud.crud.Please input the default value"),type:"text",modelValue:e.fields[e.activateField].default,"onUpdate:modelValue":l[26]||(l[26]=a=>e.fields[e.activateField].default=a),onChange:_,class:"default-input"},null,8,["placeholder","modelValue"])):S("",!0)]),_:1},8,["label"]),m("div",Il,[d(g,{class:"form-item-position-right",label:n(r)("crud.state.Primary key"),type:"switch",modelValue:e.fields[e.activateField].primaryKey,"onUpdate:modelValue":l[27]||(l[27]=a=>e.fields[e.activateField].primaryKey=a),"input-attr":{onChange:_}},null,8,["label","modelValue","input-attr"]),d(g,{class:"form-item-position-right",label:n(r)("crud.crud.Auto increment"),type:"switch",modelValue:e.fields[e.activateField].autoIncrement,"onUpdate:modelValue":l[28]||(l[28]=a=>e.fields[e.activateField].autoIncrement=a),"input-attr":{onChange:_}},null,8,["label","modelValue","input-attr"])]),m("div",Rl,[d(g,{class:"form-item-position-right",label:n(r)("crud.crud.Unsigned"),type:"switch",modelValue:e.fields[e.activateField].unsigned,"onUpdate:modelValue":l[29]||(l[29]=a=>e.fields[e.activateField].unsigned=a),"input-attr":{onChange:_}},null,8,["label","modelValue","input-attr"]),d(g,{class:"form-item-position-right",label:n(r)("crud.crud.Allow NULL"),type:"switch",modelValue:e.fields[e.activateField].null,"onUpdate:modelValue":l[30]||(l[30]=a=>e.fields[e.activateField].null=a),"input-attr":{onChange:_}},null,8,["label","modelValue","input-attr"])]),n(j)(e.fields[e.activateField].table)?S("",!0):(s(),y(C,{key:2},[d(M,{"content-position":"left"},{default:c(()=>[w(h(n(r)("crud.crud.Field Table Properties")),1)]),_:1}),(s(!0),y(C,null,P(e.fields[e.activateField].table,(a,u)=>(s(),p(g,{key:u,label:t.$t("crud.crud."+u),type:a.type,modelValue:e.fields[e.activateField].table[u].value,"onUpdate:modelValue":V=>e.fields[e.activateField].table[u].value=V,placeholder:e.fields[e.activateField].table[u].placeholder??"","input-attr":{content:e.fields[e.activateField].table[u].options??{},...e.fields[e.activateField].table[u].attr??{}}},null,8,["label","type","modelValue","onUpdate:modelValue","placeholder","input-attr"]))),128))],64)),n(j)(e.fields[e.activateField].form)?S("",!0):(s(),y(C,{key:3},[d(M,{"content-position":"left"},{default:c(()=>[w(h(n(r)("crud.crud.Field Form Properties")),1)]),_:1}),(s(!0),y(C,null,P(e.fields[e.activateField].form,(a,u)=>(s(),y(C,{key:u},[a.type!="hidden"?(s(),p(g,{key:0,label:t.$t("crud.crud."+u),type:a.type,modelValue:e.fields[e.activateField].form[u].value,"onUpdate:modelValue":V=>e.fields[e.activateField].form[u].value=V,placeholder:e.fields[e.activateField].form[u].placeholder??"","input-attr":{content:e.fields[e.activateField].form[u].options??{},...e.fields[e.activateField].form[u].attr??{}}},null,8,["label","type","modelValue","onUpdate:modelValue","placeholder","input-attr"])):S("",!0)],64))),128))],64))]),_:1})]))])]),_:1})]),_:1})),[[oe,e.loading.init]]),d(te,{onClose:ye,class:"ba-operate-dialog","model-value":e.remoteSelectPre.show,title:n(r)("crud.crud.Remote drop-down association information"),"close-on-click-modal":!1,"destroy-on-close":!0,onKeyup:ll(ge,["enter"])},{footer:c(()=>[m("div",El,[d(i,{onClick:ye},{default:c(()=>[w(h(t.$t("Cancel")),1)]),_:1}),T((s(),p(i,{onClick:ge,type:"primary"},{default:c(()=>[w(h(t.$t("Save")),1)]),_:1})),[[L]])])]),default:c(()=>[d(Se,{"max-height":"60vh"},{default:c(()=>[m("div",Al,[e.remoteSelectPre.index!=-1&&e.fields[e.remoteSelectPre.index]?T((s(),p(ve,{key:0,ref_key:"formRef",ref:O,model:e.remoteSelectPre.form,rules:Me,"label-position":"right","label-width":"160px"},{default:c(()=>[(s(),p(g,{label:n(r)("crud.crud.Associated Data Table"),modelValue:e.remoteSelectPre.form.table,"onUpdate:modelValue":l[31]||(l[31]=a=>e.remoteSelectPre.form.table=a),type:"remoteSelect",key:e.table.databaseConnection,"input-attr":{pk:"table",field:"comment",params:{connection:e.table.databaseConnection,samePrefix:1,excludeTable:["area","token","captcha","admin_group_access","config","admin_log","user_money_log","user_score_log"]},remoteUrl:n(il),onChange:Be},prop:"table"},null,8,["label","modelValue","input-attr"])),T((s(),y("div",null,[(s(),p(g,{prop:"pk",type:"select",label:n(r)("crud.crud.Drop down value field"),modelValue:e.remoteSelectPre.form.pk,"onUpdate:modelValue":l[32]||(l[32]=a=>e.remoteSelectPre.form.pk=a),placeholder:n(r)("crud.crud.Please select the value field of the select component"),key:"select-value"+JSON.stringify(e.remoteSelectPre.fieldList),"input-attr":{content:e.remoteSelectPre.fieldList}},null,8,["label","modelValue","placeholder","input-attr"])),(s(),p(g,{prop:"label",type:"select",label:n(r)("crud.crud.Drop down label field"),modelValue:e.remoteSelectPre.form.label,"onUpdate:modelValue":l[33]||(l[33]=a=>e.remoteSelectPre.form.label=a),placeholder:n(r)("crud.crud.Please select the label field of the select component"),key:"select-label"+JSON.stringify(e.remoteSelectPre.fieldList),"input-attr":{content:e.remoteSelectPre.fieldList}},null,8,["label","modelValue","placeholder","input-attr"])),e.fields[e.remoteSelectPre.index].designType=="remoteSelect"?(s(),p(g,{prop:"joinField",type:"selects",label:n(r)("crud.crud.Fields displayed in the table"),modelValue:e.remoteSelectPre.form.joinField,"onUpdate:modelValue":l[34]||(l[34]=a=>e.remoteSelectPre.form.joinField=a),placeholder:n(r)("crud.crud.Please select the fields displayed in the table"),key:"join-field"+JSON.stringify(e.remoteSelectPre.fieldList),"input-attr":{content:e.remoteSelectPre.fieldList}},null,8,["label","modelValue","placeholder","input-attr"])):S("",!0),d(g,{label:n(r)("crud.crud.Data source configuration type"),modelValue:e.remoteSelectPre.form.sourceConfigType,"onUpdate:modelValue":l[35]||(l[35]=a=>e.remoteSelectPre.form.sourceConfigType=a),type:"radio","input-attr":{border:!0,content:{crud:n(r)("crud.crud.Fast configuration with generated controllers and models"),custom:n(r)("crud.crud.Custom configuration")}}},null,8,["label","modelValue","input-attr"]),e.remoteSelectPre.form.sourceConfigType=="crud"?(s(),p(g,{prop:"controllerFile",type:"select",label:n(r)("crud.crud.Controller position"),modelValue:e.remoteSelectPre.form.controllerFile,"onUpdate:modelValue":l[36]||(l[36]=a=>e.remoteSelectPre.form.controllerFile=a),placeholder:n(r)("crud.crud.Please select the controller of the data table"),key:"controller-file"+JSON.stringify(e.remoteSelectPre.controllerFileList),"input-attr":{content:e.remoteSelectPre.controllerFileList},"block-help":n(r)("crud.crud.The remote pull-down will request the corresponding controller to obtain data, so it is recommended that you create the CRUD of the associated table")},null,8,["label","modelValue","placeholder","input-attr","block-help"])):S("",!0),(s(),p(g,{prop:e.remoteSelectPre.form.sourceConfigType=="crud"?"modelFile":"",type:"select",label:n(r)("crud.crud.Data Model Location"),modelValue:e.remoteSelectPre.form.modelFile,"onUpdate:modelValue":l[37]||(l[37]=a=>e.remoteSelectPre.form.modelFile=a),placeholder:n(r)("crud.crud.Please select the data model location of the data table"),key:"model-file"+JSON.stringify(e.remoteSelectPre.modelFileList),"input-attr":{content:e.remoteSelectPre.modelFileList},"block-help":e.remoteSelectPre.form.sourceConfigType=="crud"?"":n(r)("crud.crud.If it is left blank, the model of the associated table will be generated automatically If the table already has a model, it is recommended to select it to avoid repeated generation")},null,8,["prop","label","modelValue","placeholder","input-attr","block-help"])),e.table.databaseConnection&&e.remoteSelectPre.form.modelFile?(s(),p(N,{key:2,label:n(r)("Database connection")},{default:c(()=>[d(Oe,{size:"large",type:"danger"},{default:c(()=>[w(h(e.table.databaseConnection),1)]),_:1}),m("div",Kl,[m("div",null,h(n(r)("crud.crud.Check model class",{connection:e.table.databaseConnection})),1),m("div",null,h(n(r)("crud.crud.There is no connection attribute in model class")),1)])]),_:1},8,["label"])):S("",!0),e.remoteSelectPre.form.sourceConfigType=="custom"?(s(),p(g,{key:3,prop:"remoteUrl",label:n(r)("crud.crud.api url"),type:"string",modelValue:e.remoteSelectPre.form.remoteUrl,"onUpdate:modelValue":l[38]||(l[38]=a=>e.remoteSelectPre.form.remoteUrl=a),placeholder:n(r)("crud.crud.api url example")},null,8,["label","modelValue","placeholder"])):S("",!0),e.remoteSelectPre.form.sourceConfigType=="custom"?(s(),p(g,{key:4,label:n(r)("crud.crud.remote-primary-table-alias"),type:"string",modelValue:e.remoteSelectPre.form.primaryTableAlias,"onUpdate:modelValue":l[39]||(l[39]=a=>e.remoteSelectPre.form.primaryTableAlias=a),"block-help":n(r)("crud.crud.If the remote interface query involves associated query of multiple tables, enter the alias of the primary data table here")},{append:c(()=>[w("."+h(e.remoteSelectPre.form.pk),1)]),_:1},8,["label","modelValue","block-help"])):S("",!0),d(N,{label:n(r)("Reminder")},{default:c(()=>[m("div",Gl,h(n(r)("crud.crud.Design remote select tips")),1)]),_:1},8,["label"])])),[[oe,e.loading.remoteSelect]])]),_:1},8,["model","rules"])),[[oe,e.remoteSelectPre.loading]]):S("",!0)])]),_:1})]),_:1},8,["model-value","title"]),d(te,{onClose:J,class:"ba-operate-dialog confirm-generate-dialog","model-value":e.confirmGenerate.show,title:n(r)("crud.crud.Confirm CRUD code generation")},{footer:c(()=>[m("div",Bl,[d(i,{onClick:J},{default:c(()=>[w(h(t.$t("Cancel")),1)]),_:1}),T((s(),p(i,{loading:e.loading.generate,onClick:W,type:"primary"},{default:c(()=>[w(h(n(r)("crud.crud.Continue building")),1)]),_:1},8,["loading"])),[[L]])])]),default:c(()=>[m("div",ql,[e.confirmGenerate.controller?(s(),p(ae,{key:0,title:n(r)("crud.crud.The controller already exists Continuing to generate will automatically overwrite the existing code!"),center:"",type:"error"},null,8,["title"])):S("",!0),fe()?(s(),p(ae,{key:1,title:n(r)("crud.crud.The data table already exists Continuing to generate will automatically delete the original table and create a new one!"),class:"mt-10",center:"",type:"error"},null,8,["title"])):S("",!0),e.confirmGenerate.menu?(s(),p(ae,{key:2,title:n(r)("crud.crud.The menu rule with the same name already exists The menu and permission node will not be created in this generation"),class:"mt-10",center:"",type:"error"},null,8,["title"])):S("",!0)])]),_:1},8,["model-value","title"]),d(te,{class:"ba-operate-dialog design-change-log-dialog",width:"20%",modelValue:e.showDesignChangeLog,"onUpdate:modelValue":l[42]||(l[42]=a=>e.showDesignChangeLog=a)},{header:c(()=>[T((s(),y("div",null,[w(h(n(r)("crud.crud.Data table design changes preview")),1)])),[[Je,[".design-change-log-dialog",".el-dialog__header"]]])]),footer:c(()=>[m("div",zl,[d(i,{onClick:l[41]||(l[41]=a=>e.showDesignChangeLog=!1)},{default:c(()=>[w(h(n(r)("Confirm")),1)]),_:1})])]),default:c(()=>[d(Se,{"max-height":"400px"},{default:c(()=>[e.table.designChange.length?(s(),y(C,{key:0},[d(Ye,{class:"design-change-log-timeline"},{default:c(()=>[(s(!0),y(C,null,P(e.table.designChange,(a,u)=>(s(),p(He,{key:u,type:je(a.type),hollow:!0,"hide-timestamp":!0},{default:c(()=>[m("div",Ml,[d(he,{modelValue:a.sync,"onUpdate:modelValue":V=>a.sync=V,label:$e(a),size:"small"},null,8,["modelValue","onUpdate:modelValue","label"])])]),_:2},1032,["type"]))),128))]),_:1}),m("span",$l,h(n(r)("crud.crud.designChangeTips")),1)],64)):(s(),y("div",jl,"暂无表设计变更")),d(g,{label:n(r)("crud.crud.tableReBuild"),class:"rebuild-form-item",modelValue:e.table.rebuild,"onUpdate:modelValue":l[40]||(l[40]=a=>e.table.rebuild=a),type:"radio","input-attr":{border:!0,content:{No:n(r)("crud.crud.No"),Yes:n(r)("crud.crud.Yes")}},"block-help":n(r)("crud.crud.tableReBuildBlockHelp")},null,8,["label","modelValue","input-attr","block-help"])]),_:1})]),_:1},8,["modelValue"])])}}}),at=dl(Ol,[["__scopeId","data-v-578789f2"]]);export{at as default}; diff --git a/public/assets/domainStatus-BlH-S6dK.js b/public/assets/domainStatus-BlH-S6dK.js new file mode 100644 index 0000000..befa127 --- /dev/null +++ b/public/assets/domainStatus-BlH-S6dK.js @@ -0,0 +1,41 @@ +import{x as j,_ as F}from"./index-CLyTskad.js";import{B as O,a as H,b as u,o as J,_ as W,D as f,G as a,U as i,u as r,H as d,P as p,Z as k,Y as I,O as $,W as G,I as _,X as P,a0 as R,C as c,V as b,ah as h}from"./vue-DweYBrEc.js";import{d as X,s as Y}from"./embed-DQ6yijKq.js";const Z={class:"default-main domain-status-page"},q={class:"setting-grid"},K={class:"panel setting-panel"},Q={class:"panel-title"},ee={class:"panel-body setting-form"},oe={class:"form-row"},te={class:"form-row textarea-row"},ae={class:"form-row template-row"},le={class:"color-grid"},ne={class:"panel embed-panel"},se={class:"panel-title"},ie={class:"panel-body"},re={class:"panel domain-panel"},de={class:"panel-title"},me={class:"domain-list"},w=`{ + "hideDomain": [ + "domain1.com", + "domain2.com" + ] +}`,ce=O({name:"embed/domainStatus",__name:"domainStatus",setup(ue){const{t:n}=j.useI18n(),x=R(),e=H({headerImage:"",customConfig:"",baseColor:"#1c2130",borderColor:"#2a3147",onlineColor:"#48bb78",offlineColor:"#f56565",titleColor:"#006dff",textColor:"#ffffff",labelColor:"#718096"}),V=[{key:"baseColor",label:"embed.domainStatus.baseColor"},{key:"titleColor",label:"embed.domainStatus.titleColor"},{key:"borderColor",label:"embed.domainStatus.borderColor"},{key:"textColor",label:"embed.domainStatus.textColor"},{key:"onlineColor",label:"embed.domainStatus.onlineColor"},{key:"labelColor",label:"embed.domainStatus.labelColor"},{key:"offlineColor",label:"embed.domainStatus.offlineColor"}],g=u(`