2 lines
5.2 KiB
JavaScript
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,_ as J,M as K,N as Q}from"./element-plus.517d4382.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as Y,a as Z}from"./index.8b1962e9.js";import{u as ee}from"./usePaging.f6660143.js";import{u as oe}from"./useDictOptions.b5854a9e.js";import{_ as te,a as se,b as ae,c as ne}from"./edit.vue_vue_type_script_setup_true_name_supervisionFirstMeetingEdit_lang.d4e177db.js";import{d as V,s as ie,r as y,a0 as le,ai as re,o as a,c as _,V as e,M as o,O as m,u as i,L as p,S as ue,a as x,W as pe,a8 as de,k as ce,T as r,n as B,U as _e}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.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.471c5751.js";import"./supervision_project.4c9eb87e.js";import"./index.e6dda1f5.js";import"./index.b17dae19.js";const me=r("\u67E5\u8BE2"),fe=r("\u91CD\u7F6E"),ve=r(" \u65B0\u589E "),he=r(" \u5220\u9664 "),ge={class:"mt-4"},Ce={key:0},De={key:1},ke=r(" \u7F16\u8F91 "),Ee=r(" \u5220\u9664 "),be={class:"flex mt-4 justify-end"},we=V({name:"supervisionDesignDisclosureLists"}),mo=V({...we,setup(Fe){const f=ie(),v=y(!1),h=le({project_id:"",doc_name:""}),k=y([]),S=n=>{k.value=n.map(({id:t})=>t)},{dictData:L}=oe(""),{pager:d,getLists:g,resetParams:$,resetPage:N}=ee({fetchFun:se,params:h}),P=async()=>{var n;v.value=!0,await B(),(n=f.value)==null||n.open("add")},T=async n=>{var C,c;let t=await ae({id:n.id});v.value=!0,await B(),(C=f.value)==null||C.open("edit"),(c=f.value)==null||c.setFormData(t)},b=async n=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:n}),g()};return g(),(n,t)=>{const C=q,c=O,u=W,R=z,w=G,j=Z,l=H,A=J,I=K,U=X,D=re("perms"),M=Q;return a(),_("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(R,{class:"mb-[-16px]",model:h,inline:""},{default:o(()=>[e(c,{label:"\u6587\u6863\u540D\u79F0",prop:"doc_name"},{default:o(()=>[e(C,{class:"w-[280px]",modelValue:h.doc_name,"onUpdate:modelValue":t[0]||(t[0]=s=>h.doc_name=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6587\u6863\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(c,null,{default:o(()=>[e(u,{type:"primary",onClick:i(N)},{default:o(()=>[me]),_:1},8,["onClick"]),e(u,{onClick:i($)},{default:o(()=>[fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),m((a(),p(w,{class:"!border-none",shadow:"never"},{default:o(()=>[m((a(),p(u,{type:"primary",onClick:P},{icon:o(()=>[e(j,{name:"el-icon-Plus"})]),default:o(()=>[ve]),_:1})),[[D,["supervision_const_prepare.supervision_design_disclosure/add"]]]),m((a(),p(u,{disabled:!k.value.length,onClick:t[1]||(t[1]=s=>b(k.value))},{default:o(()=>[he]),_:1},8,["disabled"])),[[D,["supervision_const_prepare.supervision_design_disclosure/delete"]]]),x("div",ge,[e(I,{data:i(d).lists,onSelectionChange:S},{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:s})=>[s.annex&&s.annex.length>0?(a(),_("div",Ce,[(a(!0),_(pe,null,de(s.annex,(E,F)=>(a(),_("div",{key:F},[e(A,{href:E,target:"_blank"},{default:o(()=>[r("\u6587\u4EF6"+_e(F+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(a(),_("div",De," \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:s})=>[m((a(),p(u,{type:"primary",link:"",onClick:E=>T(s)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[D,["supervision_const_prepare.supervision_design_disclosure/edit"]]]),m((a(),p(u,{type:"danger",link:"",onClick:E=>b(s.id)},{default:o(()=>[Ee]),_:2},1032,["onClick"])),[[D,["supervision_const_prepare.supervision_design_disclosure/delete"]]])]),_:1})]),_:1},8,["data"])]),x("div",be,[e(U,{modelValue:i(d),"onUpdate:modelValue":t[2]||(t[2]=s=>ce(d)?d.value=s:null),onChange:i(g)},null,8,["modelValue","onChange"])])]),_:1})),[[M,i(d).loading]]),v.value?(a(),p(te,{key:0,ref_key:"editRef",ref:f,"dict-data":i(L),onSuccess:i(g),onClose:t[3]||(t[3]=s=>v.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0)])}}});export{mo as default};
|