2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{$ as z,a0 as H,D as K,F as X,w as Y,G as Z,J as ee,M as te,b as oe,t as ae,N as le,O as ne}from"./element-plus.ab0703f2.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{f as se,b as re}from"./index.806598d1.js";import{u as ue}from"./usePaging.fff444fa.js";import{_ as pe,a as me,b as E,c as de,d as ce}from"./edit.vue_vue_type_script_setup_true_name_oaPlanEdit_lang.749b15ad.js";import _e from"./detail.5ec02d83.js";import{d as $,r as C,s as fe,$ as ve,ap as we,o as f,c as Ce,W as e,Q as t,u as s,U as p,R as F,P as y,a as V,j as ye,T as B,n as k}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./picker.4d9c6905.js";import"./index.d1f8959e.js";import"./index.bcc30d16.js";import"./index.64db8d0c.js";import"./index.af952604.js";import"./index.vue_vue_type_script_setup_true_lang.9909e290.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.5c3595e9.js";import"./vue.75cf012d.js";import"./sortablejs.dcbae258.js";import"./myTable.vue_vue_type_script_setup_true_name_manageProjectLists_lang.0234fb88.js";import"./store_order.0570fa05.js";const he={class:"mt-4"},ke={class:"flex mt-4 justify-end"},be=$({name:"manageProjectLists"}),yt=$({...be,setup(ge){const h=C(null),v=fe(),m=C(!1),b=C(!1),w=ve({keyword:""}),x=C([]),R=l=>{x.value=l.map(({id:o})=>o)},P=l=>{me({id:l.id}).finally(()=>{c()})},{pager:d,getLists:c,resetParams:S,resetPage:N}=ue({fetchFun:ce,params:w}),T=async l=>{var i,n;let o=await E({id:l.id});m.value=!0,await k(),(i=v.value)==null||i.open("edit"),(n=v.value)==null||n.setFormData(o)},U=async()=>{var l;m.value=!0,await k(),(l=v.value)==null||l.open("add")},A=async l=>{let o=await E({id:l.id});b.value=!0,k(()=>{var i,n;(i=h.value)==null||i.open(),(n=h.value)==null||n.setForm(o)})},L=async l=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:l}),c()};return c(),(l,o)=>{const i=K,n=X,g=z,r=Y,j=H,I=Z,D=ee,q=re,u=te,G=oe,J=ae,M=le,O=ie,Q=we("perms"),W=ne;return f(),Ce("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(I,{class:"mb-[-16px]",model:w,"label-width":"100px"},{default:t(()=>[e(j,null,{default:t(()=>[e(g,{span:6},{default:t(()=>[e(n,{label:"\u914D\u9001\u5458\u641C\u7D22",prop:"keyword"},{default:t(()=>[e(i,{modelValue:w.keyword,"onUpdate:modelValue":o[0]||(o[0]=a=>w.keyword=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u914D\u9001\u5458\u540D\u79F0/\u624B\u673A\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(g,{span:6},{default:t(()=>[e(n,null,{default:t(()=>[e(r,{type:"primary",onClick:s(N)},{default:t(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:s(S)},{default:t(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),F((f(),y(D,{class:"!border-none",shadow:"never"},{default:t(()=>[F((f(),y(r,{type:"primary",onClick:o[1]||(o[1]=a=>U())},{icon:t(()=>[e(q,{name:"el-icon-Plus"})]),default:t(()=>[p(" \u65B0\u589E ")]),_:1})),[[Q,["dept.dept/add"]]]),V("div",he,[e(M,{data:s(d).lists,onSelectionChange:R},{default:t(()=>[e(u,{label:"id",prop:"id","show-overflow-tooltip":""}),e(u,{label:"\u5934\u50CF",prop:"avatar","show-overflow-tooltip":""},{default:t(({row:a})=>[e(G,{style:{width:"50px",height:"50px"},src:a.avatar},null,8,["src"])]),_:1}),e(u,{label:"\u6635\u79F0",prop:"nickname","show-overflow-tooltip":""}),e(u,{label:"\u624B\u673A\u53F7",prop:"phone","show-overflow-tooltip":""}),e(u,{label:"\u72B6\u6001","show-overflow-tooltip":""},{default:t(({row:a})=>[e(J,{modelValue:a.status,"onUpdate:modelValue":_=>a.status=_,"active-value":1,"inactive-value":0,onChange:_=>P(a)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(u,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:t(({row:a})=>[e(r,{type:"primary",link:"",onClick:_=>T(a)},{default:t(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),e(r,{link:"",type:"danger",onClick:_=>L(a.id)},{default:t(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"]),e(r,{type:"primary",link:"",onClick:_=>A(a)},{default:t(()=>[p(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),V("div",ke,[e(O,{modelValue:s(d),"onUpdate:modelValue":o[2]||(o[2]=a=>ye(d)?d.value=a:null),onChange:s(c)},null,8,["modelValue","onChange"])])]),_:1})),[[W,s(d).loading]]),m.value?(f(),y(pe,{key:0,ref_key:"editRef",ref:v,onSuccess:s(c),onClose:o[3]||(o[3]=a=>m.value=!1)},null,8,["onSuccess"])):B("",!0),b.value?(f(),y(_e,{key:1,ref_key:"detailRef",ref:h,onClose:o[4]||(o[4]=a=>m.value=!1)},null,512)):B("",!0)])}}});export{yt as default};
|