소스 검색

设备运行生产工单背景颜色

liuhairui 1 년 전
부모
커밋
1c02409fd1
1개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 13 1
      src/view/yunyin/shengchanguanli/shebeiyunxing.vue

+ 13 - 1
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -170,7 +170,8 @@
                         <el-tab-pane label="设备作业清单"  @click="showTable('印件资料')"  name="first"  :class="{ 'active-tab': activeTab === 'first' }" >
                           <el-table ref="multipleTable"
                                     :show-overflow-tooltip="true"
-                                    highlight-current-row="true"
+                                    highlight-current-row="true"
+									:cell-class-name="sbzyqdsatusCellClass"
                                     :row-style="{ height: '20px' }"
                                     :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
                                     :header-cell-style="{ padding: '0px' }"
@@ -5201,6 +5202,13 @@ const enterDialog = async () => {
               }
       })
 }
+//设备作业清单 正在生产中 背景颜色
+const sbzyqdsatusCellClass = ({row, column, rowIndex, columnIndex}) =>{
+  if (row.status === 1) {
+    return 'status-plan-usage-low';
+  }
+}
+
 
 </script>
 
@@ -5260,6 +5268,10 @@ const enterDialog = async () => {
 /*!* 选中某行时的背景色*/
 :deep(.el-table__body tr.current-row)>td {
   background: #ff80ff !important;
+}
+/* 设备作业清单 正在生产中 背景颜色 */
+:deep(.status-plan-usage-low ) {
+  background: yellow !important;
 }
   ::v-deep  .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
     color: white;        /* 文字颜色 */