Ver Fonte

去掉控制台打印

Lijy há 1 ano atrás
pai
commit
8d3d669af5

+ 6 - 6
fhKeeper/formulahousekeeper/timesheet/src/components/cascader.vue

@@ -232,11 +232,11 @@ export default {
         }
         if(this.subject) {
             this.options = JSON.parse(JSON.stringify(this.subject))
-            console.log(this.options, '我收到的数据')
+            // console.log(this.options, '我收到的数据')
         }
         if(this.subjectId) {
             this.optionsOId = JSON.parse(JSON.stringify(this.subjectId))
-            console.log(this.options, '过来的数据')
+            // console.log(this.options, '过来的数据')
             this.traverseArr(this.options, this.optionsOId)
             for(let i in this.options) {
                 if(this.options[i].id == this.optionsOId || this.options[i].auditorId == this.optionsOId) {
@@ -248,7 +248,7 @@ export default {
             }
         }
         this.dailyListIndex = this.idx
-        console.log(this.selectWidth, this.selectHeight)
+        // console.log(this.selectWidth, this.selectHeight)
         // this.moveIon = JSON.parse(JSON.stringify(this.clearable))
     },
     methods: {
@@ -262,7 +262,7 @@ export default {
             }
             if(arr) {
                 for(var i in arr) {
-                    console.log(arr[i].value, idd, id)
+                    // console.log(arr[i].value, idd, id)
                     if(arr[i].label != this.$t('lable.department') && arr[i].label != this.$t('designatedpersonnel')) {
                         if(arr[i].value == id) {
                             console.log('将要付给的值', arr[i])
@@ -295,7 +295,7 @@ export default {
                     that.show = !that.show
                     that.classDiv = false
                     that.move = false
-                }, 100)
+                }, 150)
             }
         },
         liMouseOver(index, item) {
@@ -348,7 +348,7 @@ export default {
             this.liClist(item)
         },
         moveIonDiv() {
-            console.log(this.selectName)
+            // console.log(this.selectName)
             if(this.clearable) {
                 if(this.selectName != this.$t('defaultText.pleaseChoose')) {
                     this.moveIon = true

+ 1 - 5
fhKeeper/formulahousekeeper/timesheet/src/components/cascaderOption.vue

@@ -126,11 +126,7 @@ export default {
         }
     },
     liClick(item) {
-        console.log('我是子组件')
-        if(!item.children) {
-            this.$emit("cascaderOptionClick", item);
-        }
-        if(this.radios) {
+        if(!item.children || this.radios) {
             this.$emit("cascaderOptionClick", item);
         }
     },