PrinceLee 5 rokov pred
rodič
commit
883ce31712

+ 16 - 2
src/views/projectManage/requirement/components/scheduleList.vue

@@ -1,10 +1,10 @@
 <template>
-  <div class="schedule-list">
+  <div class="schedule-list" :class="className">
     <el-col align="right" class="add-schedule"><span @click="addSchedule()"><i class="el-icon-circle-plus-outline" />添加排期</span></el-col>
     <el-table
       :id="'schedule-'+id"
       :data="scheduleList"
-      :header-cell-style="{ backgroundColor: 'rgba(232,232,232,0.4)',color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500', textAlign: 'center'}"
+      :header-cell-style="{ backgroundColor: 'rgba(232,232,232,0.4)', color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500', textAlign: 'center' }"
       :row-style="{'background-color': 'transparent'}"
       style="width: 100%"
       show-overflow-tooltip="true"
@@ -120,6 +120,11 @@ export default {
       type: Array,
       default: () => [],
       required: false
+    },
+    className: {
+      type: String,
+      default: '',
+      required: false
     }
   },
   data() {
@@ -242,6 +247,15 @@ export default {
 >>>.el-table, .el-table__expanded-cell{
   background:rgba(248,248,248,0.6);
 }
+.white {
+  background: #ffffff;
+  .add-schedule {
+    padding: 0 0 20px 0;
+  }
+  /deep/.el-table{
+    background: #ffffff !important;
+  }
+}
 .bottom-detail {
   font-size: 14px;
   width: calc(100% - 40px);

+ 0 - 3
src/views/projectManage/requirement/components/taskList.vue

@@ -67,9 +67,6 @@
           </el-select>
         </template>
       </el-table-column>
-      <el-table-column label="所属需求" width="200" align="center" show-overflow-tooltip>
-        <template slot-scope="scope">{{ scope.row.requireName }}</template>
-      </el-table-column>
       <el-table-column label="跟版客户端" width="120" align="center" show-overflow-tooltip>
         <template slot-scope="scope">{{ scope.row.app }}</template>
       </el-table-column>

+ 5 - 1
src/views/projectManage/requirement/requirementDetail.vue

@@ -118,7 +118,11 @@
             <div class="title-left-name">需求计划</div>
           </div>
           <div>
-            <schedule-list :id="requirementId" :type-list="taskScheduleEvent" :all="true" />
+            <schedule-list
+              :id="requirementId"
+              :type-list="taskScheduleEvent"
+              class-name="white"
+            />
           </div>
         </section>
         <section class="main-section">

+ 16 - 2
src/views/projectManage/taskList/components/scheduleList.vue

@@ -1,10 +1,10 @@
 <template>
-  <div class="schedule-list">
+  <div class="schedule-list" :class="className">
     <el-col align="right" class="add-schedule"><span @click="addSchedule()"><i class="el-icon-circle-plus-outline" />添加排期</span></el-col>
     <el-table
       :id="'schedule-'+id"
       :data="scheduleList"
-      :header-cell-style="{ backgroundColor: 'rgba(232,232,232,0.4)',color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500', textAlign: 'center'}"
+      :header-cell-style="{ backgroundColor: 'rgba(232,232,232,0.4)', color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500', textAlign: 'center' }"
       :row-style="{'background-color': 'transparent'}"
       style="width: 100%"
       show-overflow-tooltip="true"
@@ -114,6 +114,11 @@ export default {
       type: Array,
       default: () => [],
       required: false
+    },
+    className: {
+      type: String,
+      default: '',
+      required: false
     }
   },
   data() {
@@ -235,6 +240,15 @@ export default {
 >>>.el-table, .el-table__expanded-cell{
   background:rgba(248,248,248,0.6);
 }
+.white {
+  background: #ffffff;
+  .add-schedule {
+    padding: 0 0 20px 0;
+  }
+  /deep/.el-table{
+    background: #ffffff !important;
+  }
+}
 .bottom-detail {
   font-size: 14px;
   width: calc(100% - 40px);

+ 5 - 1
src/views/projectManage/taskList/taskViewDetail.vue

@@ -112,7 +112,11 @@
             <div class="title-left-name">任务计划</div>
           </div>
           <div>
-            <schedule-list :id="taskId" :type-list="taskScheduleEvent" />
+            <schedule-list
+              :id="taskId"
+              :type-list="taskScheduleEvent"
+              class-name="white"
+            />
           </div>
         </section>
         <section class="main-section">