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