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

2 lines
3.4 KiB
JavaScript

import{y as R,A as V,B as j,C as N,D as P}from"./element-plus.258bf9e7.js";import{P as I}from"./index.9492d03b.js";import{a as S}from"./custom.13e75d58.js";import{d as y,s as C,a0 as u,o as m,c as _,V as t,M as e,T as r,U as n,a as c,W as T,a8 as $}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as A}from"./index.ec401e3b.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";const L={class:"detail-popup"},M={style:{"margin-left":"5px",display:"block"}},U=["href"],W=["onClick"],q=y({name:"customdetail"}),z=y({...q,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(G,{expose:E,emit:h}){const g=C(),i=C(),f=u([]);u({provinceOptions:[],cityOptions:[],areaOptions:[]});const s=u({}),d=async o=>{if(Object.assign(s,o),o.file&&o.file.length>0){const p=o.file.map((a,l)=>({name:`\u6587\u4EF6${l+1}`,uri:a}));Object.assign(f,p)}},D=async o=>{const p=await S({id:o.id});d(p)},x=async()=>{var o;(o=i.value)==null||o.close()},v=()=>{var o;console.log("1111111"),(o=i.value)==null||o.open()},F=()=>{h("close")};return E({open:v,setFormData:d,getDetail:D}),(o,p)=>{const a=R,l=V,B=j,k=N,w=P;return m(),_("div",L,[t(I,{ref_key:"popupRef",ref:i,title:"\u5B89\u5168\u89C4\u8303\u8BE6\u60C5",async:!0,width:"80%",onConfirm:x,onClose:F},{default:e(()=>[t(w,{ref_key:"formRef",ref:g,model:s,"label-width":"160px"},{default:e(()=>[t(k,{class:"mb-2"},{default:e(()=>[t(B,null,{default:e(()=>[t(l,{span:12},{default:e(()=>[t(a,{label:"\u7EC4\u7EC7\u540D\u79F0"},{default:e(()=>[r(n(s.org_name),1)]),_:1})]),_:1}),t(l,{span:12},{default:e(()=>[t(a,{label:"\u90E8\u95E8\u540D\u79F0"},{default:e(()=>[r(n(s.dept_name),1)]),_:1})]),_:1}),t(l,{span:12},{default:e(()=>[t(a,{label:"\u89C4\u8303\u540D\u79F0"},{default:e(()=>[r(n(s.name),1)]),_:1})]),_:1}),t(l,{span:12},{default:e(()=>[t(a,{label:"\u89C4\u8303\u7C7B\u522B"},{default:e(()=>[r(n(s.type),1)]),_:1})]),_:1}),t(l,{span:12},{default:e(()=>[t(a,{label:"\u53D1\u5E03\u90E8\u95E8"},{default:e(()=>[r(n(s.publish_dep),1)]),_:1})]),_:1}),t(l,{span:12},{default:e(()=>[t(a,{label:"\u5185\u5BB9"},{default:e(()=>[r(n(s.content),1)]),_:1})]),_:1}),t(l,{span:12},{default:e(()=>[t(a,{label:"\u89C4\u8303\u9644\u4EF6"},{default:e(()=>[c("div",null,[(m(!0),_(T,null,$(f,(b,O)=>(m(),_("div",M,[c("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:b.uri,target:"_blank"},n(b.name),9,U),c("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:H=>o.delFileFn(O)},"x",8,W)]))),256))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const Ot=A(z,[["__scopeId","data-v-b7b06014"]]);export{Ot as default};