mooho-base-admin-plus 2.0.51 → 2.0.53
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
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<Button :size="size" custom-icon="fa fa-search" @click="dialogSelectOpen()"></Button>
|
|
15
15
|
</template>
|
|
16
16
|
</Input>
|
|
17
|
-
<modal-table ref="dialogTable" :view-code="source" :selectEnable="multi" :check-cross-page="true" :footer-enable="multi" v-if="dialogActive">
|
|
17
|
+
<modal-table ref="dialogTable" :view-code="source" :selectEnable="multi" :check-cross-page="true" :footer-enable="multi" :load-data-enable="loadDataEnable" v-if="dialogActive">
|
|
18
18
|
<template #command="{ row }">
|
|
19
19
|
<Button size="small" v-if="!multi" type="primary" custom-icon="fa fa-check" @click="dialogCheck(row)">{{ $t('Front_Btn_Select') }}</Button>
|
|
20
20
|
</template>
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
//changed: false,
|
|
43
43
|
selected: null,
|
|
44
44
|
selectedData: null,
|
|
45
|
-
dialogActive: false
|
|
45
|
+
dialogActive: false,
|
|
46
|
+
loadDataEnable: true
|
|
46
47
|
};
|
|
47
48
|
},
|
|
48
49
|
props: {
|
|
@@ -81,7 +82,10 @@
|
|
|
81
82
|
* 参数
|
|
82
83
|
*/
|
|
83
84
|
param: {
|
|
84
|
-
type: Object
|
|
85
|
+
type: Object,
|
|
86
|
+
default: () => {
|
|
87
|
+
return {};
|
|
88
|
+
}
|
|
85
89
|
},
|
|
86
90
|
/**
|
|
87
91
|
* 只读
|
|
@@ -226,12 +230,14 @@
|
|
|
226
230
|
}
|
|
227
231
|
|
|
228
232
|
if (this.param) {
|
|
229
|
-
|
|
233
|
+
// 参数完整
|
|
234
|
+
this.loadDataEnable = true;
|
|
230
235
|
} else {
|
|
231
236
|
// 参数不完整
|
|
232
|
-
this
|
|
233
|
-
this.$refs.dialogTable.opened = true;
|
|
237
|
+
this.loadDataEnable = false;
|
|
234
238
|
}
|
|
239
|
+
|
|
240
|
+
this.$refs.dialogTable.open(this.param);
|
|
235
241
|
});
|
|
236
242
|
}
|
|
237
243
|
},
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
:summary-method="summaryMethod"
|
|
49
49
|
:page-size-opts="pageSizeOpts"
|
|
50
50
|
:span-method="spanMethod"
|
|
51
|
+
:load-data-enable="loadDataEnable"
|
|
51
52
|
@create="create"
|
|
52
53
|
@edit="edit"
|
|
53
54
|
@on-ready="onReady"
|
|
@@ -320,6 +321,13 @@
|
|
|
320
321
|
*/
|
|
321
322
|
spanMethod: {
|
|
322
323
|
type: Function
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* 允许加载数据
|
|
327
|
+
*/
|
|
328
|
+
loadDataEnable: {
|
|
329
|
+
type: Boolean,
|
|
330
|
+
default: true
|
|
323
331
|
}
|
|
324
332
|
},
|
|
325
333
|
computed: {
|
|
@@ -863,6 +863,13 @@
|
|
|
863
863
|
*/
|
|
864
864
|
spanMethod: {
|
|
865
865
|
type: Function
|
|
866
|
+
},
|
|
867
|
+
/**
|
|
868
|
+
* 允许加载数据
|
|
869
|
+
*/
|
|
870
|
+
loadDataEnable: {
|
|
871
|
+
type: Boolean,
|
|
872
|
+
default: true
|
|
866
873
|
}
|
|
867
874
|
},
|
|
868
875
|
computed: {
|
|
@@ -1114,6 +1121,12 @@
|
|
|
1114
1121
|
* @public
|
|
1115
1122
|
*/
|
|
1116
1123
|
async loadData(staticData) {
|
|
1124
|
+
if (!this.loadDataEnable) {
|
|
1125
|
+
this.total = 0;
|
|
1126
|
+
this.data = [];
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1117
1130
|
if (!this.inited) {
|
|
1118
1131
|
await this.init(this.viewCode);
|
|
1119
1132
|
|