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