|
@@ -422,28 +422,33 @@ export default {
|
|
this.tableShow = false;
|
|
this.tableShow = false;
|
|
const date = new Date().valueOf();
|
|
const date = new Date().valueOf();
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- this.$set(this.form, "klRuleByIdSub", [
|
|
|
|
- {
|
|
|
|
- groupId: date,
|
|
|
|
- groupChildId: "child" + new Date().valueOf(),
|
|
|
|
- baseTypes: this.baseTypeList,
|
|
|
|
- baseTermTypeList: [],
|
|
|
|
- conceptList: [],
|
|
|
|
- subDescription: "",
|
|
|
|
- parRuleType: "",
|
|
|
|
- subConceptId: "",
|
|
|
|
- subType: "",
|
|
|
|
- subMaxOperator: "",
|
|
|
|
- subMaxUnit: "",
|
|
|
|
- subMaxValue: "",
|
|
|
|
- subMinOperator: "",
|
|
|
|
- subMinUnit: "",
|
|
|
|
- subMinValue: "",
|
|
|
|
- subEqValue: "",
|
|
|
|
- subLenCode: "",
|
|
|
|
- dataType: ""
|
|
|
|
- }
|
|
|
|
- ]);
|
|
|
|
|
|
+ if (this.form.parHasSub && this.form.parHasSub != 0) {
|
|
|
|
+ this.$set(this.form, "klRuleByIdSub", [
|
|
|
|
+ {
|
|
|
|
+ groupId: date,
|
|
|
|
+ groupChildId: "child" + new Date().valueOf(),
|
|
|
|
+ baseTypes: this.baseTypeList,
|
|
|
|
+ baseTermTypeList: [],
|
|
|
|
+ conceptList: [],
|
|
|
|
+ subDescription: "",
|
|
|
|
+ parRuleType: "",
|
|
|
|
+ subConceptId: "",
|
|
|
|
+ subType: "",
|
|
|
|
+ subMaxOperator: "",
|
|
|
|
+ subMaxUnit: "",
|
|
|
|
+ subMaxValue: "",
|
|
|
|
+ subMinOperator: "",
|
|
|
|
+ subMinUnit: "",
|
|
|
|
+ subMinValue: "",
|
|
|
|
+ subEqValue: "",
|
|
|
|
+ subLenCode: "",
|
|
|
|
+ dataType: ""
|
|
|
|
+ }
|
|
|
|
+ ]);
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(this.form, "klRuleByIdSub", []);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (!init) {
|
|
if (!init) {
|
|
this.form.parConceptId = ""; //医学标准术语清空
|
|
this.form.parConceptId = ""; //医学标准术语清空
|
|
this.conceptList = []; //下拉列表清空
|
|
this.conceptList = []; //下拉列表清空
|
|
@@ -631,9 +636,14 @@ export default {
|
|
deep: true
|
|
deep: true
|
|
},
|
|
},
|
|
"form.parHasSub"(val) {
|
|
"form.parHasSub"(val) {
|
|
- if (!val || val == 0) {
|
|
|
|
- this.form.klRuleByIdSub = [];
|
|
|
|
- }
|
|
|
|
|
|
+ console.log(val);
|
|
|
|
+ console.log(this.form);
|
|
|
|
+ // if (!val || val == 0) {
|
|
|
|
+ // // this.form.klRuleByIdSub = [];
|
|
|
|
+ // this.$set(this.form, "klRuleByIdSub", []);
|
|
|
|
+
|
|
|
|
+ // console.log(this.form);
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|