2 lines
3.8 KiB
JavaScript
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 j,O as M,P as R,Q as q}from"./element-plus.7fac9e8c.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.799ce07c.js";import{u as Q}from"./usePaging.b8657078.js";import{r as S}from"./role.33d10eec.js";import{a as Z}from"./useDictOptions.601c9e96.js";import{a as $}from"./admin.1b2cd83c.js";import{d as E,Z as z,o as m,c as f,U as o,L as t,u as e,T as G,a9 as H,K as b,R as F,M as J,a as w,j as W}from"./@vue.d637abc3.js";import"./lodash-es.151604d4.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.d7d1da82.js";import"./@element-plus.10970f06.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.790484d9.js";import"./lodash.ffb5376d.js";import"./axios.f9df025a.js";import"./vue-router.1750fa4b.js";import"./pinia.065bb054.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.d1ea016b.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.4e7fd6e6.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.bbdcd52a.js";const X={class:"mt-4"},Y={class:"flex mt-4 justify-end"},oo=E({name:"companyLists"}),Qo=E({...oo,emits:["customEvent"],setup(eo,{emit:h}){const{optionsData:v}=Z({role:{api:S}}),n=z({name:"",role_id:""}),C=p=>{h("customEvent",p)},{pager:i,getLists:s,resetParams:g,resetPage:B}=Q({fetchFun:$,params:n});return s(),(p,r)=>{const D=A,u=I,d=N,V=T,_=U,k=O,c=j,a=M,x=R,y=K,L=q;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(G,null,H(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}),J((m(),b(c,{class:"!border-none",shadow:"never"},{default:t(()=>[w("div",X,[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",Y,[o(y,{modelValue:e(i),"onUpdate:modelValue":r[2]||(r[2]=l=>W(i)?i.value=l:null),onChange:e(s)},null,8,["modelValue","onChange"])])]),_:1})),[[L,e(i).loading]])])}}});export{Qo as default};
|