|
@@ -45,7 +45,7 @@
|
|
|
display: flex;
|
|
|
.type_content_item1 {
|
|
|
/deep/ .el-form-item__content {
|
|
|
- padding-bottom: 0px;
|
|
|
+ padding-bottom: 8px;
|
|
|
}
|
|
|
.row_box {
|
|
|
.el-col {
|
|
@@ -86,6 +86,12 @@
|
|
|
.table_cell_cls {
|
|
|
vertical-align: top;
|
|
|
}
|
|
|
+ /deep/ .el-table__body .el-table__row.hover-row td {
|
|
|
+ background-color: transparent;
|
|
|
+ }
|
|
|
+ /deep/ .el-form-item__label{
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|
|
|
|
|
@@ -96,14 +102,15 @@
|
|
|
<el-table
|
|
|
border
|
|
|
:data="klRuleByIdSub"
|
|
|
- style="width: 100%"
|
|
|
size="mini"
|
|
|
+ style="min-height:200px"
|
|
|
+ height="calc(100vh - 480px)"
|
|
|
:row-style="rowStyle"
|
|
|
:header-row-style="{ background: '#E3EAF4' }"
|
|
|
:cell-style="cellStyle"
|
|
|
:span-method="ObjectSpanMethod"
|
|
|
>
|
|
|
- <el-table-column width="80px" label="组" prop="groupType">
|
|
|
+ <el-table-column width="80px" label="组" prop="groupType" fixed="left">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="btn_box">
|
|
|
<div class="btn_div">
|
|
@@ -126,6 +133,7 @@
|
|
|
<el-table-column
|
|
|
width="80px"
|
|
|
v-if="maxNum && maxNum > 1"
|
|
|
+ fixed="left"
|
|
|
label="基础规则"
|
|
|
prop="groupType"
|
|
|
>
|
|
@@ -292,7 +300,7 @@
|
|
|
validator: (rule, value, callback) => {
|
|
|
subMaxOperator(scope, rule, value, callback);
|
|
|
},
|
|
|
- trigger: 'blur'
|
|
|
+ trigger: 'change'
|
|
|
}
|
|
|
]"
|
|
|
>
|
|
@@ -421,6 +429,11 @@
|
|
|
label-width="100px"
|
|
|
:prop="`klRuleByIdSub[${scope.$index}].subEqValue`"
|
|
|
:rules="[
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入' + textName(scope.$index),
|
|
|
+ trigger: 'blur'
|
|
|
+ },
|
|
|
{
|
|
|
validator: (rule, value, callback) => {
|
|
|
subEqValue(scope, rule, value, callback);
|
|
@@ -443,11 +456,16 @@
|
|
|
label-width="120px"
|
|
|
style="flex: 2"
|
|
|
v-if="scope.row.subType === 6"
|
|
|
- :prop="`klRuleByIdSub[${scope.$index}].subEqValue`"
|
|
|
+ :prop="`klRuleByIdSub[${scope.$index}].subEqValue1`"
|
|
|
:rules="[
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入' + textName(scope.$index),
|
|
|
+ trigger: 'blur'
|
|
|
+ },
|
|
|
{
|
|
|
validator: (rule, value, callback) => {
|
|
|
- subEqValuerule(scope, rule, value, callback);
|
|
|
+ subEqValue(scope, rule, value, callback);
|
|
|
},
|
|
|
trigger: 'blur'
|
|
|
}
|
|
@@ -550,6 +568,7 @@ export default {
|
|
|
},
|
|
|
// 医学内容rule
|
|
|
subEqValue(scope, rule, value, callback) {
|
|
|
+ console.log(value);
|
|
|
if (value === "") {
|
|
|
callback(new Error("请输入" + this.textName(scope.$index)));
|
|
|
} else if (value.length > 200) {
|
|
@@ -558,16 +577,6 @@ export default {
|
|
|
callback();
|
|
|
}
|
|
|
},
|
|
|
- // 正则rule
|
|
|
- subEqValuerule(scope, rule, value, callback) {
|
|
|
- if (value === "") {
|
|
|
- callback(new Error("请输入" + this.textName));
|
|
|
- } else if (value.length > 200) {
|
|
|
- callback(new Error(this.textName + "不能超过200字"));
|
|
|
- } else {
|
|
|
- callback();
|
|
|
- }
|
|
|
- },
|
|
|
// 判断是否为最后一条规则
|
|
|
isLastDate(id) {
|
|
|
const tableLength = this.klRuleByIdSub.filter(
|