mooho-base-admin-plus 2.8.1 → 2.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/history.md
CHANGED
|
@@ -142,3 +142,5 @@ mooho-base-admin-plus@2.7.6 - 修复审批后没有刷新的bug
|
|
|
142
142
|
mooho-base-admin-plus@2.7.7 - 增加自定义显示格式
|
|
143
143
|
mooho-base-admin-plus@2.8.0 - 表格增加只返回所需字段的选项
|
|
144
144
|
mooho-base-admin-plus@2.8.1 - 表格增加必须返回的字段属性
|
|
145
|
+
mooho-base-admin-plus@2.8.2 - 优化树结构显示方式
|
|
146
|
+
mooho-base-admin-plus@2.8.3 - 修复只返回所需字段的bug
|
|
@@ -20263,7 +20263,7 @@ function _sfc_render$15(r, a, o, s, l, u) {
|
|
|
20263
20263
|
column: withCtx(({ row: y, column: _, code: S }) => [
|
|
20264
20264
|
S == "name" ? (openBlock(), createElementBlock("div", {
|
|
20265
20265
|
key: 0,
|
|
20266
|
-
style: normalizeStyle$1({ "font-weight": y.hasChildren ? "bold" : ""
|
|
20266
|
+
style: normalizeStyle$1({ "font-weight": y.hasChildren ? "bold" : "" })
|
|
20267
20267
|
}, toDisplayString$2(r.showData(y, _)), 5)) : createCommentVNode("", !0)
|
|
20268
20268
|
]),
|
|
20269
20269
|
_: 1
|
|
@@ -40982,7 +40982,12 @@ const _sfc_main$n = {
|
|
|
40982
40982
|
}
|
|
40983
40983
|
if (this.tableView = s.dataView, this.tableView.columns = s.viewColumns, this.tableView.filterColumns = s.filterColumns, this.filterColumns = s.filterColumns, (this.tableView.commandButton || "").trim() ? this.commandButtons = JSON.parse(this.tableView.commandButton) : this.commandButtons = [], this.$emit("on-ready", this.tableView), this.columns = s.viewColumns.filter((l) => !(l.parentCode || "").trim()).map((l) => getColumns(s, l)), this.columns.forEach((l) => {
|
|
40984
40984
|
l.name = this.getNameI18n(l) + (l.isRequired ? ' <font color="red">*</font>' : ""), l.fixed = l.isFixed ? "left" : null;
|
|
40985
|
-
}), this.
|
|
40985
|
+
}), this.treeEnable && (this.columns.length > 0 ? (this.columns[0].tree = !0, this.columns[0].display = "inline-block") : this.columns.unshift({
|
|
40986
|
+
tree: !0,
|
|
40987
|
+
display: "inline",
|
|
40988
|
+
align: "left",
|
|
40989
|
+
width: 100
|
|
40990
|
+
})), this.tableView.snEnable && this.columns.unshift({
|
|
40986
40991
|
title: this.$t("Front_Label_Sn"),
|
|
40987
40992
|
slot: "sn",
|
|
40988
40993
|
align: "center",
|
|
@@ -41033,11 +41038,6 @@ const _sfc_main$n = {
|
|
|
41033
41038
|
type: "selection",
|
|
41034
41039
|
align: "center",
|
|
41035
41040
|
width: 60
|
|
41036
|
-
}), this.treeEnable && this.columns.unshift({
|
|
41037
|
-
tree: !0,
|
|
41038
|
-
display: "inline",
|
|
41039
|
-
align: "left",
|
|
41040
|
-
width: 100
|
|
41041
41041
|
}), this.tableView.size ? this.size = this.tableView.size : this.tableView.pageEnable && this.pageEnable ? this.size = Setting.layout.pageSize : this.size = 1e3, this.tableView.sorting) {
|
|
41042
41042
|
let l = JSON.parse(this.tableView.sorting), u = [];
|
|
41043
41043
|
for (let c in l)
|
|
@@ -41081,7 +41081,12 @@ const _sfc_main$n = {
|
|
|
41081
41081
|
orderBy: this.orderBy
|
|
41082
41082
|
};
|
|
41083
41083
|
if (this.tableView.isGroupBy && (a.isGroupBy = !0, a.groupColumn = JSON.parse(this.tableView.groupColumn), a.groupMethod = JSON.parse(this.tableView.groupMethod)), this.tableView.isCustom) {
|
|
41084
|
-
let o = await customModelApi.query(
|
|
41084
|
+
let o = await customModelApi.query(
|
|
41085
|
+
this.tableView.model,
|
|
41086
|
+
a,
|
|
41087
|
+
this.tableView.isReturnSimple ? this.returnColumns : null,
|
|
41088
|
+
this.tableView.isReturnSimple ? this.tableView : null
|
|
41089
|
+
);
|
|
41085
41090
|
this.total = o.totalCount, this.data = o.data;
|
|
41086
41091
|
} else if (this.tableView.isDataSource) {
|
|
41087
41092
|
let o = await dataSourceApi.query(this.tableView.dataSource, a);
|
|
@@ -41090,7 +41095,7 @@ const _sfc_main$n = {
|
|
|
41090
41095
|
let o = await modelApi.query(
|
|
41091
41096
|
this.tableView.model,
|
|
41092
41097
|
a,
|
|
41093
|
-
this.returnColumns,
|
|
41098
|
+
this.tableView.isReturnSimple ? this.returnColumns : null,
|
|
41094
41099
|
this.tableView.isReturnSimple ? this.tableView : null,
|
|
41095
41100
|
this.tableView.functionName,
|
|
41096
41101
|
this.tableView.functionType
|
|
@@ -41994,7 +41999,6 @@ function _sfc_render$n(r, a, o, s, l, u) {
|
|
|
41994
41999
|
size: "small",
|
|
41995
42000
|
stripe: "",
|
|
41996
42001
|
"row-key": "id",
|
|
41997
|
-
"indent-size": 18,
|
|
41998
42002
|
"update-show-children": o.treeEnable,
|
|
41999
42003
|
columns: l.columns,
|
|
42000
42004
|
data: l.data,
|
|
@@ -42562,7 +42566,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
|
|
|
42562
42566
|
], 2)
|
|
42563
42567
|
], 2);
|
|
42564
42568
|
}
|
|
42565
|
-
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
42569
|
+
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-887433c2"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42566
42570
|
__proto__: null,
|
|
42567
42571
|
default: viewTable
|
|
42568
42572
|
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {
|