fix: up detail, router, display for dont have role

This commit is contained in:
wenhua
2024-05-27 22:33:24 +08:00
parent 26931f4200
commit 304effe93c
8 changed files with 30 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="home-bg">
<div class="home-bg" v-if="AuthStore.roles.length">
<el-row gutter="20">
<el-col :xs="24" :sm="24" :md="18" :lg="18" :xl="18">
<div class="left">
@@ -46,11 +46,16 @@
</el-col>
</el-row>
</div>
<div v-else style="display: flex; justify-content: center; align-items: center; height: 100%;" >
您没有任何角色 请联系管理员
</div>
</template>
<script setup lang="jsx">
import 'element-plus/theme-chalk/display.css'
import { useAuthStore } from '@/stores/userstore.js'
const AuthStore = useAuthStore()
const router = useRouter()
const list = ref([
{

View File

@@ -200,11 +200,12 @@ const search = (val) => {
const handleDetail = (row) => {
router.push({
name:'Filing/detail',
name:'Implementation/detail',
query: {
id: row.requirementId,
projectId: row.projectId,
state: row.state
state: row.state,
step: '50'
}
})
}

View File

@@ -1,5 +1,5 @@
<template>
<steps :active="3" @setDetail="setDetail" @stepChange="stepChange">
<steps :active="cuurentStep" @setDetail="setDetail" @stepChange="stepChange">
<template #content>
<collection-detail
:formData="commonForm.formData"
@@ -49,6 +49,10 @@ const collectionProcessViewer = ref(true)
const summaryProcessViewer = ref(true)
const processStore = useProcessStore()
const companyOption = ref([])
const cuurentStep = ref()
route.query.step == '20' && (cuurentStep.value = 2)
route.query.step == '40' && (cuurentStep.value = 3)
route.query.step == '50' && (cuurentStep.value = 4)
const rules = reactive({
auditOpinion: [{required: true, message: '请输入审核意见', trigger: 'blur'}],
})

View File

@@ -220,7 +220,8 @@ const handleDetail = (row) => {
query: {
id: row.requirementId,
projectId: row.projectId,
state: row.state
state: row.state,
step: '40'
}
})
}

View File

@@ -200,11 +200,12 @@ const search = (val) => {
const handleDetail = (row) => {
router.push({
name:'Initiation/detail',
name:'Implementation/detail',
query: {
id: row.requirementId,
projectId: row.projectId,
state: row.state
state: row.state,
step: '20'
}
})
}