|
@@ -5,9 +5,10 @@
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
padding: 20px;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- /deep/ .el-input--mini .el-input__inner,
|
|
|
|
|
|
+ /deep/ .el-table .el-input--mini .el-input__inner,
|
|
.el-select {
|
|
.el-select {
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
+ font-size: 12px;
|
|
}
|
|
}
|
|
.btn_box {
|
|
.btn_box {
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -74,9 +75,9 @@
|
|
margin-right: 4px;
|
|
margin-right: 4px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- ::v-deep .el-table tbody tr:hover > td {
|
|
|
|
- background-color: transparent;
|
|
|
|
- }
|
|
|
|
|
|
+ // ::v-deep .el-table tbody tr:hover > td {
|
|
|
|
+ // // background-color: transparent;
|
|
|
|
+ // }
|
|
/deep/ .el-table th {
|
|
/deep/ .el-table th {
|
|
background: transparent;
|
|
background: transparent;
|
|
}
|
|
}
|
|
@@ -86,9 +87,9 @@
|
|
.table_cell_cls {
|
|
.table_cell_cls {
|
|
vertical-align: top;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
- /deep/ .el-table__body .el-table__row.hover-row td {
|
|
|
|
- background-color: transparent;
|
|
|
|
- }
|
|
|
|
|
|
+ // /deep/ .el-table__body .el-table__row.hover-row td {
|
|
|
|
+ // // background-color: transparent;
|
|
|
|
+ // }
|
|
/deep/ .el-form-item__label {
|
|
/deep/ .el-form-item__label {
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
@@ -96,6 +97,9 @@
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
|
|
+ // /deep/ .el-table__body tr.current-row>td{
|
|
|
|
+ // background: #fff;
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
|
|
@@ -103,17 +107,18 @@
|
|
<!-- :prop="`klRuleByIdSub[${scope.$index}].subDescription`" -->
|
|
<!-- :prop="`klRuleByIdSub[${scope.$index}].subDescription`" -->
|
|
<div class="AddNewRuleTable">
|
|
<div class="AddNewRuleTable">
|
|
<h4 style="margin-bottom: 24px">规则内容:</h4>
|
|
<h4 style="margin-bottom: 24px">规则内容:</h4>
|
|
|
|
+ <!-- 隔行换色 :row-style="rowStyle" -->
|
|
<el-table
|
|
<el-table
|
|
border
|
|
border
|
|
:data="klRuleByIdSub"
|
|
:data="klRuleByIdSub"
|
|
size="mini"
|
|
size="mini"
|
|
style="min-height: 200px"
|
|
style="min-height: 200px"
|
|
- height="calc(100vh - 415px)"
|
|
|
|
- :row-style="rowStyle"
|
|
|
|
|
|
+ height="calc(100vh - 383px)"
|
|
:header-row-style="{ background: '#E3EAF4' }"
|
|
:header-row-style="{ background: '#E3EAF4' }"
|
|
:cell-style="cellStyle"
|
|
:cell-style="cellStyle"
|
|
:span-method="ObjectSpanMethod"
|
|
:span-method="ObjectSpanMethod"
|
|
ref="table"
|
|
ref="table"
|
|
|
|
+ row-key="groupChildId"
|
|
>
|
|
>
|
|
<el-table-column width="80px" label="组" prop="groupType" fixed="left">
|
|
<el-table-column width="80px" label="组" prop="groupType" fixed="left">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -518,13 +523,13 @@ export default {
|
|
this.$refs.table.bodyWrapper.scrollLeft = 0;
|
|
this.$refs.table.bodyWrapper.scrollLeft = 0;
|
|
},
|
|
},
|
|
// table 隔行换色
|
|
// table 隔行换色
|
|
- rowStyle({ row }) {
|
|
|
|
- if (row.rowIndex % 2 == 0) {
|
|
|
|
- return {
|
|
|
|
- background: "#DFF7EF"
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // rowStyle({ row }) {
|
|
|
|
+ // if (row.rowIndex % 2 == 0) {
|
|
|
|
+ // return {
|
|
|
|
+ // background: "#DFF7EF"
|
|
|
|
+ // };
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
// cellStyle
|
|
// cellStyle
|
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
|
if (column.label == "组" || column.label == "基础规则") return {};
|
|
if (column.label == "组" || column.label == "基础规则") return {};
|