Commit a92950bb by 李伟康

提交代码

1 parent ca7806e5
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
to continue.</strong> to continue.</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script src="//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
<!-- 使用CDN加速的JS文件,配置在vue.config.js下 --> <!-- 使用CDN加速的JS文件,配置在vue.config.js下 -->
<% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %> <% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script> <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
......
...@@ -125,7 +125,6 @@ const tabs = [ ...@@ -125,7 +125,6 @@ const tabs = [
key: 'publiccus' key: 'publiccus'
} }
] ]
let tabHead = ['前5品牌', '后5品牌']
import { changeMixin } from '@/mixins' import { changeMixin } from '@/mixins'
import * as echarts from 'echarts' import * as echarts from 'echarts'
export default { export default {
...@@ -134,7 +133,7 @@ export default { ...@@ -134,7 +133,7 @@ export default {
data () { data () {
return { return {
tabs, tabs,
tabHead, tabHead: [],
tabType: 'total', tabType: 'total',
tabIndex: 0, tabIndex: 0,
delayTimer: 3000, delayTimer: 3000,
...@@ -182,8 +181,10 @@ export default { ...@@ -182,8 +181,10 @@ export default {
getOverallbase (queryItem) { getOverallbase (queryItem) {
const params = { const params = {
queryItem, queryItem,
queryTime: this.getCurrentDate(), queryTime: this.getCurrentDate()
} }
this.tabHead = this.isGroup ? ['前5品牌', '后5品牌'] : ['前5门店', '后5门店']
this.api.overview[this.isGroup ? 'getBrandOverallbase' : 'getMerchantOverallbase'](params).then(({ code, data }) => { this.api.overview[this.isGroup ? 'getBrandOverallbase' : 'getMerchantOverallbase'](params).then(({ code, data }) => {
if (code == 0) { if (code == 0) {
let [dataList] = data.dataList let [dataList] = data.dataList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!