|
@@ -103,6 +103,7 @@ export default {
|
|
|
tableAttributes: {
|
|
|
// 启用勾选列
|
|
|
selectColumn: false,
|
|
|
+ 'row-class-name': this.tableRowClassName
|
|
|
},
|
|
|
// 表格事件
|
|
|
tableEvents: {
|
|
@@ -285,6 +286,13 @@ export default {
|
|
|
this.$refs?.formRef?.$refs?.inlineForm?.clearValidate()
|
|
|
this.$data.formData = this.$options.data().formData
|
|
|
},
|
|
|
+ tableRowClassName({row, rowIndex}){
|
|
|
+ if(row.examineStatus==="待审核"){
|
|
|
+ return 'redbackground'
|
|
|
+ }else{
|
|
|
+ return 'lcsebackground'
|
|
|
+ }
|
|
|
+ },
|
|
|
// 表格操作列
|
|
|
operation() {
|
|
|
return this.operationBtn({
|
|
@@ -480,3 +488,11 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" >
|
|
|
+.redbackground {
|
|
|
+ background: rgb(248, 185, 185) !important;
|
|
|
+}
|
|
|
+.lcsebackground{
|
|
|
+ background: rgb(212, 245, 212) !important;
|
|
|
+}
|
|
|
+</style>
|