fix(工作台): 没有项目的用户登录我的待办我的关注和我的创建不显示数据

--bug=1024743 --user=宋天阳 【工作台】github#22990,工作台-我的待办、我的关注、我的创建
https://www.tapd.cn/55049933/s/1363078
This commit is contained in:
建国 2023-04-14 19:32:07 +08:00 committed by 建国
parent 467d8afcda
commit bf1d38ffa2
3 changed files with 46 additions and 29 deletions

View File

@ -1,30 +1,35 @@
<template>
<workstation-detail :is-creation=true :current-todo-name="currentTodo"></workstation-detail>
<workstation-detail
:is-creation="true"
v-if="projectId !== '' && projectId !== 'no_such_project'"
:current-todo-name="currentTodo"
></workstation-detail>
</template>
<script>
import WorkstationDetail from "@/business/detail/WorkstationDetail"
import WorkstationDetail from "@/business/detail/WorkstationDetail";
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
export default {
name: 'Creation',
name: "Creation",
components: {
WorkstationDetail
WorkstationDetail,
},
watch: {},
data() {
return {
currentTodo:''
}
currentTodo: "",
projectId: getCurrentProjectID(),
};
},
methods: {},
created() {
if (this.$route.query.name) {
this.currentTodo = this.$route.query.name
this.currentTodo = this.$route.query.name;
} else {
this.currentTodo = 'track_case'
this.currentTodo = "track_case";
}
}
}
},
};
</script>
<style scoped>
.workstation-card {

View File

@ -1,28 +1,34 @@
<template>
<workstation-detail :is-focus="true" :current-todo-name="currentTodo"/>
<workstation-detail
:is-focus="true"
v-if="projectId !== '' && projectId !== 'no_such_project'"
:current-todo-name="currentTodo"
/>
</template>
<script>
import WorkstationDetail from "@/business/detail/WorkstationDetail";
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
export default {
name: 'Focus',
name: "Focus",
components: {
WorkstationDetail
WorkstationDetail,
},
data() {
return {
currentTodo:'',
}
currentTodo: "",
projectId: getCurrentProjectID(),
};
},
methods: {},
created() {
if (this.$route.query.name) {
this.currentTodo = this.$route.query.name
this.currentTodo = this.$route.query.name;
} else {
this.currentTodo = 'track_case'
this.currentTodo = "track_case";
}
}
}
},
};
</script>
<style scoped>
.workstation-card {

View File

@ -1,28 +1,34 @@
<template>
<workstation-detail :is-upcoming=true :current-todo-name="currentTodo"></workstation-detail>
<workstation-detail
:is-upcoming="true"
:current-todo-name="currentTodo"
v-if="projectId !== '' && projectId !== 'no_such_project'"
></workstation-detail>
</template>
<script>
import WorkstationDetail from "@/business/detail/WorkstationDetail";
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
export default {
name: 'Upcoming',
name: "Upcoming",
components: {
WorkstationDetail
WorkstationDetail,
},
data() {
return {
currentTodo:'',
}
currentTodo: "",
projectId: getCurrentProjectID(),
};
},
methods: {},
created() {
if (this.$route.query.name) {
this.currentTodo = this.$route.query.name
this.currentTodo = this.$route.query.name;
} else {
this.currentTodo = 'track_case'
this.currentTodo = "track_case";
}
}
}
},
};
</script>
<style scoped>
:deep(.el-main) {