|
@@ -1,38 +1,39 @@
|
|
|
-import { ref as s, computed as Y, watch as Z, nextTick as D, onMounted as Te, onActivated as Ae, resolveComponent as L, resolveDirective as ze, openBlock as n, createElementBlock as l, createVNode as k, withCtx as m, createElementVNode as y, toDisplayString as $, Fragment as ee, renderList as Ie, withDirectives as x, createBlock as b, createTextVNode as F, resolveDynamicComponent as Pe, createCommentVNode as a, vShow as te, renderSlot as r, normalizeStyle as Ee, unref as Me, h as Re } from "vue";
|
|
|
|
|
-import { useRoute as Le } from "vue-router";
|
|
|
|
|
-import { n as xe, aA as Fe, B as Ke, y as Ne, d0 as Ue } from "./index2.js";
|
|
|
|
|
-import { S as Ve } from "./index9.js";
|
|
|
|
|
-const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" }, He = { class: "list-layout-main" }, Xe = {
|
|
|
|
|
|
|
+import { ref as s, computed as X, watch as Y, nextTick as _, onMounted as Ae, onActivated as Ie, resolveComponent as M, resolveDirective as Pe, openBlock as n, createElementBlock as l, createVNode as w, withCtx as f, createElementVNode as m, toDisplayString as k, Fragment as Z, renderList as ze, withDirectives as R, createBlock as $, createTextVNode as x, resolveDynamicComponent as Ee, createCommentVNode as a, vShow as ee, renderSlot as i, normalizeStyle as Me, unref as te, h as Re } from "vue";
|
|
|
|
|
+import { useRoute as xe } from "vue-router";
|
|
|
|
|
+import { n as Fe, aA as Ke, B as Le, y as Ne, d0 as Ue } from "./index2.js";
|
|
|
|
|
+import { c as Ve } from "./side-drag.js";
|
|
|
|
|
+import { S as qe } from "./index9.js";
|
|
|
|
|
+const je = { class: "tools" }, He = { class: "title" }, We = { class: "btns" }, Ge = { class: "list-layout-main" }, Je = {
|
|
|
key: 1,
|
|
key: 1,
|
|
|
class: "side-bar s-theme-bg"
|
|
class: "side-bar s-theme-bg"
|
|
|
-}, Ge = {
|
|
|
|
|
|
|
+}, Qe = {
|
|
|
key: 2,
|
|
key: 2,
|
|
|
class: "layout-list-content"
|
|
class: "layout-list-content"
|
|
|
-}, Je = {
|
|
|
|
|
|
|
+}, Xe = {
|
|
|
key: 0,
|
|
key: 0,
|
|
|
class: "filter-content"
|
|
class: "filter-content"
|
|
|
-}, Qe = { class: "filter" }, Ye = {
|
|
|
|
|
|
|
+}, Ye = { class: "filter" }, Ze = {
|
|
|
key: 1,
|
|
key: 1,
|
|
|
class: "reset-wrap"
|
|
class: "reset-wrap"
|
|
|
-}, Ze = {
|
|
|
|
|
|
|
+}, et = {
|
|
|
key: 1,
|
|
key: 1,
|
|
|
class: "filter-more-content"
|
|
class: "filter-more-content"
|
|
|
-}, et = {
|
|
|
|
|
|
|
+}, tt = {
|
|
|
key: 2,
|
|
key: 2,
|
|
|
class: "desc-wrap"
|
|
class: "desc-wrap"
|
|
|
-}, tt = {
|
|
|
|
|
|
|
+}, ot = {
|
|
|
key: 1,
|
|
key: 1,
|
|
|
class: "search-bar"
|
|
class: "search-bar"
|
|
|
-}, ot = {
|
|
|
|
|
|
|
+}, nt = {
|
|
|
key: 2,
|
|
key: 2,
|
|
|
class: "status-bar"
|
|
class: "status-bar"
|
|
|
-}, nt = { class: "table-content" }, lt = { class: "table-container" }, at = ["onClick"], st = {
|
|
|
|
|
|
|
+}, lt = { class: "table-content" }, at = { class: "table-container" }, st = ["onClick"], it = {
|
|
|
key: 3,
|
|
key: 3,
|
|
|
class: "layout-list-content"
|
|
class: "layout-list-content"
|
|
|
-}, it = {
|
|
|
|
|
|
|
+}, rt = {
|
|
|
key: 4,
|
|
key: 4,
|
|
|
class: "layout-list-content"
|
|
class: "layout-list-content"
|
|
|
-}, rt = { class: "other" }, ut = /* @__PURE__ */ Object.assign({ name: "SNewestDataListLayout" }, {
|
|
|
|
|
|
|
+}, ut = { class: "other" }, dt = /* @__PURE__ */ Object.assign({ name: "SNewestDataListLayout" }, {
|
|
|
__name: "SNewestDataListLayout",
|
|
__name: "SNewestDataListLayout",
|
|
|
props: {
|
|
props: {
|
|
|
// 页面标题
|
|
// 页面标题
|
|
@@ -136,10 +137,10 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
emits: ["reset", "btnCallback", "tableColCallback", "advancedSearch"],
|
|
emits: ["reset", "btnCallback", "tableColCallback", "advancedSearch"],
|
|
|
- setup(u, { expose: oe, emit: ne }) {
|
|
|
|
|
- const S = u, p = ne;
|
|
|
|
|
- Le();
|
|
|
|
|
- const le = s(null), ae = s(null), se = s(null), ie = s(null), w = s(null), re = s(null), ue = s(8), C = s(!1), K = s(300), g = s(!1), c = s(!1), N = s(20), _ = s(256), U = s(!1), f = s([]), T = s([]), O = s([]), h = s([]), de = {
|
|
|
|
|
|
|
+ setup(r, { expose: oe, emit: ne }) {
|
|
|
|
|
+ const g = r, y = ne;
|
|
|
|
|
+ xe();
|
|
|
|
|
+ const le = s(null), ae = s(null), se = s(null), ie = s(null), p = s(null), re = s(null), ue = s(8), S = s(!1), F = s(300), b = s(!1), d = s(!1), K = s(20), O = s(256), L = s(!1), c = s([]), B = s([]), C = s([]), v = s([]), de = {
|
|
|
add: "PlusCircleOutlined",
|
|
add: "PlusCircleOutlined",
|
|
|
edit: "FormOutlined",
|
|
edit: "FormOutlined",
|
|
|
delete: "DeleteOutlined",
|
|
delete: "DeleteOutlined",
|
|
@@ -155,59 +156,59 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
|
|
|
TopOfType: "VerticalAlignTopOutlined",
|
|
TopOfType: "VerticalAlignTopOutlined",
|
|
|
TOP: "VerticalAlignTopOutlined",
|
|
TOP: "VerticalAlignTopOutlined",
|
|
|
synchronize: "SyncOutlined"
|
|
synchronize: "SyncOutlined"
|
|
|
- }, V = Y(() => h.value.map((e) => e.key).includes("import")), A = Y(() => h.value.find((e) => e.key === "import") || {});
|
|
|
|
|
- Z(
|
|
|
|
|
- () => S.buttons,
|
|
|
|
|
|
|
+ }, N = X(() => v.value.map((e) => e.key).includes("import")), D = X(() => v.value.find((e) => e.key === "import") || {});
|
|
|
|
|
+ Y(
|
|
|
|
|
+ () => g.buttons,
|
|
|
(e) => {
|
|
(e) => {
|
|
|
e && e.length && ce(e);
|
|
e && e.length && ce(e);
|
|
|
},
|
|
},
|
|
|
{ immediate: !0, deep: !0 }
|
|
{ immediate: !0, deep: !0 }
|
|
|
- ), Z(
|
|
|
|
|
- () => S.columns,
|
|
|
|
|
- () => j()
|
|
|
|
|
|
|
+ ), Y(
|
|
|
|
|
+ () => g.columns,
|
|
|
|
|
+ () => q()
|
|
|
);
|
|
);
|
|
|
- function q(e, t = "") {
|
|
|
|
|
|
|
+ function U(e, t = "") {
|
|
|
return !!(e && typeof e == "function");
|
|
return !!(e && typeof e == "function");
|
|
|
}
|
|
}
|
|
|
- function W(e) {
|
|
|
|
|
|
|
+ function V(e) {
|
|
|
return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && de[e.key] || "";
|
|
return typeof e.icon == "string" ? e.icon : typeof e.icon == "boolean" && e.icon && de[e.key] || "";
|
|
|
}
|
|
}
|
|
|
function ce(e) {
|
|
function ce(e) {
|
|
|
- h.value = e.map((t) => (t.key === "remove" && (U.value = !0), t));
|
|
|
|
|
|
|
+ v.value = e.map((t) => (t.key === "remove" && (L.value = !0), t));
|
|
|
}
|
|
}
|
|
|
function fe() {
|
|
function fe() {
|
|
|
- D(() => {
|
|
|
|
|
- R(), N.value = S.pSize, O.value = S.columns.map((e) => ((e.template || e.isClick || e.dataIndex === "action" && !e.customRender) && !e.scopedSlots && (e.scopedSlots = { customRender: e.dataIndex }), e));
|
|
|
|
|
|
|
+ _(() => {
|
|
|
|
|
+ E(), K.value = g.pSize, C.value = g.columns.map((e) => ((e.template || e.isClick || e.dataIndex === "action" && !e.customRender) && !e.scopedSlots && (e.scopedSlots = { customRender: e.dataIndex }), e));
|
|
|
}), setTimeout(() => {
|
|
}), setTimeout(() => {
|
|
|
const e = document.querySelector(".ant-table-cell.ant-table-cell-scrollbar"), t = document.querySelector(".ant-table-thead tr");
|
|
const e = document.querySelector(".ant-table-cell.ant-table-cell-scrollbar"), t = document.querySelector(".ant-table-thead tr");
|
|
|
e && t && t.removeChild(e);
|
|
e && t && t.removeChild(e);
|
|
|
}, 100);
|
|
}, 100);
|
|
|
}
|
|
}
|
|
|
- function j() {
|
|
|
|
|
- D(() => {
|
|
|
|
|
|
|
+ function q() {
|
|
|
|
|
+ _(() => {
|
|
|
fe();
|
|
fe();
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- function z() {
|
|
|
|
|
- g.value = !g.value, R();
|
|
|
|
|
|
|
+ function T() {
|
|
|
|
|
+ b.value = !b.value, E();
|
|
|
}
|
|
}
|
|
|
- function I() {
|
|
|
|
|
- p("reset");
|
|
|
|
|
|
|
+ function A() {
|
|
|
|
|
+ y("reset");
|
|
|
}
|
|
}
|
|
|
- function P() {
|
|
|
|
|
- w.value && w.value.refresh(!0);
|
|
|
|
|
|
|
+ function I() {
|
|
|
|
|
+ p.value && p.value.refresh(!0);
|
|
|
}
|
|
}
|
|
|
- function H(e) {
|
|
|
|
|
- p("btnCallback", e.key, f.value);
|
|
|
|
|
|
|
+ function j(e) {
|
|
|
|
|
+ y("btnCallback", e.key, c.value);
|
|
|
const t = ge[e.key];
|
|
const t = ge[e.key];
|
|
|
- typeof t == "function" ? t(e) : E(e);
|
|
|
|
|
|
|
+ typeof t == "function" ? t(e) : P(e);
|
|
|
}
|
|
}
|
|
|
- function E(e) {
|
|
|
|
|
- if (e.selection !== !1 && !f.value.length) {
|
|
|
|
|
|
|
+ function P(e) {
|
|
|
|
|
+ if (e.selection !== !1 && !c.value.length) {
|
|
|
window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
|
|
window.$message.warn(`${window.$l("请选择要")}${window.$l(e.name)}${window.$l("的数据")}`);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (q(e.api, e.name, e.key)) {
|
|
|
|
|
|
|
+ if (U(e.api, e.name, e.key)) {
|
|
|
if (e.confirm) {
|
|
if (e.confirm) {
|
|
|
window.$confirm({
|
|
window.$confirm({
|
|
|
title: `${e.name}`,
|
|
title: `${e.name}`,
|
|
@@ -217,242 +218,226 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
|
|
|
`${window.$l("确认要")}${window.$l(e.name)}${window.$l("数据吗?")}`
|
|
`${window.$l("确认要")}${window.$l(e.name)}${window.$l("数据吗?")}`
|
|
|
),
|
|
),
|
|
|
onOk: () => {
|
|
onOk: () => {
|
|
|
- c.value = !0, e.api(f.value).then(() => {
|
|
|
|
|
- window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
|
|
|
|
|
|
|
+ d.value = !0, e.api(c.value).then(() => {
|
|
|
|
|
+ window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), y("reset");
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
- c.value = !1;
|
|
|
|
|
|
|
+ d.value = !1;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- c.value = !0, e.api(f.value).then(() => {
|
|
|
|
|
- window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), p("reset");
|
|
|
|
|
|
|
+ d.value = !0, e.api(c.value).then(() => {
|
|
|
|
|
+ window.$message.success(`${window.$l(e.name)}${window.$l("成功")}`), y("reset");
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
- c.value = !1;
|
|
|
|
|
|
|
+ d.value = !1;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- function X(e, t) {
|
|
|
|
|
- typeof e == "string" ? G(e, t) : e.forEach((i) => {
|
|
|
|
|
- G(i, t);
|
|
|
|
|
|
|
+ function H(e, t) {
|
|
|
|
|
+ typeof e == "string" ? W(e, t) : e.forEach((u) => {
|
|
|
|
|
+ W(u, t);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- function G(e, t) {
|
|
|
|
|
- const i = h.value.find((d) => d.key === e);
|
|
|
|
|
- if (!i) {
|
|
|
|
|
|
|
+ function W(e, t) {
|
|
|
|
|
+ const u = v.value.find((h) => h.key === e);
|
|
|
|
|
+ if (!u) {
|
|
|
console.error(`按钮(${e})未定义, 请确认该变更状态按钮是否设置正确`);
|
|
console.error(`按钮(${e})未定义, 请确认该变更状态按钮是否设置正确`);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- Object.keys(t).forEach((d) => {
|
|
|
|
|
- i[d] = t[d];
|
|
|
|
|
|
|
+ Object.keys(t).forEach((h) => {
|
|
|
|
|
+ u[h] = t[h];
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
function me() {
|
|
function me() {
|
|
|
}
|
|
}
|
|
|
function ye(e) {
|
|
function ye(e) {
|
|
|
- E(e);
|
|
|
|
|
|
|
+ P(e);
|
|
|
}
|
|
}
|
|
|
function pe() {
|
|
function pe() {
|
|
|
- if (!V.value) {
|
|
|
|
|
- p("btnCallback", "import");
|
|
|
|
|
|
|
+ if (!N.value) {
|
|
|
|
|
+ y("btnCallback", "import");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- C.value = !0;
|
|
|
|
|
|
|
+ S.value = !0;
|
|
|
}
|
|
}
|
|
|
function ve(e) {
|
|
function ve(e) {
|
|
|
- q(e.api, e.name, e.key) && (c.value = !0, e.api(f.value).then(() => {
|
|
|
|
|
- c.value = !1;
|
|
|
|
|
|
|
+ U(e.api, e.name, e.key) && (d.value = !0, e.api(c.value).then(() => {
|
|
|
|
|
+ d.value = !1;
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
- c.value = !1;
|
|
|
|
|
|
|
+ d.value = !1;
|
|
|
}));
|
|
}));
|
|
|
}
|
|
}
|
|
|
- function we(e, t) {
|
|
|
|
|
- p("tableColCallback", e, t);
|
|
|
|
|
|
|
+ function he(e, t) {
|
|
|
|
|
+ y("tableColCallback", e, t);
|
|
|
}
|
|
}
|
|
|
- function M(e) {
|
|
|
|
|
- return O.value.find((t) => t.dataIndex === e);
|
|
|
|
|
|
|
+ function z(e) {
|
|
|
|
|
+ return C.value.find((t) => t.dataIndex === e);
|
|
|
}
|
|
}
|
|
|
- function he(e) {
|
|
|
|
|
- const t = M(e);
|
|
|
|
|
|
|
+ function we(e) {
|
|
|
|
|
+ const t = z(e);
|
|
|
return !!(t && t.template);
|
|
return !!(t && t.template);
|
|
|
}
|
|
}
|
|
|
function ke(e) {
|
|
function ke(e) {
|
|
|
- const t = M(e);
|
|
|
|
|
|
|
+ const t = z(e);
|
|
|
return !!(t && t.isClick);
|
|
return !!(t && t.isClick);
|
|
|
}
|
|
}
|
|
|
function $e(e) {
|
|
function $e(e) {
|
|
|
return e == null ? "" : typeof e == "object" ? e.name === void 0 ? "" : e.name : e;
|
|
return e == null ? "" : typeof e == "object" ? e.name === void 0 ? "" : e.name : e;
|
|
|
}
|
|
}
|
|
|
function be(e) {
|
|
function be(e) {
|
|
|
- f.value = e;
|
|
|
|
|
|
|
+ c.value = e;
|
|
|
}
|
|
}
|
|
|
- function R() {
|
|
|
|
|
- D(J);
|
|
|
|
|
|
|
+ function E() {
|
|
|
|
|
+ _(G);
|
|
|
}
|
|
}
|
|
|
- function J() {
|
|
|
|
|
- const e = w.value && w.value.$el, t = e && e.querySelector(".ant-table-body"), i = t && t.clientHeight;
|
|
|
|
|
- i && (K.value = Math.max(i - 8, 0));
|
|
|
|
|
|
|
+ function G() {
|
|
|
|
|
+ const e = p.value && p.value.$el, t = e && e.querySelector(".ant-table-body"), u = t && t.clientHeight;
|
|
|
|
|
+ u && (F.value = Math.max(u - 8, 0));
|
|
|
}
|
|
}
|
|
|
- function Q() {
|
|
|
|
|
- p("advancedSearch");
|
|
|
|
|
|
|
+ function J() {
|
|
|
|
|
+ y("advancedSearch");
|
|
|
}
|
|
}
|
|
|
const ge = {
|
|
const ge = {
|
|
|
add: me,
|
|
add: me,
|
|
|
delete: ye,
|
|
delete: ye,
|
|
|
import: pe,
|
|
import: pe,
|
|
|
export: ve,
|
|
export: ve,
|
|
|
- reload: P,
|
|
|
|
|
- filterReset: I,
|
|
|
|
|
- toggleFilter: z,
|
|
|
|
|
- setStateBtn: X,
|
|
|
|
|
- handAction: E
|
|
|
|
|
- }, Se = {
|
|
|
|
|
- mounted(e) {
|
|
|
|
|
- e.style.cursor = "e-resize", document.addEventListener("selectstart", (t) => {
|
|
|
|
|
- t.preventDefault();
|
|
|
|
|
- }), e.onmousedown = (t) => {
|
|
|
|
|
- const i = t.clientX, d = _.value;
|
|
|
|
|
- document.onmousemove = (B) => {
|
|
|
|
|
- const v = B.clientX - i;
|
|
|
|
|
- if (v < 0) {
|
|
|
|
|
- if (d + v <= 256) return;
|
|
|
|
|
- _.value = d + v;
|
|
|
|
|
- } else {
|
|
|
|
|
- if (d + v >= 500) return;
|
|
|
|
|
- _.value = d + v;
|
|
|
|
|
- }
|
|
|
|
|
- }, document.onmouseup = () => {
|
|
|
|
|
- document.onmousemove = document.onmousedown = null;
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
- }
|
|
|
|
|
- };
|
|
|
|
|
- return Te(() => {
|
|
|
|
|
- j();
|
|
|
|
|
- }), Ae(() => {
|
|
|
|
|
- D(J);
|
|
|
|
|
|
|
+ reload: I,
|
|
|
|
|
+ filterReset: A,
|
|
|
|
|
+ toggleFilter: T,
|
|
|
|
|
+ setStateBtn: H,
|
|
|
|
|
+ handAction: P
|
|
|
|
|
+ }, Se = Ve(
|
|
|
|
|
+ () => O.value,
|
|
|
|
|
+ (e) => O.value = e,
|
|
|
|
|
+ { min: 256 }
|
|
|
|
|
+ );
|
|
|
|
|
+ return Ae(() => {
|
|
|
|
|
+ q();
|
|
|
|
|
+ }), Ie(() => {
|
|
|
|
|
+ _(G);
|
|
|
}), oe({
|
|
}), oe({
|
|
|
- reload: P,
|
|
|
|
|
- spinning: c,
|
|
|
|
|
- selectedRowKeys: f,
|
|
|
|
|
- expandedRowKeys: T,
|
|
|
|
|
- renderColumns: O,
|
|
|
|
|
- renderButtons: h,
|
|
|
|
|
- setStateBtn: X,
|
|
|
|
|
- btnCallback: H,
|
|
|
|
|
- filterReset: I,
|
|
|
|
|
- toggleFilter: z,
|
|
|
|
|
- table: w,
|
|
|
|
|
- importVisible: C,
|
|
|
|
|
- measureLayout: R,
|
|
|
|
|
- advancedSearch: Q
|
|
|
|
|
|
|
+ reload: I,
|
|
|
|
|
+ spinning: d,
|
|
|
|
|
+ selectedRowKeys: c,
|
|
|
|
|
+ expandedRowKeys: B,
|
|
|
|
|
+ renderColumns: C,
|
|
|
|
|
+ renderButtons: v,
|
|
|
|
|
+ setStateBtn: H,
|
|
|
|
|
+ btnCallback: j,
|
|
|
|
|
+ filterReset: A,
|
|
|
|
|
+ toggleFilter: T,
|
|
|
|
|
+ table: p,
|
|
|
|
|
+ importVisible: S,
|
|
|
|
|
+ measureLayout: E,
|
|
|
|
|
+ advancedSearch: J
|
|
|
}), (e, t) => {
|
|
}), (e, t) => {
|
|
|
- const i = Ke, d = Ve, B = L("double-right-outlined"), v = L("sync-outlined"), Ce = Ne, _e = Fe, Oe = L("s-import-modal"), Be = ze("action");
|
|
|
|
|
|
|
+ const u = Le, h = qe, Q = M("double-right-outlined"), Ce = M("sync-outlined"), _e = Ne, Oe = Ke, Be = M("s-import-modal"), De = Pe("action");
|
|
|
return n(), l("div", {
|
|
return n(), l("div", {
|
|
|
class: "list-layout",
|
|
class: "list-layout",
|
|
|
ref_key: "layout",
|
|
ref_key: "layout",
|
|
|
ref: le
|
|
ref: le
|
|
|
}, [
|
|
}, [
|
|
|
- k(_e, { spinning: c.value }, {
|
|
|
|
|
- default: m(() => [
|
|
|
|
|
- y("div", qe, [
|
|
|
|
|
- y("div", We, $(e.$l(u.title)), 1),
|
|
|
|
|
- y("div", je, [
|
|
|
|
|
- k(d, { size: ue.value }, {
|
|
|
|
|
- default: m(() => [
|
|
|
|
|
- (n(!0), l(ee, null, Ie(h.value, (o) => (n(), l("span", {
|
|
|
|
|
|
|
+ w(Oe, { spinning: d.value }, {
|
|
|
|
|
+ default: f(() => [
|
|
|
|
|
+ m("div", je, [
|
|
|
|
|
+ m("div", He, k(e.$l(r.title)), 1),
|
|
|
|
|
+ m("div", We, [
|
|
|
|
|
+ w(h, { size: ue.value }, {
|
|
|
|
|
+ default: f(() => [
|
|
|
|
|
+ (n(!0), l(Z, null, ze(v.value, (o) => (n(), l("span", {
|
|
|
class: "item-btn",
|
|
class: "item-btn",
|
|
|
key: o.key
|
|
key: o.key
|
|
|
}, [
|
|
}, [
|
|
|
- x((n(), b(i, {
|
|
|
|
|
|
|
+ R((n(), $(u, {
|
|
|
class: "btn",
|
|
class: "btn",
|
|
|
disabled: !!o.disabled,
|
|
disabled: !!o.disabled,
|
|
|
type: o.type || (o.key === "add" ? "primary" : "default"),
|
|
type: o.type || (o.key === "add" ? "primary" : "default"),
|
|
|
- onClick: (De) => H(o)
|
|
|
|
|
|
|
+ onClick: (Te) => j(o)
|
|
|
}, {
|
|
}, {
|
|
|
- icon: m(() => [
|
|
|
|
|
- W(o) ? (n(), b(Pe(W(o)), { key: 0 })) : a("", !0)
|
|
|
|
|
|
|
+ icon: f(() => [
|
|
|
|
|
+ V(o) ? (n(), $(Ee(V(o)), { key: 0 })) : a("", !0)
|
|
|
]),
|
|
]),
|
|
|
- default: m(() => [
|
|
|
|
|
- F(" " + $(e.$l(o.name)), 1)
|
|
|
|
|
|
|
+ default: f(() => [
|
|
|
|
|
+ x(" " + k(e.$l(o.name)), 1)
|
|
|
]),
|
|
]),
|
|
|
_: 2
|
|
_: 2
|
|
|
}, 1032, ["disabled", "type", "onClick"])), [
|
|
}, 1032, ["disabled", "type", "onClick"])), [
|
|
|
- [Be, o.action || o.key],
|
|
|
|
|
- [te, o.show !== !1]
|
|
|
|
|
|
|
+ [De, o.action || o.key],
|
|
|
|
|
+ [ee, o.show !== !1]
|
|
|
])
|
|
])
|
|
|
]))), 128)),
|
|
]))), 128)),
|
|
|
- r(e.$slots, "otherBtns", { selections: f.value }, void 0, !0)
|
|
|
|
|
|
|
+ i(e.$slots, "otherBtns", { selections: c.value }, void 0, !0)
|
|
|
]),
|
|
]),
|
|
|
_: 3
|
|
_: 3
|
|
|
}, 8, ["size"])
|
|
}, 8, ["size"])
|
|
|
])
|
|
])
|
|
|
]),
|
|
]),
|
|
|
- y("div", He, [
|
|
|
|
|
|
|
+ m("div", Ge, [
|
|
|
e.$slots.tree ? (n(), l("div", {
|
|
e.$slots.tree ? (n(), l("div", {
|
|
|
key: 0,
|
|
key: 0,
|
|
|
class: "side s-side-tree",
|
|
class: "side s-side-tree",
|
|
|
ref_key: "side",
|
|
ref_key: "side",
|
|
|
ref: ae,
|
|
ref: ae,
|
|
|
- style: Ee([{ width: _.value + "px" }, { "overflow-y": "auto" }])
|
|
|
|
|
|
|
+ style: Me([{ width: O.value + "px" }, { "overflow-y": "auto" }])
|
|
|
}, [
|
|
}, [
|
|
|
- r(e.$slots, "tree", {}, void 0, !0)
|
|
|
|
|
|
|
+ i(e.$slots, "tree", {}, void 0, !0)
|
|
|
], 4)) : a("", !0),
|
|
], 4)) : a("", !0),
|
|
|
- e.$slots.tree ? x((n(), l("div", Xe, null, 512)), [
|
|
|
|
|
- [Se]
|
|
|
|
|
|
|
+ e.$slots.tree ? R((n(), l("div", Je, null, 512)), [
|
|
|
|
|
+ [te(Se)]
|
|
|
]) : a("", !0),
|
|
]) : a("", !0),
|
|
|
- !e.$slots.empty && u.listType === "table" ? (n(), l("div", Ge, [
|
|
|
|
|
|
|
+ !e.$slots.empty && r.listType === "table" ? (n(), l("div", Qe, [
|
|
|
e.$slots.filter || e.$slots.filterMore ? (n(), l("div", {
|
|
e.$slots.filter || e.$slots.filterMore ? (n(), l("div", {
|
|
|
key: 0,
|
|
key: 0,
|
|
|
class: "filter-wrap",
|
|
class: "filter-wrap",
|
|
|
ref_key: "filters",
|
|
ref_key: "filters",
|
|
|
ref: se
|
|
ref: se
|
|
|
}, [
|
|
}, [
|
|
|
- e.$slots.filter ? (n(), l("div", Je, [
|
|
|
|
|
- y("div", Qe, [
|
|
|
|
|
- r(e.$slots, "filter", {}, void 0, !0)
|
|
|
|
|
|
|
+ e.$slots.filter ? (n(), l("div", Xe, [
|
|
|
|
|
+ m("div", Ye, [
|
|
|
|
|
+ i(e.$slots, "filter", {}, void 0, !0)
|
|
|
]),
|
|
]),
|
|
|
e.$slots.filterMore ? (n(), l("a", {
|
|
e.$slots.filterMore ? (n(), l("a", {
|
|
|
key: 0,
|
|
key: 0,
|
|
|
class: "filter-more-btn",
|
|
class: "filter-more-btn",
|
|
|
- onClick: z
|
|
|
|
|
|
|
+ onClick: T
|
|
|
}, [
|
|
}, [
|
|
|
- F($(g.value ? e.$l("收起") : e.$l("更多筛选")) + " ", 1),
|
|
|
|
|
- g.value ? (n(), b(B, {
|
|
|
|
|
|
|
+ x(k(b.value ? e.$l("收起") : e.$l("更多筛选")) + " ", 1),
|
|
|
|
|
+ b.value ? (n(), $(Q, {
|
|
|
key: 1,
|
|
key: 1,
|
|
|
style: { "font-size": "12px", transform: "rotate(-90deg)" }
|
|
style: { "font-size": "12px", transform: "rotate(-90deg)" }
|
|
|
- })) : (n(), b(B, {
|
|
|
|
|
|
|
+ })) : (n(), $(Q, {
|
|
|
key: 0,
|
|
key: 0,
|
|
|
style: { "font-size": "12px", transform: "rotate(90deg)" }
|
|
style: { "font-size": "12px", transform: "rotate(90deg)" }
|
|
|
}))
|
|
}))
|
|
|
])) : a("", !0),
|
|
])) : a("", !0),
|
|
|
- e.$slots.filter ? (n(), l("div", Ye, [
|
|
|
|
|
- u.isEnableAdvancedSearch ? (n(), b(i, {
|
|
|
|
|
|
|
+ e.$slots.filter ? (n(), l("div", Ze, [
|
|
|
|
|
+ r.isEnableAdvancedSearch ? (n(), $(u, {
|
|
|
key: 0,
|
|
key: 0,
|
|
|
class: "advanced-search",
|
|
class: "advanced-search",
|
|
|
type: "link",
|
|
type: "link",
|
|
|
- onClick: Q
|
|
|
|
|
|
|
+ onClick: J
|
|
|
}, {
|
|
}, {
|
|
|
- default: m(() => [
|
|
|
|
|
- F($(e.$l("高级搜索")), 1)
|
|
|
|
|
|
|
+ default: f(() => [
|
|
|
|
|
+ x(k(e.$l("高级搜索")), 1)
|
|
|
]),
|
|
]),
|
|
|
_: 1
|
|
_: 1
|
|
|
})) : a("", !0),
|
|
})) : a("", !0),
|
|
|
- k(Ce, {
|
|
|
|
|
|
|
+ w(_e, {
|
|
|
placement: "top",
|
|
placement: "top",
|
|
|
overlayStyle: { maxWidth: "500px" }
|
|
overlayStyle: { maxWidth: "500px" }
|
|
|
}, {
|
|
}, {
|
|
|
- title: m(() => [
|
|
|
|
|
- y("span", null, $(e.$l("条件重置")), 1)
|
|
|
|
|
|
|
+ title: f(() => [
|
|
|
|
|
+ m("span", null, k(e.$l("条件重置")), 1)
|
|
|
]),
|
|
]),
|
|
|
- default: m(() => [
|
|
|
|
|
- k(i, {
|
|
|
|
|
|
|
+ default: f(() => [
|
|
|
|
|
+ w(u, {
|
|
|
style: { "padding-bottom": "2px" },
|
|
style: { "padding-bottom": "2px" },
|
|
|
- onClick: I
|
|
|
|
|
|
|
+ onClick: A
|
|
|
}, {
|
|
}, {
|
|
|
- icon: m(() => [
|
|
|
|
|
- k(v)
|
|
|
|
|
|
|
+ icon: f(() => [
|
|
|
|
|
+ w(Ce)
|
|
|
]),
|
|
]),
|
|
|
_: 1
|
|
_: 1
|
|
|
})
|
|
})
|
|
@@ -461,60 +446,60 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
|
|
|
})
|
|
})
|
|
|
])) : a("", !0)
|
|
])) : a("", !0)
|
|
|
])) : a("", !0),
|
|
])) : a("", !0),
|
|
|
- e.$slots.filterMore ? x((n(), l("div", Ze, [
|
|
|
|
|
- r(e.$slots, "filterMore", {}, void 0, !0)
|
|
|
|
|
|
|
+ e.$slots.filterMore ? R((n(), l("div", et, [
|
|
|
|
|
+ i(e.$slots, "filterMore", {}, void 0, !0)
|
|
|
], 512)), [
|
|
], 512)), [
|
|
|
- [te, g.value]
|
|
|
|
|
|
|
+ [ee, b.value]
|
|
|
]) : a("", !0),
|
|
]) : a("", !0),
|
|
|
- e.$slots.desc ? (n(), l("div", et, [
|
|
|
|
|
- r(e.$slots, "desc", {}, void 0, !0)
|
|
|
|
|
|
|
+ e.$slots.desc ? (n(), l("div", tt, [
|
|
|
|
|
+ i(e.$slots, "desc", {}, void 0, !0)
|
|
|
])) : a("", !0)
|
|
])) : a("", !0)
|
|
|
], 512)) : a("", !0),
|
|
], 512)) : a("", !0),
|
|
|
- u.isEnableSearchBar ? (n(), l("div", tt, [
|
|
|
|
|
- r(e.$slots, "search-bar", {}, void 0, !0)
|
|
|
|
|
|
|
+ r.isEnableSearchBar ? (n(), l("div", ot, [
|
|
|
|
|
+ i(e.$slots, "search-bar", {}, void 0, !0)
|
|
|
])) : a("", !0),
|
|
])) : a("", !0),
|
|
|
- u.isEnableStatusBar ? (n(), l("div", ot, [
|
|
|
|
|
- r(e.$slots, "status-bar", {}, void 0, !0)
|
|
|
|
|
|
|
+ r.isEnableStatusBar ? (n(), l("div", nt, [
|
|
|
|
|
+ i(e.$slots, "status-bar", {}, void 0, !0)
|
|
|
])) : a("", !0),
|
|
])) : a("", !0),
|
|
|
- y("div", nt, [
|
|
|
|
|
|
|
+ m("div", lt, [
|
|
|
e.$slots.tabs ? (n(), l("div", {
|
|
e.$slots.tabs ? (n(), l("div", {
|
|
|
key: 0,
|
|
key: 0,
|
|
|
class: "tabs-wrap",
|
|
class: "tabs-wrap",
|
|
|
ref_key: "tabs",
|
|
ref_key: "tabs",
|
|
|
ref: ie
|
|
ref: ie
|
|
|
}, [
|
|
}, [
|
|
|
- r(e.$slots, "tabs", {}, void 0, !0)
|
|
|
|
|
|
|
+ i(e.$slots, "tabs", {}, void 0, !0)
|
|
|
], 512)) : a("", !0),
|
|
], 512)) : a("", !0),
|
|
|
- y("div", lt, [
|
|
|
|
|
- k(Me(Ue), {
|
|
|
|
|
|
|
+ m("div", at, [
|
|
|
|
|
+ w(te(Ue), {
|
|
|
ref_key: "table",
|
|
ref_key: "table",
|
|
|
- ref: w,
|
|
|
|
|
|
|
+ ref: p,
|
|
|
size: "middle",
|
|
size: "middle",
|
|
|
- scroll: { y: K.value, x: "100%" },
|
|
|
|
|
- pageSize: N.value,
|
|
|
|
|
- rowKey: u.rowKey,
|
|
|
|
|
- columns: O.value,
|
|
|
|
|
- data: u.loadData,
|
|
|
|
|
- "expanded-row-keys": T.value,
|
|
|
|
|
- "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => T.value = o),
|
|
|
|
|
- rowSelection: U.value || u.isSelection ? {
|
|
|
|
|
- selectedRowKeys: f.value,
|
|
|
|
|
|
|
+ scroll: { y: F.value, x: "100%" },
|
|
|
|
|
+ pageSize: K.value,
|
|
|
|
|
+ rowKey: r.rowKey,
|
|
|
|
|
+ columns: C.value,
|
|
|
|
|
+ data: r.loadData,
|
|
|
|
|
+ "expanded-row-keys": B.value,
|
|
|
|
|
+ "onUpdate:expandedRowKeys": t[0] || (t[0] = (o) => B.value = o),
|
|
|
|
|
+ rowSelection: L.value || r.isSelection ? {
|
|
|
|
|
+ selectedRowKeys: c.value,
|
|
|
onChange: be,
|
|
onChange: be,
|
|
|
- getCheckboxProps: u.getCheckboxProps
|
|
|
|
|
|
|
+ getCheckboxProps: r.getCheckboxProps
|
|
|
} : null,
|
|
} : null,
|
|
|
- showPagination: u.showPagination
|
|
|
|
|
|
|
+ showPagination: r.showPagination
|
|
|
}, {
|
|
}, {
|
|
|
- bodyCell: m((o) => [
|
|
|
|
|
- o.column ? (n(), l(ee, { key: 0 }, [
|
|
|
|
|
- he(o.column.dataIndex) ? r(e.$slots, o.column.dataIndex, {
|
|
|
|
|
|
|
+ bodyCell: f((o) => [
|
|
|
|
|
+ o.column ? (n(), l(Z, { key: 0 }, [
|
|
|
|
|
+ we(o.column.dataIndex) ? i(e.$slots, o.column.dataIndex, {
|
|
|
text: o.text,
|
|
text: o.text,
|
|
|
record: o.record,
|
|
record: o.record,
|
|
|
index: o.index,
|
|
index: o.index,
|
|
|
- item: M(o.column.dataIndex)
|
|
|
|
|
|
|
+ item: z(o.column.dataIndex)
|
|
|
}, void 0, !0, 0) : ke(o.column.dataIndex) ? (n(), l("a", {
|
|
}, void 0, !0, 0) : ke(o.column.dataIndex) ? (n(), l("a", {
|
|
|
key: 1,
|
|
key: 1,
|
|
|
- onClick: (De) => we(o.column.dataIndex, o.record)
|
|
|
|
|
- }, $($e(o.text)), 9, at)) : o.column.dataIndex === "action" ? r(e.$slots, "action", {
|
|
|
|
|
|
|
+ onClick: (Te) => he(o.column.dataIndex, o.record)
|
|
|
|
|
+ }, k($e(o.text)), 9, st)) : o.column.dataIndex === "action" ? i(e.$slots, "action", {
|
|
|
record: o.record
|
|
record: o.record
|
|
|
}, void 0, !0, 2) : a("", !0)
|
|
}, void 0, !0, 2) : a("", !0)
|
|
|
], 64)) : a("", !0)
|
|
], 64)) : a("", !0)
|
|
@@ -524,34 +509,34 @@ const qe = { class: "tools" }, We = { class: "title" }, je = { class: "btns" },
|
|
|
])
|
|
])
|
|
|
])
|
|
])
|
|
|
])) : a("", !0),
|
|
])) : a("", !0),
|
|
|
- !e.$slots.empty && u.listType === "custom" ? (n(), l("div", st, [
|
|
|
|
|
- r(e.$slots, "custom-layout-list-content", {}, void 0, !0)
|
|
|
|
|
|
|
+ !e.$slots.empty && r.listType === "custom" ? (n(), l("div", it, [
|
|
|
|
|
+ i(e.$slots, "custom-layout-list-content", {}, void 0, !0)
|
|
|
])) : a("", !0),
|
|
])) : a("", !0),
|
|
|
- e.$slots.empty ? (n(), l("div", it, [
|
|
|
|
|
- r(e.$slots, "empty", {}, void 0, !0)
|
|
|
|
|
|
|
+ e.$slots.empty ? (n(), l("div", rt, [
|
|
|
|
|
+ i(e.$slots, "empty", {}, void 0, !0)
|
|
|
])) : a("", !0)
|
|
])) : a("", !0)
|
|
|
]),
|
|
]),
|
|
|
- y("div", rt, [
|
|
|
|
|
- r(e.$slots, "other", {}, void 0, !0)
|
|
|
|
|
|
|
+ m("div", ut, [
|
|
|
|
|
+ i(e.$slots, "other", {}, void 0, !0)
|
|
|
])
|
|
])
|
|
|
]),
|
|
]),
|
|
|
_: 3
|
|
_: 3
|
|
|
}, 8, ["spinning"]),
|
|
}, 8, ["spinning"]),
|
|
|
- V.value ? (n(), b(Oe, {
|
|
|
|
|
|
|
+ N.value ? (n(), $(Be, {
|
|
|
key: 0,
|
|
key: 0,
|
|
|
ref_key: "importModalRef",
|
|
ref_key: "importModalRef",
|
|
|
ref: re,
|
|
ref: re,
|
|
|
- "upload-url": A.value.importUploadUrl,
|
|
|
|
|
- value: C.value,
|
|
|
|
|
- "onUpdate:value": t[1] || (t[1] = (o) => C.value = o),
|
|
|
|
|
- columns: A.value.importColumns,
|
|
|
|
|
- apis: A.value.importApis,
|
|
|
|
|
- onReload: P
|
|
|
|
|
|
|
+ "upload-url": D.value.importUploadUrl,
|
|
|
|
|
+ value: S.value,
|
|
|
|
|
+ "onUpdate:value": t[1] || (t[1] = (o) => S.value = o),
|
|
|
|
|
+ columns: D.value.importColumns,
|
|
|
|
|
+ apis: D.value.importApis,
|
|
|
|
|
+ onReload: I
|
|
|
}, null, 8, ["upload-url", "value", "columns", "apis"])) : a("", !0)
|
|
}, null, 8, ["upload-url", "value", "columns", "apis"])) : a("", !0)
|
|
|
], 512);
|
|
], 512);
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
-}), yt = /* @__PURE__ */ xe(ut, [["__scopeId", "data-v-802f2e2b"]]);
|
|
|
|
|
|
|
+}), vt = /* @__PURE__ */ Fe(dt, [["__scopeId", "data-v-db157b4f"]]);
|
|
|
export {
|
|
export {
|
|
|
- yt as default
|
|
|
|
|
|
|
+ vt as default
|
|
|
};
|
|
};
|