index-f7480ee7.js 3.0 KB

123456789
  1. /**
  2. * 由 Fantastic-admin 提供技术支持
  3. * Powered by Fantastic-admin
  4. * Gitee https://gitee.com/hooray/fantastic-admin
  5. * Github https://github.com/hooray/fantastic-admin
  6. */
  7. import{_ as I}from"./index-ac700926.js";import{_ as E}from"./index-5f219f3f.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_name_SvgIcon_lang-9ad2d3e0.js";import L from"./DBType-83a4c03b.js";import{a as M,d as $}from"./dbTypeApi-9a9f20e4.js";import{K as A}from"./index-cd68550b.js";import{aU as N}from"./index-5cddd228.js";import{j as g,J as S,r as V,o as H,a3 as n,ad as J,k as _,l as K,E as e,y as t,C as d,z as R,u as m,x as f,B as j,q,aJ as F,aK as U,m as G}from"./runtime-core.esm-bundler-5fc1c360.js";import{_ as O}from"./_plugin-vue_export-helper-c27b6911.js";import"./iconify-3d8b277a.js";import"./route-block-83d24a4e.js";import"./menu-2c9c5182.js";import"./settings-be8974ad.js";import"./pinia-7162f4ce.js";import"./_MapCache-1b613190.js";import"./vue-router-8a13d09b.js";import"./index-c228ae8f.js";import"./iframe-10768394.js";import"./runtime-dom.esm-bundler-e65f1c43.js";const P=s=>(F("data-v-d02b754b"),s=s(),U(),s),Q=P(()=>G("div",null," 系统支持多种数据库类型,用于设定接入参数 ",-1)),W=g({name:"DBTypeIndex"}),X=g({...W,setup(s){const o=S({loading:!1,tableAutoHeight:!1,search:{keywords:""},dataList:[]}),i=V(),c=async()=>{o.loading=!0;const{data:a}=await M({});o.dataList=a,o.loading=!1};H(()=>{c()});function h(){i.value.showAddModel()}function b(a){const u=a.appCatId;i.value.showEditModel(u)}function y(a){A.confirm(`确认删除「${a.dbTypeTitle}」吗?`,"确认信息").then(async()=>{await $(a.appCatId),await c(),N.success({message:"删除成功",center:!0})}).catch(()=>{})}return(a,u)=>{const C=z,v=n("el-icon"),r=n("el-button"),w=n("el-button-group"),x=E,l=n("el-table-column"),B=n("el-table"),k=I,D=J("loading");return _(),K("div",{class:q({"absolute-container":m(o).tableAutoHeight})},[e(x,{title:"数据库类型设定"},{content:t(()=>[Q]),default:t(()=>[e(w,null,{default:t(()=>[e(r,{type:"primary",size:"large",plain:"",onClick:h},{icon:t(()=>[e(v,null,{default:t(()=>[e(C,{name:"ep:plus"})]),_:1})]),default:t(()=>[d(" 新增 ")]),_:1})]),_:1})]),_:1}),e(k,null,{default:t(()=>[R((_(),f(B,{class:"list-table",data:m(o).dataList,border:"",stripe:"","highlight-current-row":"",height:"100%"},{default:t(()=>[e(l,{type:"index",label:"序号",width:"60","header-align":"center",align:"center"}),e(l,{prop:"appCatTitle",label:"名称","header-align":"center",align:"center",width:"200"}),e(l,{prop:"appCatDesc",label:"说明"}),e(l,{label:"操作",width:"250",align:"center",fixed:"right"},{default:t(p=>[e(r,{type:"primary",size:"small",plain:"",onClick:T=>b(p.row)},{default:t(()=>[d(" 编辑 ")]),_:2},1032,["onClick"]),p.row.isFixed?j("",!0):(_(),f(r,{key:0,type:"danger",size:"small",plain:"",onClick:T=>y(p.row)},{default:t(()=>[d(" 删除 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])),[[D,m(o).loading]])]),_:1}),e(L,{ref_key:"appCatRef",ref:i,onSuccess:c},null,512)],2)}}});const he=O(X,[["__scopeId","data-v-d02b754b"]]);export{he as default};