|
|
@@ -48,7 +48,7 @@
|
|
|
<div>团组列表</div>
|
|
|
</div>
|
|
|
<template>
|
|
|
- <el-table :data="groupDatas" border style="width: 100%">
|
|
|
+ <el-table :row-style="changRed" :data="groupDatas" border style="width: 100%">
|
|
|
<el-table-column prop="num" label="序 号" width="55">
|
|
|
<template slot-scope="scope">
|
|
|
{{ (currentPage - 1) * pageSize + scope.$index + 1 }}
|
|
|
@@ -235,6 +235,13 @@ export default {
|
|
|
this.$route.meta.isBack = false
|
|
|
},
|
|
|
methods: {
|
|
|
+ changRed({ row }) {
|
|
|
+ if (row.useRedBackground) { // 变颜色的条件
|
|
|
+ return {
|
|
|
+ color: "red" // 这个return的就是样式 可以是color 也可以是backgroundColor
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//处理时间
|
|
|
disposeTime(val) {
|
|
|
var date = new Date(val);
|