ws il y a 1 an
Parent
commit
3596949da8
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      chuanyi_client2/src/components/HeaderMain/index.vue

+ 11 - 0
chuanyi_client2/src/components/HeaderMain/index.vue

@@ -1132,12 +1132,16 @@ export default {
           if (arr.length == 0) {
             arr = chooseChannelNameList;
           } else {
+              let status = false;
             for (let i in this.chooiseItemData) {
               let flag = false;
               for (let j in arr) {
                 let tName = arr[j].label ? arr[j].label : arr[j].itemName;
                 if (this.chooiseItemData[i].label == tName) {
                   flag = true;
+                  if (!status) {
+                      status = true;
+                  }
                   break;
                 }
               }
@@ -1145,6 +1149,13 @@ export default {
                 arr.push(this.chooiseItemData[i]);
               }
             }
+              if (status) {
+                  //
+                  this.$message({
+                      message: '请注意,选择的数据项中含有重复的项',
+                      type: 'warning'
+                  });
+              }
           }
           this.handleCheckAllChange(false);
           this.$nextTick(() => {