index.f917b3.js 1.6 KB

1
  1. import{_ as g,d as w,w as d,W as y,x as N,ad as C,r as v,aC as B,H as s,o as D,c as A,h as f,j as n,l as t,K as p,J as b,M as E,aN as h}from"./index.js";import F from"./process-list.69a055.js";import{h as k}from"./index.21ab3104.js";import M from"./role-list.c1ac91.js";import"./index.84fc395c.js";const R={class:"main role"},S={class:"flex bg-white justify-between h-[calc(100vh-85px)]"},j={class:"warning-message"},V=w({__name:"index",setup(H){const o=d({}),{currentCompany:a}=y(),r=d(!1),u=d([]);async function x(m){const l={action_data:m.filter(_=>!!_),roleid:o.value.id};r.value=!0;const{code:i}=await k(l);r.value=!1,i===0?h.success("\u4FDD\u5B58\u6210\u529F"):h.warning("\u4FDD\u5B58\u5931\u8D25")}return N(()=>{u.value=C().getMenuActions("action")}),(m,c)=>{const l=v("NoAuth"),i=v("el-button"),_=B("loading");return s((D(),A("div",R,[s(f("div",S,[n(M,{class:"min-w-200px mr-5","current-role":o.value,companyNo:t(a).companyNo,onChangeCurrentRole:c[0]||(c[0]=e=>o.value=e)},null,8,["current-role","companyNo"]),n(F,{"flex-1":"","current-role":o.value,onSaveBtnClick:x},null,8,["current-role"])],512),[[p,u.value.some(e=>e=="001")&&t(a).companyNo]]),s(n(l,null,null,512),[[p,!u.value.some(e=>e=="001")]]),s(f("h1",j,[n(i,{text:"",size:"large",icon:t(b)("warning-filled"),disabled:""},null,8,["icon"]),E(" \u8BF7\u5728\u53F3\u4E0A\u89D2\u9009\u62E9\u4E00\u5BB6\u4E1A\u52A1\u516C\u53F8 ")],512),[[p,!t(a).companyNo]])])),[[_,r.value]])}}});var J=g(V,[["__scopeId","data-v-4c2c5f56"],["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/interest/processPermission/index.vue"]]);export{J as default};