import b from"./flowRecord.886593f4.js";import y from"./sjFlowRecord.381212e1.js";import{d as D,r as g,L as j,c as s,e as l,I as o,i as r,h as u,k as d}from"./index.5bb861d3.js";import"./index.3f9c5e64.js";import"./index.dea5e324.js";const k=D({name:"flowRecordDialog"}),B=Object.assign(k,{props:{visible:{type:Boolean,default:!1,required:!0},flowData:{type:Array,default:void 0},sjFlowData:{type:String,default:void 0}},emits:["close"],setup(i,{emit:f}){const e=i,c=f,a=g("1");return j(()=>e.visible,async p=>{a.value=e.sjFlowData?"2":"1"}),(p,t)=>{const m=s("el-tab-pane"),_=s("el-tabs"),w=s("el-dialog");return l(),o(w,{"model-value":i.visible,title:"\u5BA1\u6838\u8BB0\u5F55",width:"70%","destroy-on-close":"",onClose:t[1]||(t[1]=n=>c("close"))},{default:r(()=>{var n;return[(n=e==null?void 0:e.sjFlowData)!=null&&n.length?(l(),o(_,{key:0,modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=v=>a.value=v),class:"mb-16"},{default:r(()=>[u(m,{label:"\u7701\u7EA7\u90E8\u95E8\u8054\u5BA1\u6D41\u7A0B\u8BB0\u5F55",name:"2"}),u(m,{label:"\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B\u8BB0\u5F55",name:"1"})]),_:1},8,["modelValue"])):d("",!0),a.value==="1"?(l(),o(b,{key:1,"flow-data":e.flowData||[]},null,8,["flow-data"])):d("",!0),a.value==="2"?(l(),o(y,{key:2,"flow-data":e.sjFlowData&&JSON.parse(e.sjFlowData)||[]},null,8,["flow-data"])):d("",!0)]}),_:1},8,["model-value"])}}});export{B as default};
