You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
3.5 KiB

var E=Object.defineProperty,W=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var D=(l,a,e)=>a in l?E(l,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[a]=e,w=(l,a)=>{for(var e in a||(a={}))A.call(a,e)&&D(l,e,a[e]);if(B)for(var e of B(a))j.call(a,e)&&D(l,e,a[e]);return l},h=(l,a)=>W(l,I(a));var k=(l,a,e)=>new Promise((f,i)=>{var s=d=>{try{p(e.next(d))}catch(n){i(n)}},v=d=>{try{p(e.throw(d))}catch(n){i(n)}},p=d=>d.done?f(d.value):Promise.resolve(d.value).then(s,v);p((e=e.apply(l,a)).next())});import{d as O,q as P,r as S,o as m,g as F,b as u,w as r,t as R,u as o,bB as T,h as _,j as x,B as C,bo as H,Y as y,$ as N,aT as U}from"./index-f4658ae7.js";/* empty css *//* empty css */import{a as V,R as b}from"./index-3590612f.js";import{S as M}from"./index-70ffad01.js";import{F as $}from"./index-d51f1b4b.js";import{F as g}from"./FormItem-a040ce00.js";const q={class:"p-1"},z={key:0,class:"ant-tag-red"},G={key:1,class:"content"},J={class:"btn-groups",style:{"margin-left":"60%"}},Y={style:{margin:"5px"}},K={name:"DeleteFlowInstance"},L=O(h(w({},K),{props:{params:{type:Object,default:()=>{}}},emits:["handleCancel"],setup(l,{emit:a}){const e=l,f=P({hasError:!1,tips:""}),i=S(!1),s=S({doc:"",deleteWay:1,isDeleteSubFlow:!1}),v=a,p=()=>k(this,null,function*(){if(s.value.doc==""){y.error("\u8BF7\u586B\u5199\u5220\u9664\u539F\u56E0");return}i.value=!0;const n=new N("BP.WF.HttpHandler.WF_WorkOpt");n.AddJson(e.params),n.AddPara("RB_DeleteWay",s.value.deleteWay),n.AddPara("TB_Doc",s.value.doc),n.AddPara("CB_IsDeleteSubFlow",s.value.isDeleteSubFlow);const t=yield n.DoMethodReturnString("DeleteFlowInstance_DoDelete");if(typeof t=="string"&&t.includes("err@")){i.value=!1,y.error(t.replace("err@",""));return}if(typeof t=="string"){i.value=!1,y.success(t),v("handleCancel",!1);return}}),d=()=>{v("handleCancel",!0)};return(n,t)=>(m(),F("div",q,[u(o(H),{spinning:i.value,style:{"background-color":"white"}},{default:r(()=>[f.hasError?(m(),F("div",z,R(f.tips),1)):(m(),F("div",G,[u(o($),{"label-col":{span:6},"wrapper-col":{span:15}},{default:r(()=>[u(o(g),{label:"\u5220\u9664\u539F\u56E0"},{default:r(()=>[u(o(T),{value:s.value.doc,"onUpdate:value":t[0]||(t[0]=c=>s.value.doc=c),placeholder:"\u5220\u9664\u539F\u56E0",style:{width:"100%",background:"#fafafa",border:"1px solid #d9d9d9","border-radius":"2px",height:"200px"}},null,8,["value"])]),_:1}),u(o(g),{label:"\u5220\u9664\u65B9\u5F0F"},{default:r(()=>[u(o(V),{value:s.value.deleteWay,"onUpdate:value":t[1]||(t[1]=c=>s.value.deleteWay=c)},{default:r(()=>[u(o(b),{value:1},{default:r(()=>[_("\u903B\u8F91\u5220\u9664")]),_:1}),u(o(b),{value:2},{default:r(()=>[_("\u8BB0\u5F55\u65E5\u5FD7\u65B9\u5F0F\u5220\u9664")]),_:1}),u(o(b),{value:3},{default:r(()=>[_("\u5F7B\u5E95\u5220\u9664")]),_:1})]),_:1},8,["value"])]),_:1}),u(o(g),{label:"\u662F\u5426\u5220\u9664\u5B50\u6D41\u7A0B"},{default:r(()=>[u(o(M),{checked:s.value.isDeleteSubFlow,"onUpdate:checked":t[2]||(t[2]=c=>s.value.isDeleteSubFlow=c)},null,8,["checked"])]),_:1})]),_:1}),x("div",J,[x("div",Y,[u(o(C),{type:"primary",onClick:p,style:{"margin-right":"1em"}},{default:r(()=>[_("\u5220\u9664\u6D41\u7A0B")]),_:1}),u(o(C),{type:"primary",onClick:t[3]||(t[3]=c=>d())},{default:r(()=>[_("\u53D6\u6D88")]),_:1})])])]))]),_:1},8,["spinning"])]))}}));const Q=U(L,[["__scopeId","data-v-9d6a6917"]]),se=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));export{se as _};