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

2 lines
4.6 KiB
JavaScript

import{w as O,L as U,M as z,C as G,N as H}from"./element-plus.258bf9e7.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as J,a as K}from"./index.ec401e3b.js";import{u as Q}from"./usePaging.f6660143.js";import{u as W}from"./useDictOptions.c644f395.js";import{_ as X,a as Y,b as j,c as Z}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.b41f4f70.js";import"./lodash.1d82ee7c.js";import ee from"./detail.89e2a6a9.js";import{d as $,a0 as D,s as B,r as E,ai as te,o as l,c as oe,O as u,u as c,L as r,M as s,S as x,V as o,a as P,k as ae,T as _,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.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.5a5f706a.js";import"./project.bccf4059.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.13e75d58.js";const ie=_(" \u65B0\u589E "),le=_(" \u5220\u9664 "),se={class:"mt-4"},ne=_(" \u7F16\u8F91 "),re=_(" \u5220\u9664 "),pe=_(" \u8BE6\u60C5 "),ce={class:"flex justify-end mt-4"},ue=$({name:"projectLists"}),it=$({...ue,setup(de){D([]);const h=B(),f=B(),v=E(!1),C=E(!1),V=D({}),k=E([]),L=t=>{k.value=t.map(({id:e})=>e)},{dictData:b}=W("follow_type"),{pager:d,getLists:w,resetParams:me,resetPage:_e}=Q({fetchFun:Y,params:V}),R=async()=>{var t;v.value=!0,await g(),(t=f.value)==null||t.open("add")},A=async t=>{var p,a;console.log(t.id);let e=await j({id:t.id});v.value=!0,await g(),(p=f.value)==null||p.open("edit"),(a=f.value)==null||a.setFormData(e)},y=async t=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:t}),w()},N=async t=>{var p,a;let e=await j({id:t.id});C.value=!0,await g(),(p=h.value)==null||p.open(),(a=h.value)==null||a.setFormData(e)};return w(),(t,e)=>{const p=K,a=O,i=U,S=z,T=I,M=G,m=te("perms"),q=H;return l(),oe("div",null,[u((l(),r(M,{class:"!border-none",shadow:"never"},{default:s(()=>[u((l(),r(a,{type:"primary",onClick:R},{icon:s(()=>[o(p,{name:"el-icon-Plus"})]),default:s(()=>[ie]),_:1})),[[m,["project.project/add"]]]),u((l(),r(a,{disabled:!k.value.length,onClick:e[0]||(e[0]=n=>y(k.value))},{default:s(()=>[le]),_:1},8,["disabled"])),[[m,["project.project/delete"]]]),P("div",se,[o(S,{data:c(d).lists,onSelectionChange:L},{default:s(()=>[o(i,{type:"selection",width:"55"}),o(i,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(i,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),o(i,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),o(i,{label:"\u65E5\u5FD7\u8BE6\u60C5",prop:"content","show-overflow-tooltip":""}),o(i,{label:"\u9644\u4EF6",prop:"annex","show-overflow-tooltip":""}),o(i,{label:"\u6DFB\u52A0\u4EBA",prop:"add_user_name","show-overflow-tooltip":""}),o(i,{label:"\u521B\u5EFA\u65E5\u671F",prop:"create_time","show-overflow-tooltip":""}),o(i,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:s(({row:n})=>[u((l(),r(a,{type:"primary",link:"",onClick:F=>A(n)},{default:s(()=>[ne]),_:2},1032,["onClick"])),[[m,["project.project/edit"]]]),u((l(),r(a,{type:"danger",link:"",onClick:F=>y(n.id)},{default:s(()=>[re]),_:2},1032,["onClick"])),[[m,["project.project/delete"]]]),u((l(),r(a,{link:"",onClick:F=>N(n)},{default:s(()=>[pe]),_:2},1032,["onClick"])),[[m,["project.project/detail"]]])]),_:1})]),_:1},8,["data"])]),P("div",ce,[o(T,{modelValue:c(d),"onUpdate:modelValue":e[1]||(e[1]=n=>ae(d)?d.value=n:null),onChange:c(w)},null,8,["modelValue","onChange"])])]),_:1})),[[q,c(d).loading]]),v.value?(l(),r(X,{key:0,ref_key:"editRef",ref:f,"dict-data":c(b),onSuccess:c(w),onClose:e[2]||(e[2]=n=>v.value=!1)},null,8,["dict-data","onSuccess"])):x("",!0),C.value?(l(),r(ee,{key:1,ref_key:"detailRef",ref:h,"dict-data":c(b),onClose:e[3]||(e[3]=n=>C.value=!1)},null,8,["dict-data"])):x("",!0)])}}});export{it as default};