2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
import{J as S,L as T,M as U,N as Y,O,B as I,C as j,w as J,D as K}from"./element-plus.2acb577d.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{f as G,b as H}from"./index.81df6f20.js";import{u as W}from"./usePaging.23706826.js";import{u as X}from"./useDictOptions.4fbfb4d7.js";import{_ as ee,a as oe,b as te}from"./edit.vue_vue_type_script_setup_true_name_oaPersonalQuitEdit_lang.8d046a5d.js";import"./lodash.6bfd3540.js";import{d as g,s as ae,r as D,Z as le,am as ne,o as u,c as ie,U as o,L as a,u as t,R as m,M as _,K as p,a as F,i as ue,Q as se,n as y}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";import"./index.vue_vue_type_style_index_0_lang.9e5f7fb0.js";import"./index.f292cd50.js";const re={class:"mt-4"},me={class:"flex mt-4 justify-end"},pe=g({name:"oaPersonalQuitLists"}),Ge=g({...pe,setup(de){const c=ae(),f=D(!1),s=le({uid:"",lead_admin_id:"",connect_id:"",quit_time:""}),C=D([]),V=n=>{C.value=n.map(({id:e})=>e)},{dictData:x}=X(""),{pager:d,getLists:v,resetParams:A,resetPage:q}=W({fetchFun:te,params:s}),h=async()=>{var n;f.value=!0,await y(),(n=c.value)==null||n.open("add")},P=async n=>{var e,E;f.value=!0,await y(),(e=c.value)==null||e.open("edit"),(E=c.value)==null||E.setFormData(n)},b=async n=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oe({id:n}),v()};return v(),(n,e)=>{const E=I,k=j,$=S,r=J,L=K,B=T,N=H,i=U,R=Y,z=Z,w=ne("perms"),M=O;return u(),ie("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(L,{class:"mb-[-16px]",model:t(s),inline:""},{default:a(()=>[o(k,{label:"\u79BB\u804C\u5458\u5DE5",prop:"uid"},{default:a(()=>[o(E,{class:"w-[280px]",modelValue:t(s).uid_name,"onUpdate:modelValue":e[0]||(e[0]=l=>t(s).uid_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u79BB\u804C\u5458\u5DE5"},null,8,["modelValue"])]),_:1}),o(k,{label:"\u79BB\u804C\u65F6\u95F4",prop:"quit_time"},{default:a(()=>[o($,{modelValue:t(s).quit_time,"onUpdate:modelValue":e[1]||(e[1]=l=>t(s).quit_time=l),"value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u65E5\u671F",class:"!flex flex-1"},null,8,["modelValue"])]),_:1}),o(k,null,{default:a(()=>[o(r,{type:"primary",onClick:t(q)},{default:a(()=>e[5]||(e[5]=[m("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(r,{onClick:t(A)},{default:a(()=>e[6]||(e[6]=[m("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),p(B,{class:"!border-none",shadow:"never"},{default:a(()=>[_((u(),p(r,{type:"primary",onClick:h},{icon:a(()=>[o(N,{name:"el-icon-Plus"})]),default:a(()=>[e[7]||(e[7]=m(" \u65B0\u589E "))]),_:1})),[[w,["works.rlzy.oa_personal_quit/add"]]]),_((u(),p(r,{disabled:!t(C).length,onClick:e[2]||(e[2]=l=>b(t(C)))},{default:a(()=>e[8]||(e[8]=[m(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[w,["works.rlzy.oa_personal_quit/delete"]]]),F("div",re,[o(R,{data:t(d).lists,onSelectionChange:V},{default:a(()=>[o(i,{type:"selection",width:"55"}),o(i,{label:"\u79BB\u804C\u5458\u5DE5",prop:"user_name","show-overflow-tooltip":""}),o(i,{label:"\u79BB\u804C\u65F6\u95F4",prop:"quit_time","show-overflow-tooltip":""}),o(i,{label:"\u90E8\u95E8\u8D1F\u8D23\u4EBA",prop:"lead_admin_name","show-overflow-tooltip":""}),o(i,{label:"\u8D44\u6599\u4EA4\u63A5\u4EBA",prop:"connect_user_name","show-overflow-tooltip":""}),o(i,{label:"\u8D44\u6599\u4EA4\u63A5\u65F6\u95F4",prop:"connect_time","show-overflow-tooltip":""}),o(i,{label:"\u53C2\u4E0E\u4EA4\u63A5\u4EBA",prop:"connect_users","show-overflow-tooltip":""}),o(i,{label:"\u79BB\u804C\u539F\u56E0",prop:"remark","show-overflow-tooltip":""}),o(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[_((u(),p(r,{type:"primary",link:"",onClick:Q=>P(l)},{default:a(()=>e[9]||(e[9]=[m(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[w,["works.rlzy.oa_personal_quit/edit"]]]),_((u(),p(r,{type:"danger",link:"",onClick:Q=>b(l.id)},{default:a(()=>e[10]||(e[10]=[m(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[w,["works.rlzy.oa_personal_quit/delete"]]])]),_:1})]),_:1},8,["data"])]),F("div",me,[o(z,{modelValue:t(d),"onUpdate:modelValue":e[3]||(e[3]=l=>ue(d)?d.value=l:null),onChange:t(v)},null,8,["modelValue","onChange"])])]),_:1})),[[M,t(d).loading]]),t(f)?(u(),p(ee,{key:0,ref_key:"editRef",ref:c,"dict-data":t(x),onSuccess:t(v),onClose:e[4]||(e[4]=l=>f.value=!1)},null,8,["dict-data","onSuccess"])):se("",!0)])}}});export{Ge as default};
|