|
- var w=(n,c,e)=>new Promise((d,a)=>{var m=o=>{try{l(e.next(o))}catch(s){a(s)}},t=o=>{try{l(e.throw(o))}catch(s){a(s)}},l=o=>o.done?d(o.value):Promise.resolve(o.value).then(m,t);l((e=e.apply(n,c)).next())});import{_ as D,d as b,r as g,L as y,c as f,e as r,I as i,j as v,i as _,h as p}from"./index.386f0bb5.js";import F from"./flowRecord.97750c3e.js";import k from"./sjFlowRecord.08b05dfa.js";import"./index.4c1337ea.js";import"./index.e184d525.js";const x=b({name:"flowRecordDialog"}),C=Object.assign(x,{props:{visible:{type:Boolean,default:!1,required:!0},flowData:{type:Array,default:void 0},sjFlowData:{type:String,default:void 0}},emits:["close"],setup(n,{emit:c}){const e=n,d=c,a=g("1");return y(()=>e.visible,m=>w(this,null,function*(){a.value=e.sjFlowData?"2":"1"})),(m,t)=>{const l=f("el-tab-pane"),o=f("el-tabs"),s=f("el-dialog");return r(),i(s,{"model-value":n.visible,title:"\u5BA1\u6838\u8BB0\u5F55",width:"70%","destroy-on-close":"",onClose:t[1]||(t[1]=u=>d("close"))},{default:v(()=>{var u;return[(u=e==null?void 0:e.sjFlowData)!=null&&u.length?(r(),i(o,{key:0,modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=j=>a.value=j),class:"mb-16"},{default:v(()=>[_(l,{label:"\u7701\u7EA7\u90E8\u95E8\u8054\u5BA1\u6D41\u7A0B\u8BB0\u5F55",name:"2"}),_(l,{label:"\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B\u8BB0\u5F55",name:"1"})]),_:1},8,["modelValue"])):p("v-if",!0),a.value==="1"?(r(),i(F,{key:1,"flow-data":e.flowData||[]},null,8,["flow-data"])):p("v-if",!0),a.value==="2"?(r(),i(k,{key:2,"flow-data":e.sjFlowData&&JSON.parse(e.sjFlowData)||[]},null,8,["flow-data"])):p("v-if",!0)]}),_:1},8,["model-value"])}}}),A=D(C,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/projectStore/projectDetail/components/flowRecordDialog.vue"]]);export{A as default};
|