mooho-base-admin-plus 2.7.0 → 2.7.1

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.7.0",
4
+ "version": "2.7.1",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -41,8 +41,7 @@
41
41
  return {
42
42
  //changed: false,
43
43
  selected: null,
44
- selectedData: null,
45
- loadDataEnable: true
44
+ selectedData: null
46
45
  };
47
46
  },
48
47
  props: {
@@ -217,17 +216,21 @@
217
216
  // 弹出选择框
218
217
  dialogSelectOpen() {
219
218
  if (!this.readonly && this.source) {
220
- if (this.param) {
221
- // 参数完整
222
- this.loadDataEnable = true;
223
- } else {
224
- // 参数不完整
225
- this.loadDataEnable = false;
226
- }
219
+ // if (this.param) {
220
+ // // 参数完整
221
+ // this.loadDataEnable = true;
222
+ // } else {
223
+ // // 参数不完整
224
+ // this.loadDataEnable = false;
225
+ // }
227
226
 
228
227
  //this.$refs.dialogTable.loadData();
229
228
 
230
229
  setTimeout(async () => {
230
+ for (let key in this.$refs.dialogTable.filterData) {
231
+ delete this.$refs.dialogTable.filterData[key];
232
+ }
233
+
231
234
  if (this.multi) {
232
235
  if (this.selectedData != null) {
233
236
  this.$refs.dialogTable.setSelected(this.selectedData);
@@ -36,22 +36,41 @@ export default {
36
36
  });
37
37
  }
38
38
 
39
- root.children.push({
40
- path,
41
- name,
42
- meta: {
43
- title: getNameI18n(item),
44
- description: getDescI18n(item),
45
- data,
46
- auth: true,
47
- cache: true
48
- },
49
- component: () => {
50
- return new Promise(resolve => {
51
- resolve(pages[item.templateUrl]);
52
- });
53
- }
54
- });
39
+ if (!item.isFrameOut) {
40
+ root.children.push({
41
+ path,
42
+ name,
43
+ meta: {
44
+ title: getNameI18n(item),
45
+ description: getDescI18n(item),
46
+ data,
47
+ auth: true,
48
+ cache: true
49
+ },
50
+ component: () => {
51
+ return new Promise(resolve => {
52
+ resolve(pages[item.templateUrl]);
53
+ });
54
+ }
55
+ });
56
+ } else {
57
+ router.addRoute({
58
+ path: '/' + path,
59
+ name,
60
+ meta: {
61
+ title: getNameI18n(item),
62
+ description: getDescI18n(item),
63
+ data,
64
+ auth: true,
65
+ cache: true
66
+ },
67
+ component: () => {
68
+ return new Promise(resolve => {
69
+ resolve(pages[item.templateUrl]);
70
+ });
71
+ }
72
+ });
73
+ }
55
74
  }
56
75
  });
57
76