修改项目状态看板-时间轴-点击时间轴区域无法全屏查看

This commit is contained in:
qq787203167
2022-05-26 15:52:35 +08:00
parent ba47b0e880
commit a2f72851de
3 changed files with 571 additions and 9 deletions
@@ -70,6 +70,9 @@
:data-source="dataSource"
:columns="columns"
>
<span slot="projectName" slot-scope="text,result">
<a @click="projectNameClick">{{text}}</a>
</span>
<span slot="projectStatusTitle">
<span>{{this.$t('projectStatus')}}</span><br/>
<span>{{'('+$t('red')+'/'+$t('yellow')+'/'+$t('green')+')'}}</span>
@@ -374,9 +377,7 @@
myChart.resize()
}
myChart.on('mouseover', 'yAxis.category', function(e) {
console.log(e)
let axisTip = document.querySelector('.axis-tip')
console.log(axisTip)
axisTip.innerText = e.value
axisTip.style.left = 100 + 'px'
axisTip.style.top = (e.event.event.y) - 180 + 'px'
@@ -387,6 +388,12 @@
axisTip.innerText = ''
axisTip.style.display = 'none'
})
myChart.on('click', (params) => {
let newUrl = this.$router.resolve({
path: '/TaskPlanList'
})
window.open(newUrl.href, '_blank')
})
},
searchQuery() {
this.getList()
@@ -406,6 +413,12 @@
this.dataSource = []
}
})
},
projectNameClick() {
let newUrl = this.$router.resolve({
path: '/projectStatusAndProgress'
})
window.open(newUrl.href, '_blank')
}
}
}