bug
This commit is contained in:
@@ -18,7 +18,7 @@ instance.interceptors.request.use(config => {
|
|||||||
} else if (/\/tianfuxing/.test(location.pathname)) {
|
} else if (/\/tianfuxing/.test(location.pathname)) {
|
||||||
config.baseURL = "/tfx"
|
config.baseURL = "/tfx"
|
||||||
} else if (/\/qianxinan/.test(location.pathname)) {
|
} else if (/\/qianxinan/.test(location.pathname)) {
|
||||||
config.baseURL = "/qxn"
|
// config.baseURL = "/qxn"
|
||||||
} else if (/\/xiushan/.test(location.pathname)) {
|
} else if (/\/xiushan/.test(location.pathname)) {
|
||||||
config.baseURL = "/xsjr"
|
config.baseURL = "/xsjr"
|
||||||
} else if (/project\/oms/.test(location.pathname)) {
|
} else if (/project\/oms/.test(location.pathname)) {
|
||||||
|
|||||||
@@ -491,6 +491,15 @@
|
|||||||
initChart1 (data) {
|
initChart1 (data) {
|
||||||
const x = Object.keys(data)
|
const x = Object.keys(data)
|
||||||
const tags = data[x[0]].map(v => v.tag)
|
const tags = data[x[0]].map(v => v.tag)
|
||||||
|
const a = tags.map(v => {
|
||||||
|
return {
|
||||||
|
name: v,
|
||||||
|
type: 'line',
|
||||||
|
data: x.map(e => {
|
||||||
|
return data[e].filter(i => i.tag === v)[0].c
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
let option = {
|
let option = {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis'
|
trigger: 'axis'
|
||||||
@@ -564,8 +573,8 @@
|
|||||||
return {
|
return {
|
||||||
name: v,
|
name: v,
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data: x.map(e => data[e]).filter(z => {
|
data: x.map(e => {
|
||||||
return z.filter(y => y.tag === v)[0].c
|
return data[e].filter(i => i.tag === v)[0].c
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user