Commit bd8c6723 by heshihao

feat: 功能调整

parent 6b6e3953
......@@ -197,7 +197,7 @@
</div>
<div class="center-box">
<div class="map-box">
<div :class="['overview', district1 == '满城区' ? 'active' : '']" @click="changeOverView('满城区')">
<div :class="['overview', district == '满城区' ? 'active' : '']" @click="changeOverView('满城区')">
<span>满城区总览</span>
</div>
<div class="charts-map">
......@@ -672,7 +672,7 @@
</g>
</g>
</svg>
<img class="img-map-bottom" :src="require(`@/assets/images/index/${district1}.png`)" />
<img class="img-map-bottom" :src="require(`@/assets/images/index/${district}.png`)" />
</div>
</div>
......@@ -857,7 +857,6 @@ export default {
activeCard1: 1,
activeCard2: 2,
district: "满城区",
district1: "满城区",
nowTime: null,
chart3DHuan: null,
chart3DHuan1: null,
......@@ -998,15 +997,18 @@ export default {
sessionStorage.setItem("activeACard", val);
},
/**
* !TODO 不知道是否需要放开
*/
changeDir(val) {
if (this.district1 == val) {
if (this.district == val) {
this.$message({
message: "已在" + val,
type: "success",
});
return;
}
this.district1 = val;
this.district = val;
// this.getMenu(this.district);
// this.getPropol(this.district);
// this.getVideo(this.district);
......@@ -1297,7 +1299,10 @@ export default {
params: { activeMenu: "cockpit", id },
});
},
// 切换晋城总览
/**
* !TODO切换满城区总览 待定
*/
changeOverView(name) {
if (this.district == name) {
this.$message({
......@@ -1311,12 +1316,12 @@ export default {
} else {
// this.initChartsMap("");
}
this.district1 = name;
this.getMenu(this.district);
this.getPropol(this.district);
this.getVideo(this.district);
this.getInfo(this.district);
this.getProject(this.district);
this.district = name;
// this.getMenu(this.district);
// this.getPropol(this.district);
// this.getVideo(this.district);
// this.getInfo(this.district);
// this.getProject(this.district);
this.$message({
message: "成功切换" + name,
type: "success",
......
......@@ -635,8 +635,8 @@ export default {
* TODO 后期需要修改为下面这个
*/
// let res = await API.LoginByPwd({ param });
let res = await API.LoginByPwd({ mobile, password });
let res = await API.LoginByPwd({ param });
// let res = await API.LoginByPwd({ mobile, password });
if (res.token) {
this.$message({ type: "success", message: "登录成功" });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment