|
@@ -9,7 +9,7 @@
|
|
|
:inactive-value="0"
|
|
|
inactive-text="是否自动质控" @change="updateQualityControl">
|
|
|
</el-switch>
|
|
|
- <el-table v-loading="loading" :data="data" style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
+ <el-table :row-class-name="tableRowClassName" v-loading="loading" :data="data" style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column type="index" label="序号" width="80" />
|
|
|
<el-table-column prop="" label="审核状态" width="100" show-overflow-tooltip>
|
|
@@ -90,7 +90,17 @@ export default {
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
+ beforeDestroy() {
|
|
|
+ localStorage.removeItem('getData');
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ tableRowClassName({row}) {
|
|
|
+ console.log('>>>>><<<<<<<', row)
|
|
|
+ if (row.selected) {
|
|
|
+ return 'selected-row'
|
|
|
+ }
|
|
|
+ return ''
|
|
|
+ },
|
|
|
toPage(row) {
|
|
|
const { ZYH } = row;
|
|
|
localStorage.setItem('getData', ZYH);
|
|
@@ -157,4 +167,10 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+::v-deep.el-table {
|
|
|
+ .selected-row {
|
|
|
+ background-color:#ecf5ff !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|