multiStoreAdmin/build/store/assets/index.0340776f.js

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.9175fe58.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.0fb3ad1e.js";import{f as se,b as re}from"./index.669f9987.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.9410f949.js";import _e from"./detail.2978ef66.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.1f51da93.js";import"./axios.13991fdc.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.6c5d06b3.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.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.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./picker.0630e4ea.js";import"./index.c7b1c52d.js";import"./index.ad8825bc.js";import"./index.d5a98515.js";import"./index.a26fd36c.js";import"./index.vue_vue_type_script_setup_true_lang.5e44b2ed.js";import"./vue3-video-play.4813c60b.js";import"./vuedraggable.39068026.js";import"./vue.ecf7f5ee.js";import"./sortablejs.a3e32c99.js";import"./myTable.vue_vue_type_script_setup_true_name_manageProjectLists_lang.769f4c47.js";import"./store_order.f7f171df.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};