产品规划部历史数据返回跳回重点问题监控

This commit is contained in:
yanyizhou
2021-11-19 15:34:50 +08:00
parent bfb46f056e
commit 4deaf1964a
3 changed files with 14 additions and 5 deletions
@@ -7,7 +7,7 @@
<rectification-database></rectification-database>
</el-tab-pane>
<el-tab-pane label="重点问题项管控" name="keynote">
<key-issues></key-issues>
<key-issues :keynoteActiveName="keynoteActiveName"></key-issues>
</el-tab-pane>
</el-tabs>
</div>
@@ -24,7 +24,8 @@ export default {
},
data () {
return {
activeName: 'database'
activeName: 'database',
keynoteActiveName: 'cause'
}
},
methods: {
@@ -34,7 +35,10 @@ export default {
if (this.$route.query.activeName){
this.activeName = this.$route.query.activeName
}
console.log('35',this.activeName)
if (this.$route.query.keynoteActiveName){
this.keynoteActiveName = this.$route.query.keynoteActiveName
}
console.log('35',this.keynoteActiveName)
}
},
created() {
@@ -2,7 +2,7 @@
<template>
<div id="key-issues">
<div class="non-content">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tabs v-model="keynoteActiveName" @tab-click="handleClick">
<el-tab-pane label="事业部" name="cause">
<business-division></business-division>
</el-tab-pane>
@@ -20,6 +20,7 @@ import productDepartment from "@/pages/regulatoryRepository/nonConfomity/pages/p
export default {
name: "keyIssues",
props:['keynoteActiveName'],
components: {
businessDivision,
productDepartment,
@@ -556,7 +556,11 @@ export default {
},
back () {
this.$router.push({
name: 'NonConfomity'
name: 'NonConfomity',
query:{
activeName:'keynote',
keynoteActiveName:'product'
}
})
},
// 未符合项table selected事件