2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
import{J as Y,L as O,M as I,N as j,O as q,B as J,C as K,w as Q,D as Z}from"./element-plus.2acb577d.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{f as H,b as W}from"./index.81df6f20.js";import{u as X}from"./usePaging.23706826.js";import{u as ee}from"./useDictOptions.4fbfb4d7.js";import{_ as te,a as oe,b as ae}from"./edit.vue_vue_type_script_setup_true_name_oaDepartmentChangeEdit_lang.9cf1776f.js";import{d as le}from"./department.23a87470.js";import{d as V,s as ne,r as E,Z as se,am as ie,o as i,c as re,U as t,L as a,u as o,R as m,M as _,K as p,a as F,i as ue,Q as me,n as h}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"./lodash.6bfd3540.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 pe={class:"mt-4"},de={class:"flex mt-4 justify-end"},_e=V({name:"oaDepartmentChangeLists"}),et=V({..._e,setup(ce){const c=ne(),f=E(!1),r=se({uid:"",from_did:"",to_did:"",status:"",move_time:""}),g=E([]),x=l=>{g.value=l.map(({id:e})=>e)},{dictData:L}=ee(""),{pager:d,getLists:v,resetParams:B,resetPage:A}=X({fetchFun:ae,params:r}),$=async()=>{var l;f.value=!0,await h(),(l=c.value)==null||l.open("add")},P=async l=>{var e,C;f.value=!0,await h(),(e=c.value)==null||e.open("edit"),(C=c.value)==null||C.setFormData(l)},b=async l=>{await H.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oe({id:l}),v()},D=E([]);return(async()=>{const l=await le();D.value=l})(),v(),(l,e)=>{const C=J,k=K,N=Y,u=Q,R=Z,y=O,z=W,s=I,M=j,S=G,w=ie("perms"),T=q;return i(),re("div",null,[t(y,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(R,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[t(k,{label:"\u8C03\u52A8\u5458\u5DE5",prop:"uid"},{default:a(()=>[t(C,{class:"w-[280px]",modelValue:o(r).uid_name,"onUpdate:modelValue":e[0]||(e[0]=n=>o(r).uid_name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8C03\u52A8\u5458\u5DE5"},null,8,["modelValue"])]),_:1}),t(k,{label:"\u8C03\u52A8\u65F6\u95F4",prop:"move_time"},{default:a(()=>[t(N,{modelValue:o(r).move_time,"onUpdate:modelValue":e[1]||(e[1]=n=>o(r).move_time=n),"value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u65E5\u671F",class:"!flex flex-1"},null,8,["modelValue"])]),_:1}),t(k,null,{default:a(()=>[t(u,{type:"primary",onClick:o(A)},{default:a(()=>e[5]||(e[5]=[m("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(u,{onClick:o(B)},{default:a(()=>e[6]||(e[6]=[m("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),p(y,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),p(u,{type:"primary",onClick:$},{icon:a(()=>[t(z,{name:"el-icon-Plus"})]),default:a(()=>[e[7]||(e[7]=m(" \u65B0\u589E "))]),_:1})),[[w,["works.rlzy.oa_department_change/add"]]]),_((i(),p(u,{disabled:!o(g).length,onClick:e[2]||(e[2]=n=>b(o(g)))},{default:a(()=>e[8]||(e[8]=[m(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[w,["works.rlzy.oa_department_change/delete"]]]),F("div",pe,[t(M,{data:o(d).lists,onSelectionChange:x},{default:a(()=>[t(s,{type:"selection",width:"55"}),t(s,{label:"\u8C03\u52A8\u5458\u5DE5",prop:"user_name","show-overflow-tooltip":""}),t(s,{label:"\u8C03\u51FA\u90E8\u95E8",prop:"from_dept","show-overflow-tooltip":""}),t(s,{label:"\u8C03\u5165\u90E8\u95E8",prop:"to_dept","show-overflow-tooltip":""}),t(s,{label:"\u8C03\u52A8\u65F6\u95F4",prop:"move_time","show-overflow-tooltip":""}),t(s,{label:"\u72B6\u6001",prop:"status_text","show-overflow-tooltip":""}),t(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:n})=>[_((i(),p(u,{type:"primary",link:"",onClick:U=>P(n)},{default:a(()=>e[9]||(e[9]=[m(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[w,["works.rlzy.oa_department_change/edit"]]]),_((i(),p(u,{type:"danger",link:"",onClick:U=>b(n.id)},{default:a(()=>e[10]||(e[10]=[m(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[w,["works.rlzy.oa_department_change/delete"]]])]),_:1})]),_:1},8,["data"])]),F("div",de,[t(S,{modelValue:o(d),"onUpdate:modelValue":e[3]||(e[3]=n=>ue(d)?d.value=n:null),onChange:o(v)},null,8,["modelValue","onChange"])])]),_:1})),[[T,o(d).loading]]),o(f)?(i(),p(te,{key:0,deptList:o(D),ref_key:"editRef",ref:c,"dict-data":o(L),onSuccess:o(v),onClose:e[4]||(e[4]=n=>f.value=!1)},null,8,["deptList","dict-data","onSuccess"])):me("",!0)])}}});export{et as default};
|