prod
lily.zhang 3 years ago
parent 05db2bc4e9
commit 927b52f980

@ -142,6 +142,14 @@ export default {
layout() {
this.setToken("");
this.setUser({});
this.setEComparison([]);
this.setBComparison([]);
this.setMComparison([]);
this.setCtime({});
this.setCtime2({});
this.setCommTime({});
this.setBrand({});
this.setModel({});
this.$router.replace("/login");
},
},

@ -174,6 +174,14 @@ export default {
layout() {
this.setToken("");
this.setUser({});
this.setEComparison([]);
this.setBComparison([]);
this.setMComparison([]);
this.setCtime({});
this.setCtime2({});
this.setCommTime({});
this.setBrand({});
this.setModel({});
this.$router.replace("/login");
},
///

@ -136,6 +136,14 @@ export default {
layout() {
this.setToken("");
this.setUser({});
this.setEComparison([]);
this.setBComparison([]);
this.setMComparison([]);
this.setCtime({});
this.setCtime2({});
this.setCommTime({});
this.setBrand({});
this.setModel({});
this.$router.replace("/login");
}
},

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-12 13:37:35
* @LastEditTime: 2021-11-16 10:02:10
* @LastEditTime: 2021-11-19 19:00:26
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/store/mutations.js
@ -50,7 +50,7 @@ const mutations = {
sessionStorage.setItem('headerType', log);
},
setBrand: (state, log) => {
let obj = Object.assign(state.brand, log);
let obj = Object.assign({}, log);
state.brand = obj;
let str = JSON.stringify(obj);
sessionStorage.setItem('brand', str);

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-12 09:32:35
* @LastEditTime: 2021-11-16 14:25:51
* @LastEditTime: 2021-11-19 18:31:48
* @LastEditors: Please set LastEditors
* @Description: 舆情传播趋势
* @FilePath: /data-show/src/views/BrandInsight/titsopo/index.vue
@ -83,7 +83,8 @@ export default {
}
let qudao = [];
let startTime = "";
let endTime = moment(new Date()).format("YYYY-MM-DD hh:mm:ss");
let endTime = moment(new Date()).format("YYYY-MM-DD HH:mm:ss");
console.log(data)
data.forEach((ele) => {
let seriesName = ele.seriesName;
startTime = ele.name;

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-08 15:56:35
* @LastEditTime: 2021-11-17 16:59:34
* @LastEditTime: 2021-11-19 19:02:55
* @LastEditors: Please set LastEditors
* @Description: 实时事件
* @FilePath: /data-show/src/views/Index/realTimeEvent/index.vue
@ -91,6 +91,14 @@ export default {
query: { events_id: id },
});
}
if(row.columnIndex === 2) {
let brand = ele[2];
let obj = {brandname: brand};
this.setBrand(obj);
this.$router.push({
path: "/brandInsight"
});
}
},
},
};

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-08 18:58:00
* @LastEditTime: 2021-11-05 11:44:29
* @LastEditTime: 2021-11-19 19:23:56
* @LastEditors: Please set LastEditors
* @Description: 热销排行
* @FilePath: /data-show/src/views/Index/salesRank/index.vue
@ -18,8 +18,11 @@
</div>
</v-label-div>
<div class="sr-bd">
<v-echarts :opt="opt"></v-echarts>
<v-echarts :opt="opt" @getData="clickEchars"></v-echarts>
</div>
<a-modal title="提示" :visible="visible" @ok="handleOk" @cancel="handleCancel">
<p>{{ ModalText }}</p>
</a-modal>
</div>
</template>
@ -32,6 +35,7 @@ export default {
return {
load: false,
selVal: "",
type: 0,
form: {
sQueryType: 1,
sTimeType: 4,
@ -41,6 +45,8 @@ export default {
selArr: [],
pdata: [],
opt:{},
visible: false,
ModalText: ""
};
},
created() {
@ -49,6 +55,7 @@ export default {
methods: {
//
handlerTabChange(n) {
this.type = n;
this.form.sQueryType = n + 1;
this.getData();
},
@ -93,6 +100,29 @@ export default {
ds.push(value);
})
this.opt = createOpt(dx, ds)
},
handleCancel() {
this.visible = false;
},
handleOk() {
this.$router.push('/login')
},
clickEchars(data) {
if (!this.getToken) {
this.visible = true;
this.ModalText = "您还未登录,是否前往登录"
return;
}
let ele = data[0];
if(this.type === 1) {
let model = ele.axisValueLabel
this.setModel({name: model});
this.$router.push("/modelInsight");
} else {
let brand = ele.axisValueLabel;
this.setBrand({brandname: brand});
this.$router.push("/brandInsight");
}
}
},
};

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-09 10:53:21
* @LastEditTime: 2021-11-05 11:39:22
* @LastEditTime: 2021-11-19 19:20:26
* @LastEditors: Please set LastEditors
* @Description: 传播声量TOP10
* @FilePath: /data-show/src/views/Index/spreadTheSound/index.vue
@ -15,8 +15,11 @@
</div>
</v-label-div>
<div class="st-bd">
<v-echarts :opt="opt"></v-echarts>
<v-echarts :opt="opt" @getData="clickEchars"></v-echarts>
</div>
<a-modal title="提示" :visible="visible" @ok="handleOk" @cancel="handleCancel">
<p>{{ ModalText }}</p>
</a-modal>
</div>
</template>
@ -33,6 +36,9 @@ export default {
},
opt: {},
pdata: [],
type: 0,
visible: false,
ModalText: ""
};
},
created() {
@ -41,6 +47,7 @@ export default {
methods: {
//
handlerChange(n) {
this.type = n;
this.form.sQueryType = n + 1;
this.getData();
},
@ -66,6 +73,29 @@ export default {
});
this.opt = createOpt(dx, ds);
},
handleCancel() {
this.visible = false;
},
handleOk() {
this.$router.push('/login')
},
clickEchars(data) {
if (!this.getToken) {
this.visible = true;
this.ModalText = "您还未登录,是否前往登录"
return;
}
let ele = data[0];
if(this.type === 1) {
let model = ele.axisValueLabel
this.setModel({name: model});
this.$router.push("/modelInsight");
} else {
let brand = ele.axisValueLabel;
this.setBrand({brandname: brand});
this.$router.push("/brandInsight");
}
}
},
};
</script>

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-12 09:32:35
* @LastEditTime: 2021-11-19 15:40:23
* @LastEditTime: 2021-11-19 18:32:18
* @LastEditors: Please set LastEditors
* @Description: 舆情传播趋势
* @FilePath: /data-show/src/views/BrandInsight/titsopo/index.vue
@ -93,7 +93,7 @@ export default {
}
let qudao = [];
let startTime = "";
let endTime = moment(new Date()).format("YYYY-MM-DD hh:mm:ss");
let endTime = moment(new Date()).format("YYYY-MM-DD HH:mm:ss");
data.forEach((ele) => {
let seriesName = ele.seriesName;
startTime = ele.name;

Loading…
Cancel
Save