Commit 9a093028 by 匡雅琴

去除打印

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