1 |
- import{i as A,a as g,v as D,_ as E,P as w}from"./page-content.e0c7af12.js";import{u as b}from"./use-page-search.0f272301.js";import{A as c}from"./status.2b37e8be.js";import{c as _,r as k,t as P}from"./column-helper.64ceba17.js";import{b as B,c as x,a as v}from"./user.0ff210bc.js";import{_ as R}from"./ResetPwd.vue_vue_type_script_setup_true_lang.10e8735e.js";import{u as y}from"./usePermission.8064505c.js";import{_ as S}from"./edit-dialog.vue_vue_type_script_setup_true_lang.f037ffd1.js";import{a as W,r as d,b as I,c as $,j as N,h as O,f as o,u as t}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";import"./Video.vue_vue_type_script_setup_true_lang.07ce870d.js";import"./remoteSelect.403add72.js";const T={formItems:[{field:"status",type:"select",placeholder:"\u8D26\u53F7\u72B6\u6001",options:_(c)},{field:"username",type:"input",placeholder:"\u8D26\u53F7"},{field:"nickname",type:"input",placeholder:"\u5BA2\u6237\u59D3\u540D"},{field:"mobile",type:"input",placeholder:"\u5BA2\u6237\u624B\u673A\u53F7"}]},f=T,U=[{prop:"username",label:"\u8D26\u53F7",minWidth:"140px"},{prop:"status",label:"\u72B6\u6001",minWidth:"90px",...k(c)},{prop:"name",label:"\u5BA2\u6237\u59D3\u540D",minWidth:"100px"},{prop:"mobile",label:"\u5BA2\u6237\u624B\u673A\u53F7",minWidth:"110"},{prop:"time",minWidth:"310",label:"\u8D26\u6237\u6709\u6548\u671F",...P(["starttime","expiretime"],"~")},{prop:"activetime",label:"\u8D26\u6237\u6FC0\u6D3B\u65F6\u95F4",width:"180px"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",minWidth:"160px"},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],q={title:"\u7528\u6237\u7BA1\u7406",columns:U,apis:{httpChangePwd:B,httpList:x,httpUpdate:v},notPreview:!1},j=q,H={title:"\u4FEE\u6539\u5BC6\u7801",httpChangePwd:B,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:(i,e)=>e===""?new Error("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01"):A(e)?e.length<6||e.length>16?new Error("\u65B0\u5BC6\u7801\u4E3A6-16\u4F4D\u6570\u5B57\u5B57\u6BCD\u7EC4\u5408\uFF01"):g(e)?new Error("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7EAF\u6570\u5B57\uFF01"):D(e)?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:(i,e)=>e===""?new Error("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01"):!0,trigger:"blur"}]}]},L=H,de=W({__name:"index",setup(i){const e=d(null),l="user",{pageContentRef:s,handleResetClick:C,handleSearchClick:h}=b(void 0,void 0,f);function a(m,u,n){e.value.show(m,u,n)}const p=d(null),{permissions:F}=y(l);return(m,u)=>{const n=I("PageAuth");return $(),N(n,{pageName:l},{default:O(()=>[o(t(E),{"form-config":t(f),onSearchBtnClick:t(h),onResetBtnClick:t(C)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),o(t(w),{ref_key:"pageContentRef",ref:s,powers:t(F),"content-config":t(j),onPreviewBtnClick:u[0]||(u[0]=r=>a(r,r.id,"view")),onUpdateBtnClick:u[1]||(u[1]=r=>a(r,r.id,"edit")),onChangePwdBtnClick:u[2]||(u[2]=({id:r})=>p.value.show(r))},null,8,["powers","content-config"]),o(S,{ref_key:"modelRef",ref:e,onReload:u[3]||(u[3]=r=>t(s).onSearch())},null,512),o(t(R),{ref_key:"resetPwdRef",ref:p,modalConfig:t(L)},null,8,["modalConfig"])]),_:1})}}});export{de as default};
|