mooho-base-admin-plus 2.8.0 → 2.8.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
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
:load-data-enable="loadDataEnable"
|
|
60
60
|
:row-class-name="rowClassName"
|
|
61
61
|
:highlight-row="highlightRow"
|
|
62
|
+
:returnColumns="returnColumns"
|
|
62
63
|
@create="create"
|
|
63
64
|
@edit="edit"
|
|
64
65
|
@show="show"
|
|
@@ -360,6 +361,12 @@
|
|
|
360
361
|
highlightRow: {
|
|
361
362
|
type: Boolean,
|
|
362
363
|
default: false
|
|
364
|
+
},
|
|
365
|
+
/**
|
|
366
|
+
* 必须返回的字段
|
|
367
|
+
*/
|
|
368
|
+
returnColumns: {
|
|
369
|
+
type: Array
|
|
363
370
|
}
|
|
364
371
|
},
|
|
365
372
|
computed: {
|
|
@@ -953,6 +953,12 @@
|
|
|
953
953
|
highlightRow: {
|
|
954
954
|
type: Boolean,
|
|
955
955
|
default: false
|
|
956
|
+
},
|
|
957
|
+
/**
|
|
958
|
+
* 必须返回的字段
|
|
959
|
+
*/
|
|
960
|
+
returnColumns: {
|
|
961
|
+
type: Array
|
|
956
962
|
}
|
|
957
963
|
},
|
|
958
964
|
computed: {
|
|
@@ -1284,7 +1290,7 @@
|
|
|
1284
1290
|
}
|
|
1285
1291
|
|
|
1286
1292
|
if (this.tableView.isCustom) {
|
|
1287
|
-
let res = await customModelApi.query(this.tableView.model, data,
|
|
1293
|
+
let res = await customModelApi.query(this.tableView.model, data, this.returnColumns, this.tableView.isReturnSimple ? this.tableView : null);
|
|
1288
1294
|
|
|
1289
1295
|
this.total = res.totalCount;
|
|
1290
1296
|
this.data = res.data;
|
|
@@ -1297,7 +1303,7 @@
|
|
|
1297
1303
|
let res = await modelApi.query(
|
|
1298
1304
|
this.tableView.model,
|
|
1299
1305
|
data,
|
|
1300
|
-
|
|
1306
|
+
this.returnColumns,
|
|
1301
1307
|
this.tableView.isReturnSimple ? this.tableView : null,
|
|
1302
1308
|
this.tableView.functionName,
|
|
1303
1309
|
this.tableView.functionType
|