Explorar o código

判断基础类型是否相同

1178232204@qq.com %!s(int64=3) %!d(string=hai) anos
pai
achega
b9006a0ab9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/components/knowledgeExtra/AddNewRule.vue

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

@@ -358,7 +358,9 @@ export default {
               ) || [];
           if (arr[i - 1] && arr[i - 1].groupId == item.groupId) {
             this.$set(item, 'disabled', false);
-            if (del.length > 0) {
+            console.log(item);
+            
+            if (del.length > 0 && item.subType == types[2]) {
               const delType = del[0].split('-');
               const types = del[0].split('-');
               let baseTypeList = JSON.parse(JSON.stringify(this.baseTypeList));