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

2 lines
5.7 KiB
JavaScript

import{G as M,H as O,y as G,I as H,w as W,D as z,C as J,L as K,M as Q,N as X}from"./element-plus.258bf9e7.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Z,a as ee}from"./index.ec401e3b.js";import{u as te}from"./usePaging.f6660143.js";import{u as oe}from"./useDictOptions.c644f395.js";import{a as ae,b as ie,e as ne}from"./supervision_participating_units.aea21075.js";import"./lodash.1d82ee7c.js";import{_ as le}from"./edit.vue_vue_type_script_setup_true_name_supervisionParticipatingUnitsEdit_lang.e4630a09.js";import{d as S,s as ue,r as B,a0 as se,ai as re,o as n,c as V,V as e,M as t,O as c,u as l,L as r,S as pe,W as me,a8 as de,a as x,k as ce,T as m,n as P}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.9492d03b.js";import"./supervision_participating_units_contacts.eec491ee.js";const _e=m("\u67E5\u8BE2"),fe=m("\u91CD\u7F6E"),ve=m(" \u65B0\u589E "),ge=m(" \u5220\u9664 "),De={class:"mt-4"},Ce=m(" \u7F16\u8F91 "),Fe=m(" \u5220\u9664 "),be={class:"flex justify-end mt-4"},we=S({name:"supervisionParticipatingUnitsLists"}),dt=S({...we,setup(he){const _=ue(),f=B(!1),u=se({project_id:"",unit_name:"",unit_type:"",qualification_grade:""}),b=B([]),U=i=>{b.value=i.map(({id:o})=>o)},{dictData:h}=oe("unit_type"),{pager:d,getLists:v,resetParams:L,resetPage:$}=te({fetchFun:ae,params:u}),j=async()=>{var i;f.value=!0,await P(),(i=_.value)==null||i.open("add")},q=async i=>{var g,D;let o=await ie({id:i.id});f.value=!0,await P(),(g=_.value)==null||g.open("edit"),(D=_.value)==null||D.setFormData(o)},y=async i=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:i}),v()};return v(),(i,o)=>{const g=M,D=O,C=G,E=H,p=W,A=z,k=J,N=ee,s=K,T=Q,I=Y,F=re("perms"),R=X;return n(),V("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(A,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(C,{label:"\u5355\u4F4D\u7C7B\u522B",prop:"unit_type"},{default:t(()=>[e(D,{class:"w-[280px]",modelValue:u.unit_type,"onUpdate:modelValue":o[0]||(o[0]=a=>u.unit_type=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u884C\u4E1A"},{default:t(()=>[(n(!0),V(me,null,de(l(h).unit_type,(a,w)=>(n(),r(g,{key:w,label:a.name,value:parseInt(a.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(C,{label:"\u5355\u4F4D\u540D\u79F0",prop:"unit_name"},{default:t(()=>[e(E,{class:"w-[280px]",modelValue:u.unit_name,"onUpdate:modelValue":o[1]||(o[1]=a=>u.unit_name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(C,{label:"\u8D44\u8D28\u7B49\u7EA7",prop:"qualification_grade"},{default:t(()=>[e(E,{class:"w-[280px]",modelValue:u.qualification_grade,"onUpdate:modelValue":o[2]||(o[2]=a=>u.qualification_grade=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8D44\u8D28\u7B49\u7EA7"},null,8,["modelValue"])]),_:1}),e(C,null,{default:t(()=>[e(p,{type:"primary",onClick:l($)},{default:t(()=>[_e]),_:1},8,["onClick"]),e(p,{onClick:l(L)},{default:t(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((n(),r(k,{class:"!border-none",shadow:"never"},{default:t(()=>[c((n(),r(p,{type:"primary",onClick:j},{icon:t(()=>[e(N,{name:"el-icon-Plus"})]),default:t(()=>[ve]),_:1})),[[F,["supervision_project.supervision_participating_units/add"]]]),c((n(),r(p,{disabled:!b.value.length,onClick:o[3]||(o[3]=a=>y(b.value))},{default:t(()=>[ge]),_:1},8,["disabled"])),[[F,["supervision_project.supervision_participating_units/delete"]]]),x("div",De,[e(T,{data:l(d).lists,onSelectionChange:U},{default:t(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"\u5355\u4F4D\u540D\u79F0",prop:"unit_name","show-overflow-tooltip":""}),e(s,{label:"\u5355\u4F4D\u7C7B\u522B",prop:"unit_type_text","show-overflow-tooltip":""}),e(s,{label:"\u8D44\u8D28\u7B49\u7EA7",prop:"qualification_grade","show-overflow-tooltip":""}),e(s,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"telephone","show-overflow-tooltip":""}),e(s,{label:"\u8D23\u4EFB\u8303\u56F4",prop:"duty","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[c((n(),r(p,{type:"primary",link:"",onClick:w=>q(a)},{default:t(()=>[Ce]),_:2},1032,["onClick"])),[[F,["supervision_project.supervision_participating_units/edit"]]]),c((n(),r(p,{type:"danger",link:"",onClick:w=>y(a.id)},{default:t(()=>[Fe]),_:2},1032,["onClick"])),[[F,["supervision_project.supervision_participating_units/delete"]]])]),_:1})]),_:1},8,["data"])]),x("div",be,[e(I,{modelValue:l(d),"onUpdate:modelValue":o[4]||(o[4]=a=>ce(d)?d.value=a:null),onChange:l(v)},null,8,["modelValue","onChange"])])]),_:1})),[[R,l(d).loading]]),f.value?(n(),r(le,{key:0,ref_key:"editRef",ref:_,"dict-data":l(h),onSuccess:l(v),onClose:o[5]||(o[5]=a=>f.value=!1)},null,8,["dict-data","onSuccess"])):pe("",!0)])}}});export{dt as default};