解决run build不能返回的问题

main
wuyize 2022-07-08 17:05:28 +08:00
parent e2732e8fab
commit 3f5a29e6d8
3 changed files with 8 additions and 5 deletions

View File

@ -106,9 +106,9 @@ export default {
window.addEventListener('resize', function () {
console.log("addEventListener");
// resize
that.$nextTick(()=>{
//that.$nextTick(()=>{
that.myChart.resize();
});
//});
});
},
//

View File

@ -12,7 +12,7 @@
<p style="font-family: 'Segoe UI',sans-serif;font-size: 20px;font-weight: bold;color: #606266">项目<br/>管理系统</p>
</div>
<el-button style="width: 100%;height: 40px;display: flex;flex-direction: row;justify-content: flex-start"
text :icon="ArrowLeft" @click="this.router.push({path: '/'})">返回
text :icon="ArrowLeft" @click="back">返回
</el-button>
<el-menu-item index="1" :route="'/project/'+$route.params.projectId">
@ -118,6 +118,9 @@ export default {
this.getProjectGroup()
},
methods: {
back() {
router.push({path: '/'})
},
getStaffFullname() {
return this.$store.state.staff === null ? ' ' : this.$store.state.staff.staffFullname
},

View File

@ -67,11 +67,11 @@
<div style="display: flex;flex-direction: column;height: 100%">
<p style="'Segoe UI',sans-serif;font-size: 20px;font-weight: bold;color: #606266;margin: 0 0 30px 0;flex-shrink: 0;">岗位统计</p>
<div style="flex: 1;">
<!-- <EchartsPie :id="'pie_post'" ref="pie_post" :isLegend="true" :dataList="stationList"/>-->
<!-- <EchartsPie id="pie_post" ref="pie_post" :isLegend="true" :dataList="stationList"/>-->
</div>
<p style="'Segoe UI',sans-serif;font-size: 20px;font-weight: bold;color: #606266;margin: 15px 0 30px 0;flex-shrink: 0;">团队工作情况统计</p>
<div style="flex: 1;">
<!-- <EchartsPie :id="'pie_team'" :isRadius="true" />-->
<EchartsPie id="pie_team" :isRadius="true" />
</div>
</div>
</div>