mooho-base-admin-plus 2.10.11 → 2.10.13
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
|
@@ -182,3 +182,5 @@ mooho-base-admin-plus@2.10.8 - 待办任务增加全屏
|
|
|
182
182
|
mooho-base-admin-plus@2.10.9 - 优化流程查询性能,允许按需返回数据
|
|
183
183
|
mooho-base-admin-plus@2.10.10 - 修复默认筛选的bug
|
|
184
184
|
mooho-base-admin-plus@2.10.11 - 增加弹出表单控件
|
|
185
|
+
mooho-base-admin-plus@2.10.12 - 优化表格调整顺序功能
|
|
186
|
+
mooho-base-admin-plus@2.10.13 - 内嵌表格如果是必填,新增时默认一行
|
|
@@ -41454,8 +41454,11 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
41454
41454
|
*/
|
|
41455
41455
|
setDefault(a) {
|
|
41456
41456
|
if (this.data = this.getDefaultData(), a)
|
|
41457
|
-
for (let
|
|
41458
|
-
this.data[
|
|
41457
|
+
for (let o in a)
|
|
41458
|
+
this.data[o] = a[o];
|
|
41459
|
+
let r = this.columns.filter((o) => o.controlType == "Table" && o.isRequired);
|
|
41460
|
+
for (let o of r)
|
|
41461
|
+
this.$refs["table_" + o.code][0].addNew();
|
|
41459
41462
|
this.clearValidate();
|
|
41460
41463
|
},
|
|
41461
41464
|
/**
|
|
@@ -42432,7 +42435,7 @@ var getColumns = (a, r, o) => {
|
|
|
42432
42435
|
width: l[r.code] ? l[r.code] : r.controlWidth,
|
|
42433
42436
|
minWidth: 100,
|
|
42434
42437
|
align: r.align ? r.align.toLowerCase() : "center",
|
|
42435
|
-
sortable: !a.dataView.sortDisable && !r.sortDisable && (!r.isVirtual || o) ? "custom" : !1,
|
|
42438
|
+
sortable: !a.dataView.sortDisable && !a.dataView.adjustEnable && !r.sortDisable && (!r.isVirtual || o) ? "custom" : !1,
|
|
42436
42439
|
resizable: !0,
|
|
42437
42440
|
slot: "normal"
|
|
42438
42441
|
};
|
|
@@ -43035,9 +43038,15 @@ const _sfc_main$n = {
|
|
|
43035
43038
|
*/
|
|
43036
43039
|
getData() {
|
|
43037
43040
|
let a = null;
|
|
43038
|
-
|
|
43039
|
-
|
|
43040
|
-
|
|
43041
|
+
if (this.static ? a = this.copy(this.staticData) : a = this.copy(this.data), a.forEach((r) => {
|
|
43042
|
+
for (let o in r)
|
|
43043
|
+
o.startsWith("_") && delete r[o];
|
|
43044
|
+
}), console.log("data", a), this.tableView.adjustEnable) {
|
|
43045
|
+
let r = 0;
|
|
43046
|
+
for (let o of a)
|
|
43047
|
+
o.orderNo = r, r += 10;
|
|
43048
|
+
}
|
|
43049
|
+
return a;
|
|
43041
43050
|
},
|
|
43042
43051
|
/**
|
|
43043
43052
|
* 重置筛选
|
|
@@ -43497,22 +43506,12 @@ const _sfc_main$n = {
|
|
|
43497
43506
|
// 上移
|
|
43498
43507
|
up(a, r) {
|
|
43499
43508
|
let o = this.staticData;
|
|
43500
|
-
|
|
43501
|
-
o.splice(r, 1), o.splice(r - 1, 0, a);
|
|
43502
|
-
for (let s of o)
|
|
43503
|
-
delete s.id;
|
|
43504
|
-
this.loadData(o);
|
|
43505
|
-
}
|
|
43509
|
+
r > 0 && (o.splice(r, 1), o.splice(r - 1, 0, a), this.loadData(o));
|
|
43506
43510
|
},
|
|
43507
43511
|
// 下移
|
|
43508
43512
|
down(a, r) {
|
|
43509
43513
|
let o = this.staticData;
|
|
43510
|
-
|
|
43511
|
-
o.splice(r, 1), o.splice(r + 1, 0, a);
|
|
43512
|
-
for (let s of o)
|
|
43513
|
-
delete s.id;
|
|
43514
|
-
this.loadData(o);
|
|
43515
|
-
}
|
|
43514
|
+
r < o.length - 1 && (o.splice(r, 1), o.splice(r + 1, 0, a), this.loadData(o));
|
|
43516
43515
|
},
|
|
43517
43516
|
// 清空数据
|
|
43518
43517
|
clear() {
|
|
@@ -44381,7 +44380,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
|
|
|
44381
44380
|
], 2)
|
|
44382
44381
|
], 2);
|
|
44383
44382
|
}
|
|
44384
|
-
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
44383
|
+
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-614d1779"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44385
44384
|
__proto__: null,
|
|
44386
44385
|
default: viewTable
|
|
44387
44386
|
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {
|