Commit aed25409 by 胡悦

提交

1 parent 2f938b11
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-23 15:05:21
* @LastEditors: huyue
* @LastEditTime: 2022-06-30 18:16:03
* @LastEditTime: 2022-06-30 18:34:48
-->
<template>
<div>
......@@ -123,7 +123,6 @@ export default {
this.hasData = false
}
}
console.log(this.hasData)
})
},
draw() {
......@@ -204,7 +203,6 @@ export default {
api = 'storeSaleTrans'
}
this.api.sales[api](params).then(res => {
console.log(res)
this.topList = []
this.lastList = []
if (res.data.dataList.length) {
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-23 15:05:21
* @LastEditors: huyue
* @LastEditTime: 2022-06-30 18:04:44
* @LastEditTime: 2022-06-30 18:35:10
-->
<template>
<div>
......@@ -66,7 +66,6 @@ export default {
})
})
Promise.all([p[0], p[1], p[2], p[3], p[4]]).then(results => {
console.log(results)
this.dataList = results
const flag = results.map(item => {
if (item.length) {
......@@ -75,11 +74,6 @@ export default {
return false
}
})
console.log(
flag,
flag.every(i => !i)
)
// this.hasData = !flag.every(i => !i)
this.$set(this, 'hasData', !flag.every(i => !i))
this.draw()
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!