WokerTask/public/admin/assets/dialog_index_personnel.2d4b...

2 lines
3.8 KiB
JavaScript

import{B as A,C as I,M as N,N as T,w as U,D as O,I as M,O as R,P as $,Q as j}from"./element-plus.9816852d.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{u as K}from"./usePaging.2ad8e1e6.js";import{r as Q}from"./role.873a2bd3.js";import{a as S}from"./useDictOptions.a2448547.js";import{a as z}from"./admin.e57e13d6.js";import{d as E,$ as G,o as m,c as f,U as o,L as t,u as e,T as H,a7 as J,K as b,R as F,M as W,a as w,k as X}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.4eaf9bd5.js";import"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";const Y={class:"mt-4"},Z={class:"flex mt-4 justify-end"},oo=E({name:"companyLists"}),Ko=E({...oo,emits:["customEvent"],setup(eo,{emit:h}){const{optionsData:v}=S({role:{api:Q}}),n=G({name:"",role_id:""}),C=p=>{h("customEvent",p)},{pager:i,getLists:s,resetParams:g,resetPage:B}=K({fetchFun:z,params:n});return s(),(p,r)=>{const D=A,u=I,d=N,V=T,_=U,k=O,c=M,a=R,x=$,y=q,L=j;return m(),f("div",null,[o(c,{class:"!border-none",shadow:"never"},{default:t(()=>[o(k,{class:"mb-[-16px]",model:e(n),inline:""},{default:t(()=>[o(u,{label:"\u7BA1\u7406\u5458\u540D\u79F0",prop:"name"},{default:t(()=>[o(D,{class:"w-[280px]",modelValue:e(n).name,"onUpdate:modelValue":r[0]||(r[0]=l=>e(n).name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u7BA1\u7406\u5458\u540D\u79F0"},null,8,["modelValue"])]),_:1}),o(u,{label:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458\u89D2\u8272",prop:"role_id"},{default:t(()=>[o(V,{class:"w-[280px]",modelValue:e(n).role_id,"onUpdate:modelValue":r[1]||(r[1]=l=>e(n).role_id=l)},{default:t(()=>[o(d,{label:"\u5168\u90E8",value:""}),(m(!0),f(H,null,J(e(v).role,(l,P)=>(m(),b(d,{key:P,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(u,null,{default:t(()=>[o(_,{type:"primary",onClick:e(B)},{default:t(()=>[F("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(_,{onClick:e(g)},{default:t(()=>[F("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),W((m(),b(c,{class:"!border-none",shadow:"never"},{default:t(()=>[w("div",Y,[o(x,{data:e(i).lists,onCellClick:C},{default:t(()=>[o(a,{label:"\u8D26\u53F7",prop:"account","min-width":"120"}),o(a,{label:"\u540D\u79F0",prop:"name","min-width":"100"}),o(a,{label:"\u89D2\u8272",prop:"role_name","min-width":"100","show-tooltip-when-overflow":""}),o(a,{label:"\u90E8\u95E8",prop:"dept_name","min-width":"100","show-tooltip-when-overflow":""}),o(a,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180"}),o(a,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4",prop:"login_time","min-width":"180"}),o(a,{label:"\u6700\u8FD1\u767B\u5F55IP",prop:"login_ip","min-width":"120"})]),_:1},8,["data"])]),w("div",Z,[o(y,{modelValue:e(i),"onUpdate:modelValue":r[2]||(r[2]=l=>X(i)?i.value=l:null),onChange:e(s)},null,8,["modelValue","onChange"])])]),_:1})),[[L,e(i).loading]])])}}});export{Ko as default};