mooho-base-admin-plus 2.7.0 → 2.7.4

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
@@ -133,3 +133,7 @@ mooho-base-admin-plus@2.5.36 - 优化了表格选择的性能
133
133
  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
+ 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
@@ -16573,7 +16573,20 @@ const admin = {
16573
16573
  const c = ((u = l.url) == null ? void 0 : u.split("?")[0]) || "", d = c.replace(/\//g, "-"), f = {};
16574
16574
  l.url && l.url.split("?").length > 1 && l.url.split("?")[1].split("&").forEach((p) => {
16575
16575
  p.split("=").length > 1 && p.split("=")[0].length > 0 && (f[p.split("=")[0]] = p.split("=")[1]);
16576
- }), s.children.push({
16576
+ }), l.isFrameOut ? r.addRoute({
16577
+ path: "/" + c,
16578
+ name: d,
16579
+ meta: {
16580
+ title: getNameI18n(l),
16581
+ description: getDescI18n(l),
16582
+ data: f,
16583
+ auth: !0,
16584
+ cache: !0
16585
+ },
16586
+ component: () => new Promise((p) => {
16587
+ p(a[l.templateUrl]);
16588
+ })
16589
+ }) : s.children.push({
16577
16590
  path: c,
16578
16591
  name: d,
16579
16592
  meta: {
@@ -16895,20 +16908,22 @@ const initRouter = (r, a) => {
16895
16908
  return null;
16896
16909
  text = text.toString();
16897
16910
  let result = "", expression = "";
16898
- for (let r = 0; r < text.length; r++)
16899
- if (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] == "=" || r == text.length - 1) {
16900
- if (r == text.length - 1 && (expression += text[r]), (expression || "").trim()) {
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()) {
16901
16915
  if (!isNaN(expression) || expression.substr(0, 1) == "'" || expression.substr(0, 1) == '"' || expression == "null")
16902
16916
  result += expression;
16903
16917
  else {
16904
- let a = this.parseData(model, expression);
16905
- a == null || typeof a == "object" ? result += expression : isNaN(a) || a.toString().length > 16 ? result += "'" + String(a) + "'" : result += String(a);
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);
16906
16920
  }
16907
16921
  expression = "";
16908
16922
  }
16909
- r != text.length - 1 && (result += text[r]);
16923
+ a && (result += text[r]);
16910
16924
  } else
16911
16925
  expression += text[r];
16926
+ }
16912
16927
  let data = null;
16913
16928
  try {
16914
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);
@@ -27356,8 +27371,7 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_re
27356
27371
  return {
27357
27372
  //changed: false,
27358
27373
  selected: null,
27359
- selectedData: null,
27360
- loadDataEnable: !0
27374
+ selectedData: null
27361
27375
  };
27362
27376
  },
27363
27377
  props: {
@@ -27478,9 +27492,11 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_re
27478
27492
  },
27479
27493
  // 弹出选择框
27480
27494
  dialogSelectOpen() {
27481
- !this.readonly && this.source && (this.param ? this.loadDataEnable = !0 : this.loadDataEnable = !1, setTimeout(async () => {
27495
+ !this.readonly && this.source && setTimeout(async () => {
27496
+ for (let r in this.$refs.dialogTable.filterData)
27497
+ delete this.$refs.dialogTable.filterData[r];
27482
27498
  this.multi && (this.selectedData != null ? this.$refs.dialogTable.setSelected(this.selectedData) : this.$refs.dialogTable.setSelected([])), this.$refs.dialogTable.open(this.param);
27483
- }));
27499
+ });
27484
27500
  },
27485
27501
  // 弹出选择框选中
27486
27502
  dialogCheck(r) {
@@ -41434,15 +41450,17 @@ const _sfc_main$n = {
41434
41450
  a._checked = !1, this.selectedData.splice(o, 1), this.$emit("on-select-change");
41435
41451
  },
41436
41452
  onSelectAll(r) {
41437
- let a = this.getDataWithChildren(this.data);
41438
- this.selectedData.length = 0, a.forEach((o) => {
41439
- o._checked = !0, this.selectedData.push(o);
41453
+ this.getDataWithChildren(this.data).forEach((o) => {
41454
+ o._checked = !0, this.selectedData.some((s) => s.id == o.id) || this.selectedData.push(o);
41440
41455
  }), this.$emit("on-select-change");
41441
41456
  },
41442
41457
  onSelectAllCancel(r) {
41443
41458
  this.getDataWithChildren(this.data).forEach((o) => {
41444
- o._checked = !1;
41445
- }), this.selectedData.length = 0, this.$emit("on-select-change");
41459
+ if (o._checked = !1, this.selectedData.some((s) => s.id == o.id)) {
41460
+ const s = this.selectedData.findIndex((l) => l.id === o.id);
41461
+ this.selectedData.splice(s, 1);
41462
+ }
41463
+ }), this.$emit("on-select-change");
41446
41464
  },
41447
41465
  // 键盘事件
41448
41466
  onKeyup(r) {
@@ -42503,7 +42521,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
42503
42521
  ], 2)
42504
42522
  ], 2);
42505
42523
  }
42506
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-5d5ec11e"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42524
+ 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({
42507
42525
  __proto__: null,
42508
42526
  default: viewTable
42509
42527
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {