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

删除掉console.log

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