Commit ab87c493 by 杨北旺

修改接口返回类型

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