Commit d700d3be by 杨明

fixed

1 parent 754caaf3
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 14:07:44
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-09 18:48:25
* @LastEditTime: 2023-10-10 09:54:42
* @FilePath: \scrm-micro-home\src\components\lineChart\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -49,7 +49,6 @@ export default {
mounted() {
this.lineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.lineDom)
this[this.domId].resize()
window.addEventListener('resize', this[this.domId].resize)
},
beforeCreate() {
......@@ -58,6 +57,9 @@ export default {
methods: {
chartBindEvent() {
this[this.domId].setOption(this.lineOptions)
this.$nextTick(() => {
this[this.domId].resize()
})
}
}
}
......
......@@ -120,7 +120,7 @@ export default {
})
const journeyList1 = journeyList.filter(item => item.instStatus == 1) //已启用
const journeyList2 = journeyList.filter(item => item.instStatus == -1) //未启用
const journeyList2 = journeyList.filter(item => item.instStatus == 0) //未启用
let [enable, unenable] = [...journeyList1, ...journeyList2]
const customerList = await Promise.all([this.$apis.journey.getCustomersList({ sopJourneyId: enable.instId, pageSize: 10000, pageNumber: 1 }), unenable ? this.$apis.journey.getCustomersList({ sopJourneyId: unenable.instId }) : {}])
const nodes = await Promise.all([this.$apis.journey.getInstIdDetail({ instId: enable.instId }), unenable ? this.$apis.journey.getInstIdDetail({ instId: unenable.instId }) : {}])
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!