wyq hace 3 años
padre
commit
0989057d5a
Se han modificado 1 ficheros con 4 adiciones y 6 borrados
  1. 4 6
      src/components/knowledgeExtra/RuleManager.vue

+ 4 - 6
src/components/knowledgeExtra/RuleManager.vue

@@ -157,6 +157,7 @@ export default {
         parConceptName: '',
         parRuleType: ''
       },
+      sign:1,
       cacheData: {},
       currentPage: 1,
       pageSize: config.pageSize,
@@ -223,13 +224,8 @@ export default {
       return obj && obj.name;
     },
     getTypeList() {
-      const typeListData = JSON.parse(localStorage.getItem('zskTypesList'));
-      if (typeListData) {
-        this.ruleTypeList = typeListData;
-        return;
-      }
       api
-        .getTypesList({ planCode: 'rule' })
+        .getTypesList({ planCode: 'rule',sign:this.sign })
         .then(res => {
           if (res.data.code == '0') {
             const data = res.data.data;
@@ -348,6 +344,8 @@ export default {
         .catch(() => {});
     },
     editData(id, isCopy) {
+      this.sign = 2
+      this.getTypeList()
       const pam = this.searched
         ? {
             currentPage: this.currentPage,