瀏覽代碼

规则维护修改

wyq 4 年之前
父節點
當前提交
9143600f03

+ 5 - 2
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 ? '复制' : '修改') + '规则';
@@ -344,7 +347,6 @@ export default {
     },
     // 提交
     submitForm(formName) {
-      console.log(this.form);
       this.$refs[formName].validate(valid => {
         if (valid) {
           let params = JSON.parse(JSON.stringify(this.form));
@@ -622,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>

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

@@ -171,6 +171,8 @@ export default {
     const param = this.$route.params;
     if (param.currentPage) {
       this.inCurrentPage = param.currentPage;
+    }
+    if (param.filter) {
       this.filter = param.filter;
     }
     this.getTypeList();
@@ -225,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;