Commit 9a093028 by 匡雅琴

去除打印

1 parent df24238e
...@@ -64,7 +64,6 @@ export default { ...@@ -64,7 +64,6 @@ export default {
this.chart = echarts.init(document.getElementById('demo')) this.chart = echarts.init(document.getElementById('demo'))
this.setOptions(this.chartData) this.setOptions(this.chartData)
this.chart.on('click', function (params) { this.chart.on('click', function (params) {
console.log(params.name)
}) })
}, },
setOptions(data = []) { setOptions(data = []) {
......
...@@ -68,7 +68,6 @@ export default { ...@@ -68,7 +68,6 @@ export default {
}, },
watch: { watch: {
'dataList'(val) { 'dataList'(val) {
console.log(val)
this.merchantList = utils.deepClone(this.dataList) this.merchantList = utils.deepClone(this.dataList)
} }
}, },
...@@ -100,7 +99,6 @@ export default { ...@@ -100,7 +99,6 @@ export default {
}, },
// 监听子菜单变化 // 监听子菜单变化
selectVal(val) { selectVal(val) {
console.log(val)
this.firstTab = val this.firstTab = val
this.$bus.$emit('selectVal', val) this.$bus.$emit('selectVal', val)
this.openSelect() this.openSelect()
......
...@@ -168,7 +168,6 @@ export default { ...@@ -168,7 +168,6 @@ export default {
_html = '' _html = ''
break break
case 'rate': case 'rate':
console.log(params)
_html = utils.toPercent(params.percent) _html = utils.toPercent(params.percent)
break break
default: default:
......
...@@ -177,8 +177,6 @@ export default { ...@@ -177,8 +177,6 @@ export default {
this.mTime = setInterval(this.pieActive, 15000) this.mTime = setInterval(this.pieActive, 15000)
}) })
this.echartsPie.on('mouseover', data => { this.echartsPie.on('mouseover', data => {
console.log(222);
console.log(data);
this.mainValue = data.data.value this.mainValue = data.data.value
this.numDesc = data.data.name this.numDesc = data.data.name
this.descColor = data.color this.descColor = data.color
......
...@@ -80,9 +80,7 @@ export default { ...@@ -80,9 +80,7 @@ export default {
mounted() { mounted() {
const { valueName, isObject, dataList, defaultValue } = this const { valueName, isObject, dataList, defaultValue } = this
const isDefaultObject = (defaultValue instanceof Object) const isDefaultObject = (defaultValue instanceof Object)
console.log(isDefaultObject,dataList);
this.value = isDefaultObject ? defaultValue[valueName] : defaultValue || (isObject ? dataList[0][valueName] : dataList[0]) this.value = isDefaultObject ? defaultValue[valueName] : defaultValue || (isObject ? dataList[0][valueName] : dataList[0])
console.log(this.value);
}, },
methods: { methods: {
select(item) { select(item) {
......
...@@ -44,7 +44,6 @@ Vue.config.productionTip = false ...@@ -44,7 +44,6 @@ Vue.config.productionTip = false
// Vue.use(dialog) // Vue.use(dialog)
const isMock = ['prod', 'production'].includes(process.env.NODE_ENV) const isMock = ['prod', 'production'].includes(process.env.NODE_ENV)
fetchConfig(!isMock).then(res => { fetchConfig(!isMock).then(res => {
console.log(res)
Vue.prototype.$roleAuth = res.roleAuth Vue.prototype.$roleAuth = res.roleAuth
// 从配置服务器获取动态配置 // 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn // 设置 js中可以访问 $cdn
......
...@@ -10,7 +10,6 @@ export default { ...@@ -10,7 +10,6 @@ export default {
methods: { methods: {
getClientData() { getClientData() {
console.log(22)
this.api.operational.getEnterpriseDistribution().then(res => { this.api.operational.getEnterpriseDistribution().then(res => {
if (res.code == 0) { if (res.code == 0) {
res.data.dataList.forEach(item => { res.data.dataList.forEach(item => {
......
...@@ -69,7 +69,6 @@ const getPages = _ => { ...@@ -69,7 +69,6 @@ const getPages = _ => {
if (e.meta && e.meta.keepAlive) keepAlives.push(name) if (e.meta && e.meta.keepAlive) keepAlives.push(name)
return route return route
}) })
console.log(router)
return [router] return [router]
} }
export const keeps = keepAlives export const keeps = keepAlives
......
...@@ -27,7 +27,6 @@ export default { ...@@ -27,7 +27,6 @@ export default {
computed: { computed: {
tabName() { tabName() {
let sname let sname
console.log(this.$store.state.app)
switch (this.activeName) { switch (this.activeName) {
case 0: case 0:
sname = this.$store.state.app.boutique.channel.value == 'cl' ? 'BarTrends' : 'BusinessTrends' sname = this.$store.state.app.boutique.channel.value == 'cl' ? 'BarTrends' : 'BusinessTrends'
...@@ -170,7 +169,6 @@ export default { ...@@ -170,7 +169,6 @@ export default {
value: '' value: ''
}] }]
const _data = await this.api.boutique.getYears({}) const _data = await this.api.boutique.getYears({})
console.log(_data)
const _yearList = _data.data.dataList[0].year const _yearList = _data.data.dataList[0].year
_yearList.forEach(item => { _yearList.forEach(item => {
this.yearList.push({ this.yearList.push({
......
...@@ -39,7 +39,6 @@ export default { ...@@ -39,7 +39,6 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
changeTab(data) { changeTab(data) {
console.log(data);
this.activeName = data this.activeName = data
} }
} }
......
...@@ -163,7 +163,6 @@ export default { ...@@ -163,7 +163,6 @@ export default {
}) })
}) })
this.myChart.on('mouseout', function (e) { this.myChart.on('mouseout', function (e) {
console.log(e)
myChart.dispatchAction({ myChart.dispatchAction({
type: 'downplay', type: 'downplay',
seriesIndex: 0 seriesIndex: 0
......
...@@ -28,7 +28,6 @@ export default { ...@@ -28,7 +28,6 @@ export default {
methods: { methods: {
changeTab(val) { changeTab(val) {
console.log(val);
this.$bus.$emit('whosaleTabChange', val === 0 ? 'gh' : 'gl') this.$bus.$emit('whosaleTabChange', val === 0 ? 'gh' : 'gl')
} }
} }
......
...@@ -98,14 +98,11 @@ export default { ...@@ -98,14 +98,11 @@ export default {
}, },
created() { created() {
this.$bus.$on('selectAreaChange', val => { this.$bus.$on('selectAreaChange', val => {
console.log(11111);
this.area = val this.area = val
}) })
this.$bus.$on('selectMonthChange', val => { this.$bus.$on('selectMonthChange', val => {
console.log(2222);
this.month = val this.month = val
}) })
console.log(33333);
this.getRetailOverview() this.getRetailOverview()
this.getRetailTrend() this.getRetailTrend()
}, },
......
...@@ -73,7 +73,6 @@ export default { ...@@ -73,7 +73,6 @@ export default {
return _html return _html
}, },
drawBar() { drawBar() {
console.log(this.tooltipFormatterObj);
this.barOptions.xAxis.data = this.dataList.map(item => item.statDate) this.barOptions.xAxis.data = this.dataList.map(item => item.statDate)
this.barOptions.series[0].data = this.dataList.map(item => item[this.tooltipFormatterObj.attrName]) this.barOptions.series[0].data = this.dataList.map(item => item[this.tooltipFormatterObj.attrName])
this[this.domId].setOption(this.barOptions) this[this.domId].setOption(this.barOptions)
......
...@@ -66,7 +66,6 @@ export default { ...@@ -66,7 +66,6 @@ export default {
}, },
created() { created() {
this.$bus.$on('selectVal', data => { this.$bus.$on('selectVal', data => {
console.log('data:', data)
this.activeName = data this.activeName = data
}) })
}, },
......
...@@ -128,7 +128,6 @@ export default { ...@@ -128,7 +128,6 @@ export default {
this.selectIndex = selectIndex this.selectIndex = selectIndex
const params = { req: { queryItem }} const params = { req: { queryItem }}
this.api.operational.getTrend(params).then(res => { this.api.operational.getTrend(params).then(res => {
console.log(res)
if (res.code === '0') { if (res.code === '0') {
const dataList = res.data.dataList const dataList = res.data.dataList
const obj = { const obj = {
......
...@@ -30,7 +30,6 @@ export default { ...@@ -30,7 +30,6 @@ export default {
getEnterpriseOverviewTrend() { getEnterpriseOverviewTrend() {
this.api.operational.getEnterpriseOverviewTrend().then(res => { this.api.operational.getEnterpriseOverviewTrend().then(res => {
if (res.code == 0) { if (res.code == 0) {
console.log(res, '000000000')
// this.dataList = res.data.dataList // this.dataList = res.data.dataList
this.$refs.lineBarCharts.drawLine(res.data.dataList) this.$refs.lineBarCharts.drawLine(res.data.dataList)
} }
......
...@@ -102,7 +102,6 @@ export default { ...@@ -102,7 +102,6 @@ export default {
const _dataList = _data.data.dataList[0] const _dataList = _data.data.dataList[0]
this.$bus.$emit('businessstarttime', _dataList.businessstarttime) this.$bus.$emit('businessstarttime', _dataList.businessstarttime)
this.setSolarTime(_dataList.businessstarttime) this.setSolarTime(_dataList.businessstarttime)
console.log(this.$store.state.app)
this.solarList.forEach(item => { this.solarList.forEach(item => {
item.value = _dataList[item.valueName] item.value = _dataList[item.valueName]
item.bottomValue = _dataList[item.bottemName] item.bottomValue = _dataList[item.bottemName]
......
...@@ -65,7 +65,6 @@ export default { ...@@ -65,7 +65,6 @@ export default {
// 获取商品采购进度占比 // 获取商品采购进度占比
getBugProgress() { getBugProgress() {
this.api.solar.getBugProgress({ year: this.$store.state.app.solarYear }).then(res => { this.api.solar.getBugProgress({ year: this.$store.state.app.solarYear }).then(res => {
console.log(res, '000')
if (!res.code === '0') { if (!res.code === '0') {
this.openMessage('获取采购进度占比失败') this.openMessage('获取采购进度占比失败')
return return
......
...@@ -65,7 +65,6 @@ export default { ...@@ -65,7 +65,6 @@ export default {
// 获取商品采购占比 // 获取商品采购占比
getAllGoodsRatio() { getAllGoodsRatio() {
this.api.solar.getAllGoodsRatio({ year: this.$store.state.app.solarYear }).then(res => { this.api.solar.getAllGoodsRatio({ year: this.$store.state.app.solarYear }).then(res => {
console.log(res, '000')
if (!res.code === '0') { if (!res.code === '0') {
this.openMessage('获取商品采购占比失败') this.openMessage('获取商品采购占比失败')
return return
......
...@@ -85,7 +85,6 @@ export default { ...@@ -85,7 +85,6 @@ export default {
// 获取各类商品采购额排名 // 获取各类商品采购额排名
getAllRanking() { getAllRanking() {
this.api.solar.getAllRanking({ year: this.$store.state.app.solarYear }).then(res => { this.api.solar.getAllRanking({ year: this.$store.state.app.solarYear }).then(res => {
console.log(res, '000')
if (!res.code === '0') { if (!res.code === '0') {
this.openMessage('获取商品采购额排名失败') this.openMessage('获取商品采购额排名失败')
return return
...@@ -101,7 +100,6 @@ export default { ...@@ -101,7 +100,6 @@ export default {
}, },
// 排名下拉选中 // 排名下拉选中
selectPurchase(item) { selectPurchase(item) {
console.log(item)
this.purchase = item this.purchase = item
const purchaseIndex = this.purchaseList.findIndex(itm => itm.value === item.value) const purchaseIndex = this.purchaseList.findIndex(itm => itm.value === item.value)
// 只获取排名前五的数据 // 只获取排名前五的数据
...@@ -111,7 +109,6 @@ export default { ...@@ -111,7 +109,6 @@ export default {
}, },
// 跳转太阳膜详情页 // 跳转太阳膜详情页
goDetailPage(item) { goDetailPage(item) {
console.log(this.$store.state.app.solarYear)
// this.$router.push({ path: `solarDetail?merchantid=${item.merchantid}&merchantname=${item.merchantname}&purchaseType=${this.purchase.value}` }) // this.$router.push({ path: `solarDetail?merchantid=${item.merchantid}&merchantname=${item.merchantname}&purchaseType=${this.purchase.value}` })
const routeData = this.$router.resolve({ const routeData = this.$router.resolve({
name: 'solarDetail', name: 'solarDetail',
......
...@@ -52,7 +52,6 @@ export default { ...@@ -52,7 +52,6 @@ export default {
// 获取所有门店入库 // 获取所有门店入库
getUsedWarehousing() { getUsedWarehousing() {
this.api.solar.getUsedWarehousing({ year: this.$store.state.app.solarYear }).then(res => { this.api.solar.getUsedWarehousing({ year: this.$store.state.app.solarYear }).then(res => {
console.log(res, '000')
if (!res.code === '0') { if (!res.code === '0') {
this.openMessage('获取所有门店入库失败') this.openMessage('获取所有门店入库失败')
return return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!