|
@@ -417,9 +417,9 @@
|
|
|
getTabList({
|
|
|
DESCRIPTION: value
|
|
|
}).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- this.row = res.data.data.row.concat([])
|
|
|
- this.formLists[1].item.props.AutoData = res.data.data.row.reduce((arr, item) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.row = res.data.row.concat([])
|
|
|
+ this.formLists[1].item.props.AutoData = res.data.row.reduce((arr, item) => {
|
|
|
arr.push({
|
|
|
value: item.NAME.val,
|
|
|
id: item.ID.val,
|
|
@@ -436,9 +436,9 @@
|
|
|
pageSize: instance.pageSize,
|
|
|
page: currentPage ? currentPage : 1
|
|
|
}).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- this.row = res.data.data.row.concat([])
|
|
|
- res.data.data.tabth.forEach(item => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.row = res.data.row.concat([])
|
|
|
+ res.data.tabth.forEach(item => {
|
|
|
if (item.colname === 'DESCRIPTION') {
|
|
|
item.isak = true
|
|
|
}
|
|
@@ -448,8 +448,8 @@
|
|
|
// item.ID.val = item.NAME.val
|
|
|
// return item
|
|
|
// })
|
|
|
- this.formLists[1].item.props.data = res.data.data;
|
|
|
- this.formLists[1].item.props.totalRowCount = res.data.data.totalRowCount;
|
|
|
+ this.formLists[1].item.props.data = res.data;
|
|
|
+ this.formLists[1].item.props.totalRowCount = res.data.totalRowCount;
|
|
|
}
|
|
|
|
|
|
})
|