var w=(n,d,e)=>new Promise((c,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?c(o.value):Promise.resolve(o.value).then(m,t);l((e=e.apply(n,d)).next())});import{_ as D,d as b,r as g,N as y,f as u,g as r,K as i,m as v,l as _,j as p}from"./index.9fabe127.js";import F from"./flowRecord.40585eda.js";import k from"./sjFlowRecord.9a6394f0.js";import"./index.15f81060.js";import"./index.18a3894b.js";const N=b({name:"flowRecordDialog"}),x=Object.assign(N,{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:d}){const e=n,c=d,a=g("1");return y(()=>e.visible,m=>w(this,null,function*(){a.value=e.sjFlowData?"2":"1"})),(m,t)=>{const l=u("el-tab-pane"),o=u("el-tabs"),s=u("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]=f=>c("close"))},{default:v(()=>{var f;return[(f=e==null?void 0:e.sjFlowData)!=null&&f.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(x,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/projectStore/projectDetail/components/flowRecordDialog.vue"]]);export{A as default};
