Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
403b0c2b
Commit
403b0c2b
authored
Jul 27, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
714deda3
912fb1d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
47 deletions
+58
-47
index.vue
pages/account/login/index.vue
+3
-0
sideWest.vue
pages/demo/lid/components/sideWest.vue
+49
-44
index.js
plugins/request/index.js
+4
-2
account.js
store/admin/account.js
+2
-1
No files found.
pages/account/login/index.vue
View file @
403b0c2b
...
@@ -82,6 +82,9 @@ export default {
...
@@ -82,6 +82,9 @@ export default {
}
else
{
}
else
{
this
.
$Message
.
error
(
"登录失败!"
);
this
.
$Message
.
error
(
"登录失败!"
);
}
}
}).
catch
(
e
=>
{
console
.
log
(
e
)
// this.$Message.error(e.message)
});
});
}
}
},
},
...
...
pages/demo/lid/components/sideWest.vue
View file @
403b0c2b
<
template
>
<
template
>
<div>
<div>
<div
class=
"gradient"
>
<div
class=
"gradient"
>
<p>
井盖总数
</p>
<p>
井盖总数
</p>
<p><span
class=
"f20 fwBold"
>
1234
</span>
个
</p>
<p>
<span
class=
"f20 fwBold"
>
1234
</span>
个
</p>
</div>
</div>
<div
class=
"mt30 gradient1"
>
<div
class=
"mt30 gradient1"
>
<p>
正常数量
</p>
<p>
正常数量
</p>
<p><span
class=
"f20 fwBold"
>
1204
</span>
个
</p>
<p>
<span
class=
"f20 fwBold"
>
1204
</span>
个
</p>
</div>
</div>
<div
class=
"mt30 gradient2"
>
<div
class=
"mt30 gradient2"
>
<p>
报警数量
</p>
<p>
报警数量
</p>
<p><span
class=
"f20 fwBold"
>
30
</span>
个
</p>
<p>
<span
class=
"f20 fwBold"
>
30
</span>
个
</p>
</div>
</div>
<div
class=
"mt30 demoDiv"
>
<div
class=
"mt30 demoDiv"
>
<Card
class=
"mt10"
style=
"width:100%; box-shadow: 0 0 10px #000"
>
<Card
class=
"mt10"
style=
"width:100%; box-shadow: 0 0 10px #000;"
>
<p
slot=
"title"
class=
"tl"
>
实时行车异常列车
</p>
<p
slot=
"title"
class=
"tl"
>
实时行车异常列车
</p>
<div
class=
"divInfo"
>
<div
class=
"divInfos"
>
<p>
地址:山西省西安市未央区
</p>
<p>
地址:山西省西安市未央区
</p>
<p>
设备名称:凤城五路11号井盖
</p>
<p>
设备名称:凤城五路11号井盖
</p>
<p>
报警时间:2020-06-06 08:08:08
</p>
<p>
报警时间:2020-06-06 08:08:08
</p>
<p
class=
"red"
>
报警数值:甲烷浓度-55%
</p>
<p
class=
"red"
>
报警数值:甲烷浓度-55%
</p>
</div>
<divider></divider>
<divider></divider>
<div
class=
"mt20 divInfo"
>
<p>
地址:山西省西安市未央区
</p>
<p>
地址:山西省西安市未央区
</p>
<p>
设备名称:凤城五路11号井盖
</p>
<p>
设备名称:凤城五路11号井盖
</p>
<p>
报警时间:2020-06-06 08:08:08
</p>
<p>
报警时间:2020-06-06 08:08:08
</p>
<p
class=
"red"
>
报警数值:甲烷浓度-55%
</p>
<p
class=
"red"
>
报警数值:甲烷浓度-55%
</p>
</div>
</div>
</Card>
</Card>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -64,63 +68,64 @@ export default {
...
@@ -64,63 +68,64 @@ export default {
height
:
100px
;
height
:
100px
;
width
:
300px
;
width
:
300px
;
text-align
:
left
;
text-align
:
left
;
padding
:
20px
;
padding
:
20px
;
}
}
.gradient1
{
.gradient1
{
background
:
url(/imgshow/bg3.png)
right
top
no-repeat
,
background
:
url(/imgshow/bg3.png)
right
top
no-repeat
,
-moz-linear-gradient
(
left
,
#05
E99C
0%
,
#7CF
538
100%
);
-moz-linear-gradient
(
left
,
#05
e99c
0%
,
#7cf
538
100%
);
background
:
-webkit-gradient
(
background
:
-webkit-gradient
(
linear
,
linear
,
left
top
,
left
top
,
left
bottom
,
left
bottom
,
color-stop
(
0%
,
#05
E99C
),
color-stop
(
0%
,
#05
e99c
),
color-stop
(
100%
,
#7
CF
538
)
color-stop
(
100%
,
#7
cf
538
)
);
);
background
:
-webkit-linear-gradient
(
top
,
#05
E99C
0%
,
#7CF
538
100%
);
background
:
-webkit-linear-gradient
(
top
,
#05
e99c
0%
,
#7cf
538
100%
);
background
:
-o-linear-gradient
(
top
,
#05
E99C
0%
,
#7CF
538
100%
);
background
:
-o-linear-gradient
(
top
,
#05
e99c
0%
,
#7cf
538
100%
);
background
:
-ms-linear-gradient
(
top
,
#05
E99C
0%
,
#7CF
538
100%
);
background
:
-ms-linear-gradient
(
top
,
#05
e99c
0%
,
#7cf
538
100%
);
background
:
url(/imgshow/bg3.png)
right
top
no-repeat
,
background
:
url(/imgshow/bg3.png)
right
top
no-repeat
,
linear-gradient
(
to
right
,
#05
E99C
0%
,
#7CF
538
100%
);
linear-gradient
(
to
right
,
#05
e99c
0%
,
#7cf
538
100%
);
border-radius
:
5px
;
border-radius
:
5px
;
box-shadow
:
0
0
10px
#000
;
box-shadow
:
0
0
10px
#000
;
color
:
white
;
color
:
white
;
height
:
100px
;
height
:
100px
;
width
:
300px
;
width
:
300px
;
text-align
:
left
;
text-align
:
left
;
padding
:
20px
;
padding
:
20px
;
}
}
.gradient2
{
.gradient2
{
background
:
url(/imgshow/bg5.png)
right
top
no-repeat
,
background
:
url(/imgshow/bg5.png)
right
top
no-repeat
,
-moz-linear-gradient
(
left
,
#
F95577
0%
,
#FCA
534
100%
);
-moz-linear-gradient
(
left
,
#
f95577
0%
,
#fca
534
100%
);
background
:
-webkit-gradient
(
background
:
-webkit-gradient
(
linear
,
linear
,
left
top
,
left
top
,
left
bottom
,
left
bottom
,
color-stop
(
0%
,
#
F
95577
),
color-stop
(
0%
,
#
f
95577
),
color-stop
(
100%
,
#
FCA
534
)
color-stop
(
100%
,
#
fca
534
)
);
);
background
:
-webkit-linear-gradient
(
top
,
#
F95577
0%
,
#FCA
534
100%
);
background
:
-webkit-linear-gradient
(
top
,
#
f95577
0%
,
#fca
534
100%
);
background
:
-o-linear-gradient
(
top
,
#
F95577
0%
,
#FCA
534
100%
);
background
:
-o-linear-gradient
(
top
,
#
f95577
0%
,
#fca
534
100%
);
background
:
-ms-linear-gradient
(
top
,
#
F95577
0%
,
#FCA
534
100%
);
background
:
-ms-linear-gradient
(
top
,
#
f95577
0%
,
#fca
534
100%
);
background
:
url(/imgshow/bg5.png)
right
top
no-repeat
,
background
:
url(/imgshow/bg5.png)
right
top
no-repeat
,
linear-gradient
(
to
right
,
#
F95577
0%
,
#FCA
534
100%
);
linear-gradient
(
to
right
,
#
f95577
0%
,
#fca
534
100%
);
border-radius
:
5px
;
border-radius
:
5px
;
box-shadow
:
0
0
10px
#000
;
box-shadow
:
0
0
10px
#000
;
color
:
white
;
color
:
white
;
height
:
100px
;
height
:
100px
;
width
:
300px
;
width
:
300px
;
text-align
:
left
;
text-align
:
left
;
padding
:
20px
;
padding
:
20px
;
}
}
.divInfo
{
.divInfo
s
{
background
:
#fff
;
background
:
#fff
;
padding
:
0
20px
;
padding
:
0
20px
;
}
}
.divInfo
p
{
.divInfo
s
p
{
text-align
:
left
;
text-align
:
left
;
line-height
:
26px
;
line-height
:
26px
;
}
}
.demoDiv
.ivu-card-head
{
.demoDiv
.ivu-card-head
{
background
:
#dedde4
;
background
:
#dedde4
;
}
}
</
style
>
</
style
>
\ No newline at end of file
plugins/request/index.js
View file @
403b0c2b
...
@@ -134,12 +134,13 @@ service.interceptors.response.use(
...
@@ -134,12 +134,13 @@ service.interceptors.response.use(
},
},
error
=>
{
error
=>
{
const
token
=
sessionStorage
.
getItem
(
'token'
);
const
token
=
sessionStorage
.
getItem
(
'token'
);
if
(
!
token
)
{
if
(
!
token
&&!
error
&&
!
error
.
response
)
{
window
.
location
.
href
=
'/account/login'
;
window
.
location
.
href
=
'/account/login'
;
return
;
return
;
}
}
if
(
error
&&
error
.
response
)
{
if
(
error
&&
error
.
response
)
{
// return;
if
(
error
.
response
.
status
==
"401"
)
{
if
(
error
.
response
.
status
==
"401"
)
{
window
.
location
.
href
=
'/account/login'
;
window
.
location
.
href
=
'/account/login'
;
return
;
return
;
...
@@ -183,6 +184,7 @@ service.interceptors.response.use(
...
@@ -183,6 +184,7 @@ service.interceptors.response.use(
}
}
}
}
errorLog
(
error
);
errorLog
(
error
);
return
Promise
.
reject
(
error
);
return
Promise
.
reject
(
error
);
}
}
...
...
store/admin/account.js
View file @
403b0c2b
...
@@ -57,7 +57,8 @@ export const actions = {
...
@@ -57,7 +57,8 @@ export const actions = {
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
// console.log('err: ', err);
//console.log('erraaa: ', err);
reject
(
err
);
reject
(
err
);
})
})
})
})
...
...
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