UNPKG

quick-admin-vue3-core

Version:

以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板

73 lines (72 loc) 1.91 kB
import { defineComponent as m, resolveComponent as u, createBlock as _, openBlock as f, unref as h } from "vue"; import { u as B, G as b, D as C } from "./index-C0qRtkRj.js"; import { aL as o } from "./platform-DsTwHxm6.js"; import { _ as T } from "./AddEdit.vue_vue_type_script_setup_true_lang-Dtq4Yy3K.js"; /* empty css */ const L = /* @__PURE__ */ m({ name: "CommonCenterDepartment", __name: "index", setup(D) { const { openPopup: p } = B(), r = [ { tpl: "T_Id" }, { prop: "label", label: "部门名称" }, { prop: "produce", label: "部门简介" }, { tpl: "T_EnableStatus" }, { tpl: "T_CreateTime" } ], s = [ { type: "selection" }, { prop: "label", label: "部门名称", minWidth: 250, align: "left" }, { tpl: "T_Remark", prop: "produce", label: "部门简介" }, { tpl: "T_EnableStatus" }, { tpl: "T_Create" }, { tpl: "T_Update" } ]; function d(e, t, n) { const { selectedKeys: i } = n; o( { add: () => l(null, t), delete: () => a(i, t) }, e ); } function c(e, t, n) { o( { edit: () => l(t, n), delete: () => a([t.id], n) }, e ); } function l(e, t) { p(`${e ? "编辑" : "新增"}部门`, [T, { id: e == null ? void 0 : e.id, refreshList: t }]); } function a(e, t) { C({ ids: e }).then((n) => { t(); }); } return (e, t) => { const n = u("BaseCrud"); return f(), _(n, { cols: s, fields: r, fetch: h(b), extraBtns: ["add", "delete"], operateBtns: ["edit", "delete"], onExtraBtns: d, onOperateBtns: c }, null, 8, ["fetch"]); }; } }); export { L as default };