feige
2023-04-24 3d15a9931bba33b1e447f621795106008361956f
ruoyi-ui/src/views/contacts/index.vue
@@ -144,7 +144,7 @@
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
  </div>
    <el-table v-loading="loading" :data="contactList"  @selection-change="handleSelectionChange">
    <el-table v-loading="loading" :data="contactList"  @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" width="25"  align="center" />
      <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/>
@@ -183,6 +183,8 @@
      </el-table-column>
      <el-table-column label="备注(是否存在金钱关系)" prop="remark" sortable width="200" >
        <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '————'}}</template>
      </el-table-column>
@@ -550,6 +552,15 @@
      this.reset();
    },
    //隔行变色
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 == 0) {
        return "statistics-warning-row1";
      } else {
        return "statistics-warning-row";
      }
    },
    /** 查询通讯录列表 */
    getList() {
      this.loading = true;
@@ -749,7 +760,16 @@
};
</script>
<style scoped>
<style >
.el-table__row.statistics-warning-row {
  background: #E0EEFE;
}
.el-table__row.statistics-warning-row1 {
  background: #FFEFF2;
}
</style>