WokerTask/public/admin/assets/dialog_index_personnel.0fde...

2 lines
3.8 KiB
JavaScript

import{C as L,D as N,N as U,O as I,w as O,F as R,J as T,P as j,Q,R as $}from"./element-plus.ff90c99c.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{u as J}from"./usePaging.bd7a7dec.js";import{r as S}from"./role.101a1b11.js";import{a as W}from"./useDictOptions.d306a433.js";import{a as z}from"./admin.16eea08b.js";import{d as E,$ as G,o as m,c as f,W as o,Q as t,u as e,F as H,a9 as K,P as F,U as b,R as M,a as w,j as X}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./index.71302537.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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.79024f1a.js";const Y={class:"mt-4"},Z={class:"flex mt-4 justify-end"},oo=E({name:"companyLists"}),Wo=E({...oo,emits:["customEvent"],setup(eo,{emit:h}){const{optionsData:v}=W({role:{api:S}}),n=G({name:"",role_id:""}),C=s=>{h("customEvent",s)},{pager:i,getLists:p,resetParams:g,resetPage:B}=J({fetchFun:z,params:n});return p(),(s,r)=>{const D=L,u=N,d=U,V=I,_=O,k=R,c=T,a=j,x=Q,P=q,y=$;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,K(e(v).role,(l,A)=>(m(),F(d,{key:A,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(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),o(_,{onClick:e(g)},{default:t(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),M((m(),F(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(P,{modelValue:e(i),"onUpdate:modelValue":r[2]||(r[2]=l=>X(i)?i.value=l:null),onChange:e(p)},null,8,["modelValue","onChange"])])]),_:1})),[[y,e(i).loading]])])}}});export{Wo as default};