|
@@ -156,8 +156,7 @@
|
|
|
<el-table-column
|
|
|
width="170px"
|
|
|
label="附加信息"
|
|
|
- prop="subMsg"
|
|
|
- v-if="ruleTermCodeStr!='2-106-1' && ruleTermCodeStr!='3-108-1' && ruleTermCodeStr!='3-112-1' && ruleTermCodeStr!='4-108-1'"
|
|
|
+ v-if="showMsg || showMsg2"
|
|
|
>
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
<div :class="showMsg?'custom_table_header':''">附加信息</div>
|
|
@@ -165,7 +164,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
|
:prop="`klRuleByIdSub[${scope.$index}].subMsg`"
|
|
|
- :rules="showMsg?rules.subMsg:rules.subMsgs"
|
|
|
+ :rules="showMsg?rules.subMsg:showMsg2?[]:rules.subMsgs"
|
|
|
:class="scope.row.subMsg?'form-texarea':''"
|
|
|
class="texarea-form"
|
|
|
>
|
|
@@ -710,13 +709,10 @@ export default {
|
|
|
isMax(id) {
|
|
|
const typeNum = this.klRuleByIdSub.filter(item => item.groupId === id)
|
|
|
.length;
|
|
|
- console.log(typeNum);
|
|
|
- console.log(this.maxNum);
|
|
|
return typeNum >= this.maxNum;
|
|
|
},
|
|
|
// 基础规则类型选择
|
|
|
subTypeChange(e, index) {
|
|
|
- console.log(e);
|
|
|
this.$emit('subTypeChange', e, index);
|
|
|
},
|
|
|
//
|
|
@@ -829,8 +825,6 @@ export default {
|
|
|
: '正则表达式';
|
|
|
},
|
|
|
blurRef() {
|
|
|
- console.log('scroll');
|
|
|
- console.log(this.$refs[this.theRef]);
|
|
|
if (this.theRef) {
|
|
|
this.$refs[this.theRef].blur();
|
|
|
// console.log(document.getElementById(this.theRef).blur,'hehehe');
|
|
@@ -887,6 +881,9 @@ export default {
|
|
|
showMsg: {
|
|
|
default: null
|
|
|
},
|
|
|
+ showMsg2:{
|
|
|
+ default: null
|
|
|
+ },
|
|
|
ruleTermCodeStr: {
|
|
|
default: null
|
|
|
}
|