|
- import b from"./flowRecord.7808bb62.js";import y from"./sjFlowRecord.407d823f.js";import{d as D,r as g,J as j,c as d,e as l,G as o,i as u,h as f,k as i}from"./index.e8b71da7.js";import"./index.4cb63fa6.js";import"./index.555a865f.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},detail:{type:Object,default:void 0}},emits:["close"],setup(n,{emit:r}){const e=n,c=r,a=g("1");return j(()=>e.visible,async p=>{console.log(e.flowData),a.value=e.sjFlowData?"2":"1"}),(p,t)=>{const m=d("el-tab-pane"),w=d("el-tabs"),_=d("el-dialog");return l(),o(_,{"model-value":n.visible,title:"\u5BA1\u6838\u8BB0\u5F55",width:"70%","destroy-on-close":"",onClose:t[1]||(t[1]=s=>c("close"))},{default:u(()=>{var s;return[(s=e==null?void 0:e.sjFlowData)!=null&&s.length?(l(),o(w,{key:0,modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=v=>a.value=v),class:"mb-16"},{default:u(()=>[f(m,{label:"\u7701\u7EA7\u90E8\u95E8\u8054\u5BA1\u6D41\u7A0B\u8BB0\u5F55",name:"2"}),f(m,{label:"\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B\u8BB0\u5F55",name:"1"})]),_:1},8,["modelValue"])):i("",!0),a.value==="1"?(l(),o(b,{key:1,"flow-data":e.flowData||[],detail:n.detail},null,8,["flow-data","detail"])):i("",!0),a.value==="2"?(l(),o(y,{key:2,"flow-data":e.sjFlowData&&JSON.parse(e.sjFlowData)||[]},null,8,["flow-data"])):i("",!0)]}),_:1},8,["model-value"])}}});export{B as default};
|