Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng_code
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanxiao
mancheng_code
Commits
bd8c6723
Commit
bd8c6723
authored
Nov 02, 2023
by
heshihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 功能调整
parent
6b6e3953
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
src/views/index/index_copy.vue
+17
-12
src/views/login/login.vue
+2
-2
No files found.
src/views/index/index_copy.vue
View file @
bd8c6723
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
</div>
</div>
<div
class=
"center-box"
>
<div
class=
"center-box"
>
<div
class=
"map-box"
>
<div
class=
"map-box"
>
<div
:class=
"['overview', district
1
== '满城区' ? 'active' : '']"
@
click=
"changeOverView('满城区')"
>
<div
:class=
"['overview', district == '满城区' ? 'active' : '']"
@
click=
"changeOverView('满城区')"
>
<span>
满城区总览
</span>
<span>
满城区总览
</span>
</div>
</div>
<div
class=
"charts-map"
>
<div
class=
"charts-map"
>
...
@@ -672,7 +672,7 @@
...
@@ -672,7 +672,7 @@
</g>
</g>
</g>
</g>
</svg>
</svg>
<img
class=
"img-map-bottom"
:src=
"require(`@/assets/images/index/$
{district
1
}.png`)" />
<img
class=
"img-map-bottom"
:src=
"require(`@/assets/images/index/$
{district}.png`)" />
</div>
</div>
</div>
</div>
...
@@ -857,7 +857,6 @@ export default {
...
@@ -857,7 +857,6 @@ export default {
activeCard1
:
1
,
activeCard1
:
1
,
activeCard2
:
2
,
activeCard2
:
2
,
district
:
"满城区"
,
district
:
"满城区"
,
district1
:
"满城区"
,
nowTime
:
null
,
nowTime
:
null
,
chart3DHuan
:
null
,
chart3DHuan
:
null
,
chart3DHuan1
:
null
,
chart3DHuan1
:
null
,
...
@@ -998,15 +997,18 @@ export default {
...
@@ -998,15 +997,18 @@ export default {
sessionStorage
.
setItem
(
"activeACard"
,
val
);
sessionStorage
.
setItem
(
"activeACard"
,
val
);
},
},
/**
* !TODO 不知道是否需要放开
*/
changeDir
(
val
)
{
changeDir
(
val
)
{
if
(
this
.
district
1
==
val
)
{
if
(
this
.
district
==
val
)
{
this
.
$message
({
this
.
$message
({
message
:
"已在"
+
val
,
message
:
"已在"
+
val
,
type
:
"success"
,
type
:
"success"
,
});
});
return
;
return
;
}
}
this
.
district
1
=
val
;
this
.
district
=
val
;
// this.getMenu(this.district);
// this.getMenu(this.district);
// this.getPropol(this.district);
// this.getPropol(this.district);
// this.getVideo(this.district);
// this.getVideo(this.district);
...
@@ -1297,7 +1299,10 @@ export default {
...
@@ -1297,7 +1299,10 @@ export default {
params
:
{
activeMenu
:
"cockpit"
,
id
},
params
:
{
activeMenu
:
"cockpit"
,
id
},
});
});
},
},
// 切换晋城总览
/**
* !TODO切换满城区总览 待定
*/
changeOverView
(
name
)
{
changeOverView
(
name
)
{
if
(
this
.
district
==
name
)
{
if
(
this
.
district
==
name
)
{
this
.
$message
({
this
.
$message
({
...
@@ -1311,12 +1316,12 @@ export default {
...
@@ -1311,12 +1316,12 @@ export default {
}
else
{
}
else
{
// this.initChartsMap("");
// this.initChartsMap("");
}
}
this
.
district
1
=
name
;
this
.
district
=
name
;
this
.
getMenu
(
this
.
district
);
//
this.getMenu(this.district);
this
.
getPropol
(
this
.
district
);
//
this.getPropol(this.district);
this
.
getVideo
(
this
.
district
);
//
this.getVideo(this.district);
this
.
getInfo
(
this
.
district
);
//
this.getInfo(this.district);
this
.
getProject
(
this
.
district
);
//
this.getProject(this.district);
this
.
$message
({
this
.
$message
({
message
:
"成功切换"
+
name
,
message
:
"成功切换"
+
name
,
type
:
"success"
,
type
:
"success"
,
...
...
src/views/login/login.vue
View file @
bd8c6723
...
@@ -635,8 +635,8 @@ export default {
...
@@ -635,8 +635,8 @@ export default {
* TODO 后期需要修改为下面这个
* TODO 后期需要修改为下面这个
*/
*/
//
let res = await API.LoginByPwd({ param });
let
res
=
await
API
.
LoginByPwd
({
param
});
let
res
=
await
API
.
LoginByPwd
({
mobile
,
password
});
//
let res = await API.LoginByPwd({ mobile, password });
if
(
res
.
token
)
{
if
(
res
.
token
)
{
this
.
$message
({
type
:
"success"
,
message
:
"登录成功"
});
this
.
$message
({
type
:
"success"
,
message
:
"登录成功"
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment