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