fix(工作台): 没有项目的用户登录我的待办我的关注和我的创建不显示数据
--bug=1024743 --user=宋天阳 【工作台】github#22990,工作台-我的待办、我的关注、我的创建 https://www.tapd.cn/55049933/s/1363078
This commit is contained in:
parent
467d8afcda
commit
bf1d38ffa2
|
@ -1,30 +1,35 @@
|
||||||
<template>
|
<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>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import WorkstationDetail from "@/business/detail/WorkstationDetail";
|
||||||
import WorkstationDetail from "@/business/detail/WorkstationDetail"
|
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Creation',
|
name: "Creation",
|
||||||
components: {
|
components: {
|
||||||
WorkstationDetail
|
WorkstationDetail,
|
||||||
},
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentTodo:''
|
currentTodo: "",
|
||||||
}
|
projectId: getCurrentProjectID(),
|
||||||
|
};
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
created() {
|
created() {
|
||||||
if (this.$route.query.name) {
|
if (this.$route.query.name) {
|
||||||
this.currentTodo = this.$route.query.name
|
this.currentTodo = this.$route.query.name;
|
||||||
} else {
|
} else {
|
||||||
this.currentTodo = 'track_case'
|
this.currentTodo = "track_case";
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.workstation-card {
|
.workstation-card {
|
||||||
|
|
|
@ -1,28 +1,34 @@
|
||||||
<template>
|
<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>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import WorkstationDetail from "@/business/detail/WorkstationDetail";
|
import WorkstationDetail from "@/business/detail/WorkstationDetail";
|
||||||
|
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Focus',
|
name: "Focus",
|
||||||
components: {
|
components: {
|
||||||
WorkstationDetail
|
WorkstationDetail,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentTodo:'',
|
currentTodo: "",
|
||||||
}
|
projectId: getCurrentProjectID(),
|
||||||
|
};
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
created() {
|
created() {
|
||||||
if (this.$route.query.name) {
|
if (this.$route.query.name) {
|
||||||
this.currentTodo = this.$route.query.name
|
this.currentTodo = this.$route.query.name;
|
||||||
} else {
|
} else {
|
||||||
this.currentTodo = 'track_case'
|
this.currentTodo = "track_case";
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.workstation-card {
|
.workstation-card {
|
||||||
|
|
|
@ -1,28 +1,34 @@
|
||||||
<template>
|
<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>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import WorkstationDetail from "@/business/detail/WorkstationDetail";
|
import WorkstationDetail from "@/business/detail/WorkstationDetail";
|
||||||
|
import { getCurrentProjectID } from "metersphere-frontend/src/utils/token";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Upcoming',
|
name: "Upcoming",
|
||||||
components: {
|
components: {
|
||||||
WorkstationDetail
|
WorkstationDetail,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentTodo:'',
|
currentTodo: "",
|
||||||
}
|
projectId: getCurrentProjectID(),
|
||||||
|
};
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
created() {
|
created() {
|
||||||
if (this.$route.query.name) {
|
if (this.$route.query.name) {
|
||||||
this.currentTodo = this.$route.query.name
|
this.currentTodo = this.$route.query.name;
|
||||||
} else {
|
} else {
|
||||||
this.currentTodo = 'track_case'
|
this.currentTodo = "track_case";
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
:deep(.el-main) {
|
:deep(.el-main) {
|
||||||
|
|
Loading…
Reference in New Issue