|
@@ -39,7 +39,18 @@
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>-->
|
|
|
<!-- <el-divider direction="vertical"></el-divider>-->
|
|
|
- <el-button size="mint" type="primary" style="background-color:rgb(52 106 145);margin-right: 20px;color: #FFFFFF" v-if="(usertype == 1 || usertype == 0) && siteid == 'HY'" @click="$router.push('/serviceDataScreen')">{{$t(`业务数据大屏`)}}</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mint"
|
|
|
+ type="primary"
|
|
|
+ style="
|
|
|
+ background-color: rgb(52 106 145);
|
|
|
+ margin-right: 20px;
|
|
|
+ color: #ffffff;
|
|
|
+ "
|
|
|
+ v-if="(usertype == 1 || usertype == 0) && siteid == 'HY'"
|
|
|
+ @click="$router.push('/serviceDataScreen')"
|
|
|
+ >{{ $t(`业务数据大屏`) }}</el-button
|
|
|
+ >
|
|
|
<svg
|
|
|
t="1725853431060"
|
|
|
class="icon"
|
|
@@ -144,7 +155,7 @@ export default {
|
|
|
nowType: "ZH",
|
|
|
languagename: "",
|
|
|
usertype: JSON.parse(sessionStorage.getItem("active_account")).usertype,
|
|
|
- siteid: JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
+ siteid: JSON.parse(sessionStorage.getItem("active_account")).siteid,
|
|
|
};
|
|
|
},
|
|
|
props: ["onRender"],
|
|
@@ -193,7 +204,6 @@ export default {
|
|
|
sessionStorage.setItem("active_account", JSON.stringify(item));
|
|
|
await this.basicData.query_userauth(() => {
|
|
|
setTimeout(() => {
|
|
|
- console.log("33333");
|
|
|
this.$router.go(0);
|
|
|
}, 1000);
|
|
|
});
|
|
@@ -217,7 +227,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
loginOut() {
|
|
|
- let lang = localStorage.getItem("lang");
|
|
|
this.$confirm(this.$t("是否要退出当前账号") + "?", this.$t("提示"), {
|
|
|
confirmButtonText: this.$t("确定"),
|
|
|
cancelButtonText: this.$t("取消"),
|
|
@@ -225,7 +234,6 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
sessionStorage.clear();
|
|
|
- localStorage.setItem("lang", lang);
|
|
|
this.$router.push("/");
|
|
|
location.reload();
|
|
|
})
|
|
@@ -293,6 +301,7 @@ export default {
|
|
|
this.langusge.find((v) => v.languagecode == this.nowType)
|
|
|
.languagename || "简体中文";
|
|
|
localStorage.setItem("lang", type);
|
|
|
+ localStorage.setItem("languagename", this.languagename);
|
|
|
this.$nextTick(() => {
|
|
|
this.$i18n.locale = type;
|
|
|
this.editorChangeLanguage();
|
|
@@ -343,10 +352,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
-
|
|
|
mounted() {
|
|
|
this.siteInfos();
|
|
|
this.languagelist();
|
|
|
+
|
|
|
+ this.languagename = localStorage.getItem("languagename") ||"简体中文";
|
|
|
|
|
|
this.accountInfo = JSON.parse(sessionStorage.getItem("active_account"));
|
|
|
this.accountList = JSON.parse(
|