PageSourceSearch

https://mhtclouding.com/tongying/assets/selectUser-DhtKg4KX.js

js mhtclouding.com collected 2026-10-02 16:03:53 UTC 3,381 bytes, 1 lines download raw bytes

1import{r as f,M as j,d as s,o as A,m as O,h as l,e as y,f as e,p as _,x as n,l as N,A as Q,G as E,P as F,O as G,N as M,v as H}from"./index-uGWb9Yh4.js";import{u as J,d as W}from"./role-C-OlytM3.js";const X={class:"dialog-footer"},Y=M({name:"SelectUser"}),oe=Object.assign(Y,{props:{roleId:{type:[Number,String]}},emits:["ok"],setup(S,{expose:I,emit:V}){const k=S,{proxy:p}=H(),{sys_normal_disable:C}=p.useDict("sys_normal_disable"),h=f([]),i=f(!1),g=f(0),v=f([]),a=j({pageNum:1,pageSize:10,roleId:void 0,userName:void 0,phonenumber:void 0});function x(){a.roleId=k.roleId,b(),i.value=!0}function U(r){p.$refs.refTable.toggleRowSelection(r)}function R(r){v.value=r.map(o=>o.userId)}function b(){J(a).then(r=>{h.value=r.rows,g.value=r.total})}function d(){a.pageNum=1,b()}function T(){p.resetForm("queryRef"),d()}const $=V;function q(){const r=a.roleId,o=v.value.join(",");if(o==""){p.$modal.msgError("请选择要分配的用户");return}W({roleId:r,userIds:o}).then(m=>{p.$modal.msgSuccess(m.msg),i.value=!1,$("ok")})}return I({show:x}),(r,o)=>{const m=s("el-input"),w=s("el-form-item"),c=s("el-button"),z=s("el-form"),u=s("el-table-column"),B=s("dict-tag"),D=s("el-table"),K=s("pagination"),L=s("el-row"),P=s("el-dialog");return A(),O(P,{title:"选择用户",modelValue:n(i),"onUpdate:modelValue":o[5]||(o[5]=t=>G(i)?i.value=t:null),width:"800px",top:"5vh","append-to-body":""},{footer:l(()=>[y("div",X,[e(c,{type:"primary",onClick:q},{default:l(()=>[_("确 定")]),_:1}),e(c,{onClick:o[4]||(o[4]=t=>i.value=!1)},{default:l(()=>[_("取 消")]),_:1})])]),default:l(()=>[e(z,{model:n(a),ref:"queryRef",inline:!0},{default:l(()=>[e(w,{label:"用户名称",prop:"userName"},{default:l(()=>[e(m,{modelValue:n(a).userName,"onUpdate:modelValue":o[0]||(o[0]=t=>n(a).userName=t),placeholder:"请输入用户名称",clearable:"",style:{width:"180px"},onKeyup:N(d,["enter"])},null,8,["modelValue"])]),_:1}),e(w,{label:"手机号码",prop:"phonenumber"},{default:l(()=>[e(m,{modelValue:n(a).phonenumber,"onUpdate:modelValue":o[1]||(o[1]=t=>n(a).phonenumber=t),placeholder:"请输入手机号码",clearable:"",style:{width:"180px"},onKeyup:N(d,["enter"])},null,8,["modelValue"])]),_:1}),e(w,null,{default:l(()=>[e(c,{type:"primary",icon:"Search",onClick:d},{default:l(()=>[_("搜索")]),_:1}),e(c,{icon:"Refresh",onClick:T},{default:l(()=>[_("重置")]),_:1})]),_:1})]),_:1},8,["model"]),e(L,null,{default:l(()=>[e(D,{onRowClick:U,ref:"refTable",data:n(h),onSelectionChange:R,height:"260px"},{default:l(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"用户名称",prop:"userName","show-overflow-tooltip":!0}),e(u,{label:"用户昵称",prop:"nickName","show-overflow-tooltip":!0}),e(u,{label:"邮箱",prop:"email","show-overflow-tooltip":!0}),e(u,{label:"手机",prop:"phonenumber","show-overflow-tooltip":!0}),e(u,{label:"状态",align:"center",prop:"status"},{default:l(t=>[e(B,{options:n(C),value:t.row.status},null,8,["options","value"])]),_:1}),e(u,{label:"创建时间",align:"center",prop:"createTime",width:"180"},{default:l(t=>[y("span",null,Q(r.parseTime(t.row.createTime)),1)]),_:1})]),_:1},8,["data"]),E(e(K,{total:n(g),page:n(a).pageNum,"onUpdate:page":o[2]||(o[2]=t=>n(a).pageNum=t),limit:n(a).pageSize,"onUpdate:limit":o[3]||(o[3]=t=>n(a).pageSize=t),onPagination:b},null,8,["total","page","limit"]),[[F,n(g)>0]])]),_:1})]),_:1},8,["modelValue"])}}});export{oe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.