|
@@ -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" />
|
|
@@ -127,7 +127,7 @@
|
|
|
<ul class="comment-main">
|
|
|
<li v-for="(item,index) in comments" :key="'comment'+index">
|
|
|
<span class="comment-name">{{ item.commentInfo.name }}</span>
|
|
|
- <span class="comment-gmtCreater">{{ item.commentInfo.gmtCreater }}</span>
|
|
|
+ <span class="comment-gmtCreater">{{ item.commentInfo.gmtCreater }}</span><br>
|
|
|
<span class="comment-content">{{ item.commentInfo.content }}</span>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -148,22 +148,22 @@
|
|
|
</el-container>
|
|
|
<!-- 概览 -->
|
|
|
<!-- 任务 -->
|
|
|
- <el-container v-show="activeName === '2'" class="is-vertical" style="height: calc(100vh - 125px);">
|
|
|
- <section class="main-section">
|
|
|
+ <el-container v-if="activeName === '2'" class="is-vertical">
|
|
|
+ <section class="main-section contain">
|
|
|
<tasks-list />
|
|
|
</section>
|
|
|
</el-container>
|
|
|
<!-- 任务 -->
|
|
|
<!-- 缺陷 -->
|
|
|
- <el-container v-show="activeName === '3'" class="is-vertical" style="height: calc(100vh - 125px);">
|
|
|
- <section class="main-section">
|
|
|
- <bugTableDialog ref="bugTableDialog" />
|
|
|
+ <el-container v-if="activeName === '3'" class="is-vertical">
|
|
|
+ <section class="main-section contain">
|
|
|
+ <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);">
|
|
|
- <section class="main-section">
|
|
|
+ <el-container v-if="activeName === '4'" class="is-vertical">
|
|
|
+ <section class="main-section contain">
|
|
|
<data-statistics @change="getRequirementById" />
|
|
|
</section>
|
|
|
</el-container>
|
|
@@ -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()
|
|
|
},
|
|
@@ -383,11 +380,11 @@ export default {
|
|
|
async updateStatus(status) { // 修改状态
|
|
|
const res = await updateRequirementStatus({
|
|
|
id: this.$route.query.id,
|
|
|
- status: status.code,
|
|
|
+ status: status.value,
|
|
|
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() { // 新建任务
|
|
@@ -436,6 +433,10 @@ export default {
|
|
|
.main-header::after {
|
|
|
@include main-header-after;
|
|
|
}
|
|
|
+.contain {
|
|
|
+ height: calc(100vh - 140px);
|
|
|
+ overflow: scroll;
|
|
|
+}
|
|
|
.main-section {
|
|
|
@include main-section;
|
|
|
.detail-info {
|
|
@@ -484,7 +485,6 @@ export default {
|
|
|
font-size:12px
|
|
|
}
|
|
|
.comment-content {
|
|
|
- margin-left:20px;
|
|
|
font-size:14px;
|
|
|
color:#333B4A;
|
|
|
margin-top: 10px;
|