mooho-base-admin-plus 2.10.11 → 2.10.12

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,4 @@ 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 - 优化表格调整顺序功能
@@ -42432,7 +42432,7 @@ var getColumns = (a, r, o) => {
42432
42432
  width: l[r.code] ? l[r.code] : r.controlWidth,
42433
42433
  minWidth: 100,
42434
42434
  align: r.align ? r.align.toLowerCase() : "center",
42435
- sortable: !a.dataView.sortDisable && !r.sortDisable && (!r.isVirtual || o) ? "custom" : !1,
42435
+ sortable: !a.dataView.sortDisable && !a.dataView.adjustEnable && !r.sortDisable && (!r.isVirtual || o) ? "custom" : !1,
42436
42436
  resizable: !0,
42437
42437
  slot: "normal"
42438
42438
  };
@@ -43035,9 +43035,15 @@ const _sfc_main$n = {
43035
43035
  */
43036
43036
  getData() {
43037
43037
  let a = null;
43038
- return this.static ? a = this.copy(this.staticData) : a = this.copy(this.data), a.forEach((r) => {
43039
- delete r._checked, delete r._dataSource, delete r._needRefresh, delete r._needClear, delete r._rawData, delete r._disabled;
43040
- }), a;
43038
+ if (this.static ? a = this.copy(this.staticData) : a = this.copy(this.data), a.forEach((r) => {
43039
+ for (let o in r)
43040
+ o.startsWith("_") && delete r[o];
43041
+ }), console.log("data", a), this.tableView.adjustEnable) {
43042
+ let r = 0;
43043
+ for (let o of a)
43044
+ o.orderNo = r, r += 10;
43045
+ }
43046
+ return a;
43041
43047
  },
43042
43048
  /**
43043
43049
  * 重置筛选
@@ -43497,22 +43503,12 @@ const _sfc_main$n = {
43497
43503
  // 上移
43498
43504
  up(a, r) {
43499
43505
  let o = this.staticData;
43500
- if (r > 0) {
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
- }
43506
+ r > 0 && (o.splice(r, 1), o.splice(r - 1, 0, a), this.loadData(o));
43506
43507
  },
43507
43508
  // 下移
43508
43509
  down(a, r) {
43509
43510
  let o = this.staticData;
43510
- if (r < o.length - 1) {
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
- }
43511
+ r < o.length - 1 && (o.splice(r, 1), o.splice(r + 1, 0, a), this.loadData(o));
43516
43512
  },
43517
43513
  // 清空数据
43518
43514
  clear() {
@@ -44381,7 +44377,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
44381
44377
  ], 2)
44382
44378
  ], 2);
44383
44379
  }
44384
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-0728e452"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44380
+ 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
44381
  __proto__: null,
44386
44382
  default: viewTable
44387
44383
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {