1 |
- import{i as b,a as k,v as P,_ as y,P as x}from"./page-content.e0c7af12.js";import{u as R}from"./use-page-search.0f272301.js";import{S as F}from"./status.2b37e8be.js";import{c as S,r as v}from"./column-helper.64ceba17.js";import{h as $,a as N,b as I,c as E,_ as T}from"./edit-dialog.vue_vue_type_script_setup_true_lang.dac399d2.js";import{_ as W}from"./ResetPwd.vue_vue_type_script_setup_true_lang.10e8735e.js";import{u as O}from"./usePermission.8064505c.js";import{a as V,r as f,b as c,c as C,j as B,h as l,f as n,u,x as q,l as U}from"./index.4d061c66.js";import"./remote-select.36ee67a3.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";/* empty css */import"./image.4c97dbe3.js";/* empty css */import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";import"./btnList.6c44b4ef.js";const j={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:S(F)},{field:"username",type:"input",placeholder:"\u8D26\u53F7"}]},h=j,H=[{type:"selection",width:55,hide:({checkList:o})=>!o.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:o})=>!o.includes("\u5E8F\u53F7\u5217")},{label:"\u8D26\u53F7",prop:"username"},{label:"\u89D2\u8272",prop:"role_name"},{label:"\u72B6\u6001",prop:"status",...v(F)},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",width:220,slot:"operation"}],L={title:"\u8FD0\u8425\u8D26\u53F7",columns:H,apis:{httpList:$,httpStatus:N,httpDelete:I,httpChangePwd:E}},z=L,G={title:"\u4FEE\u6539\u5BC6\u7801",httpChangePwd:E,formItems:[{field:"id",type:"input",labelWidth:"100px",isHidden:!0,placeholder:"\u7528\u6237ID"},{field:"new_password",type:"input",placeholder:"\u65B0\u5BC6\u7801",label:"\u65B0\u5BC6\u7801",labelWidth:"100px",span:24,rules:[{required:!0,validator:(o,t)=>t===""?new Error("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01"):b(t)?t.length<6||t.length>16?new Error("\u65B0\u5BC6\u7801\u4E3A6-16\u4F4D\u6570\u5B57\u5B57\u6BCD\u7EC4\u5408\uFF01"):k(t)?new Error("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7EAF\u6570\u5B57\uFF01"):P(t)?new Error("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7EAF\u5B57\u6BCD\uFF01"):!0:new Error("\u65B0\u5BC6\u7801\u4E3A6-16\u4F4D\u6570\u5B57\u5B57\u6BCD\u7EC4\u5408\uFF01"),trigger:"blur"}]},{field:"confirmPassword",type:"input",placeholder:"\u786E\u8BA4\u5BC6\u7801",label:"\u786E\u8BA4\u5BC6\u7801",labelWidth:"100px",span:24,rules:[{required:!0,validator:(o,t)=>t===""?new Error("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01"):!0,trigger:"blur"}]}]},J=G,fe=V({__name:"index",setup(o){const t=f(null),a="account",{pageContentRef:p,handleResetClick:g,handleSearchClick:w}=R(void 0,void 0,h);function i(m,e,s){t.value.show(m,e,s)}const d=f(null),{hasPermissionWithCode:_,permissions:A}=O(a);return(m,e)=>{const s=c("el-button"),D=c("PageAuth");return C(),B(D,{pageName:a},{default:l(()=>[n(u(y),{"form-config":u(h),onSearchBtnClick:u(w),onResetBtnClick:u(g)},{action:l(()=>[u(_)("002")?(C(),B(s,{key:0,type:"primary",onClick:e[0]||(e[0]=r=>i(null,"","create"))},{default:l(()=>[q(" \u65B0\u589E ")]),_:1})):U("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(u(x),{ref_key:"pageContentRef",ref:p,powers:u(A),"content-config":u(z),onPreviewBtnClick:e[1]||(e[1]=r=>i(r,r.id,"view")),onUpdateBtnClick:e[2]||(e[2]=r=>i(r,r.id,"edit")),onChangePwdBtnClick:e[3]||(e[3]=({id:r})=>d.value.show(r))},null,8,["powers","content-config"]),n(T,{ref_key:"modelRef",ref:t,onReload:e[4]||(e[4]=r=>u(p).onSearch())},null,512),n(u(W),{ref_key:"resetPwdRef",ref:d,modalConfig:u(J)},null,8,["modalConfig"])]),_:1})}}});export{fe as default};
|