This commit is contained in:
yanran200730
2023-06-16 15:45:54 +08:00
parent cf6b2ae087
commit 129ea08723
2 changed files with 12 additions and 3 deletions

View File

@@ -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)) {

View File

@@ -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
})
}
})