瀏覽代碼

优化工作流

qinzhipeng_v 5 年之前
父節點
當前提交
718c9ca302

+ 0 - 3
src/views/apiManagement/index.vue

@@ -362,7 +362,6 @@ export default {
 
     // 根据方法id获取详情
     clickDetail(data) {
-      console.log('888' + data)
       this.detail = true
       this.isList1 = false
       this.isList = false
@@ -535,7 +534,6 @@ export default {
     // 接口分类点击节点
     handleNodeClick(data) {
       this.clickData = data
-      console.log(this.clickData, '接口分类点击节点')
       if (data.parentId === 0) {
         this.isList = true
         this.home = false
@@ -554,7 +552,6 @@ export default {
     // 接口列表点击节点
     handleNodeClick1(data) {
       this.clickData = data
-      console.log(this.clickData, '接口分类点击节点')
       this.clickData = data
       if (data.children) {
         this.isList = false

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

@@ -183,7 +183,6 @@ export default {
     getMethodListById(ele) {
       getMethodList(ele).then(response => {
         this.baseData = response.data
-        console.log(this.list)
       })
     },
 

+ 0 - 1
src/views/gantta/gantta.vue

@@ -305,7 +305,6 @@ export default {
         }
         arr.push(header)
       }
-      // console.log(arr)
       return arr
     },
     jumpToTask(e) {

+ 0 - 1
src/views/mock/httpmock.vue

@@ -497,7 +497,6 @@ export default {
     updateData(ele) {
       this.$refs['serviceDataForms'].validate((valid) => {
         if (valid) {
-          console.log(ele)
           const tempData = {
             id: this.serviceData.id,
             customName: this.serviceData.customName,

+ 0 - 37
src/views/mock/interface.vue

@@ -367,13 +367,9 @@ export default {
       this.listLoading = true
       this.listQuery.methodId = parseInt(this.$route.path.split('/')[3])
       fetchServiceList(this.listQuery).then(response => {
-        console.log(this.listQuery)
         this.list = response.data.mockMethodList
         this.total = response.data.total
         this.listLoading = false
-        // setTimeout(() => {
-        //   this.listLoading = false
-        // }, 1.5 * 1000)
       })
     },
     explain() {
@@ -471,14 +467,6 @@ export default {
           consumerSel.display_name = sel.customizeName
           this.consumerSelections.push(consumerSel)
         }
-        // console.log(this.serviceData.consumerIds)
-        // for (var op of this.consumerSelections) {
-        //   if (op.key in this.serviceData.consumerIds) {
-        //     this.consumerSelected.push(op)
-        //     // this.consumerSelected = op.display_name
-        //   }
-        // }
-        // console.log(this.consumerSelected)
       })
     },
     dialogOpenInit() {
@@ -497,9 +485,7 @@ export default {
         id: row.id,
         methodStatus: status
       }
-      // console.log(statusData)
       changeStatus(statusData).then(response => {
-        // console.log(response)
         if (response.code === 200) {
           row.methodStatus = status
           this.$message({
@@ -606,23 +592,16 @@ export default {
     handleUpdate(row) {
       var queryData = { id: row.id }
       fetchServiceById(queryData).then(response => {
-        // console.log(response)
         var rowData = response.data.mockMethodList
-        // this.serviceData.timestamp = new Date(this.temp.timestamp)
-        // console.log(this.serviceData)
-        // console.log(row_data[0])
         this.serviceData = Object.assign({}, rowData[0])
         this.serviceDataExt.id = row.id
         this.serviceDataExt.bizLine = row.bizLine
         this.serviceDataExt.bizModuleId = row.bizModuleId
-        // console.log(this.serviceData.consumerIds.split('[')[1].split(']')[0].split(','))
         if (this.serviceData.consumerIds === '[]') {
           this.serviceData.consumerIds = []
         } else {
           this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
         }
-        // console.log(this.serviceData)
-        // this.serviceData.timestamp = new Date(this.temp.timestamp)
         this.dialogStatus = 'update'
         this.dialogFormVisible = true
         this.showSubmitBtn = true
@@ -634,23 +613,16 @@ export default {
     handleCheck(row) {
       var queryData = { id: row.id }
       fetchServiceById(queryData).then(response => {
-        // console.log(response)
         var rowData = response.data.mockMethodList
-        // this.serviceData.timestamp = new Date(this.temp.timestamp)
-        // console.log(this.serviceData)
-        // console.log(row_data[0])
         this.serviceData = Object.assign({}, rowData[0])
         this.serviceDataExt.id = row.id
         this.serviceDataExt.bizLine = row.bizLine
         this.serviceDataExt.bizModuleId = row.bizModuleId
-        // console.log(this.serviceData.consumerIds.split('[')[1].split(']')[0].split(','))
         if (this.serviceData.consumerIds === '[]') {
           this.serviceData.consumerIds = []
         } else {
           this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
         }
-        // console.log(this.serviceData)
-        // this.serviceData.timestamp = new Date(this.temp.timestamp)
         this.dialogStatus = 'update'
         this.dialogFormVisible = true
         this.showSubmitBtn = false
@@ -662,23 +634,16 @@ export default {
     handleCopy(row) {
       var queryData = { id: row.id }
       fetchServiceById(queryData).then(response => {
-        // console.log(response)
         var rowData = response.data.mockMethodList
-        // this.serviceData.timestamp = new Date(this.temp.timestamp)
-        // console.log(this.serviceData)
-        // console.log(row_data[0])
         this.serviceData = Object.assign({}, rowData[0])
         this.serviceDataExt.id = row.id
         this.serviceDataExt.bizLine = row.bizLine
         this.serviceDataExt.bizModuleId = row.bizModuleId
-        // console.log(this.serviceData.consumerIds.split('[')[1].split(']')[0].split(','))
         if (this.serviceData.consumerIds === '[]') {
           this.serviceData.consumerIds = []
         } else {
           this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
         }
-        // console.log(this.serviceData)
-        // this.serviceData.timestamp = new Date(this.temp.timestamp)
         this.dialogStatus = 'create'
         this.dialogFormVisible = true
         this.$nextTick(() => {
@@ -695,7 +660,6 @@ export default {
             bizModuleId: this.serviceDataExt.bizModuleId,
             customName: this.serviceData.customName,
             interfaceName: this.serviceData.interfaceName,
-            // protocol: this.serviceData.protocol,
             serviceVersion: this.serviceData.serviceVersion,
             envChannel: this.serviceData.envChannel,
             envId: this.serviceData.envId,
@@ -707,7 +671,6 @@ export default {
             remark: this.serviceData.remark,
             updator: this.userNames
           }
-          // console.log(tempData)
           updateService(tempData).then(response => {
             if (response.code === 200) {
               this.dialogFormVisible = false

+ 0 - 1
src/views/projectManage/bugList/bugindex.vue

@@ -482,7 +482,6 @@ export default {
       )
     },
     async download() { // 下载导出Excel
-      console.log(this.indexPage)
       const res = await bugDownload(this.indexPage)
       const aLink = document.createElement('a')
       const blob = new Blob([res], { type: 'application/vnd.ms-excel' })

+ 4 - 4
src/views/projectManage/components/timeLine.vue

@@ -7,9 +7,9 @@
           class="center circle"
           :class="{
             'circle2': item.createTime !== null && item.createTime !== '今天',
-            'circle3': item.createTime === '今天' && item.statusName !== 'HOLD' && item.statusName !== 'UNHOLD',
+            'circle3': item.createTime === '今天' && item.statusName !== 'HOLD' && item.statusName !== '解除HOLD',
             'circle4': item.createTime === null,
-            'circle5': item.statusName === 'HOLD' || item.statusName === 'UNHOLD'
+            'circle5': item.statusName === 'HOLD' || item.statusName === '解除HOLD'
           }"
         >
           <el-tooltip v-if="item.id === -2 " class="item" effect="dark" :content="'Hold原因:' + item.remark" placement="top">
@@ -18,7 +18,7 @@
                 'circle-in': item.createTime !== null && item.createTime !== '今天',
                 'circle-is': item.createTime === '今天',
                 'circle-iq': item.createTime === null,
-                'circle-ia': item.statusName === 'HOLD' || item.statusName === 'UNHOLD'
+                'circle-ia': item.statusName === 'HOLD' || item.statusName === '解除HOLD'
               }"
               class="circle-of center"
             />
@@ -29,7 +29,7 @@
               'circle-in': item.createTime !== null && item.createTime !== '今天',
               'circle-is': item.createTime === '今天',
               'circle-iq': item.createTime === null,
-              'circle-ia': item.statusName === 'HOLD' || item.statusName === 'UNHOLD'
+              'circle-ia': item.statusName === 'HOLD' || item.statusName === '解除HOLD'
             }"
             class="circle-of center"
           />

+ 0 - 3
src/views/projectManage/projectList/components/taskList.vue

@@ -174,9 +174,6 @@ export default {
       })
       if (res.code === 200) {
         this.all_task = res.data
-        // for (const [key, value] of Object.entries(res.data[0])) {
-        //   console.log(`${key}: ${value}`)
-        // }
       }
     },
     async getTaskStatus() { // 获取任务状态列表

+ 0 - 1
src/views/projectManage/taskList/components/reportList.vue

@@ -310,7 +310,6 @@ export default {
       const launchTestInfo = { status: this.CallBackStatus, id: this.CallBackId, launchRepulseInfo: this.launchRepulseInfo }
       const userData = { id: '', ename: this.userInformation, name: this.userNames }
       const objData = { launchTestInfo: launchTestInfo, user: userData }
-      console.log(this.Str, 'buzhidao')
       if (this.Str === '通过' || this.Str === '打回') {
         const res = await launchTestUpdate(objData)
         if (res.code === 200) {

+ 0 - 1
src/views/projectManage/version/list/index.vue

@@ -325,7 +325,6 @@ export default {
       }
     },
     handleClick(tab, event) {
-      console.log(tab, event)
       tab.label === '任务' ? this.$refs.tasklist.get_allTask() : ''
       tab.label === '需求' ? this.getVersionHomePageList() : ''
     },

+ 0 - 10
src/views/quality/qualityMeasurement.vue

@@ -548,15 +548,6 @@ export default {
         const myEvent = new Event('resize')
         window.dispatchEvent(myEvent)
       }, 230)
-      // // console.log(New)
-      // // console.log(this.totalOneEcharts, this.totalOneEchartsMount, this.totalOneEchartsRate, this.totalOneEchartsOnline)
-      // // window.addEventListener('resize', () => {
-      // this.totalOneEcharts.resize()
-      // this.totalOneEchartsMount.resize()
-      // console.log(1)
-      // this.totalOneEchartsRate.resize()
-      // this.totalOneEchartsOnline.resize()
-      // })
     }
   },
   created() {
@@ -569,7 +560,6 @@ export default {
     // 点击头部导航栏显示默认数据
     async _initBusinessTreeAndBeginInfo() {
       this.loadingOnlineProcess = true
-      // console.log(this.$store.state.app.sidebar.opened)
       await getBusiness().then(res => {
         res.code === 0 ? this.businessData = res.data : this.errorFun(res.msg)
         const processFunc = (arr) => { // modules和child

+ 0 - 3
src/views/virtualDevices/HMvehicleCreate.vue

@@ -81,7 +81,6 @@ export default {
     // 提交表单并且返回刷新
     createFormData(form) {
       if (!this.form.cityName && !this.form.lat && !this.form.lng && (this.form.ecuId || this.form.batteryId || this.form.imei || this.form.imsi || this.form.vehicleId)) {
-        console.log(1)
         const fieldsToValidate = ['ecuId', 'batteryId', 'imei', 'imsi', 'vehicleId']
         const _self = this
         Promise.all(fieldsToValidate.map(item => {
@@ -102,7 +101,6 @@ export default {
         })
         return
       } else if (!this.form.ecuId && !this.form.batteryId && !this.form.imei && !this.form.imsi && !this.form.vehicleId && (this.form.cityName || this.form.lat || this.form.lng)) {
-        console.log(2)
         const fieldsToValidate = ['cityName', 'lat', 'lng']
         const _self = this
         Promise.all(fieldsToValidate.map(item => {
@@ -123,7 +121,6 @@ export default {
         })
         return
       } else if ((this.form.ecuId || this.form.batteryId || this.form.imei || this.form.imsi || this.form.vehicleId) && (this.form.cityName || this.form.lat || this.form.lng)) {
-        console.log(3)
         const fieldsToValidate = ['ecuId', 'batteryId', 'imei', 'imsi', 'vehicleId', 'cityName', 'lat', 'lng']
         const _self = this
         Promise.all(fieldsToValidate.map(item => {

+ 0 - 20
src/views/virtualDevices/HTvehicle.vue

@@ -382,7 +382,6 @@ export default {
     handleClick(tab, event) {
       this.activeName === tab
       this.listQuery = {}
-      console.log(this.activeName)
       if (this.activeName === 'preOnline') {
         this.isStable = false
         this.isStableDel = false
@@ -401,7 +400,6 @@ export default {
     // 查看设备详情
     deviceDetails(vel) {
       this.dialogStatus = 'details'
-      console.log('参数:' + vel)
       this.detailData = vel
     },
 
@@ -416,7 +414,6 @@ export default {
     chooseVehicleType() {
       queryVehicleCreateInfo(this.addDeviceData.lockModel).then(response => {
         this.bikeModelList = response.data
-        console.log(this.bikeModelList)
       })
     },
 
@@ -491,7 +488,6 @@ export default {
         this.serviceData = response.data.bikeDeviceInfos
         this.detailData = response.data.bikeDeviceInfos
         this.total = response.data.total
-        console.log(this.list)
       })
     },
     // 进首页-pre
@@ -504,7 +500,6 @@ export default {
         this.serviceData = response.data.bikeDeviceInfos
         this.detailData = response.data.bikeDeviceInfos
         this.total = response.data.total
-        console.log(this.list)
       })
     },
     // 进首页-online
@@ -517,7 +512,6 @@ export default {
         this.serviceData = response.data.bikeDeviceInfos
         this.detailData = response.data.bikeDeviceInfos
         this.total = response.data.total
-        console.log(this.list)
       })
     },
     // 根据环境来编辑
@@ -532,7 +526,6 @@ export default {
     },
     // 编辑
     handleUpdate(vel) {
-      console.log(vel)
       this.dialogStatus = 'update'
       this.serviceData = vel
       this.dialogUpdateVisible = true
@@ -641,7 +634,6 @@ export default {
     handleDeviceStatus(row, isOnline) {
       if (isOnline === 1) {
         deviceOnline(row.lockNo).then(response => {
-          console.log('关锁' + response)
           if (response.code === 200) {
             row.isOnline = isOnline
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '成功!', type: 'success' })
@@ -652,13 +644,11 @@ export default {
       }
       if (isOnline === 0) {
         deviceOffline(row.deviceId).then(response => {
-          console.log('关锁' + response)
           if (response.code === 200) {
             row.isOnline = isOnline
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '成功!', type: 'success' })
           } else {
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '失败!' + '原因:' + response.msg.toString(), type: 'danger' })
-            console.log(response)
           }
         })
       }
@@ -667,7 +657,6 @@ export default {
     handleDeviceStatus1(row, isOnline) {
       if (isOnline === 1) {
         deviceOnline1(row.lockNo).then(response => {
-          console.log('关锁' + response)
           if (response.code === 200) {
             row.isOnline = isOnline
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '成功!', type: 'success' })
@@ -678,13 +667,11 @@ export default {
       }
       if (isOnline === 0) {
         deviceOffline1(row.deviceId).then(response => {
-          console.log('关锁' + response)
           if (response.code === 200) {
             row.isOnline = isOnline
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '成功!', type: 'success' })
           } else {
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '失败!' + '原因:' + response.msg.toString(), type: 'danger' })
-            console.log(response)
           }
         })
       }
@@ -693,7 +680,6 @@ export default {
     handleDeviceStatus2(row, isOnline) {
       if (isOnline === 1) {
         deviceOnline2(row.lockNo).then(response => {
-          console.log('关锁' + response)
           if (response.code === 200) {
             row.isOnline = isOnline
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '成功!', type: 'success' })
@@ -704,13 +690,11 @@ export default {
       }
       if (isOnline === 0) {
         deviceOffline2(row.deviceId).then(response => {
-          console.log('关锁' + response)
           if (response.code === 200) {
             row.isOnline = isOnline
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '成功!', type: 'success' })
           } else {
             this.$message({ message: '锁ID:' + row.lockNo.toString() + ' ' + this.statusOperateMaps.get(isOnline) + '失败!' + '原因:' + response.msg.toString(), type: 'danger' })
-            console.log(response)
           }
         })
       }
@@ -830,7 +814,6 @@ export default {
           this.addDeviceData.bizType = 2
           this.addDeviceData.creator = this.userNames
           createDevice(this.addDeviceData).then(response => {
-            console.log(response)
             if (response.code === 200) {
               this.getMyDevicesList()
               this.successFun()
@@ -838,8 +821,6 @@ export default {
             } else {
               this.errorFun(response.msg)
             }
-          }).catch((error) => {
-            console.log('2323' + error)
           })
         }
       })
@@ -872,7 +853,6 @@ export default {
       this.getDevicesList(this.listQuery)
     },
     redirectTo(id, mehtodName, methodProtocol) {
-      console.log(methodProtocol)
       this.$router.push({
         path: `/mock/httpmock/${id}`, query: { mehtodName: mehtodName, methodProtocol: methodProtocol }
       })

+ 0 - 1
src/views/workbench/person/components/calenderList.vue

@@ -230,7 +230,6 @@ export default {
       this.$emit('edit', data)
     },
     handleDelete(data) { // 日程列表中的删除
-      console.log(data)
       this.$emit('delete', data)
     }
   }

+ 0 - 1
tests/unit/components/Breadcrumb.spec.js

@@ -79,7 +79,6 @@ describe('Breadcrumb.vue', () => {
   //   router.push('/menu/menu1/menu1-2/menu1-2-2')
   //   const breadcrumbArray = wrapper.findAll('.el-breadcrumb__inner')
   //   const second = breadcrumbArray.at(1)
-  //   console.log(breadcrumbArray)
   //   const href = second.find('a').attributes().href
   //   expect(href).toBe('#/menu/menu1')
   // })