You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 месец
1
  1. import{r as p,a as O,B as P,b as o,c as R,L as j,h as t,e as w,f as a,i as f,k as z,Z as I}from"./index-dd5fae99.js";const $={class:"search mb-16"},q={class:"dialog-footer"},A=z({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:N}){const v=b,d=N,C=[{type:"radio",key:"userId",width:60},{label:"序号",type:"index",width:60},{label:"姓名",key:"name",prop:"name"},{label:"所属单位(主职)",key:"orgName",prop:"orgName",showOverflowTooltip:!0,width:250},{label:"手机号码",key:"phoneNo",prop:"phoneNo",width:"150"}],u=p(),y=p(0),g=p([]),l=O({name:void 0}),i=async(n=(e=>(e=u.value)==null?void 0:e.pageParams)())=>{const s=await I({...n,...l,...v.params,scene:1});y.value=s.data.total,g.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()},k=p(),D=n=>{k.value=n},x=()=>{d("getUserData",k.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"),L=o("el-form"),T=o("table-list"),U=o("el-dialog");return R(),j(U,{"model-value":b.visible,title:"项目负责人/项目联系人",width:"70%","destroy-on-close":"",onClose:e[3]||(e[3]=r=>d("close"))},{footer:t(()=>[w("span",q,[a(m,{onClick:e[2]||(e[2]=r=>d("close"))},{default:t(()=>e[6]||(e[6]=[f("关闭")])),_:1}),a(m,{type:"primary",onClick:x},{default:t(()=>e[7]||(e[7]=[f(" 提交 ")])),_:1})])]),default:t(()=>[w("div",$,[a(L,{"label-suffix":":",model:l,size:"small"},{default:t(()=>[a(B,{gutter:16},{default:t(()=>[a(c,{span:8},{default:t(()=>[a(_,{label:"用户姓名"},{default:t(()=>[a(s,{modelValue:l.name,"onUpdate:modelValue":e[0]||(e[0]=r=>l.name=r),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),a(c,{span:8},{default:t(()=>[a(_,{label:"联系电话"},{default:t(()=>[a(s,{modelValue:l.phoneNo,"onUpdate:modelValue":e[1]||(e[1]=r=>l.phoneNo=r),placeholder:"请输入"},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("查询")])),_:1}),a(m,{onClick:h},{default:t(()=>e[5]||(e[5]=[f("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),a(T,{ref_key:"tableListRef",ref:u,column:C,class:"mt-15",data:g.value,total:y.value,"row-key":"userId",onRadioChange:D,onGetTableData:i},null,8,["data","total"])]),_:1},8,["model-value"])}}});export{G as default};