Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
2.2KB

  1. import{E as b}from"./index.492a43bb.js";import{p as D,d as x}from"./flowConfiguration.12f53b0d.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.e8b71da7.js";import{g as d,a as T}from"./getIsShowRegionTree.648871ed.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};