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

2 lines
5.5 KiB
JavaScript

import{I as R,y as I,w as M,D as q,C as O,L as z,M as G,N as H}from"./element-plus.517d4382.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as K,a as Q}from"./index.8b1962e9.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.b5854a9e.js";import{a as Y,e as Z}from"./supervision_participating_units_contacts.97e64be3.js";import"./lodash.1d82ee7c.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_supervisionParticipatingUnitsContactsEdit_lang.c7ed88b2.js";import{d as E,s as te,r as D,a0 as oe,ai as ae,o as u,c as ie,V as e,M as o,O as _,u as s,L as m,S as le,a as k,k as ne,T as c,n as B}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.vue_vue_type_script_setup_true_lang.0b61f990.js";import"./supervision_participating_units.dda8567a.js";import"./index.b17dae19.js";const se=c("\u67E5\u8BE2"),ue=c("\u91CD\u7F6E"),re=c(" \u65B0\u589E "),pe=c(" \u5220\u9664 "),me={class:"mt-4"},ce=c(" \u7F16\u8F91 "),de=c(" \u5220\u9664 "),_e={class:"flex justify-end mt-4"},fe=E({name:"supervisionParticipatingUnitsContactsLists"}),it=E({...fe,setup(ve){const f=te(),v=D(!1),n=oe({unit_id:"",name:"",duties:"",mobile:""}),h=D([]),V=i=>{h.value=i.map(({id:t})=>t)},{dictData:y}=X(""),{pager:d,getLists:b,resetParams:x,resetPage:A}=W({fetchFun:Y,params:n}),P=async()=>{var i;v.value=!0,await B(),(i=f.value)==null||i.open("add")},S=async i=>{var t,r;v.value=!0,await B(),(t=f.value)==null||t.open("edit"),(r=f.value)==null||r.setFormData(i)},F=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:i}),b()};return b(),(i,t)=>{const r=R,C=I,p=M,U=q,g=O,$=Q,l=z,L=G,j=J,w=ae("perms"),N=H;return u(),ie("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(U,{class:"mb-[-16px]",model:n,inline:""},{default:o(()=>[e(C,{label:"\u59D3\u540D",prop:"name"},{default:o(()=>[e(r,{class:"w-[280px]",modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=a=>n.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u804C\u52A1",prop:"duties"},{default:o(()=>[e(r,{class:"w-[280px]",modelValue:n.duties,"onUpdate:modelValue":t[1]||(t[1]=a=>n.duties=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u804C\u52A1"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u624B\u673A\u53F7\u7801",prop:"mobile"},{default:o(()=>[e(r,{class:"w-[280px]",modelValue:n.mobile,"onUpdate:modelValue":t[2]||(t[2]=a=>n.mobile=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue"])]),_:1}),e(C,null,{default:o(()=>[e(p,{type:"primary",onClick:s(A)},{default:o(()=>[se]),_:1},8,["onClick"]),e(p,{onClick:s(x)},{default:o(()=>[ue]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((u(),m(g,{class:"!border-none",shadow:"never"},{default:o(()=>[_((u(),m(p,{type:"primary",onClick:P},{icon:o(()=>[e($,{name:"el-icon-Plus"})]),default:o(()=>[re]),_:1})),[[w,["supervision_project.supervision_participating_units_contacts/add"]]]),_((u(),m(p,{disabled:!h.value.length,onClick:t[3]||(t[3]=a=>F(h.value))},{default:o(()=>[pe]),_:1},8,["disabled"])),[[w,["supervision_project.supervision_participating_units_contacts/delete"]]]),k("div",me,[e(L,{data:s(d).lists,onSelectionChange:V},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5355\u4F4D\u540D\u79F0",prop:"unit_name","show-overflow-tooltip":""}),e(l,{label:"\u59D3\u540D",prop:"name","show-overflow-tooltip":""}),e(l,{label:"\u804C\u52A1",prop:"duties","show-overflow-tooltip":""}),e(l,{label:"\u529E\u516C\u7535\u8BDD",prop:"telephone","show-overflow-tooltip":""}),e(l,{label:"\u624B\u673A\u53F7\u7801",prop:"mobile","show-overflow-tooltip":""}),e(l,{label:"\u7535\u5B50\u90AE\u7BB1",prop:"email","show-overflow-tooltip":""}),e(l,{label:"\u4F20\u771F",prop:"fax","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:a})=>[_((u(),m(p,{type:"primary",link:"",onClick:T=>S(a)},{default:o(()=>[ce]),_:2},1032,["onClick"])),[[w,["supervision_project.supervision_participating_units_contacts/edit"]]]),_((u(),m(p,{type:"danger",link:"",onClick:T=>F(a.id)},{default:o(()=>[de]),_:2},1032,["onClick"])),[[w,["supervision_project.supervision_participating_units_contacts/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",_e,[e(j,{modelValue:s(d),"onUpdate:modelValue":t[4]||(t[4]=a=>ne(d)?d.value=a:null),onChange:s(b)},null,8,["modelValue","onChange"])])]),_:1})),[[N,s(d).loading]]),v.value?(u(),m(ee,{key:0,ref_key:"editRef",ref:f,"dict-data":s(y),onSuccess:s(b),onClose:t[5]||(t[5]=a=>v.value=!1)},null,8,["dict-data","onSuccess"])):le("",!0)])}}});export{it as default};