Commit a3768ef6 by 杨明

fixed

1 parent 0450caf2
...@@ -275,8 +275,9 @@ export default { ...@@ -275,8 +275,9 @@ export default {
methods: { methods: {
importsCount() { importsCount() {
this.$apis.square.importsCount({}).then(res => { this.$apis.square.importsCount({}).then(res => {
console.log(res) if (res) {
this.countAll = res this.countAll = res
}
}) })
}, },
handleReset() { handleReset() {
...@@ -353,9 +354,9 @@ export default { ...@@ -353,9 +354,9 @@ export default {
} }
} }
this.$apis.square.queryCrowdTree(params).then(res => { this.$apis.square.queryCrowdTree(params).then(res => {
if (res) { if (res && res.crowdUnitList) {
const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户') const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户')
this.crowdId = crowdUnitList.crowdId this.crowdId = crowdUnitList ? crowdUnitList.crowdId : ''
} }
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!