|
- import{d as j,r as p,b as I,L as O,c as o,e as P,I as R,i as a,g as w,h as e,j as c,$}from"./index.b4f1c826.js";const z={class:"search mb-16"},q={class:"dialog-footer"},A=j({name:"userDialog"}),G=Object.assign(A,{props:{visible:{type:Boolean,default:!1,required:!0},data:{type:Array,default:void 0},params:{type:Object,default:()=>({})}},emits:["close","getUserData"],setup(b,{emit:k}){const v=b,d=k,N=[{type:"radio",key:"userId",width:60},{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u59D3\u540D",key:"name",prop:"name"},{label:"\u6240\u5C5E\u5355\u4F4D\uFF08\u4E3B\u804C\uFF09",key:"orgName",prop:"orgName",showOverflowTooltip:!0,width:250},{label:"\u624B\u673A\u53F7\u7801",key:"phoneNo",prop:"phoneNo",width:"150"}],u=p(),g=p(0),y=p([]),l=I({name:void 0}),i=async(n=(t=>(t=u.value)==null?void 0:t.pageParams)())=>{const s=await $({...n,...l,...v.params,scene:1});g.value=s.data.total,y.value=s.data.records||[]},C=()=>{i()},V=()=>{l.name=void 0,l.phoneNo=void 0,u.value.pageParams.pageNumber=1,u.value.pageParams.pageSize=10,i()},h=p(),D=n=>{h.value=n},x=()=>{d("getUserData",h.value),d("close")};return O(()=>v.visible,async n=>{n&&i()}),(n,t)=>{const s=o("el-input"),f=o("el-form-item"),_=o("el-col"),m=o("el-button"),B=o("el-row"),L=o("el-form"),T=o("table-list"),U=o("el-dialog");return P(),R(U,{"model-value":b.visible,title:"\u9879\u76EE\u8D1F\u8D23\u4EBA/\u9879\u76EE\u8054\u7CFB\u4EBA",width:"70%","destroy-on-close":"",onClose:t[3]||(t[3]=r=>d("close"))},{footer:a(()=>[w("span",q,[e(m,{onClick:t[2]||(t[2]=r=>d("close"))},{default:a(()=>[c("\u5173\u95ED")]),_:1}),e(m,{type:"primary",onClick:x},{default:a(()=>[c(" \u63D0\u4EA4 ")]),_:1})])]),default:a(()=>[w("div",z,[e(L,{"label-suffix":":",model:l,size:"small"},{default:a(()=>[e(B,{gutter:16},{default:a(()=>[e(_,{span:8},{default:a(()=>[e(f,{label:"\u7528\u6237\u59D3\u540D"},{default:a(()=>[e(s,{modelValue:l.name,"onUpdate:modelValue":t[0]||(t[0]=r=>l.name=r),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:8},{default:a(()=>[e(f,{label:"\u8054\u7CFB\u7535\u8BDD"},{default:a(()=>[e(s,{modelValue:l.phoneNo,"onUpdate:modelValue":t[1]||(t[1]=r=>l.phoneNo=r),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:8},{default:a(()=>[e(f,{class:"btn"},{default:a(()=>[e(m,{type:"primary",onClick:C},{default:a(()=>[c("\u67E5\u8BE2")]),_:1}),e(m,{onClick:V},{default:a(()=>[c("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),e(T,{ref_key:"tableListRef",ref:u,column:N,class:"mt-15",data:y.value,total:g.value,"row-key":"userId",onRadioChange:D,onGetTableData:i},null,8,["data","total"])]),_:1},8,["model-value"])}}});export{G as default};
|