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