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

2 lines
4.3 KiB
JavaScript

import{R as C,S,T as R,U as T,C as V}from"./element-plus.258bf9e7.js";import{P as L}from"./index.9492d03b.js";import{K as N,e as P}from"./@element-plus.b89f1627.js";import"./index.ec401e3b.js";import{d as g,s as U,a0 as j,o as i,c as p,V as e,M as t,T as s,U as r,W as b,a8 as F,L as A,u as E}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.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"./lodash.1d82ee7c.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 I={class:"edit-popup"},K=g({name:"projectEdit"}),De=g({...K,emits:["success","close"],setup(M,{expose:D,emit:m}){const _=U(),l=j({id:11,title:"",create_user:1,check_status:0,flow_name:"",check_status_text:"",current_check_user:"",create_user_name:"admin",copy_user:"admin",content:{},step:[{flow_step:0,flow_user:"",is_active:0,flow_step_text:""},{flow_step:2,flow_user:"\u6D4B\u8BD5\u6DFB\u52A0\u7BA1\u7406,\u6D4B\u8BD5",is_active:1,flow_step_text:"\u6307\u5B9A\u7528\u6237\uFF08\u4EFB\u610F\u4E00\u4EBA\uFF09"},{flow_step:2,flow_user:"\u6D4B\u8BD5\u6DFB\u52A0\u7BA1\u7406,\u6D4B\u8BD5",is_active:0,flow_step_text:"\u6307\u5B9A\u7528\u6237\uFF08\u4EFB\u610F\u4E00\u4EBA\uFF09"},{flow_step:3,flow_user:"\u7A76\u6781\u5F20\u4F1F,\u8D75\u660E\u519B",is_active:0,flow_step_text:"\u6307\u5B9A\u7528\u6237\uFF08\u591A\u4EBA\u4F1A\u7B7E\uFF09"}],record:[{title:"admin\u63D0\u4EA4\u4E86\u6B64\u7533\u8BF7",content:"\u63D0\u4EA4\u7533\u8BF7",check_time:"2024-02-03",status:0,status_text:"\u53D1\u8D77\u7533\u8BF7"}]}),w=async u=>{for(const o in l)u[o]!=null&&u[o]!=null&&(l[o]=u[o])},y=async()=>{var u;(u=_.value)==null||u.close(),m("success")},v=()=>{var u;(u=_.value)==null||u.open()},h=()=>{m("close")},k=(u,o)=>o==0?l.create_user_name+"\u521B\u5EFA":u.flow_step_text;return D({open:v,setFormData:w}),(u,o)=>{const a=C,f=S,B=R,d=T,x=V;return i(),p("div",I,[e(L,{ref_key:"popupRef",ref:_,async:!0,width:"60vw",onConfirm:y,onClose:h},{default:t(()=>[e(x,null,{default:t(()=>[e(f,{column:3,title:"\u5BA1\u6279\u8BE6\u60C5",border:""},{default:t(()=>[e(a,{label:"\u5BA1\u6279\u4E3B\u9898","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[s(r(l.title),1)]),_:1}),e(a,{label:"\u5BA1\u6279\u6D41\u7A0B","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[s(r(l.flow_name),1)]),_:1}),e(a,{label:"\u5BA1\u6838\u72B6\u6001","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[s(r(l.check_status_text),1)]),_:1}),e(a,{label:"\u7533\u8BF7\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[s(r(l.create_user_name),1)]),_:1}),e(a,{label:"\u5F53\u524D\u5BA1\u6279\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[s(r(l.current_check_user),1)]),_:1}),e(a,{label:"\u6284\u9001\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[s(r(l.copy_user),1)]),_:1})]),_:1}),e(f,{column:1,border:""},{default:t(()=>[e(a,{label:"\u5BA1\u6279\u6D41\u7A0B","label-align":"left",align:"left"},{default:t(()=>[e(d,{active:1,simple:"","align-center":!0},{default:t(()=>[(i(!0),p(b,null,F(l.step,(c,n)=>(i(),A(B,{title:k(c,n),icon:n==0?E(N):E(P),key:n},null,8,["title","icon"]))),128))]),_:1})]),_:1}),e(a,{label:"\u5BA1\u6279\u8BB0\u5F55","label-align":"left",align:"left"},{default:t(()=>[e(d,{direction:"vertical",active:l.record.length,"align-center":!0,space:50,style:{"margin-top":"20px"}},{default:t(()=>[(i(!0),p(b,null,F(l.record,(c,n)=>(i(),A(B,{title:c.check_time+c.title,key:n},null,8,["title"]))),128))]),_:1},8,["active"])]),_:1})]),_:1})]),_:1})]),_:1},512)])}}});export{De as default};