张雄 3 years ago
parent 7cf063ab8e
commit cec53743a3

@ -58,6 +58,9 @@ const actions = {
setMComparison: ({commit}, log) => { setMComparison: ({commit}, log) => {
commit('setMComparison', log) commit('setMComparison', log)
}, },
setTComparison: ({commit}, log) => {
commit('setTComparison', log)
},
setEComparison: ({commit}, log) => { setEComparison: ({commit}, log) => {
commit('setEComparison', log) commit('setEComparison', log)
}, },

@ -60,6 +60,9 @@ const getters = {
getMComparison(state) { getMComparison(state) {
return state.mComparison return state.mComparison
}, },
getTComparison(state) {
return state.tComparison
},
getMcStatus(state) { getMcStatus(state) {
return state.mcStatus return state.mcStatus
}, },

@ -103,6 +103,11 @@ const mutations = {
let str = JSON.stringify(log); let str = JSON.stringify(log);
LS.put('eComparison', str, 1/8); LS.put('eComparison', str, 1/8);
}, },
setTComparison: (state, log) => {
state.tComparison = log;
let str = JSON.stringify(log);
LS.put('tComparison', str, 1/8);
},
setLevelBtn: (state, log) => { setLevelBtn: (state, log) => {
state.levelBtn = log; state.levelBtn = log;
let str = JSON.stringify(log); let str = JSON.stringify(log);

@ -27,6 +27,7 @@ const state = {
mComparison: LS.get('mComparison') ? JSON.parse(LS.get('mComparison')) : [], mComparison: LS.get('mComparison') ? JSON.parse(LS.get('mComparison')) : [],
mcStatus:LS.get('mcStatus') ? JSON.parse(LS.get('mcStatus')) : false, mcStatus:LS.get('mcStatus') ? JSON.parse(LS.get('mcStatus')) : false,
eComparison:LS.get('eComparison') ? JSON.parse(LS.get('eComparison')) : [], eComparison:LS.get('eComparison') ? JSON.parse(LS.get('eComparison')) : [],
tComparison:LS.get('tComparison') ? JSON.parse(LS.get('tComparison')) : [], //主题对比
levelBtn:LS.get('levelBtn') ? JSON.parse(LS.get('levelBtn')) : [], levelBtn:LS.get('levelBtn') ? JSON.parse(LS.get('levelBtn')) : [],
menu: LS.get('menu') ? JSON.parse(LS.get('menu')) : [], menu: LS.get('menu') ? JSON.parse(LS.get('menu')) : [],
} }

@ -13,7 +13,7 @@ function createData(ds=[], colors=[]) {
let ele = ds[i]; let ele = ds[i];
if(ele.value*1 > 0) { if(ele.value*1 > 0) {
let obj = { value: ele.value*1, name: ele.key, itemStyle: { let obj = { value: ele.value*1, name: ele.key, itemStyle: {
color: colors[index] color: colors[i]
}}; }};
arr.push(obj) arr.push(obj)
} }

@ -98,6 +98,7 @@ export default {
let obj = Object.assign({}, this.getCtime2, this.form); let obj = Object.assign({}, this.getCtime2, this.form);
getCountTime0528(obj).then((res) => { getCountTime0528(obj).then((res) => {
let data = res.data || []; let data = res.data || [];
console.log(data)
let dx = []; let dx = [];
let ds = []; let ds = [];
let hotTopArr = []; let hotTopArr = [];

Loading…
Cancel
Save