import u from"./index.566b12ad.js";import y from"./index.ff0d6b0b.js";import{r as i}from"./index.0d411246.js";import{d as g,r as v,Q as k,a9 as c,o as w,E as C,G as l,M as a,a as r,u as b}from"./vue.3f733908.js";import{_ as I}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.177f818c.js";import"./elementPlus.0e5067e4.js";import"./echarts.72dc8373.js";function D(m){return i({url:"/api/system/role/",method:"get",params:m})}function T(){return i({url:"/api/system/column/get_models/",method:"get"})}const R={class:"columns-box columns-left"},B={class:"columns-box columns-center"},M={class:"columns-box columns-right"},$=g({__name:"index",setup(m){const _=v(null);let o=k({role:"",model:"",app:""});const f=async(e,t)=>{const s=await D(e);t(s)},d=async(e,t)=>{const s=await T();s.data.forEach(n=>{n.showText=`${n.app}-${n.title}(${n.key})`}),t(s)},h=()=>{var e;if(o.role&&o.model&&o.app){(e=_.value)==null||e.fetchData(o);return}},p=(e,t)=>{e==="role"&&(o.role=t.id),e==="model"&&(o.model=t.key,o.app=t.app),h()};return(e,t)=>{const s=c("el-col"),n=c("el-row"),x=c("fs-page");return w(),C(x,{class:"columns"},{default:l(()=>[a(n,{class:"columns-el-row"},{default:l(()=>[a(s,{span:4},{default:l(()=>[r("div",R,[a(u,{title:"角色",type:"role",showPagination:"",onFetchData:f,onItemClick:p})])]),_:1}),a(s,{span:6},{default:l(()=>[r("div",B,[a(u,{title:"模型表",type:"model",label:"showText",value:"key",onFetchData:d,onItemClick:p})])]),_:1}),a(s,{span:14},{default:l(()=>[r("div",M,[a(y,{ref_key:"columnsTableRef",ref:_,currentInfo:b(o)},null,8,["currentInfo"])])]),_:1})]),_:1})]),_:1})}}});const Q=I($,[["__scopeId","data-v-667cc629"]]);export{Q as default};
