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

2 lines
5.9 KiB
JavaScript

import{I as H,y as J,w as K,D as Q,C as X,L as Y,a2 as Z,M as ee,N as te}from"./element-plus.258bf9e7.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as ae,a as le}from"./index.ec401e3b.js";import{u as se}from"./usePaging.f6660143.js";import{u as ne}from"./useDictOptions.c644f395.js";import{_ as ue,s as ie,a as re,b as de}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.c70ceac3.js";import{d as S,a0 as x,s as L,r as k,ai as pe,o as l,c as f,V as e,M as o,O as v,u,L as d,S as $,a as P,W as me,a8 as ce,k as _e,T as p,n as R,U as fe}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import ve from"./detail.c70c23ee.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"./department.1c914e1a.js";import"./organization.f0387125.js";import"./custom.13e75d58.js";const ye=p("\u67E5\u8BE2"),Ce=p("\u91CD\u7F6E"),he=p(" \u65B0\u589E "),Ee=p(" \u5220\u9664 "),be={class:"mt-4"},we={key:0},ke={key:1},Fe=p(" \u7F16\u8F91 "),De=p(" \u5220\u9664 "),ge={class:"flex justify-end mt-4"},Be=S({name:"projectLists"}),yt=S({...Be,setup(Ve){x([]);const N=L(),y=L(),C=k(!1),F=k(!1),i=x({publish_dep:"",name:"",type:""}),b=k([]),T=s=>{b.value=s.map(({id:t})=>t)},{dictData:D}=ne("refund_type"),{pager:_,getLists:h,resetParams:U,resetPage:I}=se({fetchFun:ie,params:i}),j=async()=>{var s;C.value=!0,await R(),(s=y.value)==null||s.open("add")},A=async s=>{var m,r;console.log(s.id);let t=await re({id:s.id});C.value=!0,await R(),(m=y.value)==null||m.open("edit"),(r=y.value)==null||r.setFormData(t)},g=async s=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:s}),h()};return h(),(s,t)=>{const m=H,r=J,c=K,M=Q,B=X,q=le,n=Y,O=Z,W=ee,z=oe,E=pe("perms"),G=te;return l(),f("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(M,{class:"mb-[-16px]",model:i,inline:""},{default:o(()=>[e(r,{label:"\u89C4\u8303\u7C7B\u522B",prop:"type"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:i.type,"onUpdate:modelValue":t[0]||(t[0]=a=>i.type=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89C4\u8303\u7C7B\u522B"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u89C4\u8303\u540D\u79F0",prop:"name"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:i.name,"onUpdate:modelValue":t[1]||(t[1]=a=>i.name=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u89C4\u8303\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(r,{label:"\u53D1\u5E03\u90E8\u95E8",prop:"publish_dep"},{default:o(()=>[e(m,{class:"w-[280px]",modelValue:i.publish_dep,"onUpdate:modelValue":t[2]||(t[2]=a=>i.publish_dep=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u90E8\u95E8"},null,8,["modelValue"])]),_:1}),e(r,null,{default:o(()=>[e(c,{type:"primary",onClick:u(I)},{default:o(()=>[ye]),_:1},8,["onClick"]),e(c,{onClick:u(U)},{default:o(()=>[Ce]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((l(),d(B,{class:"!border-none",shadow:"never"},{default:o(()=>[v((l(),d(c,{type:"primary",onClick:j},{icon:o(()=>[e(q,{name:"el-icon-Plus"})]),default:o(()=>[he]),_:1})),[[E,["safety.safety_standard/add"]]]),v((l(),d(c,{disabled:!b.value.length,onClick:t[3]||(t[3]=a=>g(b.value))},{default:o(()=>[Ee]),_:1},8,["disabled"])),[[E,["safety.safety_standard/delete"]]]),P("div",be,[e(W,{data:u(_).lists,onSelectionChange:T},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(n,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"org_name","show-overflow-tooltip":""}),e(n,{label:"\u90E8\u95E8\u540D\u79F0",prop:"dept_name","show-overflow-tooltip":""}),e(n,{label:"\u89C4\u8303\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(n,{label:"\u89C4\u8303\u7C7B\u522B",prop:"type","show-overflow-tooltip":""}),e(n,{label:"\u53D1\u5E03\u90E8\u95E8",prop:"publish_dep","show-overflow-tooltip":""}),e(n,{label:"\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(n,{label:"\u89C4\u8303\u9644\u4EF6",prop:"file","show-overflow-tooltip":""},{default:o(({row:a})=>[a.file&&a.file.length>0?(l(),f("div",we,[(l(!0),f(me,null,ce(a.file,(w,V)=>(l(),f("div",{key:V},[e(O,{href:w,target:"_blank"},{default:o(()=>[p("\u6587\u4EF6"+fe(V+1)+"\u67E5\u770B",1)]),_:2},1032,["href"])]))),128))])):(l(),f("div",ke," \u6682\u65E0\u6587\u4EF6 "))]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:a})=>[v((l(),d(c,{type:"primary",link:"",onClick:w=>A(a)},{default:o(()=>[Fe]),_:2},1032,["onClick"])),[[E,["safety.safety_standard/edit"]]]),v((l(),d(c,{type:"danger",link:"",onClick:w=>g(a.id)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[E,["safety.safety_standard/delete"]]])]),_:1})]),_:1},8,["data"])]),P("div",ge,[e(z,{modelValue:u(_),"onUpdate:modelValue":t[4]||(t[4]=a=>_e(_)?_.value=a:null),onChange:u(h)},null,8,["modelValue","onChange"])])]),_:1})),[[G,u(_).loading]]),C.value?(l(),d(ue,{key:0,ref_key:"editRef",ref:y,"dict-data":u(D),onSuccess:u(h),onClose:t[5]||(t[5]=a=>C.value=!1)},null,8,["dict-data","onSuccess"])):$("",!0),F.value?(l(),d(ve,{key:1,ref_key:"detailRef",ref:N,"dict-data":u(D),onClose:t[6]||(t[6]=a=>F.value=!1)},null,8,["dict-data"])):$("",!0)])}}});export{yt as default};