25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
2.2KB

  1. import{E as b}from"./index.311d4c6f.js";import{p as D,d as x}from"./flowConfiguration.e9887e9f.js";import{d as A,A as v,r as i,b as G,a0 as u,o as M,c as s,e as g,I as h,i as t,u as n,h as r,k as I,g as l,x as B}from"./index.121be81f.js";import{g as d,a as T}from"./getIsShowRegionTree.711795cd.js";const $=l("div",{class:"flex justify-between items-center"},[l("span",null,"\u6D41\u7A0B\u5217\u8868")],-1),O=["onClick"];const P=A({name:"flowConfiguration"}),J=Object.assign(P,{setup(L){const{proxy:p}=B(),N=v(),S=i(),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=i([]),m=i(),o=async()=>{const e=await D({regionCode:m.value*1});f.value=e.data.records},U=e=>{const c=e.isStop?"\u542F\u7528":"\u7981\u7528";p.$messageBox.confirm(`\u662F\u5426${c}\u8BE5\u6D41\u7A0B?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await x({formId:e.formId,processDefId:e.processDefId,state:e.isStop}),p.$message.success(`${c}\u6210\u529F\uFF01`),o()})},E=e=>{m.value=e.regionLevel===3?e.regionCode:void 0,o()};return M(()=>{d(["SUPER_ADMIN","REGION_MANAGER"])||o()}),(e,c)=>{const _=s("el-col"),C=s("table-list"),R=s("el-card"),k=s("el-row");return g(),h(k,null,{default:t(()=>[n(d)(["SUPER_ADMIN","REGION_MANAGER"])?(g(),h(_,{key:0,style:{"padding-right":"16px"},span:4},{default:t(()=>[r(b,{params:n(T)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:E},null,8,["params"])]),_:1})):I("",!0),r(_,{span:n(d)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:t(()=>[l("div",null,[r(R,{shadow:"never"},{header:t(()=>[$]),default:t(()=>[r(C,{ref_key:"tableListRef",ref:S,column:w,data:f.value,pagination:!1,onGetTableData:o},{action:t(({scope:a})=>[l("a",{onClick:y=>n(N).push({name:"configEdit",query:{formId:a.row.formId,formName:a.row.formName,regionCode:a.row.regionCode,processDefId:a.row.processDefId}})},"\u7F16\u8F91",8,O),I("",!0)]),_:1},8,["column","data"])]),_:1})])]),_:1},8,["span"])]),_:1})}}});export{J as default};