Commit ab87c493 by 杨北旺

修改接口返回类型

1 parent f7f4ffc7
......@@ -6,7 +6,7 @@ export default {
return window.$HTTP({
url,
data,
returnAll: true
returnAll: false
})
},
/**获取列表总数 */
......@@ -15,7 +15,7 @@ export default {
return window.$HTTP({
url,
data,
returnAll: true
returnAll: false
})
},
/**获取附件值 */
......
......@@ -127,7 +127,7 @@ export default {
para = {}
}
upload.orderCountApi(para).then(res => {
const { finished, total, unfinished } = res.data
const { finished, total, unfinished } = res
this.tabs[0].num = total
this.tabs[1].num = unfinished
this.tabs[2].num = finished
......@@ -136,10 +136,7 @@ export default {
// 获取列表数据
getServicesList() {
upload.orderListApi(this.paramForm).then(res => {
let { code, data } = res
if (code != 0) {
return
}
let data = res
data.list.map(item => {
item.successDate = new Date(item.successDate).format('yyyy/MM/dd')
return item
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!