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

2 lines
5.2 KiB
JavaScript

import{I as q,y as O,w as W,D as z,C as G,L as H,a2 as J,M as K,N as Q}from"./element-plus.258bf9e7.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as Y,a as Z}from"./index.ec401e3b.js";import{u as ee}from"./usePaging.f6660143.js";import{u as oe}from"./useDictOptions.c644f395.js";import{_ as te,a as ne,b as ae,c as ie}from"./edit.vue_vue_type_script_setup_true_name_supervisionConstructionPlanningEdit_lang.139d2aaa.js";import{d as V,s as se,r as D,a0 as le,ai as re,o as a,c as d,V as e,M as o,O as m,u as s,L as p,S as ue,a as x,W as pe,a8 as ce,k as de,T as r,n as B,U as me}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.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 _e=r("\u67E5\u8BE2"),fe=r("\u91CD\u7F6E"),ve=r(" \u65B0\u589E "),he=r(" \u5220\u9664 "),Ce={class:"mt-4"},ge={key:0},ke={key:1},Ee=r(" \u7F16\u8F91 "),be=r(" \u5220\u9664 "),we={class:"flex justify-end mt-4"},Fe=V({name:"supervisionConstructionPlanningLists"}),_o=V({...Fe,setup(ye){const _=se(),f=D(!1),v=le({project_id:"",doc_name:""}),k=D([]),P=i=>{k.value=i.map(({id:t})=>t)},{dictData:S}=oe(""),{pager:c,getLists:h,resetParams:L,resetPage:$}=ee({fetchFun:ne,params:v}),N=async()=>{var i;f.value=!0,await B(),(i=_.value)==null||i.open("add")},T=async i=>{var t,C;await ae({id:i.id}),f.value=!0,await B(),(t=_.value)==null||t.open("edit"),(C=_.value)==null||C.setFormData(i)},b=async i=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:i}),h()};return h(),(i,t)=>{const C=q,w=O,u=W,R=z,F=G,j=Z,l=H,A=J,I=K,U=X,g=re("perms"),M=Q;return a(),d("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(R,{class:"mb-[-16px]",model:v,inline:""},{default:o(()=>[e(w,{label:"\u6587\u6863\u540D\u79F0",prop:"doc_name"},{default:o(()=>[e(C,{class:"w-[280px]",modelValue:v.doc_name,"onUpdate:modelValue":t[0]||(t[0]=n=>v.doc_name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6587\u6863\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(w,null,{default:o(()=>[e(u,{type:"primary",onClick:s($)},{default:o(()=>[_e]),_:1},8,["onClick"]),e(u,{onClick:s(L)},{default:o(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),m((a(),p(F,{class:"!border-none",shadow:"never"},{default:o(()=>[m((a(),p(u,{type:"primary",onClick:N},{icon:o(()=>[e(j,{name:"el-icon-Plus"})]),default:o(()=>[ve]),_:1})),[[g,["supervision_prepare.supervision_construction_planning/add"]]]),m((a(),p(u,{disabled:!k.value.length,onClick:t[1]||(t[1]=n=>b(k.value))},{default:o(()=>[he]),_:1},8,["disabled"])),[[g,["supervision_prepare.supervision_construction_planning/delete"]]]),x("div",Ce,[e(I,{data:s(c).lists,onSelectionChange:P},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u6587\u6863\u540D\u79F0",prop:"doc_name","show-overflow-tooltip":""}),e(l,{label:"\u6587\u6863\u7B80\u4ECB",prop:"doc_desc","show-overflow-tooltip":""}),e(l,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""},{default:o(({row:n})=>[n.annex&&n.annex.length>0?(a(),d("div",ge,[(a(!0),d(pe,null,ce(n.annex,(E,y)=>(a(),d("div",{key:y},[e(A,{href:E.uri,target:"_blank"},{default:o(()=>[r("\u6587\u4EF6"+me(y+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(a(),d("div",ke," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(l,{label:"\u64CD\u4F5C\u4EBA",prop:"create_user_name","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:n})=>[m((a(),p(u,{type:"primary",link:"",onClick:E=>T(n)},{default:o(()=>[Ee]),_:2},1032,["onClick"])),[[g,["supervision_prepare.supervision_construction_planning/edit"]]]),m((a(),p(u,{type:"danger",link:"",onClick:E=>b(n.id)},{default:o(()=>[be]),_:2},1032,["onClick"])),[[g,["supervision_prepare.supervision_construction_planning/delete"]]])]),_:1})]),_:1},8,["data"])]),x("div",we,[e(U,{modelValue:s(c),"onUpdate:modelValue":t[2]||(t[2]=n=>de(c)?c.value=n:null),onChange:s(h)},null,8,["modelValue","onChange"])])]),_:1})),[[M,s(c).loading]]),f.value?(a(),p(te,{key:0,ref_key:"editRef",ref:_,"dict-data":s(S),onSuccess:s(h),onClose:t[3]||(t[3]=n=>f.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0)])}}});export{_o as default};