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

2 lines
3.9 KiB
JavaScript

import{y as S,A as I,B as V,C as N,D as j}from"./element-plus.258bf9e7.js";import{P}from"./index.9492d03b.js";import{a as A}from"./custom.13e75d58.js";import{d as y,s as h,a0 as d,o as _,c,V as e,M as t,T as r,U as n,W as T,a8 as $,S as L,a as f,b7 as M,b6 as U}from"./@vue.ab566ce7.js";import"./lodash.1d82ee7c.js";import{_ as W}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 q=u=>(M("data-v-8fd2d6c7"),u=u(),U(),u),z={class:"detail-popup"},G={key:0},H={style:{"margin-left":"5px",display:"block"}},J=["href"],K=["onClick"],Q=q(()=>f("div",null,"\u6682\u65E0\u9644\u4EF6",-1)),X=y({name:"customdetail"}),Y=y({...X,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(u,{expose:v,emit:x}){const F=h(),m=h(),p=d([]);d({provinceOptions:[],cityOptions:[],areaOptions:[]});const a=d({}),C=async o=>{if(o.annex&&o.annex.length>0){const i=o.annex.map((l,s)=>({name:`\u6587\u4EF6${s+1}`,uri:l}));Object.assign(p,i)}Object.assign(a,o)},g=async o=>{const i=await A({id:a.id});C(i)},D=async()=>{var o;(o=m.value)==null||o.close()},E=()=>{var o;console.log("1111111"),(o=m.value)==null||o.open()},B=()=>{x("close")};return v({open:E,setFormData:C,getDetail:g}),(o,i)=>{const l=S,s=I,k=V,w=N,O=j;return _(),c("div",z,[e(P,{ref_key:"popupRef",ref:m,title:"\u81EA\u8D2D\u6750\u6599\u8BE6\u60C5",async:!0,width:"80%",onConfirm:D,onClose:B},{default:t(()=>[e(O,{ref_key:"formRef",ref:F,model:a,"label-width":"160px"},{default:t(()=>[e(w,{class:"mb-2"},{default:t(()=>[e(k,null,{default:t(()=>[e(s,{span:8},{default:t(()=>[e(l,{label:"\u6750\u6599\u5927\u7C7B"},{default:t(()=>[r(n(a.first_level_name),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u6750\u6599\u4E2D\u7C7B"},{default:t(()=>[r(n(a.second_level_name),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u6750\u6599\u5C0F\u7C7B"},{default:t(()=>[r(n(a.three_level_name),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u6750\u6599\u540D\u79F0"},{default:t(()=>[r(n(a.name),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u6750\u6599\u7F16\u7801"},{default:t(()=>[r(n(a.code),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u54C1\u724C"},{default:t(()=>[r(n(a.brand),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u89C4\u683C\u578B\u53F7"},{default:t(()=>[r(n(a.specs),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u53C2\u6570\u8BF4\u660E"},{default:t(()=>[r(n(a.parameter_description),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u5355\u4F4D"},{default:t(()=>[r(n(a.unit),1)]),_:1})]),_:1}),e(s,{span:8},{default:t(()=>[e(l,{label:"\u9644\u4EF6"},{default:t(()=>[p&&p.length>0?(_(),c("div",G,[(_(!0),c(T,null,$(p,(b,R)=>(_(),c("div",H,[f("a",{style:{"margin-left":"10px",color:"#4a5dff","align-self":"flex-start"},href:b.uri,target:"_blank"},n(b.name),9,J),f("span",{style:{cursor:"pointer","margin-left":"5px"},onClick:Z=>o.delFileFn(R)},"x",8,K)]))),256))])):L("",!0),Q]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});const je=W(Y,[["__scopeId","data-v-8fd2d6c7"]]);export{je as default};