|
@@ -8,10 +8,9 @@
|
|
|
ref="table"
|
|
|
:data-source="tableData"
|
|
|
:columns="tableCols"
|
|
|
- stripeed
|
|
|
- fited
|
|
|
bordered
|
|
|
height="100%"
|
|
|
+ :rowClassName="rowClassName"
|
|
|
>
|
|
|
<template v-if="withSelection">
|
|
|
<a-table-column type="selection" width="35" />
|
|
@@ -99,6 +98,13 @@ export default {
|
|
|
this.$refs["table"].doLayout();
|
|
|
},
|
|
|
methods: {
|
|
|
+ rowClassName(index) {
|
|
|
+ if (index.index % 2 == 0) {
|
|
|
+ return "warning-row";
|
|
|
+ } else {
|
|
|
+ return "warning-rows";
|
|
|
+ }
|
|
|
+ },
|
|
|
editRow(row) {
|
|
|
console.log("edit");
|
|
|
},
|
|
@@ -112,6 +118,12 @@ export default {
|
|
|
<style lang="scss" scoped>
|
|
|
.security-check-table-wrapper {
|
|
|
width: 100%;
|
|
|
+ ::v-deep .warning-row {
|
|
|
+ background-color: #f3f5f8;
|
|
|
+ }
|
|
|
+ ::v-deep .warning-rows {
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
::v-deep .ant-table-column-title {
|
|
|
font-size: 14px;
|
|
|
font-family: Helvetica, "Microsoft YaHei";
|