Przeglądaj źródła

优化任务排期 表格

qinzhipeng_v 5 lat temu
rodzic
commit
48463e8d1e

+ 5 - 9
src/views/projectManage/taskList/components/scheduleList.vue

@@ -4,14 +4,14 @@
       :id="'schedule-'+id"
       :data="scheduleList"
       :header-cell-style="{ backgroundColor: 'rgba(232,232,232,0.4)', color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500'}"
-      :row-style="{'background-color': 'transparent'}"
       style="width: 100%"
       show-overflow-tooltip="true"
       row-key="id"
+      border
+      stripe
     >
       <el-table-column
         width="80"
-        align="center"
       >
         <template>
           <el-tooltip class="item" effect="dark" content="代表移动,鼠标选中区域可以向上移动" placement="bottom">
@@ -25,7 +25,6 @@
         prop="type"
         label="类型"
         width="100"
-        align="center"
       >
         <template slot-scope="scope">
           {{ scope.row.name }}
@@ -42,26 +41,24 @@
       <el-table-column
         prop="seperateDaysNoHoliday"
         label="排期"
-        min-width="200"
-        align="center"
+        min-width="100"
+
         show-overflow-tooltip
       />
       <el-table-column
         prop="dayLength"
         label="时长"
         width="50"
-        align="center"
       />
       <el-table-column
         prop="peopleList"
         label="参与人员"
         min-width="100"
-        align="center"
       />
       <el-table-column
         label="操作"
         width="200"
-        align="center"
+
         show-overflow-tooltip
       >
         <template slot-scope="scope">
@@ -237,7 +234,6 @@ export default {
   width: calc(100% - 40px);
   margin: 0 20px;
   padding: 0;
-  background:rgba(248,248,248,0.6);
 }
 >>>.el-table, .el-table__expanded-cell{
   background:rgba(248,248,248,0.6);

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

@@ -138,7 +138,7 @@
                 <div v-show="isScheduleLocked === 0">
                   <div v-show="BackToTheLatest === true" class="Scheduling" style="margin-right: 20px;" @click="clickAddScheduling()"><i class="el-icon-circle-plus-outline" /> 添加排期</div>
                 </div>
-                <div align="left" class="Scheduling" @click="scheduleHiHide"><div class="el-icon-document" /> 排期变更记录</div>
+                <div v-show="BackToTheLatest === true" align="left" class="Scheduling" @click="scheduleHiHide"><div class="el-icon-document" /> 排期变更记录</div>
                 <download :id="taskId" :name="'任务'" />
               </div>
             </div>