|
@@ -43,30 +43,20 @@
|
|
|
width: 100%;
|
|
|
}
|
|
|
display: flex;
|
|
|
- // flex-wrap: wrap;
|
|
|
- .type_content_item {
|
|
|
- // padding: 14px 0;
|
|
|
- // flex: 1;
|
|
|
- // min-width: 200px;
|
|
|
- }
|
|
|
.type_content_item1 {
|
|
|
/deep/ .el-form-item__content {
|
|
|
padding-bottom: 0px;
|
|
|
}
|
|
|
.row_box {
|
|
|
.el-col {
|
|
|
+ /deep/ .el-form-item__content {
|
|
|
+ position: static;
|
|
|
+ }
|
|
|
/deep/ .el-form-item__error {
|
|
|
position: absolute;
|
|
|
width: 260px;
|
|
|
- // top: -10px;
|
|
|
- left: 0;
|
|
|
+ left: 72px;
|
|
|
white-space: normal;
|
|
|
- opacity: 0;
|
|
|
- }
|
|
|
- }
|
|
|
- .el-col:nth-child(1) {
|
|
|
- /deep/ .el-form-item__error {
|
|
|
- opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -93,9 +83,6 @@
|
|
|
/deep/ .el-form-item__content {
|
|
|
padding-bottom: 14px;
|
|
|
}
|
|
|
- /deep/.el-form-item__label {
|
|
|
- // margin-top: 14px;
|
|
|
- }
|
|
|
.table_cell_cls {
|
|
|
vertical-align: top;
|
|
|
}
|
|
@@ -373,7 +360,7 @@
|
|
|
validator: (rule, value, callback) => {
|
|
|
subMinOperatorRule(scope, rule, value, callback);
|
|
|
},
|
|
|
- trigger: 'blur'
|
|
|
+ trigger: 'change'
|
|
|
}
|
|
|
]"
|
|
|
>
|
|
@@ -542,10 +529,7 @@ export default {
|
|
|
subMinOperatorRule(scope, rule, value, callback) {
|
|
|
const { subMaxValue, subMaxOperator, subMinValue } = scope.row;
|
|
|
const val = value + subMaxOperator + subMinValue + subMaxValue;
|
|
|
- if (
|
|
|
- !val ||
|
|
|
- (!value && subMinValue !== "最大值和最小值至少完整填写一个,单位不必填")
|
|
|
- ) {
|
|
|
+ if (!val || (!value && subMinValue !== "")) {
|
|
|
callback(new Error("最大值和最小值至少完整填写一个,单位不必填"));
|
|
|
} else {
|
|
|
callback();
|