2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
import{$ as Z,a0 as ee,C as oe,D as te,w as le,F as ae,I as ne,L as se,b as ue,t as ie,M as re,J as pe,N as me}from"./element-plus.a40e8d80.js";import{_ as de}from"./index.vue_vue_type_script_setup_true_lang.4ac5ccb7.js";import{b as ce}from"./index.9d786a17.js";import{u as fe}from"./usePaging.d25ebf19.js";import{_ as _e}from"./edit.vue_vue_type_script_setup_true_name_oaPlanEdit_lang.11590db9.js";import ve from"./detail.db9b27c3.js";import{f as we,g as S,h as Ce}from"./goodsList.98718c7d.js";import{d as R,r as v,s as Ee,a0 as $,am as ye,o as d,c as be,W as e,O as o,u as m,T as i,P,M as w,a as U,U as ge,j as ke,S as k,n as V}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.2f9d9c3b.js";import"./index.c458f0f6.js";import"./index.c07d6d8d.js";import"./index.b4b774a2.js";import"./index.8dd7192d.js";import"./index.vue_vue_type_script_setup_true_lang.dbd8842d.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.4d1c8b37.js";import"./store_order.a231818e.js";const Ve={class:"mt-4"},he={class:"flex mt-4 justify-end"},Fe=R({name:"manageProjectLists"}),Vo=R({...Fe,setup(De){const g=v(null),C=Ee(),c=v(!1),h=v(!1),E=$({keyword:""}),A=v([]),L=s=>{A.value=s.map(({id:t})=>t)},N=s=>{we({id:s.id}).finally(()=>{y()})},{pager:f,getLists:y,resetParams:T,resetPage:j}=fe({fetchFun:Ce,params:E}),I=async s=>{var u,a;let t=await S({id:s.id});c.value=!0,await V(),(u=C.value)==null||u.open("edit"),(a=C.value)==null||a.setFormData(t)},M=async()=>{var s;c.value=!0,await V(),(s=C.value)==null||s.open("add")},q=async s=>{let t=await S({id:s.id});h.value=!0,V(()=>{var u,a;(u=g.value)==null||u.open(),(a=g.value)==null||a.setForm(t)})},_=v(!1),n=$({id:"",password:"",password_confirm:""}),F=()=>{n.id="",n.password="",n.password_confirm=""},J=async()=>{await adminPwd({...n}),_.value=!1,F()};return y(),(s,t)=>{const u=oe,a=te,D=Z,r=le,O=ee,x=ae,B=ne,W=ce,p=se,z=ue,G=ie,H=re,K=de,Q=pe,X=ye("perms"),Y=me;return d(),be("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(x,{class:"mb-[-16px]",model:E,"label-width":"80px"},{default:o(()=>[e(O,null,{default:o(()=>[e(D,{span:6},{default:o(()=>[e(a,{label:"\u5E97\u5458\u641C\u7D22",prop:"keyword"},{default:o(()=>[e(u,{modelValue:E.keyword,"onUpdate:modelValue":t[0]||(t[0]=l=>E.keyword=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E97\u5458\u540D\u79F0/\u624B\u673A\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(D,{span:6},{default:o(()=>[e(a,null,{default:o(()=>[e(r,{type:"primary",onClick:m(j)},{default:o(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:m(T)},{default:o(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),P((d(),w(B,{class:"!border-none",shadow:"never"},{default:o(()=>[P((d(),w(r,{type:"primary",onClick:t[1]||(t[1]=l=>M())},{icon:o(()=>[e(W,{name:"el-icon-Plus"})]),default:o(()=>[i(" \u65B0\u589E ")]),_:1})),[[X,["dept.dept/add"]]]),U("div",Ve,[e(H,{data:m(f).lists,onSelectionChange:L},{default:o(()=>[e(p,{label:"id",prop:"id","show-overflow-tooltip":""}),e(p,{label:"\u5934\u50CF",prop:"avatar","show-overflow-tooltip":""},{default:o(({row:l})=>[e(z,{style:{width:"50px",height:"50px"},src:l.avatar},null,8,["src"])]),_:1}),e(p,{label:"\u6635\u79F0",prop:"staff_name","show-overflow-tooltip":""}),e(p,{label:"\u5E97\u5458\u8EAB\u4EFD",prop:"project_level_text","show-overflow-tooltip":""},{default:o(({row:l})=>[i(ge(l.is_manager==1?"\u5E97\u957F":"\u5458\u5DE5"),1)]),_:1}),e(p,{label:"\u624B\u673A\u53F7",prop:"phone","show-overflow-tooltip":""}),e(p,{label:"\u72B6\u6001","show-overflow-tooltip":""},{default:o(({row:l})=>[e(G,{modelValue:l.status,"onUpdate:modelValue":b=>l.status=b,"active-value":1,"inactive-value":0,onChange:b=>N(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(p,{label:"\u64CD\u4F5C",width:"230",fixed:"right"},{default:o(({row:l})=>[e(r,{type:"primary",link:"",onClick:b=>I(l)},{default:o(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"]),e(r,{type:"primary",link:"",onClick:b=>q(l)},{default:o(()=>[i(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),U("div",he,[e(K,{modelValue:m(f),"onUpdate:modelValue":t[2]||(t[2]=l=>ke(f)?f.value=l:null),onChange:m(y)},null,8,["modelValue","onChange"])])]),_:1})),[[Y,m(f).loading]]),c.value?(d(),w(_e,{key:0,ref_key:"editRef",ref:C,onSuccess:m(y),onClose:t[3]||(t[3]=l=>c.value=!1)},null,8,["onSuccess"])):k("",!0),h.value?(d(),w(ve,{key:1,ref_key:"detailRef",ref:g,onClose:t[4]||(t[4]=l=>c.value=!1)},null,512)):k("",!0),_.value?(d(),w(Q,{key:2,modelValue:_.value,"onUpdate:modelValue":t[9]||(t[9]=l=>_.value=l),width:"550px",title:"\u4FEE\u6539\u5BC6\u7801"},{default:o(()=>[e(x,{class:"mb-[-16px]",model:n,"label-width":"100px"},{default:o(()=>[e(a,{label:"\u8D26\u53F7"},{default:o(()=>[e(u,{modelValue:n.account,"onUpdate:modelValue":t[5]||(t[5]=l=>n.account=l),readonly:"",class:"w-[280px]"},null,8,["modelValue"])]),_:1}),e(a,{label:"\u5BC6\u7801"},{default:o(()=>[e(u,{modelValue:n.password,"onUpdate:modelValue":t[6]||(t[6]=l=>n.password=l),class:"w-[280px]",clearable:"",type:"password"},null,8,["modelValue"])]),_:1}),e(a,{label:"\u786E\u8BA4\u5BC6\u7801"},{default:o(()=>[e(u,{modelValue:n.password_confirm,"onUpdate:modelValue":t[7]||(t[7]=l=>n.password_confirm=l),class:"w-[280px]",clearable:"",type:"password"},null,8,["modelValue"])]),_:1}),e(a,null,{default:o(()=>[e(r,{type:"primary",onClick:J},{default:o(()=>[i("\u4FEE\u6539")]),_:1}),e(r,{onClick:t[8]||(t[8]=l=>(_.value=!1,F()))},{default:o(()=>[i("\u53D6\u6D88")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])):k("",!0)])}}});export{Vo as default};
|