Parcourir la source

需求页状态修改

PrinceLee il y a 5 ans
Parent
commit
67739ead12

+ 8 - 4
src/views/projectManage/projectList/projectViewDetails.vue

@@ -117,28 +117,28 @@
       <!-- 概览 -->
       <!-- 需求 -->
       <el-container v-show="activeName === '2'">
-        <section class="main-section">
+        <section class="main-section contain">
           <needs-list />
         </section>
       </el-container>
       <!-- 需求 -->
       <!-- 任务 -->
       <el-container v-show="activeName === '3'" class="is-vertical">
-        <section class="main-section">
+        <section class="main-section contain">
           <tasks-list />
         </section>
       </el-container>
       <!-- 任务 -->
       <!-- 缺陷 -->
       <el-container v-show="activeName === '4'" class="is-vertical">
-        <section class="main-section">
+        <section class="main-section contain">
           <bugTableDialog ref="bugTableDialog" :obj-id="{ projectId: Number(this.$route.query.id) }" />
         </section>
       </el-container>
       <!-- 缺陷 -->
       <!-- 统计 -->
       <el-container v-if="activeName === '5'" class="is-vertical">
-        <section class="main-section">
+        <section class="main-section contain">
           <data-statistics @change="get_list" />
         </section>
       </el-container>
@@ -376,6 +376,10 @@ export default {
 .main-header::after {
   @include main-header-after;
 }
+.contain {
+  height: calc(100vh - 140px);
+  overflow: scroll;
+}
 .main-section {
   @include main-section;
   .detail-info {

+ 9 - 6
src/views/projectManage/requirement/requirementDetail.vue

@@ -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>
@@ -149,21 +149,21 @@
       <!-- 概览 -->
       <!-- 任务 -->
       <el-container v-if="activeName === '2'" class="is-vertical">
-        <section class="main-section">
+        <section class="main-section contain">
           <tasks-list />
         </section>
       </el-container>
       <!-- 任务 -->
       <!-- 缺陷 -->
       <el-container v-if="activeName === '3'" class="is-vertical">
-        <section class="main-section">
+        <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">
-        <section class="main-section">
+        <section class="main-section contain">
           <data-statistics @change="getRequirementById" />
         </section>
       </el-container>
@@ -380,7 +380,7 @@ 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) {
@@ -433,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 {
@@ -481,7 +485,6 @@ export default {
         font-size:12px
       }
       .comment-content {
-        margin-left:20px;
         font-size:14px;
         color:#333B4A;
         margin-top: 10px;

+ 7 - 4
src/views/projectManage/taskList/taskViewDetail.vue

@@ -134,7 +134,7 @@
               <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-content">{{ item.commentInfo.content }}</span>
+                <span class="comment-content">{{ item.commentInfo.content }}</span><br>
               </li>
             </ul>
             <el-input
@@ -155,7 +155,7 @@
       <!-- 概览 -->
       <!-- 缺陷 -->
       <el-container v-if="activeName === '2'" class="is-vertical">
-        <section class="main-section">
+        <section class="main-section contain">
           <bugTableDialog ref="bugTableDialog" no-show="taskName" :obj-id="{ taskId: Number(this.$route.query.id) }" />
         </section>
       </el-container>
@@ -167,7 +167,7 @@
       <!-- 报告 -->
       <!-- 统计 -->
       <el-container v-if="activeName === '4'" class="is-vertical">
-        <section class="main-section">
+        <section class="main-section contain">
           <data-statistics />
         </section>
       </el-container>
@@ -457,6 +457,10 @@ export default {
 .main-header::after {
   @include main-header-after;
 }
+.contain {
+  height: calc(100vh - 140px);
+  overflow: scroll;
+}
 .main-section {
   @include main-section;
   .detail-info {
@@ -505,7 +509,6 @@ export default {
         font-size:12px
       }
       .comment-content {
-        margin-left:20px;
         font-size:14px;
         color:#333B4A;
         margin-top: 10px;