优化
This commit is contained in:
parent
ba38a2490f
commit
246ed40a9a
@ -3,7 +3,10 @@
|
||||
<div v-if="!dd.pc && !dd.other" class="pc commonFont">
|
||||
请移步PC端操作
|
||||
</div>
|
||||
<router-view v-else class="main"/>
|
||||
<keep-alive>
|
||||
<router-view class="main"/>
|
||||
</keep-alive>
|
||||
|
||||
<div @dblclick="handleShowVcnsole" class="baaa" style="width:20px;height:20px;"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
<!-- -->
|
||||
<template>
|
||||
<div>
|
||||
<router-view></router-view>
|
||||
<keep-alive >
|
||||
<router-view v-if="$route.meta.kppeAlive"></router-view>
|
||||
</keep-alive >
|
||||
<router-view v-if="!$route.meta.kppeAlive"></router-view>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@ -232,6 +232,7 @@ import { apiManagerDetail, apiChartList, apiAssessManagerToScore, apiManagerUrgi
|
||||
import { getStartsData } from '@/api/report'
|
||||
let id = 0
|
||||
export default {
|
||||
name: 'assessment-stepList',
|
||||
data () {
|
||||
return {
|
||||
options: {
|
||||
@ -253,7 +254,7 @@ export default {
|
||||
'evaluationIds': '',
|
||||
'flowProcess': null,
|
||||
'pageSize': 10,
|
||||
'staffIds': '',
|
||||
'staffIds': this.$route.query.staffIds || '',
|
||||
'staffName': '',
|
||||
'startId': 10
|
||||
},
|
||||
@ -295,9 +296,18 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeMount () { },
|
||||
created () {
|
||||
console.log(12345)
|
||||
},
|
||||
beforeRouteLeave (to, from, next) {
|
||||
// ...
|
||||
this.$route.meta.kppeAlive = to.name === 'assessment-performance'
|
||||
next()
|
||||
},
|
||||
async mounted () {
|
||||
this.params.startId = Number(this.$route.query.id)
|
||||
await this.handleStartsReq()
|
||||
console.log(123)
|
||||
},
|
||||
methods: {
|
||||
async handleAddCuiBan () {
|
||||
@ -418,7 +428,7 @@ export default {
|
||||
this.params.startId = item[1]
|
||||
this.$router.replace({
|
||||
name: 'assessment-stepList',
|
||||
query: {
|
||||
query: {...this.$route.query,
|
||||
id: item[1]
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user