|
@@ -441,7 +441,7 @@
|
|
<el-form-item
|
|
<el-form-item
|
|
class="type_content_item"
|
|
class="type_content_item"
|
|
style="flex: 2"
|
|
style="flex: 2"
|
|
- v-if="scope.row.subType !== 6 && scope.row.dataType === '2'"
|
|
|
|
|
|
+ v-show="scope.row.subType !== 6 && scope.row.dataType === '2'"
|
|
label="医学内容:"
|
|
label="医学内容:"
|
|
label-width="100px"
|
|
label-width="100px"
|
|
:prop="`klRuleByIdSub[${scope.$index}].subEqValue`"
|
|
:prop="`klRuleByIdSub[${scope.$index}].subEqValue`"
|
|
@@ -472,7 +472,7 @@
|
|
label="正则表达式:"
|
|
label="正则表达式:"
|
|
label-width="120px"
|
|
label-width="120px"
|
|
style="flex: 2"
|
|
style="flex: 2"
|
|
- v-if="scope.row.subType === 6"
|
|
|
|
|
|
+ v-show="scope.row.subType === 6"
|
|
:prop="`klRuleByIdSub[${scope.$index}].subEqValue1`"
|
|
:prop="`klRuleByIdSub[${scope.$index}].subEqValue1`"
|
|
:rules="[
|
|
:rules="[
|
|
{
|
|
{
|
|
@@ -633,14 +633,20 @@ export default {
|
|
this.klRuleByIdSub[index].conceptList = [];
|
|
this.klRuleByIdSub[index].conceptList = [];
|
|
},
|
|
},
|
|
clearNumText(index) {
|
|
clearNumText(index) {
|
|
- this.klRuleByIdSub[index].subMaxOperator = "";
|
|
|
|
- this.klRuleByIdSub[index].subMaxValue = "";
|
|
|
|
- this.klRuleByIdSub[index].subMaxUnit = "";
|
|
|
|
- this.klRuleByIdSub[index].subMinOperator = "";
|
|
|
|
- this.klRuleByIdSub[index].subMinValue = "";
|
|
|
|
- this.klRuleByIdSub[index].subMinUnit = "";
|
|
|
|
- this.klRuleByIdSub[index].subEqValue = "";
|
|
|
|
- this.klRuleByIdSub[index].subEqOperator = "";
|
|
|
|
|
|
+ let obj = JSON.parse(JSON.stringify(this.klRuleByIdSub));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ obj[index].subMaxOperator = "";
|
|
|
|
+ obj[index].subMaxValue = "";
|
|
|
|
+ obj[index].subMaxUnit = "";
|
|
|
|
+ obj[index].subMinOperator = "";
|
|
|
|
+ obj[index].subMinValue = "";
|
|
|
|
+ obj[index].subMinUnit = "";
|
|
|
|
+ obj[index].subEqValue = "";
|
|
|
|
+ // this.$set(obj[index], "subEqValue", "");
|
|
|
|
+ obj[index].subEqOperator = "";
|
|
|
|
+ // this.klRuleByIdSub = obj;
|
|
|
|
+ this.$emit('editKlRuleByIdSub',obj)
|
|
},
|
|
},
|
|
//医学标准术语change
|
|
//医学标准术语change
|
|
subConceptIdfocus(index) {
|
|
subConceptIdfocus(index) {
|
|
@@ -669,9 +675,11 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
dataTypeChange(val, index) {
|
|
dataTypeChange(val, index) {
|
|
|
|
+ console.log(val,index);
|
|
this.klRuleByIdSub[index].subEqOperator = val === "2" ? "=" : "";
|
|
this.klRuleByIdSub[index].subEqOperator = val === "2" ? "=" : "";
|
|
this.clearNumText(index);
|
|
this.clearNumText(index);
|
|
- delete this.klRuleByIdSub[index].dataType; //触发更新
|
|
|
|
|
|
+ // TODO 新增的内容追踪不到
|
|
|
|
+ //delete this.klRuleByIdSub[index].dataType; //触发更新
|
|
this.$set(this.klRuleByIdSub[index], "dataType", val);
|
|
this.$set(this.klRuleByIdSub[index], "dataType", val);
|
|
},
|
|
},
|
|
// 处理要合并相同行的列
|
|
// 处理要合并相同行的列
|