mooho-base-admin-plus 2.7.1 → 2.7.5
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 +4 -0
- package/package/mooho-base-admin-plus.min.esm.js +24 -18
- package/package/mooho-base-admin-plus.min.js +2 -2
- package/package/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/view-form.vue +4 -6
- package/src/components/view/view-table.vue +9 -4
- package/src/mixins/page.js +6 -6
package/history.md
CHANGED
|
@@ -134,3 +134,7 @@ mooho-base-admin-plus@2.6.0 - 增加已办
|
|
|
134
134
|
mooho-base-admin-plus@2.6.1 - 增加标签控件
|
|
135
135
|
mooho-base-admin-plus@2.7.0 - 工作流增加折线
|
|
136
136
|
mooho-base-admin-plus@2.7.1 - 弹出选择框弹出时默认清空筛选内容
|
|
137
|
+
mooho-base-admin-plus@2.7.2 - 修复字典缓存的bug
|
|
138
|
+
mooho-base-admin-plus@2.7.3 - 修复公式最后一位为)时的bug
|
|
139
|
+
mooho-base-admin-plus@2.7.4 - 修复全选的bug
|
|
140
|
+
mooho-base-admin-plus@2.7.5 - 将List组件改为后端分页
|
|
@@ -16908,20 +16908,22 @@ const initRouter = (r, a) => {
|
|
|
16908
16908
|
return null;
|
|
16909
16909
|
text = text.toString();
|
|
16910
16910
|
let result = "", expression = "";
|
|
16911
|
-
for (let r = 0; r < text.length; r++)
|
|
16912
|
-
|
|
16913
|
-
|
|
16911
|
+
for (let r = 0; r < text.length; r++) {
|
|
16912
|
+
const a = text[r] == " " || text[r] == "+" || text[r] == "-" || text[r] == "*" || text[r] == "/" || text[r] == "(" || text[r] == ")" || text[r] == ">" || text[r] == "<" || text[r] == "!" || text[r] == "|" || text[r] == "&" || text[r] == "=";
|
|
16913
|
+
if (a || r == text.length - 1) {
|
|
16914
|
+
if (a || (expression += text[r]), (expression || "").trim()) {
|
|
16914
16915
|
if (!isNaN(expression) || expression.substr(0, 1) == "'" || expression.substr(0, 1) == '"' || expression == "null")
|
|
16915
16916
|
result += expression;
|
|
16916
16917
|
else {
|
|
16917
|
-
let
|
|
16918
|
-
|
|
16918
|
+
let o = this.parseData(model, expression);
|
|
16919
|
+
o == null || typeof o == "object" ? result += expression : isNaN(o) || o.toString().length > 16 ? result += "'" + String(o) + "'" : result += String(o);
|
|
16919
16920
|
}
|
|
16920
16921
|
expression = "";
|
|
16921
16922
|
}
|
|
16922
|
-
|
|
16923
|
+
a && (result += text[r]);
|
|
16923
16924
|
} else
|
|
16924
16925
|
expression += text[r];
|
|
16926
|
+
}
|
|
16925
16927
|
let data = null;
|
|
16926
16928
|
try {
|
|
16927
16929
|
console.log("expression", text, result), data = eval(result), (data != "NaN" && String(data) == "NaN" || typeof data == "number" && (String(data) == "Infinity" || String(data) == "-Infinity")) && (data = null);
|
|
@@ -39990,11 +39992,14 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
39990
39992
|
d.needClear = !0;
|
|
39991
39993
|
});
|
|
39992
39994
|
else if (u.controlType === "List" && c != null) {
|
|
39993
|
-
let
|
|
39994
|
-
(
|
|
39995
|
+
let f = this.$refs["list_" + u.code][0].tableView.filtering;
|
|
39996
|
+
(f || "").trim() && (c = {
|
|
39995
39997
|
...c,
|
|
39996
|
-
...JSON.parse(
|
|
39997
|
-
})
|
|
39998
|
+
...JSON.parse(f)
|
|
39999
|
+
});
|
|
40000
|
+
for (let p in c)
|
|
40001
|
+
this.$refs["list_" + u.code][0].filterData[p] = c[p];
|
|
40002
|
+
this.$refs["list_" + u.code][0].loadData();
|
|
39998
40003
|
}
|
|
39999
40004
|
}
|
|
40000
40005
|
u.needClear = !1, u.needRefresh = !1;
|
|
@@ -40196,10 +40201,9 @@ function _sfc_render$o(r, a, o, s, l, u) {
|
|
|
40196
40201
|
createVNode$1(d, {
|
|
40197
40202
|
ref_for: !0,
|
|
40198
40203
|
ref: "list_" + B.code,
|
|
40199
|
-
static: !0,
|
|
40200
40204
|
"view-code": B.source,
|
|
40201
40205
|
readonly: !0,
|
|
40202
|
-
|
|
40206
|
+
"auto-load": !1
|
|
40203
40207
|
}, null, 8, ["view-code"])
|
|
40204
40208
|
])) : createCommentVNode("", !0),
|
|
40205
40209
|
B.controlType !== "Placeholder" && B.controlType !== "Title" && B.controlType !== "Table" && B.controlType !== "List" ? (openBlock(), createBlock(U, {
|
|
@@ -41448,15 +41452,17 @@ const _sfc_main$n = {
|
|
|
41448
41452
|
a._checked = !1, this.selectedData.splice(o, 1), this.$emit("on-select-change");
|
|
41449
41453
|
},
|
|
41450
41454
|
onSelectAll(r) {
|
|
41451
|
-
|
|
41452
|
-
|
|
41453
|
-
o._checked = !0, this.selectedData.push(o);
|
|
41455
|
+
this.getDataWithChildren(this.data).forEach((o) => {
|
|
41456
|
+
o._checked = !0, this.selectedData.some((s) => s.id == o.id) || this.selectedData.push(o);
|
|
41454
41457
|
}), this.$emit("on-select-change");
|
|
41455
41458
|
},
|
|
41456
41459
|
onSelectAllCancel(r) {
|
|
41457
41460
|
this.getDataWithChildren(this.data).forEach((o) => {
|
|
41458
|
-
o._checked = !1
|
|
41459
|
-
|
|
41461
|
+
if (o._checked = !1, this.selectedData.some((s) => s.id == o.id)) {
|
|
41462
|
+
const s = this.selectedData.findIndex((l) => l.id === o.id);
|
|
41463
|
+
this.selectedData.splice(s, 1);
|
|
41464
|
+
}
|
|
41465
|
+
}), this.$emit("on-select-change");
|
|
41460
41466
|
},
|
|
41461
41467
|
// 键盘事件
|
|
41462
41468
|
onKeyup(r) {
|
|
@@ -42517,7 +42523,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
|
|
|
42517
42523
|
], 2)
|
|
42518
42524
|
], 2);
|
|
42519
42525
|
}
|
|
42520
|
-
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
42526
|
+
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-38e40259"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42521
42527
|
__proto__: null,
|
|
42522
42528
|
default: viewTable
|
|
42523
42529
|
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {
|