Commit d8b02a88 authored by 乐宝呗666's avatar 乐宝呗666

删除掉console.log

parent 3e1e1eb3
import { assign, map } from 'lodash'
import faker from 'faker/locale/zh_CN'
import { service, request, serviceForMock, requestForMock, mock } from './service'
// import { service, request, serviceForMock, requestForMock, mock } from './service'
import { request } from './service'
// import * as tools from './tools'
const files = require.context('./modules', false, /\.js$/)
const generators = files.keys().map(key => files(key).default)
export default assign({}, ...map(generators, generator => generator({
service,
request,
serviceForMock,
requestForMock,
mock,
faker
})))
......@@ -29,7 +29,6 @@ function createService () {
},
error => {
// 发送失败
console.log(error)
return Promise.reject(error)
}
)
......
......@@ -12,7 +12,7 @@ export function parse (jsonString = '{}', defaultValue = {}) {
try {
result = JSON.parse(jsonString)
} catch (error) {
console.log(error)
// console.log(error)
}
return result
}
......@@ -65,7 +65,7 @@ export function errorLog (error) {
// 打印到控制台
if (process.env.NODE_ENV === 'development') {
util.log.danger('>>>>>> Error >>>>>>')
console.log(error)
// console.log(error)
}
// 显示提示
Message({
......
......@@ -109,10 +109,8 @@ export default {
vm.chart.on('click', function (params) {
if (vm.message.isLeaf) return
if (vm.message.parentId === undefined) return
console.log(params.dataIndex)
const _id = vm.message.idxs[params.dataIndex]
vm.recordList.push({ name: params.name, id: _id, parentId: vm.message.parentId })
console.log(vm.recordList)
vm.$emit('downData', _id)
})
}
......
......@@ -120,10 +120,8 @@ export default {
vm.chart.on('click', function (params) {
if (vm.message.isLeaf) return
if (vm.message.parentId === undefined) return
console.log(params.dataIndex)
const _id = vm.message.idxs[params.dataIndex]
vm.recordList.push({ name: params.name, id: _id, parentId: vm.message.parentId })
console.log(vm.recordList)
vm.$emit('downData', _id)
})
}
......
......@@ -313,7 +313,7 @@ export default {
},
edgeSymbol: ['none', 'none'],
roam: true,
draggable: true, // 每个节点的拖拉
draggable: false, // 每个节点的拖拉
emphasis: {
scale: true,
focus: 'series',
......@@ -374,11 +374,12 @@ export default {
const vm = this
vm.chart.off('click')
vm.chart.on('click', function (params) {
// if (vm.message.isLeaf) return
if (vm.message.parentId === undefined) return
vm.recordList.push({ name: params.name, id: params.data.id, parentId: vm.message.parentId, color: params.data.color, parentType: vm.message.type })
// console.log(vm.recordList)
vm.$emit('downData', params.data)
if (params.dataType === 'node') {
// if (vm.message.isLeaf) return
if (vm.message.parentId === undefined) return
vm.recordList.push({ name: params.name, id: params.data.id, parentId: vm.message.parentId, color: params.data.color, parentType: vm.message.type })
vm.$emit('downData', params.data)
}
})
}
},
......
......@@ -26,7 +26,6 @@ export default {
vm.chart = echarts.init(document.getElementById(vm.idstr))
// 清空图表
vm.chart.clear()
console.log(vm.message)
vm.option = {
// 图表主标题
// 提示框组件
......
import { get, isObject } from 'lodash'
import store from '../../../store'
import util from '@/libs/util'
// import util from '@/libs/util'
export default {
install (Vue, options) {
......@@ -15,14 +15,14 @@ export default {
vm
}
})
if (process.env.NODE_ENV !== 'development') return
util.log.capsule('D2Admin', 'ErrorHandler', logType)
util.log.danger('>>>>>> 错误信息 >>>>>>')
console.log(info)
util.log.danger('>>>>>> Vue 实例 >>>>>>')
console.log(vm)
util.log.danger('>>>>>> Error >>>>>>')
console.log(error)
// if (process.env.NODE_ENV !== 'development') return
// util.log.capsule('D2Admin', 'ErrorHandler', logType)
// util.log.danger('>>>>>> 错误信息 >>>>>>')
// console.log(info)
// util.log.danger('>>>>>> Vue 实例 >>>>>>')
// console.log(vm)
// util.log.danger('>>>>>> Error >>>>>>')
// console.log(error)
})
}
}
......
......@@ -276,18 +276,18 @@ export default {
},
// 商机阶段分许下钻数据
downData (item) {
console.log('传来的值:', item)
// console.log('传来的值:', item)
this.getOpportunitiesByDept(item)
},
// 行业分布下钻数据
downDistributeData (item) {
console.log('传来的值:', item)
// console.log('传来的值:', item)
this.industry = item
this.getDistribution()
},
// 产品类型分析下钻数据
downTypeData (item) {
console.log('pie传来的值:', item)
// console.log('pie传来的值:', item)
this.productType = item
this.getProductType()
}
......
......@@ -55,8 +55,6 @@ export default {
// console.log('值:' + i[k])
// }
// }
console.log(this.dataList)
}
}
}
......
......@@ -50,7 +50,7 @@ export default {
}
},
downData (item) {
console.log('传来的值:', item)
// console.log('传来的值:', item)
if (!item) {
this.getBudget('', false)
} else {
......
......@@ -59,7 +59,7 @@ export default {
}
},
downData (item) {
console.log('传来的值:', item)
// console.log('传来的值:', item)
if (!item) {
this.getRevenue('', false)
} else {
......
......@@ -49,7 +49,7 @@ export default {
}
},
downData (item) {
console.log('传来的值:', item)
// console.log('传来的值:', item)
if (!item) {
this.getFee('', false)
} else {
......
......@@ -64,7 +64,7 @@ export default {
}
},
downData (item) {
console.log('传来的值:', item)
// console.log('传来的值:', item)
setTimeout(() => {
if (item.indexOf('company') !== -1) {
this.itemList = {
......
......@@ -212,7 +212,7 @@ export default {
},
downData (item) {
console.log('传来的值:', item)
// console.log('传来的值:', item)
setTimeout(() => {
if (!item) {
this.dataList = {
......
......@@ -41,7 +41,6 @@ export default {
},
mounted () {
this.type = JSON.parse(this.$route.query.type)
console.log(typeof this.type)
if (this.type === 0) {
this.getIntroductionById()
} else if (this.type === 1) {
......
......@@ -132,7 +132,7 @@ export default {
if (item.color.toString().indexOf('#') > -1) {
this.value = this.colorMap[item.color]
}
console.log('传来的值:', this.value, item.id)
// console.log('传来的值:', this.value, item.id)
this.handleSelect({ id: item.id })
}
},
......
......@@ -94,9 +94,6 @@ export default {
})
this.$log.capsule('D2Admin', 'handleShowMore', 'primary')
console.group(log.message)
console.log('time: ', log.time)
console.log('type: ', log.type)
console.log(log.meta)
console.groupEnd()
},
// 日志上传
......
......@@ -166,7 +166,6 @@ export default {
// this.loading = false
// })
} else {
console.log('error submit!!')
return false
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment