import p from"./index.e1cb78bb.js";import y from"./index.4d0cdd8c.js";import{r as u}from"./index.ad3efb29.js";import{d as g,r as v,Z as k,ai as c,o as w,M as C,O as l,U as a,a as r,u as b}from"./vue.adf17aba.js";import{_ as I}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.2f17afa9.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";function D(m){return u({url:"/api/system/role/",method:"get",params:m})}function T(){return u({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}},i=(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(p,{title:"角色",type:"role",showPagination:"",onFetchData:f,onItemClick:i})])]),_:1}),a(s,{span:6},{default:l(()=>[r("div",B,[a(p,{title:"模型表",type:"model",label:"showText",value:"key",onFetchData:d,onItemClick:i})])]),_: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 U=I($,[["__scopeId","data-v-667cc629"]]);export{U as default};
