engineering/public/admin/assets/index.b2b8ab94.js
2024-02-27 10:28:16 +08:00

2 lines
5.6 KiB
JavaScript

import{I as G,y as H,w as J,D as K,C as Q,L as W,M as X,N as Y}from"./element-plus.517d4382.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as ee,a as te}from"./index.8b1962e9.js";import{u as oe}from"./usePaging.f6660143.js";import{u as ae}from"./useDictOptions.b5854a9e.js";import{_ as le,a as se,b as V,c as ne}from"./edit.vue_vue_type_style_index_0_lang.a1c0ecf9.js";import"./lodash.1d82ee7c.js";import re from"./detail.ef8708b8.js";import{d as S,s as P,r as F,a0 as ie,ai as ue,o as n,c as pe,V as e,M as o,O as _,u as r,L as p,S as x,a as A,k as me,T as c,n as D}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.ed719f67.js";import"./project.a81dff6c.js";import"./common.9d529cba.js";import"./custom.99349afc.js";const ce=c("\u67E5\u8BE2"),de=c("\u91CD\u7F6E"),_e=c(" \u65B0\u589E "),fe=c(" \u5220\u9664 "),ve={class:"mt-4"},be=c(" \u7F16\u8F91 "),Ee=c(" \u5220\u9664 "),he=c(" \u8BE6\u60C5 "),we={class:"flex mt-4 justify-end"},Ce=S({name:"projectPreSalesMembersLists"}),ct=S({...Ce,setup(ke){const w=P(),b=P(),E=F(!1),C=F(!1),d=ie({project_name:"",custom_name:""}),k=F([]),$=l=>{k.value=l.map(({id:t})=>t)},{dictData:j}=ae(""),{pager:f,getLists:h,resetParams:L,resetPage:M}=oe({fetchFun:se,params:d}),R=async()=>{var l;E.value=!0,await D(),(l=b.value)==null||l.open("add")},N=async l=>{var i,s;let t=await V({id:l.id});E.value=!0,await D(),(i=b.value)==null||i.open("edit"),(s=b.value)==null||s.setFormData(t)},y=async l=>{await ee.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:l}),h()},T=async l=>{var i,s;let t=await V({id:l.id});C.value=!0,await D(),(i=w.value)==null||i.open(),(s=w.value)==null||s.setFormData(t)};return h(),(l,t)=>{const i=G,s=H,m=J,I=K,B=Q,U=te,u=W,q=X,O=Z,v=ue("perms"),z=Y;return n(),pe("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(I,{class:"mb-[-16px]",model:d,inline:"","label-width":"auto"},{default:o(()=>[e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name"},{default:o(()=>[e(i,{class:"w-[280px]",modelValue:d.project_name,"onUpdate:modelValue":t[0]||(t[0]=a=>d.project_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name"},{default:o(()=>[e(i,{class:"w-[280px]",modelValue:d.custom_name,"onUpdate:modelValue":t[1]||(t[1]=a=>d.custom_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(s,null,{default:o(()=>[e(m,{type:"primary",onClick:r(M)},{default:o(()=>[ce]),_:1},8,["onClick"]),e(m,{onClick:r(L)},{default:o(()=>[de]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((n(),p(B,{class:"!border-none",shadow:"never"},{default:o(()=>[_((n(),p(m,{type:"primary",onClick:R},{icon:o(()=>[e(U,{name:"el-icon-Plus"})]),default:o(()=>[_e]),_:1})),[[v,["project.project_pre_sales_members/add"]]]),_((n(),p(m,{disabled:!k.value.length,onClick:t[2]||(t[2]=a=>y(k.value))},{default:o(()=>[fe]),_:1},8,["disabled"])),[[v,["project.project_pre_sales_members/delete"]]]),A("div",ve,[e(q,{data:r(f).lists,onSelectionChange:$},{default:o(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u6280\u672F\u4EBA\u5458",prop:"technician","show-overflow-tooltip":""}),e(u,{label:"\u5546\u52A1\u4EBA\u5458",prop:"business_people","show-overflow-tooltip":""}),e(u,{label:"\u8DE8\u90E8\u95E8\u4EBA\u5458",prop:"cross_departmental_personnel","show-overflow-tooltip":""}),e(u,{label:"\u6DFB\u52A0\u4EBA",prop:"add_user","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:o(({row:a})=>[_((n(),p(m,{type:"primary",link:"",onClick:g=>N(a)},{default:o(()=>[be]),_:2},1032,["onClick"])),[[v,["project.project_pre_sales_members/edit"]]]),_((n(),p(m,{type:"danger",link:"",onClick:g=>y(a.id)},{default:o(()=>[Ee]),_:2},1032,["onClick"])),[[v,["project.project_pre_sales_members/delete"]]]),_((n(),p(m,{link:"",onClick:g=>T(a)},{default:o(()=>[he]),_:2},1032,["onClick"])),[[v,["project.project_pre_sales_members/detail"]]])]),_:1})]),_:1},8,["data"])]),A("div",we,[e(O,{modelValue:r(f),"onUpdate:modelValue":t[3]||(t[3]=a=>me(f)?f.value=a:null),onChange:r(h)},null,8,["modelValue","onChange"])])]),_:1})),[[z,r(f).loading]]),E.value?(n(),p(le,{key:0,ref_key:"editRef",ref:b,"dict-data":r(j),onSuccess:r(h),onClose:t[4]||(t[4]=a=>E.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),C.value?(n(),p(re,{key:1,ref_key:"detailRef",ref:w,"dict-data":r(j),onClose:t[5]||(t[5]=a=>C.value=!1)},null,8,["dict-data"])):x("",!0)])}}});export{ct as default};