Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

2 rindas
2.7KB

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