|
@@ -121,7 +121,7 @@
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" ref="deviceTable" :data="specGlList" @selection-change="handleSelectionChange" :height="clientHeight" border>
|
|
|
|
|
|
+ <el-table v-loading="loading" ref="deviceTable" :data="specGlList" @selection-change="handleSelectionChange" :height="clientHeight" border :cell-style="tableCellStyle">
|
|
<el-table-column type="selection" width="55" align="center" fixed="left" />
|
|
<el-table-column type="selection" width="55" align="center" fixed="left" />
|
|
<el-table-column :label="$t('装置')" align="center" fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('装置')" align="center" fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('单元')" align="center" fixed="left" prop="unit" :show-overflow-tooltip="true"/>
|
|
<el-table-column :label="$t('单元')" align="center" fixed="left" prop="unit" :show-overflow-tooltip="true"/>
|
|
@@ -163,6 +163,7 @@
|
|
<span>{{ parseTime(scope.row.nextWarnDate, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.nextWarnDate, '{y}-{m}-{d}') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column :label="$t('预警标识')" align="center" prop="warnFlag" width="100"></el-table-column>
|
|
<el-table-column :label="$t('本次外部检测日期')" align="center" prop="outWarnDate" width="100">
|
|
<el-table-column :label="$t('本次外部检测日期')" align="center" prop="outWarnDate" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.outWarnDate, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.outWarnDate, '{y}-{m}-{d}') }}</span>
|
|
@@ -965,6 +966,18 @@
|
|
this.modifyVisible = false
|
|
this.modifyVisible = false
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
|
|
+ },
|
|
|
|
+ //位号颜色变换
|
|
|
|
+ tableCellStyle({ row, column, rowIndex, columnIndex }) {
|
|
|
|
+ if (columnIndex == 27 && row.warnFlag == 1){
|
|
|
|
+ return "background-color:rgba(255, 255,153, 1);"
|
|
|
|
+ }
|
|
|
|
+ if (columnIndex == 27 && row.warnFlag == 2){
|
|
|
|
+ return "background-color:rgba(255, 180, 68, 1);"
|
|
|
|
+ }
|
|
|
|
+ if (columnIndex == 27 && row.warnFlag == 3){
|
|
|
|
+ return "background-color:rgba(255, 68,68, 1);"
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|