|
@@ -47,7 +47,7 @@
|
|
|
</div>
|
|
|
</el-header>
|
|
|
<!-- 概览 -->
|
|
|
- <el-container v-show="activeName === '1'" class="is-vertical">
|
|
|
+ <el-container v-if="activeName === '1'" class="is-vertical">
|
|
|
<section class="main-section">
|
|
|
<div class="el-main-title">
|
|
|
<div class="title-left-icon" />
|
|
@@ -148,21 +148,21 @@
|
|
|
</el-container>
|
|
|
<!-- 概览 -->
|
|
|
<!-- 任务 -->
|
|
|
- <el-container v-show="activeName === '2'" class="is-vertical" style="height: calc(100vh - 125px);">
|
|
|
+ <el-container v-if="activeName === '2'" class="is-vertical">
|
|
|
<section class="main-section">
|
|
|
<tasks-list />
|
|
|
</section>
|
|
|
</el-container>
|
|
|
<!-- 任务 -->
|
|
|
<!-- 缺陷 -->
|
|
|
- <el-container v-show="activeName === '3'" class="is-vertical" style="height: calc(100vh - 125px);">
|
|
|
+ <el-container v-if="activeName === '3'" class="is-vertical">
|
|
|
<section class="main-section">
|
|
|
- <bugTableDialog ref="bugTableDialog" />
|
|
|
+ <bugTableDialog ref="bugTableDialog" :obj-id="{ requireId: Number(this.$route.query.id) }" />
|
|
|
</section>
|
|
|
</el-container>
|
|
|
<!-- 缺陷 -->
|
|
|
<!-- 统计 -->
|
|
|
- <el-container v-if="activeName === '4'" class="is-vertical" style="height: calc(100vh - 125px);">
|
|
|
+ <el-container v-if="activeName === '4'" class="is-vertical">
|
|
|
<section class="main-section">
|
|
|
<data-statistics @change="getRequirementById" />
|
|
|
</section>
|
|
@@ -198,7 +198,7 @@
|
|
|
<createdBug v-if="bug_open" ref="createdBug" />
|
|
|
<drawer
|
|
|
ref="drawer"
|
|
|
- title="项目成员"
|
|
|
+ title="需求成员"
|
|
|
center
|
|
|
:display.sync="display"
|
|
|
width="28%"
|
|
@@ -302,9 +302,6 @@ export default {
|
|
|
this.$store.state.data.status = true
|
|
|
this.$store.state.data.bizId = true
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.$refs.bugTableDialog.bugGetTableList({ requireId: Number(this.$route.query.id) })
|
|
|
- },
|
|
|
destroyed() {
|
|
|
this.$store.state.data.status = false
|
|
|
this.$store.state.data.bizId = false
|
|
@@ -315,7 +312,7 @@ export default {
|
|
|
requirementInfo.pm = requirementInfo.pm.idap
|
|
|
const res = await updateRequirement(requirementInfo)
|
|
|
if (res.code === 200) {
|
|
|
- this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
|
|
|
+ this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
|
|
|
}
|
|
|
this.getRequirementById()
|
|
|
},
|
|
@@ -387,7 +384,7 @@ export default {
|
|
|
modifier: localStorage.getItem('username')
|
|
|
})
|
|
|
if (res.code === 200) {
|
|
|
- this.$message({ message: '状态修改成功', type: 'success', duration: 1000, offset: 150 })
|
|
|
+ this.$message({ message: '修改成功', type: 'success', duration: 1000, offset: 150 })
|
|
|
}
|
|
|
this.getRequirementById()
|
|
|
},
|
|
@@ -403,7 +400,7 @@ export default {
|
|
|
modifier: localStorage.getItem('username')
|
|
|
})
|
|
|
if (res.code === 200) {
|
|
|
- this.$message({ message: '删除成功', type: 'warning', duration: 1000, offset: 150 })
|
|
|
+ this.$message({ message: '删除成功', type: 'success', duration: 1000, offset: 150 })
|
|
|
}
|
|
|
},
|
|
|
reated_task() { // 新建任务
|