Просмотр исходного кода

Merge branch 'groupAdd0805' into test

wyq 3 лет назад
Родитель
Сommit
5ace3aa365

+ 5 - 1
src/components/knowledgeExtra/AddNewRule.vue

@@ -207,6 +207,7 @@
           :showMsg="showMsg"
           :showMsg2="showMsg2"
           :ruleTermCodeStr="ruleTermCodeStr"
+          :sign="sign"
           @subTypeChange="subTypeChange"
           @searchConcept="searchConcept"
           @addGroup="addGroup"
@@ -249,6 +250,7 @@ export default {
       msgDict: '', //显示附加信息的类型
       firstPlace: null,
       tableShow: true,
+      sign:1,
       form: {
         parDescription: '',
         parRuleType: '',
@@ -268,6 +270,7 @@ export default {
     const param = this.$route.params;
     let info = param.data;
     if (info) {
+      this.sign = 2
       this.parId = info.parId;
       this.isCopy = param.copy;
       this.title = '规则维护-' + (this.isCopy ? '复制' : '修改') + '规则';
@@ -621,7 +624,8 @@ export default {
       const param = {
         excludedConceptIds: [this.form.parRuleType],
         libType: this.form.parLenCode,
-        name: val
+        name: val,
+        sign:this.sign
       };
       api
         .searchConcept(param)

+ 6 - 2
src/components/knowledgeExtra/AddNewRuleTable.vue

@@ -744,7 +744,8 @@ export default {
           this.klRuleByIdSub[this.subConceptIdIndex].subType
         ],
         libType: this.klRuleByIdSub[this.subConceptIdIndex].subLenCode,
-        name: val
+        name: val,
+        sign:this.sign
       };
       api
         .searchConcept(param)
@@ -887,7 +888,10 @@ export default {
     },
     ruleTermCodeStr: {
       default: null
-    }
+    },
+    sign: {
+      default: null
+    },
   }
 };
 </script>

+ 1 - 1
src/components/knowledgeExtra/RuleManager.vue

@@ -227,7 +227,7 @@ export default {
     },
     getTypeList() {
       api
-        .getTypesList({ planCode: 'rule',sign:this.sign })
+        .getTypesList({ planCode: 'rule'})
         .then(res => {
           if (res.data.code == '0') {
             const data = res.data.data;