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

2 lines
3.6 KiB
JavaScript

import{y as R,A as j,B as V,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 g,s as b,a0 as u,o as m,c,V as e,M as t,T as r,U as n,a as _,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=g({name:"customdetail"}),z=g({...q,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(G,{expose:E,emit:x}){const C=b(),i=b(),d=u([]);u({provinceOptions:[],cityOptions:[],areaOptions:[]});const s=u({}),f=async o=>{if(Object.assign(s,o),o.annex&&o.annex.length>0){const p=o.annex.map((a,l)=>({name:`\u6587\u4EF6${l+1}`,uri:a}));Object.assign(d,p)}},h=async o=>{const p=await S({id:o.id});f(p)},F=async()=>{var o;(o=i.value)==null||o.close()},v=()=>{var o;console.log("1111111"),(o=i.value)==null||o.open()},D=()=>{x("close")};return E({open:v,setFormData:f,getDetail:h}),(o,p)=>{const a=R,l=j,k=V,w=N,B=P;return m(),c("div",L,[e(I,{ref_key:"popupRef",ref:i,title:"\u9879\u76EE\u6587\u6863\u8BE6\u60C5",async:!0,width:"80%",onConfirm:F,onClose:D},{default:t(()=>[e(B,{ref_key:"formRef",ref:C,model:s,"label-width":"120px"},{default:t(()=>[e(w,{class:"mb-2"},{default:t(()=>[e(k,null,{default:t(()=>[e(l,{span:12},{default:t(()=>[e(a,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[r(n(s.project_name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(a,{label:"\u9879\u76EE\u7F16\u7801"},{default:t(()=>[r(n(s.project_code),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(a,{label:"\u6587\u6863\u5927\u7C7B"},{default:t(()=>[r(n(s.large_category),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(a,{label:"\u6587\u6863\u7F16\u53F7"},{default:t(()=>[r(n(s.code),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(a,{label:"\u6587\u6863\u540D\u79F0"},{default:t(()=>[r(n(s.name),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(a,{label:"\u6587\u6863\u4E2D\u7C7B"},{default:t(()=>[r(n(s.middle_category),1)]),_:1})]),_:1}),e(l,{span:12},{default:t(()=>[e(a,{label:"\u7248\u672C\u53F7"},{default:t(()=>[r(n(s.version),1)]),_:1})]),_:1}),e(l,{span:24},{default:t(()=>[e(a,{label:"\u9644\u4EF6",prop:"field127"},{default:t(()=>[_("div",null,[(m(!0),c(T,null,$(d,(y,O)=>(m(),c("div",M,[_("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:y.uri,target:"_blank"},n(y.name),9,U),_("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 Oe=A(z,[["__scopeId","data-v-14193a60"]]);export{Oe as default};