|
|
|
@ -189,7 +189,7 @@
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="rawList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table v-loading="loading" :data="rawList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column type="index" :index="indexMethod" label="序号" width="50" align="center"></el-table-column>
|
|
|
|
|
<!-- <el-table-column label="工厂" align="center" prop="factoryCode" />-->
|
|
|
|
@ -494,7 +494,18 @@ export default {
|
|
|
|
|
this.download('system/raw/export', {
|
|
|
|
|
...this.queryParams
|
|
|
|
|
}, `raw_${new Date().getTime()}.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
|
|
// 根据行索引设置不同的class名
|
|
|
|
|
console.log('看看打印是什么',row)
|
|
|
|
|
if (row.userDefined2> 0) {
|
|
|
|
|
return 'even-row';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
.el-table .even-row {
|
|
|
|
|
background: rgb(238, 10, 10);
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|