Commit d7ff000d by 前端

Merge branch 'v1.2.0' into 'master'

V1.2.0

See merge request !7
2 parents 73c3b55a 848cd703
......@@ -93,6 +93,9 @@ export default {
mounted() {
this.lineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.lineDom)
window.addEventListener('resize', () => {
this[this.domId].resize()
})
},
methods: {
chartBindEvent() {
......
......@@ -9,7 +9,7 @@
<template>
<div class="content flex">
<div class="logo user-select">
<img style="height: 3.17vh" src="@/assets/images/logo.png" alt="logo" />
<img style="height: 32px" src="@/assets/images/logo.png" alt="logo" />
</div>
<div class="view-title user-select">嘀加智慧门店运营看板</div>
<div class="time">
......
......@@ -127,6 +127,9 @@ export default {
this.lineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.lineDom)
// this.chartBindEvent()
window.addEventListener('resize', () => {
this[this.domId].resize()
})
},
methods: {
chartBindEvent() {
......
......@@ -93,6 +93,9 @@ export default {
mounted() {
this.lineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.lineDom)
window.addEventListener('resize', () => {
this[this.domId].resize()
})
},
methods: {
chartBindEvent() {
......
......@@ -10,12 +10,12 @@
let config = require('./conf.js')
let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) {
if (isEnv) {
let { request } = config
Object.assign(request, { timeout })
return Promise.resolve(config)
}
/**测试mock */ return window.fetch('https://oss-config.dev.glsx.com.cn/mock/6352681802322627d6b83e8c/dj-data-view/config', {}).then(res => res.json())
// if (isEnv) {
// let { request } = config
// Object.assign(request, { timeout })
// return Promise.resolve(config)
// }
/**测试mock */ return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-data-view', {}).then(res => res.json())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/62cbf569f5137cf37678b828/data-view/config', {}).then(res => res.json())
}
export const cfg = {
......
......@@ -40,7 +40,7 @@ const TEXT_VIEW = [
view: 'applet'
},
{
text: '个微客户数',
text: '硬件线索客户数',
value: 'totalsinglewechantnum',
key: 'incresinglewechantnum',
view: 'individual'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!