Răsfoiți Sursa

优化console.log

qinzhipeng_v@didiglobal.com 4 ani în urmă
părinte
comite
a2eab726f1

+ 0 - 3
src/components/input/editor.vue

@@ -161,13 +161,10 @@ export default {
     getCursorPosition(event) {
       const editEl = event.target
       // return console.log(editEl);
-      console.log(event)
       if (editEl.selectionStart || editEl.selectionStart === 0) {
-        console.log(3333)
         // 非IE浏览器
         this.cursorPosition = editEl.selectionStart
       } else {
-        console.log(4444)
         // IE
         const range = document.selection.createRange()
         range.moveStart('character', -editEl.value.length)

+ 0 - 1
src/components/searchHeader/index.vue

@@ -130,7 +130,6 @@ export default {
       this.$emit('changeShowMore', this.showMore)
     },
     async getOption(key, q, utilName, type) {
-      console.log(key, q, utilName)
       if (utilName === 'getPerson') {
         const res = await getPerson({ memberIDAP: q })
         this.data[type].map(t => t.map(g => {

+ 0 - 2
src/components/select/searchPeople.vue

@@ -84,7 +84,6 @@ export default {
         }
         console.log(this.searchValue)
         const type = Object.prototype.toString.call(this.searchValue)
-        console.log(type)
         if (type.indexOf('Array') < 0) {
           this.remoteMethod(this.searchValue)
         } else if (type.indexOf('Array') > 0 && this.searchValue.length > 0 && this.firstGetArr) {
@@ -100,7 +99,6 @@ export default {
   },
   methods: {
     remoteMethod(query) {
-      console.log(query)
       query !== '' ? this.getMember(query) : this.options = []
     },
     initMore(arr) { // 当多人时候,对数组每一个人员进行搜索

+ 0 - 1
src/components/select/selectTeam.vue

@@ -115,7 +115,6 @@ export default {
       }
       const res = await teamQueryTeamInfo(params)
       this.options = res.data
-      console.log(res.data)
     }
   }
 

+ 0 - 1
src/views/mqTest/index.vue

@@ -14,7 +14,6 @@ export default {
   },
   mounted() {
     var height = window.innerHeight > document.body.clientHeight ? window.innerHeight : document.body.clientHeight
-    console.log(height, 'cdc')
     this.iframeHeight = height + 'px'
   }
 }

+ 0 - 1
src/views/projectManage/bugList/details/bugTableDialog.vue

@@ -307,7 +307,6 @@ export default {
       this.bugGetTableList(this.eleId, false)
     },
     bugGetTableList(e, index, vel) {
-      console.log(e, '需求新建')
       this.key = vel
       this.queryData = e
       this.data = {}

+ 0 - 2
src/views/quality/components/drawerAll.vue

@@ -100,7 +100,6 @@ export default {
     data: {
       handler(newV, oldV) {
         if (newV) {
-          console.log(newV, this.drawer, '刚进来')
           this.Statistics = newV
           this.list = newV.xaxis
           this.type = newV.name
@@ -228,7 +227,6 @@ export default {
       }
     },
     async getTableData(taskIdList) { // 获取需求、任务、缺陷表格数据
-      console.log(taskIdList, 'legnth')
       if (!taskIdList || taskIdList.length <= 0) {
         this.tableData = []
         this.total = 0

+ 0 - 1
src/views/quality/requireStatistics.vue

@@ -555,7 +555,6 @@ export default {
       return arr
     },
     getRequiredNum(value) {
-      console.log(value, this.Summary, '点击')
       value.title = value.label
       value.toType = '需求'
       this.requireList = { ...value, ...this.Summary }

+ 0 - 3
src/views/quality/taskStatistics.vue

@@ -567,14 +567,12 @@ export default {
       return arr
     },
     getRequiredNum(value) {
-      console.log(value, this.Summary, '点击')
       value.title = value.label
       value.toType = '任务'
       this.requireList = { ...value, ...this.Summary }
       this.openDrawer = true
     },
     getModuleDistribute(value, data) {
-      console.log(value, data, '点击')
       if (value.data === undefined) {
         this.clone()
         return
@@ -593,7 +591,6 @@ export default {
       this.openDrawer = true
     },
     getRequirementData(value, data) {
-      console.log(value, data, '嗲集')
       value.title = '所属需求方向分布图数据'
       value.toType = '任务'
       this.requireList = { ...value, ...data }

+ 0 - 1
src/views/workbench/components/listView.vue

@@ -251,7 +251,6 @@ export default {
       this.radioChange()
     },
     async radioChange() {
-      console.log(this.searchForm, '那就看你空间内即可')
       const data = {
         timeInfo: {
           startTime: this.team_timeSelectVal[0] || '',

+ 0 - 16
src/views/workbench/team/index.vue

@@ -361,7 +361,6 @@ export default {
       this.$refs.cascader.$el.click()
     },
     handleBizIdChange(val, option) {
-      console.log(val, option, '业务线1')
       if (val.length > 0) {
         const one = val[0]
         const tow = val[1] || ''
@@ -372,32 +371,27 @@ export default {
           if (val[1] && item.code === tow[0]) nameTow = item.name
         })
         if (this.bizCode === 0 && one[0] === -1) { // 默认全选
-          console.log('默认全选')
           this.bizName = '业务线'
           this.bizIdCode = this.optionData
           this.bizCode = 1
         } else {
           if (one[0] !== -1 && this.bizCode === 1) { // 取消全选
-            console.log('取消全选')
             this.bizIdCode = null
             this.bizName = name + (nameTow ? '/' + nameTow : '')
             this.bizCode = 0
           } else if (one[0] === -1 && val.length < option.length) { // 点击全选以外的,取消全选
-            console.log('点击全选以外的,取消全选')
             const data = val.filter(item => { return item[0] })
             data.splice(0, 1)
             this.bizIdCode = data
             this.bizName = (name ? name + '/' : '') + (nameTow ? '' + nameTow : '')
             this.bizCode = 0
           } else if (one[0] !== -1 && val.length === (option.length - 1)) { // 点击其余的全部,触发全选
-            console.log('点击其余的全部,触发全选')
             const data = val.filter(item => { return item[0] })
             data.unshift([-1])
             this.bizIdCode = data
             this.bizName = '业务线'
             this.bizCode = 1
           } else if (one[0] !== -1) { // 基础多选
-            console.log('基础多选')
             const data = val.filter(item => { return item[0] })
             this.bizIdCode = data
             this.bizName = name + (nameTow ? '/' + nameTow : '')
@@ -406,7 +400,6 @@ export default {
         const arr = this.bizIdCode.map(value => {
           return value[0]
         })
-        console.log(arr, 'bizId')
         if (arr[0] === undefined) {
           this.handleBizId([-1])
         } else {
@@ -418,7 +411,6 @@ export default {
       }
     },
     handleChange(val, options) {
-      console.log(val, options, '团队')
       if (val.length > 0) {
         let [a, b, stop] = ['', '', true]
         val.map(e => {
@@ -437,14 +429,12 @@ export default {
         })
         const arr = val[0]
         if (this.teamCode === 0 && arr[0] === -1) { // 默认全选
-          console.log('默认全选')
           this.teamNames = this.datas
           this.teamBizName = '团队'
           this.teamCode = 1
           this.bizName = '业务线'
           this.bizIdCode = this.optionData
         } else if (arr[0] !== -1 && this.teamCode === 1) {
-          console.log('取消全选')
           this.teamNames = null
           this.teamBizName = '团队'
           this.teamCode = 0
@@ -458,7 +448,6 @@ export default {
             this.teamCode = 0
             const datas = data.map(item => { return item[0] })
             const bizIds = Array.from(new Set(datas))
-            console.log('点击全选以外的,取消全选', data, datas, bizIds)
             this.bizIdCode = bizIds
             let [n, nameTow] = ['', '']
             this.searchEnum.businesslines.map(item => {
@@ -467,7 +456,6 @@ export default {
             })
             this.bizName = n + (nameTow ? '/' + nameTow : '')
           } else if (arr[0] !== -1 && val.length === (this.datas.length - 1)) {
-            console.log('点击其余的全部,触发全选')
             const data = val.filter(item => { return item[0] })
             data.unshift([-1])
             this.teamBizName = '团队'
@@ -476,7 +464,6 @@ export default {
             this.bizName = '业务线'
             this.bizIdCode = this.optionData
           } else if (arr[0] !== -1) {
-            console.log('基础多选')
             this.teamNames = val
             this.teamBizName = a + (b ? ' / ' + b : '')
             const datas = val.map(item => { return item[0] })
@@ -490,7 +477,6 @@ export default {
             this.bizName = name + (nameTow ? '/' + nameTow : '')
           }
         }
-        console.log(this.teamNames, this.bizIdCode, '看看你是谁')
         this.searchForm.bizIds = this.bizIdCode
         this.handleBizId(this.searchForm.bizIds)
         const teamNum = []
@@ -502,7 +488,6 @@ export default {
           }
         })
         this.searchForm.teamIds = Array.from(new Set(teamNum))
-        console.log(this.searchForm.teamIds, '看看ssss你是谁')
       } else {
         this.teamBizName = '团队'
         this.bizName = '业务线'
@@ -564,7 +549,6 @@ export default {
       }
     },
     handleBizId(e) { // 业务线变动
-      console.log(e, 'bizList')
       this.searchForm.bizIds = e
       this.queryTeamInfoList(this.searchForm.bizIds)// 重新获取团队
       // const res = this.searchEnum.businesslines.find(item => item.code === e)