2024-10-12 19:40:17 +08:00
|
|
|
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.5ab034a5.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.35de8556.js";import _e from"./detail.aca4588a.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.8f1a8dd6.js";import"./index.5670c3d4.js";import"./index.b4523e0b.js";import"./index.47f5f1d6.js";import"./index.6b401445.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.bdb14ca5.js";import"./store_order.00264166.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-overflo
|