index-eaf2e5a0.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 z}from"./index-ac700926.js";import{_ as D}from"./index-5f219f3f.js";import{_ as L}from"./index.vue_vue_type_script_setup_true_name_SvgIcon_lang-9ad2d3e0.js";import{_ as M,g as $,d as A}from"./EntCat-93edb117.js";import{K as N}from"./index-cd68550b.js";import{aU as S}from"./index-5cddd228.js";import{j as g,J as V,r as T,o as H,a3 as o,ad as J,k as d,l as K,E as e,y as t,C as p,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"./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"./route-block-83d24a4e.js";import"./runtime-dom.esm-bundler-e65f1c43.js";const P=s=>(F("data-v-66010ca5"),s=s(),U(),s),Q=P(()=>G("div",null," 系统支持基于企业客户的分类管理 ",-1)),W=g({name:"EntCatIndex"}),X=g({...W,setup(s){const n=V({loading:!1,tableAutoHeight:!1,search:{keywords:""},dataList:[]}),i=T(),c=async()=>{n.loading=!0;const{data:a}=await $({});n.dataList=a,n.loading=!1};H(()=>{c()});function h(){i.value.showAddModel()}function C(a){const u=a.entCatId;i.value.showEditModel(u)}function b(a){N.confirm(`确认删除「${a.entCatTitle}」吗?`,"确认信息").then(async()=>{await A(a.entCatId),await c(),S.success({message:"删除成功",center:!0})}).catch(()=>{})}return(a,u)=>{const v=L,y=o("el-icon"),r=o("el-button"),w=o("el-button-group"),x=D,l=o("el-table-column"),k=o("el-table"),E=z,I=J("loading");return d(),K("div",{class:q({"absolute-container":m(n).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(y,null,{default:t(()=>[e(v,{name:"ep:plus"})]),_:1})]),default:t(()=>[p(" 新增 ")]),_:1})]),_:1})]),_:1}),e(E,null,{default:t(()=>[R((d(),f(k,{class:"list-table",data:m(n).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:"entCatTitle",label:"名称","header-align":"center",align:"center",width:"200"}),e(l,{prop:"entCatDesc",label:"说明"}),e(l,{label:"操作",width:"250",align:"center",fixed:"right"},{default:t(_=>[e(r,{type:"primary",size:"small",plain:"",onClick:B=>C(_.row)},{default:t(()=>[p(" 编辑 ")]),_:2},1032,["onClick"]),_.row.isFixed?j("",!0):(d(),f(r,{key:0,type:"danger",size:"small",plain:"",onClick:B=>b(_.row)},{default:t(()=>[p(" 删除 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])),[[I,m(n).loading]])]),_:1}),e(M,{ref_key:"entCatRef",ref:i,onSuccess:c},null,512)],2)}}});const ge=O(X,[["__scopeId","data-v-66010ca5"]]);export{ge as default};