张雄 3 years ago
parent f4fa6b4cef
commit 406c7e898e

@ -34,7 +34,7 @@
</a-range-picker> </a-range-picker>
</div> </div>
<div class="iH-center"> <div class="iH-center">
<a href="../#/index"> <a @click="goHome">
<img src="../../assets/images/Index/img_toubuyi.png" width="100%" /> <img src="../../assets/images/Index/img_toubuyi.png" width="100%" />
</a> </a>
</div> </div>
@ -44,7 +44,7 @@
<span class="s2">{{ week }}</span> <span class="s2">{{ week }}</span>
<img class="m1" src="../../assets/images/Index/ic_ry.png" /> <img class="m1" src="../../assets/images/Index/ic_ry.png" />
<span class="s3">{{getUser.UserName}}</span> <span class="s3">{{getUser.UserName}}</span>
<a-dropdown placement="bottomRight"> <a-dropdown placement="bottomRight" v-if="this.getToken">
<a class="ant-dropdown-link"> <a class="ant-dropdown-link">
<a-icon type="down" /> <a-icon type="down" />
</a> </a>
@ -107,6 +107,10 @@ export default {
} }
}, },
methods: { methods: {
goHome() {
this.setHeaderType(1);
this.$router.push("/index");
},
handleChange(val) { handleChange(val) {
this.setCommTime({ sTimeType: val }); this.setCommTime({ sTimeType: val });
this.reload(); this.reload();

@ -36,7 +36,7 @@
</div> </div>
<div class="iH-center"> <div class="iH-center">
<a href="../#/index"> <a @click="goHome">
<img src="../../assets/images/Index/img_toubuyi.png" width="100%" /> <img src="../../assets/images/Index/img_toubuyi.png" width="100%" />
</a> </a>
</div> </div>
@ -121,6 +121,10 @@ export default {
} }
}, },
methods: { methods: {
goHome() {
this.setHeaderType(1);
this.$router.push("/index");
},
// //
getSelect() { getSelect() {
getTwoTime().then((res) => { getTwoTime().then((res) => {

@ -32,7 +32,7 @@
</div> </div>
<div class="iH-center"> <div class="iH-center">
<a href="../#/index"> <a @click="goHome">
<img src="../../assets/images/Index/img_toubuyi.png" width="100%" /> <img src="../../assets/images/Index/img_toubuyi.png" width="100%" />
</a> </a>
</div> </div>
@ -111,6 +111,10 @@ export default {
} }
}, },
methods: { methods: {
goHome() {
this.setHeaderType(1);
this.$router.push("/index");
},
// //
getSelect() { getSelect() {
getCheZhuTime0528().then(res => { getCheZhuTime0528().then(res => {

@ -20,6 +20,8 @@ const getters = {
return state.user return state.user
}, },
getAccount(state) { getAccount(state) {
//这里写解密算法
state.account.sPwd = window.atob(state.account.sPwd);
return state.account return state.account
}, },
getCommTime(state) { getCommTime(state) {

@ -6,6 +6,7 @@
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/store/mutations.js * @FilePath: /data-show/src/store/mutations.js
*/ */
//import {encryptByDES} from "./des";
const mutations = { const mutations = {
setZoom: (state, log) => { setZoom: (state, log) => {
state.$zoom = log; state.$zoom = log;
@ -24,6 +25,7 @@ const mutations = {
}, },
setAccount: (state, log) => { setAccount: (state, log) => {
state.account = log; state.account = log;
state.account.sPwd = window.btoa(state.account.sPwd);
let str = JSON.stringify(log); let str = JSON.stringify(log);
localStorage.setItem('account', str); localStorage.setItem('account', str);
}, },

Loading…
Cancel
Save