mooho-base-admin-plus 2.4.47 → 2.4.49

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
@@ -79,3 +79,5 @@ mooho-base-admin-plus@2.4.44 - 修复多选可筛选选择框默认值无法勾
79
79
  mooho-base-admin-plus@2.4.45 - 修复多选可筛选选择框无法删除的问题
80
80
  mooho-base-admin-plus@2.4.46 - 分页增加直接跳转
81
81
  mooho-base-admin-plus@2.4.47 - 多选可筛选选择框清空内容不重新刷新
82
+ mooho-base-admin-plus@2.4.48 - 修复弹出选择框多加载一次的bug
83
+ mooho-base-admin-plus@2.4.49 - 筛选条件增加了日期范围控件支持
@@ -23146,7 +23146,6 @@ const _sfc_main$1o = {
23146
23146
  } else {
23147
23147
  this.loadDataEnable = false;
23148
23148
  }
23149
- this.$refs.dialogTable.loadData();
23150
23149
  setTimeout(async () => {
23151
23150
  if (this.multi) {
23152
23151
  if (this.selectedData != null) {
@@ -35067,17 +35066,17 @@ const _sfc_main$1b = {
35067
35066
  return result2;
35068
35067
  },
35069
35068
  getDataSource(data2, column) {
35070
- if (!column.isStaticItem && column.dataType && column.dataType.startsWith("Enum:")) {
35069
+ if (!column.isStaticItem && column.dataType.startsWith("Enum:")) {
35071
35070
  return this.getEnumList(column.dataType.split(":")[1]);
35072
35071
  } else {
35073
35072
  return column.dataSource == null ? [] : column.dataSource;
35074
35073
  }
35075
35074
  },
35076
35075
  async onDataChange(sender) {
35077
- if (sender == null || sender.triggers !== []) {
35076
+ if (sender == null || sender.triggers && sender.triggers !== []) {
35078
35077
  this.columns.forEach(function(column) {
35079
- if (!!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:")) && (sender == null || sender.triggers.some((item) => {
35080
- return item.id === column.id;
35078
+ if (!column.isStaticItem && !!(column.source || "").trim() && !(column.dataType && column.dataType.startsWith("Enum:")) && (sender == null || sender.triggers.some((item) => {
35079
+ return item.code == column.code;
35081
35080
  }))) {
35082
35081
  column.needRefresh = true;
35083
35082
  }
@@ -38982,6 +38981,9 @@ const _sfc_main$12 = {
38982
38981
  case "Year":
38983
38982
  key = "y_" + key;
38984
38983
  break;
38984
+ case "DateRange":
38985
+ key = key + "_c";
38986
+ return key;
38985
38987
  }
38986
38988
  switch (column.operator) {
38987
38989
  case "GreaterThan":
@@ -42914,6 +42916,8 @@ const _sfc_main$_ = {
42914
42916
  for (let key in filter2) {
42915
42917
  if (this.isJSON(filter2[key])) {
42916
42918
  filter2[key] = JSON.parse(filter2[key]).join(",");
42919
+ } else if (Object.prototype.toString.call(filter2[key]) === "[object Array]") {
42920
+ filter2[key] = filter2[key].join(",");
42917
42921
  } else if (typeof filter2[key] == "object" && !(filter2[key] instanceof Date)) {
42918
42922
  delete filter2[key];
42919
42923
  }