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

2 lines
4.7 KiB
JavaScript

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