No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
2.3KB

  1. import{E as b}from"./index.095525b5.js";import{p as D,d as x}from"./flowConfiguration.a63cbafd.js";import{d as A,y as G,r as c,b as v,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.88314652.js";import{g as d,a as T}from"./getIsShowRegionTree.6f629642.js";const $=["onClick"];const O=A({name:"flowConfiguration"}),F=Object.assign(O,{setup(P){const{proxy:p}=B(),I=G(),h=c(),w=v([{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(),s=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`),s()})},E=e=>{console.log(e),m.value=e.regionLevel===3?e.regionCode:void 0,s()};return M(()=>{d(["SUPER_ADMIN","REGION_MANAGER"])||s()}),(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:s},{action:t(({scope:a})=>[i("a",{onClick:k=>r(I).push({name:"configEdit",query:{formId:a.row.formId,formName:a.row.formName,regionCode:a.row.regionCode,processDefId:a.row.processDefId}})},"\u7F16\u8F91",8,$),S("",!0)]),_:1},8,["column","data"])]),_:1})])]),_:1},8,["span"])]),_:1})}}});export{F as default};