engineering/public/admin/assets/index.e912e906.js
2024-03-04 15:04:21 +08:00

2 lines
5.6 KiB
JavaScript

import{I as W,y as j,w as I,D as M,C as q,L as O,M as z,N as G}from"./element-plus.258bf9e7.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as J,a as K}from"./index.ec401e3b.js";import{u as Q}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{_ as Y,a as Z,b as ee,c as oe}from"./edit.vue_vue_type_script_setup_true_name_supervisionWorkContactEdit_lang.667e81e4.js";import"./lodash.1d82ee7c.js";import{d as y,s as te,r as E,a0 as ae,ai as le,o as p,c as ie,V as e,M as t,O as f,u,L as m,S as ne,a as B,k as se,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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.8f6cc90c.js";import"./supervision_project.e6761916.js";import"./index.a7758114.js";import"./index.9492d03b.js";const ue=c("\u67E5\u8BE2"),re=c("\u91CD\u7F6E"),pe=c(" \u65B0\u589E "),de=c(" \u5220\u9664 "),me={class:"mt-4"},ce=c(" \u7F16\u8F91 "),_e=c(" \u5220\u9664 "),fe={class:"flex justify-end mt-4"},ve=y({name:"supervisionWorkContactLists"}),io=y({...ve,setup(we){const v=te(),w=E(!1),l=ae({project_id:"",code:"",initiator:"",theme:"",copy_user:""}),F=E([]),V=i=>{F.value=i.map(({id:o})=>o)},{dictData:g}=X(""),{pager:_,getLists:k,resetParams:x,resetPage:A}=Q({fetchFun:Z,params:l}),S=async()=>{var i;w.value=!0,await D(),(i=v.value)==null||i.open("add")},$=async i=>{var r,n;let o=await ee({id:i.id});w.value=!0,await D(),(r=v.value)==null||r.open("edit"),(n=v.value)==null||n.setFormData(o)},h=async i=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oe({id:i}),k()};return k(),(i,o)=>{const r=W,n=j,d=I,L=M,b=q,N=K,s=O,P=z,T=H,C=le("perms"),U=G;return p(),ie("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(L,{class:"mb-[-16px]",model:l,inline:""},{default:t(()=>[e(n,{label:"\u8054\u7CFB\u7F16\u53F7",prop:"code"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:l.code,"onUpdate:modelValue":o[0]||(o[0]=a=>l.code=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u53D1\u8D77\u4EBA",prop:"initiator"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:l.initiator,"onUpdate:modelValue":o[1]||(o[1]=a=>l.initiator=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u8D77\u4EBA"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u4E3B\u9898",prop:"theme"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:l.theme,"onUpdate:modelValue":o[2]||(o[2]=a=>l.theme=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u6284\u9001\u4EBA\u5458",prop:"copy_user"},{default:t(()=>[e(r,{class:"w-[280px]",modelValue:l.copy_user,"onUpdate:modelValue":o[3]||(o[3]=a=>l.copy_user=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6284\u9001\u4EBA\u5458"},null,8,["modelValue"])]),_:1}),e(n,null,{default:t(()=>[e(d,{type:"primary",onClick:u(A)},{default:t(()=>[ue]),_:1},8,["onClick"]),e(d,{onClick:u(x)},{default:t(()=>[re]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((p(),m(b,{class:"!border-none",shadow:"never"},{default:t(()=>[f((p(),m(d,{type:"primary",onClick:S},{icon:t(()=>[e(N,{name:"el-icon-Plus"})]),default:t(()=>[pe]),_:1})),[[C,["supervision_work.supervision_work_contact/add"]]]),f((p(),m(d,{disabled:!F.value.length,onClick:o[4]||(o[4]=a=>h(F.value))},{default:t(()=>[de]),_:1},8,["disabled"])),[[C,["supervision_work.supervision_work_contact/delete"]]]),B("div",me,[e(P,{data:u(_).lists,onSelectionChange:V},{default:t(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(s,{label:"\u8054\u7CFB\u7F16\u53F7",prop:"code","show-overflow-tooltip":""}),e(s,{label:"\u53D1\u8D77\u4EBA",prop:"initiator","show-overflow-tooltip":""}),e(s,{label:"\u53D1\u8D77\u65E5\u671F",prop:"initiation_date","show-overflow-tooltip":""}),e(s,{label:"\u4E3B\u9898",prop:"theme","show-overflow-tooltip":""}),e(s,{label:"\u6284\u9001\u4EBA\u5458",prop:"copy_user","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[f((p(),m(d,{type:"primary",link:"",onClick:R=>$(a)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[C,["supervision_work.supervision_work_contact/edit"]]]),f((p(),m(d,{type:"danger",link:"",onClick:R=>h(a.id)},{default:t(()=>[_e]),_:2},1032,["onClick"])),[[C,["supervision_work.supervision_work_contact/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",fe,[e(T,{modelValue:u(_),"onUpdate:modelValue":o[5]||(o[5]=a=>se(_)?_.value=a:null),onChange:u(k)},null,8,["modelValue","onChange"])])]),_:1})),[[U,u(_).loading]]),w.value?(p(),m(Y,{key:0,ref_key:"editRef",ref:v,"dict-data":u(g),onSuccess:u(k),onClose:o[6]||(o[6]=a=>w.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{io as default};