2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{$ as J,a0 as K,C as Q,D as X,w as Y,F as Z,I as ee,L as te,b as oe,t as ae,M as le,N as ne}from"./element-plus.61695454.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.33ea11c1.js";import{f as se,b as re}from"./index.f207e39d.js";import{u as ue}from"./usePaging.d25ebf19.js";import{_ as me,a as pe,b as E,c as de,d as ce}from"./edit.vue_vue_type_script_setup_true_name_oaPlanEdit_lang.578b8774.js";import _e from"./detail.7f315155.js";import{d as $,r as w,s as fe,a0 as ve,am as Ce,o as f,c as we,W as e,O as t,u as s,T as m,P as F,M as y,a as V,j as ye,S as B,n as k}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./picker.ada72469.js";import"./index.1f5c0438.js";import"./index.4d7f7af7.js";import"./index.a7502e69.js";import"./index.a90ae899.js";import"./index.vue_vue_type_script_setup_true_lang.09ad5ba8.js";import"./vue3-video-play.4813c60b.js";import"./vuedraggable.5825c4b1.js";import"./vue.74758107.js";import"./sortablejs.275d9d20.js";import"./myTable.vue_vue_type_script_setup_true_name_manageProjectLists_lang.9d422ffd.js";import"./store_order.9252a2e7.js";const he={class:"mt-4"},ke={class:"flex mt-4 justify-end"},be=$({name:"manageProjectLists"}),wt=$({...be,setup(ge){const h=w(null),v=fe(),p=w(!1),b=w(!1),C=ve({keyword:""}),x=w([]),S=l=>{x.value=l.map(({id:o})=>o)},P=l=>{pe({id:l.id}).finally(()=>{c()})},{pager:d,getLists:c,resetParams:R,resetPage:L}=ue({fetchFun:ce,params:C}),N=async l=>{var i,n;let o=await E({id:l.id});p.value=!0,await k(),(i=v.value)==null||i.open("edit"),(n=v.value)==null||n.setFormData(o)},T=async()=>{var l;p.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)})},I=async l=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:l}),c()};return c(),(l,o)=>{const i=Q,n=X,g=J,r=Y,U=K,j=Z,D=ee,M=re,u=te,q=oe,O=ae,W=le,z=ie,G=Ce("perms"),H=ne;return f(),we("div",null,[e(D,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(j,{class:"mb-[-16px]",model:C,"label-width":"100px"},{default:t(()=>[e(U,null,{default:t(()=>[e(g,{span:6},{default:t(()=>[e(n,{label:"\u914D\u9001\u5458\u641C\u7D22",prop:"keyword"},{default:t(()=>[e(i,{modelValue:C.keyword,"onUpdate:modelValue":o[0]||(o[0]=a=>C.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(L)},{default:t(()=>[m("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:s(R)},{default:t(()=>[m("\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=>T())},{icon:t(()=>[e(M,{name:"el-icon-Plus"})]),default:t(()=>[m(" \u65B0\u589E ")]),_:1})),[[G,["dept.dept/add"]]]),V("div",he,[e(W,{data:s(d).lists,onSelectionChange:S},{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(q,{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(O,{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:_=>N(a)},{default:t(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),e(r,{link:"",type:"danger",onClick:_=>I(a.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"]),e(r,{type:"primary",link:"",onClick:_=>A(a)},{default:t(()=>[m(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),V("div",ke,[e(z,{modelValue:s(d),"onUpdate:modelValue":o[2]||(o[2]=a=>ye(d)?d.value=a:null),onChange:s(c)},null,8,["modelValue","onChange"])])]),_:1})),[[H,s(d).loading]]),p.value?(f(),y(me,{key:0,ref_key:"editRef",ref:v,onSuccess:s(c),onClose:o[3]||(o[3]=a=>p.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=>p.value=!1)},null,512)):B("",!0)])}}});export{wt as default};
|