tianheng-ui 0.1.8 → 0.1.10
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
@@ -290,10 +290,10 @@ export default {
|
|
290
290
|
this.tableConfig.loading.show = false;
|
291
291
|
let data = [];
|
292
292
|
if (this.tableConfig.pageInfo.show) {
|
293
|
-
data = res.records;
|
294
|
-
this.tableConfig.pageInfo.options.total = Number(res.total);
|
293
|
+
data = res.data.records;
|
294
|
+
this.tableConfig.pageInfo.options.total = Number(res.data.total);
|
295
295
|
} else {
|
296
|
-
data = res;
|
296
|
+
data = res.data;
|
297
297
|
}
|
298
298
|
this.tableData = data;
|
299
299
|
})
|
@@ -345,7 +345,7 @@ export default {
|
|
345
345
|
url: apiInfo.api,
|
346
346
|
method: apiInfo.method,
|
347
347
|
headers: apiInfo.headers,
|
348
|
-
data: { ...apiInfo.params,
|
348
|
+
data: { ...apiInfo.params, id: this.dialog.data.id }
|
349
349
|
})
|
350
350
|
.then(res => {
|
351
351
|
callback(true);
|
@@ -367,7 +367,7 @@ export default {
|
|
367
367
|
this.dialog.action.loading = true;
|
368
368
|
const data = [];
|
369
369
|
for (const item of this.tableSelectionData) {
|
370
|
-
data.push(item.id);
|
370
|
+
data.push({ id: item.id });
|
371
371
|
}
|
372
372
|
const apiInfo = this.networkConfig.batchDelete;
|
373
373
|
this.axios({
|