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

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