mooho-base-admin-plus 2.0.1 → 2.0.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.0.1",
4
+ "version": "2.0.3",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -1191,6 +1191,8 @@
1191
1191
  // },
1192
1192
  // 选项变化事件
1193
1193
  onSelectDataChange(sender, selected) {
1194
+ console.log('onSelectDataChange', sender, selected);
1195
+
1194
1196
  let code;
1195
1197
  if (sender.code.endsWith('ID')) {
1196
1198
  code = sender.code.substr(0, sender.code.length - 2);
@@ -897,10 +897,9 @@
897
897
  */
898
898
  async init(viewCode, callback, onFail) {
899
899
  // 加载表格视图
900
-
901
900
  let view = await this.loadDataView(viewCode);
902
901
 
903
- if (view == null && viewCode.indexOf('_') >= 0) {
902
+ if (view && !view.isExist && viewCode.indexOf('_') >= 0) {
904
903
  view = await this.loadDataView(viewCode.split('_')[0]);
905
904
  }
906
905
 
@@ -2020,6 +2019,8 @@
2020
2019
  if (!this.filterDisable) {
2021
2020
  let filter = this.filter;
2022
2021
 
2022
+ console.log('filter', filter);
2023
+
2023
2024
  for (let key in filter) {
2024
2025
  let column = key;
2025
2026
  let value = filter[key];
@@ -2027,6 +2028,10 @@
2027
2028
  continue;
2028
2029
  }
2029
2030
 
2031
+ if (typeof value == 'object' && !(value instanceof Date)) {
2032
+ continue;
2033
+ }
2034
+
2030
2035
  if (column == 'keywordColumns') {
2031
2036
  continue;
2032
2037
  }
@@ -173,6 +173,10 @@
173
173
  min-width: 150px;
174
174
  }
175
175
 
176
+ .ivu-form .ivu-table .ivu-select {
177
+ min-width: initial;
178
+ }
179
+
176
180
  /* 图片 */
177
181
  .form-image-group {
178
182
  display: flex;