Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 месяцев назад
1
  1. import{E as b}from"./index.108a55d4.js";import{p as D,d as x}from"./flowConfiguration.5f822768.js";import{d as A,y as v,r as c,b as G,Z as u,o as M,c as n,e as g,G as N,i as t,u as r,h as l,k as S,g as i,q as B}from"./index.a2494fc2.js";import{g as d,a as T}from"./getIsShowRegionTree.7b64ce60.js";const $=["onClick"];const O=A({name:"flowConfiguration"}),F=Object.assign(O,{setup(P){const{proxy:p}=B(),I=v(),h=c(),w=G([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u6D41\u7A0B\u540D\u79F0",key:"formName",prop:"formName"},{label:"\u72B6\u6001",key:"isStop",prop:"isStop",width:"80",render:e=>[u("span",{class:["dot mr-4",`bg-${e.isStop?"danger":"success"}`]}),u("span",{class:e.isStop?"text-danger":"text-success"},e.isStop?"\u7981\u7528":"\u542F\u7528")]},{label:"\u64CD\u4F5C",slot:"action",width:"120",fixed:"right"}]),f=c([]),m=c(),a=async()=>{const e=await D({regionCode:m.value*1});f.value=e.data.records},L=e=>{const o=e.isStop?"\u542F\u7528":"\u7981\u7528";p.$messageBox.confirm(`\u662F\u5426${o}\u8BE5\u6D41\u7A0B?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await x({formId:e.formId,processDefId:e.processDefId,state:e.isStop}),p.$message.success(`${o}\u6210\u529F\uFF01`),a()})},E=e=>{m.value=e.regionLevel===3?e.regionCode:void 0,a()};return M(()=>{d(["SUPER_ADMIN","REGION_MANAGER"])||a()}),(e,o)=>{const _=n("el-col"),y=n("table-list"),C=n("el-card"),R=n("el-row");return g(),N(R,null,{default:t(()=>[r(d)(["SUPER_ADMIN","REGION_MANAGER"])?(g(),N(_,{key:0,style:{"padding-right":"16px"},span:4},{default:t(()=>[l(b,{params:r(T)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:E},null,8,["params"])]),_:1})):S("",!0),l(_,{span:r(d)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:t(()=>[i("div",null,[l(C,{shadow:"never"},{header:t(()=>o[0]||(o[0]=[i("div",{class:"flex justify-between items-center"},[i("span",null,"\u6D41\u7A0B\u5217\u8868")],-1)])),default:t(()=>[l(y,{ref_key:"tableListRef",ref:h,column:w,data:f.value,pagination:!1,onGetTableData:a},{action:t(({scope:s})=>[i("a",{onClick:k=>r(I).push({name:"configEdit",query:{formId:s.row.formId,formName:s.row.formName,regionCode:s.row.regionCode,processDefId:s.row.processDefId}})},"\u7F16\u8F91",8,$),S("",!0)]),_:1},8,["column","data"])]),_:1})])]),_:1},8,["span"])]),_:1})}}});export{F as default};