Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
曾琪
/
tFIMS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 472b21ca
authored
Sep 08, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
lint
1 parent
ee133425
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
260 additions
and
262 deletions
run.js
src/api/request.js
src/api/sys.account.js
src/assets/style/theme/theme-base.scss
src/components/d2-auth/d2-auth-btn.js
src/components/d2-container/components/d2-container-full.vue
src/components/d2-container/components/d2-header-switch.vue
src/layout/header-aside/components/header-datetime/index.vue
src/layout/header-aside/components/header-user/index.vue
src/layout/header-aside/components/personal-panel/index.vue
src/layout/header-aside/components/personal-panel/passwordDialog.vue
src/layout/header-aside/components/personal-panel/personalDialog.vue
src/libs/util.permision.js
src/plugin/axios/index.js
src/router/index.js
src/router/routes.js
src/store/modules/d2admin/modules/account.js
src/store/modules/d2admin/modules/color.js
src/store/modules/d2admin/modules/theme.js
src/store/modules/d2admin/modules/user.js
src/views/deviceManagement/index.vue
src/views/maintainManagement/index.vue
src/views/materiaOrderManagement/detailDialog.vue
src/views/materiaOrderManagement/index.vue
src/views/reportingLogs/index.vue
src/views/subSysManagement/index.vue
src/views/system/login/dialogReg.vue
src/views/system/login/index.vue
src/views/systemMonitor/index.vue
src/views/trafficManagement/index.vue
src/views/userManage/loginLogs/index.vue
src/views/userManage/role/editDialog.vue
src/views/userManage/role/index.vue
src/views/userManage/role/roleTree.vue
src/views/userManage/user/dialogReg.vue
src/views/userManage/user/index.vue
run.js
View file @
472b21c
...
@@ -7,6 +7,6 @@ app.get('/', function (req, res) {
...
@@ -7,6 +7,6 @@ app.get('/', function (req, res) {
res
.
send
(
'Hello Vue'
)
res
.
send
(
'Hello Vue'
)
})
})
app
.
listen
(
2333
)
app
.
listen
(
8080
)
console
.
log
(
'服务已运行:\r\n localhost:
2333
'
)
console
.
log
(
'服务已运行:\r\n localhost:
8080
'
)
src/api/request.js
View file @
472b21c
...
@@ -23,7 +23,7 @@ const request = (params = {}, method = RequestMethods.GET, noSignAttr = []) => {
...
@@ -23,7 +23,7 @@ const request = (params = {}, method = RequestMethods.GET, noSignAttr = []) => {
return
axios
({
return
axios
({
url
,
url
,
method
,
method
,
params
:
sign
(
params
,
noSignAttr
)
,
params
:
sign
(
params
,
noSignAttr
)
})
})
}
}
export
default
request
export
default
request
src/api/sys.account.js
View file @
472b21c
...
@@ -36,7 +36,7 @@ export function Reg (data = {}) {
...
@@ -36,7 +36,7 @@ export function Reg (data = {}) {
/**
/**
* 修改密码
* 修改密码
* @param {*} data
* @param {*} data
*/
*/
export
function
ModifyPassword
(
data
)
{
export
function
ModifyPassword
(
data
)
{
data
.
method
=
`
${
user_path
}
password.modify`
data
.
method
=
`
${
user_path
}
password.modify`
...
...
src/assets/style/theme/theme-base.scss
View file @
472b21c
...
@@ -284,7 +284,7 @@
...
@@ -284,7 +284,7 @@
flex-direction
:
column
;
flex-direction
:
column
;
overflow
:
hidden
;
overflow
:
hidden
;
.d2-container-full__header
{
.d2-container-full__header
{
padding
:
1
2px
20px
0
20px
;
padding
:
1
0px
20px
;
}
}
.d2-container-full__body
{
.d2-container-full__body
{
flex-grow
:
1
;
flex-grow
:
1
;
...
...
src/components/d2-auth/d2-auth-btn.js
View file @
472b21c
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
curBtns
=
$store
.
filter
(
btn
=>
{
curBtns
=
$store
.
filter
(
btn
=>
{
if
(
category
===
'operation'
)
{
if
(
category
===
'operation'
)
{
return
(
btn
.
category
===
'operation'
||
!
btn
.
category
)
&&
filter
(
btn
)
return
(
btn
.
category
===
'operation'
||
!
btn
.
category
)
&&
filter
(
btn
)
}
else
if
(
!
category
){
//
未指定类别
}
else
if
(
!
category
)
{
//
未指定类别
return
!
btn
.
category
&&
filter
(
btn
)
return
!
btn
.
category
&&
filter
(
btn
)
}
}
return
(
btn
.
category
===
category
)
&&
filter
(
btn
)
return
(
btn
.
category
===
category
)
&&
filter
(
btn
)
...
@@ -85,7 +85,7 @@ export default {
...
@@ -85,7 +85,7 @@ export default {
__aBtns
.
push
(
h
(
'el-button'
,
{
__aBtns
.
push
(
h
(
'el-button'
,
{
props
:
{
props
:
{
type
:
btn
.
type
||
'text'
,
type
:
btn
.
type
||
'text'
,
icon
:
btn
.
icon
?
`el-icon-
${
btn
.
icon
}
`
:
''
icon
:
btn
.
icon
?
`el-icon-
${
btn
.
icon
}
`
:
''
},
},
style
:
{
style
:
{
color
:
btn
.
color
color
:
btn
.
color
...
...
src/components/d2-container/components/d2-container-full.vue
View file @
472b21c
...
@@ -14,57 +14,53 @@
...
@@ -14,57 +14,53 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
scroll
from
"./mixins/normal"
;
import
scroll
from
'./mixins/normal'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
"d2-container-full"
,
name
:
'd2-container-full'
,
mixins
:
[
scroll
],
mixins
:
[
scroll
],
components
:
{
components
:
{
d2HeaderSwitch
:
()
=>
import
(
"./d2-header-switch.vue"
)
d2HeaderSwitch
:
()
=>
import
(
'./d2-header-switch.vue'
)
},
},
data
()
{
data
()
{
return
{
return
{
oHeaderStyle
:
{
oHeaderStyle
:
{
padding
:
"20px 20px 0 20px"
padding
:
'20px 20px 0 20px'
}
}
}
;
}
},
},
computed
:
{
computed
:
{
active
()
{
active
()
{
return
this
.
$store
.
state
.
d2admin
.
tsearch
.
active
return
this
.
$store
.
state
.
d2admin
.
tsearch
.
active
}
}
},
},
mounted
()
{
mounted
()
{
// 增加滚动事件监听
// 增加滚动事件监听
this
.
addScrollListener
()
;
this
.
addScrollListener
()
},
},
beforeDestroy
()
{
beforeDestroy
()
{
// 移除滚动事件监听
// 移除滚动事件监听
this
.
removeScrollListener
()
;
this
.
removeScrollListener
()
}
}
}
;
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.d2-container-full
{
.d2-container-full
{
.d2-container-full__header
{
.d2-container-full__header
{
position
:
relative
;
position
:
relative
;
transition
:
.1s
linear
;
transition
:
.2s
linear
;
&.active{
//
border-bottom
:
'1px solid #DCDFE6'
;
//
height
:
auto
;
}
&.close{
&.close{
height
:
0
;
height
:
0
;
padding
:
0
20px
0
20px
!important
;
padding
:
0
20px
!important
;
form{
form{
opacity
:
0
;
opacity
:
0
;
}
}
border-bottom-color
:rgba
(
0
,
0
,
0
,
0
)
!
important
;
border-bottom-color
:rgba
(
0
,
0
,
0
,
0
)
!
important
;
}
}
.el-form-item
{
.el-form-item
{
margin-bottom
:
16
px
;
margin-bottom
:
4
px
;
}
}
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
</
style
>
src/components/d2-container/components/d2-header-switch.vue
View file @
472b21c
...
@@ -24,10 +24,10 @@ export default {
...
@@ -24,10 +24,10 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
setTimeout
(()
=>
this
.
isActive
=
true
,
0
)
setTimeout
(()
=>
this
.
isActive
=
true
,
0
)
},
},
methods
:
{
methods
:
{
...
mapMutations
(
'd2admin/tsearch'
,[
'toggle'
]),
...
mapMutations
(
'd2admin/tsearch'
,
[
'toggle'
]),
// 点击按钮的时候跳转到源代码
// 点击按钮的时候跳转到源代码
handleClick
()
{
handleClick
()
{
this
.
toggle
()
this
.
toggle
()
...
...
src/layout/header-aside/components/header-datetime/index.vue
View file @
472b21c
...
@@ -3,25 +3,25 @@
...
@@ -3,25 +3,25 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dayjs
from
"dayjs"
;
import
dayjs
from
'dayjs'
const
sFormat
=
"YYYY年MM月DD日"
const
sFormat
=
'YYYY年MM月DD日'
export
default
{
export
default
{
name
:
'd2-header-datetime'
,
name
:
'd2-header-datetime'
,
data
()
{
data
()
{
return
{
return
{
timeInterval
:
null
,
timeInterval
:
null
,
time
:
dayjs
().
format
(
sFormat
)
,
time
:
dayjs
().
format
(
sFormat
)
}
}
},
},
mounted
()
{
mounted
()
{
// this.timeInterval = setInterval(() => this.refreshTime(), 1000);
// this.timeInterval = setInterval(() => this.refreshTime(), 1000);
},
},
beforeDestroy
()
{
beforeDestroy
()
{
clearInterval
(
this
.
timeInterval
)
;
clearInterval
(
this
.
timeInterval
)
},
},
methods
:
{
methods
:
{
refreshTime
()
{
refreshTime
()
{
this
.
time
=
dayjs
().
format
(
sFormat
)
;
this
.
time
=
dayjs
().
format
(
sFormat
)
}
}
}
}
}
}
...
...
src/layout/header-aside/components/header-user/index.vue
View file @
472b21c
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
...
mapState
(
'd2admin/user'
,
[
'info'
])
...
mapState
(
'd2admin/user'
,
[
'info'
])
}
,
}
,
methods
:
{
methods
:
{
...
mapActions
(
'd2admin/account'
,
[
'logout'
])
,
...
mapActions
(
'd2admin/account'
,
[
'logout'
])
}
}
}
}
<
/script
>
<
/script
>
...
...
src/layout/header-aside/components/personal-panel/index.vue
View file @
472b21c
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
class=
"other-operation"
@
click=
"clear"
>
<div
class=
"other-operation"
@
click=
"clear"
>
<div
class=
"other-operation-item"
>
<div
class=
"other-operation-item"
>
<i
class=
"fa fa-eraser"
></i>
<i
class=
"fa fa-eraser"
></i>
清
除
缓存
清
空本地
缓存
</div>
</div>
</div>
</div>
<div
class=
"personal-footer"
@
click=
"logOut"
>
<div
class=
"personal-footer"
@
click=
"logOut"
>
...
@@ -49,116 +49,116 @@
...
@@ -49,116 +49,116 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapState
,
mapActions
}
from
"vuex"
;
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
Message
,
MessageBox
}
from
"element-ui"
;
import
{
Message
,
MessageBox
}
from
'element-ui'
export
default
{
export
default
{
name
:
"PersonalPanel"
,
name
:
'PersonalPanel'
,
props
:
{
props
:
{
user
:
Object
user
:
Object
},
},
computed
:
{
computed
:
{
...
mapState
(
"d2admin/user"
,
[
"info"
])
...
mapState
(
'd2admin/user'
,
[
'info'
])
},
},
data
()
{
data
()
{
return
{
return
{
personalVisible
:
false
,
personalVisible
:
false
,
passwordVisible
:
false
passwordVisible
:
false
}
;
}
},
},
mounted
()
{
mounted
()
{
this
.
$event
.
$on
(
'e-ps-close'
,
is2Login
=>
{
this
.
$event
.
$on
(
'e-ps-close'
,
is2Login
=>
{
this
.
passwordVisible
=
false
this
.
passwordVisible
=
false
if
(
!
is2Login
)
return
if
(
!
is2Login
)
return
this
.
$message
(
`修改密码成功,2秒后退回登录页`
)
;
this
.
$message
(
`修改密码成功,2秒后退回登录页`
)
setTimeout
(
async
()
=>
{
setTimeout
(
async
()
=>
{
await
this
.
logout
();
await
this
.
logout
()
this
.
$router
.
push
(
"/login"
);
this
.
$router
.
push
(
'/login'
)
},
2000
)
},
2000
)
})
})
this
.
$event
.
$on
(
'e-pd-close'
,
()
=>
this
.
personalVisible
=
false
)
this
.
$event
.
$on
(
'e-pd-close'
,
()
=>
this
.
personalVisible
=
false
)
},
},
components
:
{
components
:
{
personalDialog
:
()
=>
import
(
"./personalDialog"
),
personalDialog
:
()
=>
import
(
'./personalDialog'
),
passwordDialog
:
()
=>
import
(
"./passwordDialog"
)
passwordDialog
:
()
=>
import
(
'./passwordDialog'
)
},
},
methods
:
{
methods
:
{
...
mapActions
(
"d2admin/account"
,
[
"logout"
]),
...
mapActions
(
'd2admin/account'
,
[
'logout'
]),
/**
/**
* @description 登出
* @description 登出
*/
*/
logOut
()
{
logOut
()
{
this
.
$store
.
commit
(
"d2admin/gray/set"
,
true
);
this
.
$store
.
commit
(
'd2admin/gray/set'
,
true
)
MessageBox
.
confirm
(
"确定要注销当前用户吗"
,
"注销用户"
,
{
MessageBox
.
confirm
(
'确定要注销当前用户吗'
,
'注销用户'
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
,
type
:
"warning"
type
:
'warning'
})
})
.
then
(
async
()
=>
{
.
then
(
async
()
=>
{
await
this
.
$store
.
commit
(
"d2admin/gray/set"
,
false
);
await
this
.
$store
.
commit
(
'd2admin/gray/set'
,
false
)
// await this.$store.dispatch('d2admin/user/set', {})
// await this.$store.dispatch('d2admin/user/set', {})
await
this
.
logout
()
;
await
this
.
logout
()
this
.
$router
.
push
(
"/login"
);
this
.
$router
.
push
(
'/login'
)
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
$store
.
commit
(
"d2admin/gray/set"
,
false
);
this
.
$store
.
commit
(
'd2admin/gray/set'
,
false
)
// Message({
// Message({
// message: '取消注销操作'
// message: '取消注销操作'
// })
// })
})
;
})
},
},
clear
()
{
clear
()
{
this
.
$store
.
commit
(
"d2admin/gray/set"
,
true
);
this
.
$store
.
commit
(
'd2admin/gray/set'
,
true
)
MessageBox
.
confirm
(
MessageBox
.
confirm
(
"清空缓存将重置所有个性化设置并退出到登录界面"
,
'清空本地缓存将重置所有个性化设置并退出到登录界面'
,
"清空缓存"
,
'清空本地缓存'
,
{
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
,
type
:
"warning"
type
:
'warning'
}
}
)
)
.
then
(
async
()
=>
{
.
then
(
async
()
=>
{
await
this
.
$store
.
commit
(
"d2admin/gray/set"
,
false
);
await
this
.
$store
.
commit
(
'd2admin/gray/set'
,
false
)
localStorage
.
clear
()
;
localStorage
.
clear
()
window
.
location
.
reload
()
;
window
.
location
.
reload
()
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
$store
.
commit
(
"d2admin/gray/set"
,
false
);
this
.
$store
.
commit
(
'd2admin/gray/set'
,
false
)
// Message({
// Message({
// message: '取消清除缓存操作'
// message: '取消清除缓存操作'
// })
// })
})
;
})
},
},
comfirm
(
text
,
title
,
cancleText
)
{
comfirm
(
text
,
title
,
cancleText
)
{
return
new
Promise
((
reject
,
resolve
)
=>
{
return
new
Promise
((
reject
,
resolve
)
=>
{
this
.
$store
.
commit
(
"d2admin/gray/set"
,
true
);
this
.
$store
.
commit
(
'd2admin/gray/set'
,
true
)
MessageBox
.
confirm
(
text
,
title
,
{
MessageBox
.
confirm
(
text
,
title
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
'取消'
,
type
:
"warning"
type
:
'warning'
})
})
.
then
(
async
()
=>
{
.
then
(
async
()
=>
{
await
this
.
$store
.
commit
(
"d2admin/gray/set"
,
false
);
await
this
.
$store
.
commit
(
'd2admin/gray/set'
,
false
)
resolve
(
true
)
;
resolve
(
true
)
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
$store
.
commit
(
"d2admin/gray/set"
,
false
);
this
.
$store
.
commit
(
'd2admin/gray/set'
,
false
)
Message
({
Message
({
message
:
cancleText
message
:
cancleText
})
;
})
reject
()
;
reject
()
})
;
})
})
;
})
},
},
// 打开个人信息弹出框
// 打开个人信息弹出框
openPersonalDialog
:
function
()
{
openPersonalDialog
:
function
()
{
this
.
personalVisible
=
true
;
this
.
personalVisible
=
true
},
},
openPasswordDialog
:
function
()
{
openPasswordDialog
:
function
()
{
this
.
passwordVisible
=
true
;
this
.
passwordVisible
=
true
}
}
}
}
}
;
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -235,8 +235,7 @@ export default {
...
@@ -235,8 +235,7 @@ export default {
margin-right
:
1px
;
margin-right
:
1px
;
font-size
:
14px
;
font-size
:
14px
;
text-align
:
center
;
text-align
:
center
;
padding-top
:
10px
;
padding
:
2px
0
;
padding-bottom
:
10px
;
border-color
:
rgba
(
180
,
190
,
190
,
0.2
);
border-color
:
rgba
(
180
,
190
,
190
,
0.2
);
border-top-width
:
1px
;
border-top-width
:
1px
;
border-top-style
:
solid
;
border-top-style
:
solid
;
...
...
src/layout/header-aside/components/personal-panel/passwordDialog.vue
View file @
472b21c
...
@@ -31,11 +31,11 @@
...
@@ -31,11 +31,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
ModifyPassword
}
from
"@api/sys.account"
;
import
{
ModifyPassword
}
from
'@api/sys.account'
export
default
{
export
default
{
name
:
"PasswordDialog"
,
name
:
'PasswordDialog'
,
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
rules
:
Object
.
freeze
({
rules
:
Object
.
freeze
({
oldPassword
:
[
oldPassword
:
[
...
@@ -71,49 +71,49 @@ export default {
...
@@ -71,49 +71,49 @@ export default {
}
}
]
]
})
})
}
;
}
},
},
props
:
{
props
:
{
visible
:
{
visible
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
user
:
Object
user
:
Object
},
},
computed
:
{
computed
:
{
info
()
{
info
()
{
return
this
.
user
return
this
.
user
}
}
},
},
methods
:
{
methods
:
{
// 修改密码
// 修改密码
submit
()
{
submit
()
{
this
.
$refs
.
passwordForm
.
validate
(
async
valid
=>
{
this
.
$refs
.
passwordForm
.
validate
(
async
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
{
userId
,
oldPassword
,
newPassword
}
=
this
.
info
const
{
userId
,
oldPassword
,
newPassword
}
=
this
.
info
const
result
=
await
ModifyPassword
({
userId
,
oldPassword
,
newPassword
})
const
result
=
await
ModifyPassword
({
userId
,
oldPassword
,
newPassword
})
console
.
log
(
result
)
;
console
.
log
(
result
)
const
{
operateStatus
}
=
result
const
{
operateStatus
}
=
result
if
(
operateStatus
)
{
if
(
operateStatus
)
{
this
.
emit
(
true
)
this
.
emit
(
true
)
return
return
}
}
this
.
$message
.
error
(
'修改密码失败'
)
this
.
$message
.
error
(
'修改密码失败'
)
}
}
})
;
})
},
},
handleClose
()
{
handleClose
()
{
this
.
emit
(
false
)
this
.
emit
(
false
)
},
},
emit
(
is2Login
)
{
emit
(
is2Login
)
{
this
.
$event
.
$emit
(
"e-ps-close"
,
is2Login
);
this
.
$event
.
$emit
(
'e-ps-close'
,
is2Login
)
this
.
$refs
.
passwordForm
.
validateField
()
this
.
$refs
.
passwordForm
.
validateField
()
}
}
}
}
}
;
}
</
script
>
</
script
>
<
style
lang=
'scss'
>
<
style
lang=
'scss'
>
.password-detail
{
.password-detail
{
}
}
</
style
>
</
style
>
src/layout/header-aside/components/personal-panel/personalDialog.vue
View file @
472b21c
...
@@ -39,20 +39,20 @@
...
@@ -39,20 +39,20 @@
<
script
>
<
script
>
// import { ctMethods, request } from '@/api'
// import { ctMethods, request } from '@/api'
export
default
{
export
default
{
name
:
"personalDialog"
,
name
:
'personalDialog'
,
props
:
{
props
:
{
visible
:
{
visible
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
user
:
Object
user
:
Object
},
},
methods
:
{
methods
:
{
handleClose
()
{
handleClose
()
{
this
.
$event
.
$emit
(
"e-pd-close"
);
this
.
$event
.
$emit
(
'e-pd-close'
)
}
}
}
}
}
;
}
</
script
>
</
script
>
<
style
>
<
style
>
.personal-detail
{
.personal-detail
{
...
...
src/libs/util.permision.js
View file @
472b21c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: limin
* @Author: limin
* @Date: 2019-08-27 19:16:26
* @Date: 2019-08-27 19:16:26
* @Last Modified by: limin
* @Last Modified by: limin
* @Last Modified time: 2019-09-08
12:02:47
* @Last Modified time: 2019-09-08
20:54:05
*/
*/
import
{
cloneDeep
}
from
'lodash'
import
{
cloneDeep
}
from
'lodash'
const
permision
=
{}
const
permision
=
{}
...
...
src/plugin/axios/index.js
View file @
472b21c
...
@@ -18,7 +18,6 @@ function errorCreate (msg) {
...
@@ -18,7 +18,6 @@ function errorCreate (msg) {
throw
error
throw
error
}
}
// 记录和显示错误
// 记录和显示错误
function
errorLog
(
error
)
{
function
errorLog
(
error
)
{
// 添加到日志
// 添加到日志
...
@@ -62,7 +61,7 @@ service.interceptors.request.use(
...
@@ -62,7 +61,7 @@ service.interceptors.request.use(
}
=
config
}
=
config
if
(
!
LogExternals
.
some
(
u
=>
u
===
url
||
(
params
&&
u
===
params
.
method
)))
{
if
(
!
LogExternals
.
some
(
u
=>
u
===
url
||
(
params
&&
u
===
params
.
method
)))
{
const
token
=
util
.
cookies
.
get
(
'token'
)
const
token
=
util
.
cookies
.
get
(
'token'
)
if
(
!
token
)
{
//判断是否长时间未操作
if
(
!
token
)
{
// 判断是否长时间未操作
await
store
.
dispatch
(
'd2admin/account/logout'
)
await
store
.
dispatch
(
'd2admin/account/logout'
)
router
.
replace
(
'/login'
)
router
.
replace
(
'/login'
)
}
}
...
...
src/router/index.js
View file @
472b21c
...
@@ -42,14 +42,14 @@ router.beforeEach(async (to, from, next) => {
...
@@ -42,14 +42,14 @@ router.beforeEach(async (to, from, next) => {
await
store
.
dispatch
(
'd2admin/account/load'
)
await
store
.
dispatch
(
'd2admin/account/load'
)
next
(
to
.
path
)
next
(
to
.
path
)
}
else
{
}
else
{
if
(
store
.
state
.
d2admin
.
user
.
info
)
{
if
(
store
.
state
.
d2admin
.
user
.
info
)
{
next
()
next
()
}
else
{
}
else
{
if
(
to
.
path
==
'/login'
){
//
如果是登录页面路径,就直接next()
if
(
to
.
path
==
'/login'
)
{
//
如果是登录页面路径,就直接next()
next
()
;
next
()
}
else
{
//不然就跳转到登录;
}
else
{
//
不然就跳转到登录;
await
store
.
dispatch
(
'd2admin/account/logout'
)
await
store
.
dispatch
(
'd2admin/account/logout'
)
next
(
'/login'
)
;
next
(
'/login'
)
}
}
}
}
}
}
...
...
src/router/routes.js
View file @
472b21c
...
@@ -35,7 +35,7 @@ export const home = {
...
@@ -35,7 +35,7 @@ export const home = {
type
:
'button'
,
type
:
'button'
,
category
:
'Button'
,
category
:
'Button'
,
handle
:
'exportFile'
,
handle
:
'exportFile'
,
icon
:
'download'
icon
:
'download'
}]
}]
}
}
export
const
sys
=
[
export
const
sys
=
[
...
@@ -97,7 +97,7 @@ export const resources = {
...
@@ -97,7 +97,7 @@ export const resources = {
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'handleEdit'
,
handle
:
'handleEdit'
,
icon
:
'plus'
icon
:
'plus'
}]
}]
},
},
'103'
:
{
'103'
:
{
...
@@ -128,7 +128,7 @@ export const resources = {
...
@@ -128,7 +128,7 @@ export const resources = {
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'handleEdit'
,
handle
:
'handleEdit'
,
icon
:
'plus'
icon
:
'plus'
}]
}]
},
},
'104'
:
{
'104'
:
{
...
@@ -159,14 +159,14 @@ export const resources = {
...
@@ -159,14 +159,14 @@ export const resources = {
type
:
'button'
,
type
:
'button'
,
category
:
'Button'
,
category
:
'Button'
,
handle
:
'exportFile'
,
handle
:
'exportFile'
,
icon
:
'download'
icon
:
'download'
},
{
},
{
authId
:
'10404'
,
authId
:
'10404'
,
parentId
:
'104'
,
parentId
:
'104'
,
label
:
'导入'
,
label
:
'导入'
,
type
:
'button'
,
type
:
'button'
,
category
:
'Button'
,
category
:
'Button'
,
icon
:
'upload2'
icon
:
'upload2'
}]
}]
},
},
'105'
:
{
'105'
:
{
...
@@ -221,7 +221,7 @@ export const resources = {
...
@@ -221,7 +221,7 @@ export const resources = {
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'exportFile'
,
handle
:
'exportFile'
,
icon
:
'download'
icon
:
'download'
}]
}]
},
},
'10602'
:
{
'10602'
:
{
...
@@ -247,7 +247,7 @@ export const resources = {
...
@@ -247,7 +247,7 @@ export const resources = {
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'exportOrder'
,
handle
:
'exportOrder'
,
icon
:
'download'
icon
:
'download'
}]
}]
},
},
'107'
:
{
'107'
:
{
...
@@ -309,7 +309,7 @@ export const resources = {
...
@@ -309,7 +309,7 @@ export const resources = {
category
:
'action'
,
category
:
'action'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'handleRegister'
,
handle
:
'handleRegister'
,
icon
:
'plus'
icon
:
'plus'
}],
}],
component
:
_import
(
'userManage/user'
)
component
:
_import
(
'userManage/user'
)
},
},
...
@@ -329,7 +329,7 @@ export const resources = {
...
@@ -329,7 +329,7 @@ export const resources = {
label
:
'创建角色'
,
label
:
'创建角色'
,
handle
:
'handleEdit'
,
handle
:
'handleEdit'
,
type
:
'button'
,
type
:
'button'
,
icon
:
'plus'
icon
:
'plus'
},
{
},
{
authId
:
'1070202'
,
authId
:
'1070202'
,
parentId
:
'10702'
,
parentId
:
'10702'
,
...
@@ -369,7 +369,7 @@ export const resources = {
...
@@ -369,7 +369,7 @@ export const resources = {
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'handleExport'
,
handle
:
'handleExport'
,
icon
:
'download'
icon
:
'download'
}]
}]
}
}
}
}
...
...
src/store/modules/d2admin/modules/account.js
View file @
472b21c
...
@@ -24,10 +24,10 @@ export default {
...
@@ -24,10 +24,10 @@ export default {
// token 代表用户当前登录状态 建议在网络请求中携带 token
// token 代表用户当前登录状态 建议在网络请求中携带 token
// 如有必要 token 需要定时更新,默认保存一天
// 如有必要 token 需要定时更新,默认保存一天
util
.
cookies
.
set
(
'uuid'
,
data
.
loginName
)
util
.
cookies
.
set
(
'uuid'
,
data
.
loginName
)
const
authes
=
(
data
.
roleType
==
SUPPER_ADMIN
)
?
const
authes
=
(
data
.
roleType
==
SUPPER_ADMIN
)
util
.
permision
.
flatten
(
Object
.
values
(
localRoutes
))
?
util
.
permision
.
flatten
(
Object
.
values
(
localRoutes
))
.
map
(
obj
=>
({
authId
:
obj
.
authId
,
parentId
:
obj
.
parentId
}))
.
map
(
obj
=>
({
authId
:
obj
.
authId
,
parentId
:
obj
.
parentId
}))
:
cloneDeep
(
data
.
authes
)
:
cloneDeep
(
data
.
authes
)
await
dispatch
(
'd2admin/auth/set'
,
authes
,
{
root
:
true
})
await
dispatch
(
'd2admin/auth/set'
,
authes
,
{
root
:
true
})
// // 设置 vuex 用户信息
// // 设置 vuex 用户信息
await
dispatch
(
'd2admin/user/set'
,
data
,
{
root
:
true
})
await
dispatch
(
'd2admin/user/set'
,
data
,
{
root
:
true
})
...
...
src/store/modules/d2admin/modules/color.js
View file @
472b21c
...
@@ -68,9 +68,9 @@ export default {
...
@@ -68,9 +68,9 @@ export default {
resolve
()
resolve
()
})
})
},
},
loadFromDB
({
state
,
dispatch
,
commit
})
{
loadFromDB
({
state
,
dispatch
,
commit
})
{
return
new
Promise
(
async
resolve
=>
{
return
new
Promise
(
async
resolve
=>
{
const
color
=
await
dispatch
(
'd2admin/db/get'
,
{
const
color
=
await
dispatch
(
'd2admin/db/get'
,
{
dbName
:
'sys'
,
dbName
:
'sys'
,
path
:
'color.value'
,
path
:
'color.value'
,
defaultValue
:
''
,
defaultValue
:
''
,
...
...
src/store/modules/d2admin/modules/theme.js
View file @
472b21c
...
@@ -67,7 +67,7 @@ export default {
...
@@ -67,7 +67,7 @@ export default {
user
:
true
user
:
true
},
{
root
:
true
})
},
{
root
:
true
})
}
}
const
color
=
await
dispatch
(
"d2admin/color/loadFromDB"
,
null
,{
root
:
true
})
const
color
=
await
dispatch
(
'd2admin/color/loadFromDB'
,
null
,
{
root
:
true
})
// 设置ui 颜色
// 设置ui 颜色
await
dispatch
(
'd2admin/color/set'
,
color
||
__theme
.
color
,
{
root
:
true
})
await
dispatch
(
'd2admin/color/set'
,
color
||
__theme
.
color
,
{
root
:
true
})
// 将 vuex 中的主题应用到 dom
// 将 vuex 中的主题应用到 dom
...
...
src/store/modules/d2admin/modules/user.js
View file @
472b21c
...
@@ -21,7 +21,7 @@ export default {
...
@@ -21,7 +21,7 @@ export default {
// value: info,
// value: info,
// user: true
// user: true
// }, { root: true })
// }, { root: true })
sessionStorage
.
setItem
(
'user'
,
escape
(
JSON
.
stringify
(
info
)))
sessionStorage
.
setItem
(
'user'
,
escape
(
JSON
.
stringify
(
info
)))
// end
// end
resolve
()
resolve
()
})
})
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
// defaultValue: {},
// defaultValue: {},
// user: true
// user: true
// }, { root: true })
// }, { root: true })
state
.
info
=
JSON
.
parse
(
unescape
(
sessionStorage
.
getItem
(
'user'
)))
state
.
info
=
JSON
.
parse
(
unescape
(
sessionStorage
.
getItem
(
'user'
)))
// end
// end
resolve
()
resolve
()
})
})
...
...
src/views/deviceManagement/index.vue
View file @
472b21c
...
@@ -184,7 +184,7 @@ export default {
...
@@ -184,7 +184,7 @@ export default {
baseData
:
{
baseData
:
{
station
:
[]
station
:
[]
},
},
fileInfo
:
{
fileType
:
''
,
fileBase
:
''
}
,
fileInfo
:
{
fileType
:
''
,
fileBase
:
''
}
}
}
},
},
...
@@ -290,16 +290,16 @@ export default {
...
@@ -290,16 +290,16 @@ export default {
}
}
}).
then
(
res
=>
{
}).
then
(
res
=>
{
// console.log(res)
// console.log(res)
if
(
!
res
.
data
.
data
.
url
)
{
if
(
!
res
.
data
.
data
.
url
)
{
notice
.
okTips
()
notice
.
okTips
()
}
else
{
}
else
{
window
.
location
.
href
=
res
.
data
.
data
.
url
window
.
location
.
href
=
res
.
data
.
data
.
url
notice
.
errorTips
()
notice
.
errorTips
()
}
}
document
.
getElementById
(
'fileUpload'
).
value
=
null
;
document
.
getElementById
(
'fileUpload'
).
value
=
null
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
document
.
getElementById
(
'fileUpload'
).
value
=
null
;
document
.
getElementById
(
'fileUpload'
).
value
=
null
})
})
// importApi(params, noSignAttr).then(res => {
// importApi(params, noSignAttr).then(res => {
// notice.okTips()
// notice.okTips()
...
@@ -312,10 +312,9 @@ export default {
...
@@ -312,10 +312,9 @@ export default {
exportFile
()
{
exportFile
()
{
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
exportApi
(
params
).
then
(
res
=>
{
exportApi
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
window
.
location
.
href
=
res
.
url
window
.
location
.
href
=
res
.
url
notice
.
okTips
()
notice
.
okTips
()
}).
catch
(
err
=>
{
}).
catch
(
()
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
})
})
},
},
...
...
src/views/maintainManagement/index.vue
View file @
472b21c
...
@@ -135,10 +135,6 @@ export default {
...
@@ -135,10 +135,6 @@ export default {
type
:
'input'
,
type
:
'input'
,
model
:
'taskCode'
model
:
'taskCode'
},
{
},
{
label
:
'创建时间'
,
type
:
'datePick'
,
model
:
'createTime'
},
{
label
:
'订单类型'
,
label
:
'订单类型'
,
type
:
'select'
,
type
:
'select'
,
model
:
'taskType'
,
model
:
'taskType'
,
...
@@ -192,6 +188,10 @@ export default {
...
@@ -192,6 +188,10 @@ export default {
confValue
:
'181故障'
,
confValue
:
'181故障'
,
confCode
:
'4'
confCode
:
'4'
}]
}]
},
{
label
:
'创建时间'
,
type
:
'datePick'
,
model
:
'createTime'
}],
}],
// 表格
// 表格
tableLoading
:
false
,
tableLoading
:
false
,
...
@@ -249,7 +249,7 @@ export default {
...
@@ -249,7 +249,7 @@ export default {
},
{
},
{
label
:
'故障描述'
,
label
:
'故障描述'
,
prop
:
'downDescription'
,
prop
:
'downDescription'
,
width
:
'300'
width
:
'300'
},
{
},
{
label
:
'处理方式'
,
label
:
'处理方式'
,
prop
:
'treatment'
,
prop
:
'treatment'
,
...
...
src/views/materiaOrderManagement/detailDialog.vue
View file @
472b21c
...
@@ -49,5 +49,5 @@ export default {
...
@@ -49,5 +49,5 @@ export default {
padding
:
0
;
padding
:
0
;
background-color
:
#202223
background-color
:
#202223
}
}
}
}
</
style
>
</
style
>
src/views/materiaOrderManagement/index.vue
View file @
472b21c
...
@@ -10,15 +10,6 @@
...
@@ -10,15 +10,6 @@
<el-form-item
label=
"订单编号"
>
<el-form-item
label=
"订单编号"
>
<el-input
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
clearable
></el-input>
<el-input
v-model=
"searchForm.orderCode"
placeholder=
"请输入订单编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建时间"
>
<el-date-picker
v-model=
"searchForm.createTime"
type=
"daterange"
value-format=
"yyyy-MM-dd"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"订单类型"
>
<el-form-item
label=
"订单类型"
>
<el-select
v-model=
"searchForm.orderType"
placeholder=
"请选择订单类型"
clearable
filterable
>
<el-select
v-model=
"searchForm.orderType"
placeholder=
"请选择订单类型"
clearable
filterable
>
<el-option
label=
"物料申请"
value=
"1"
></el-option>
<el-option
label=
"物料申请"
value=
"1"
></el-option>
...
@@ -38,6 +29,15 @@
...
@@ -38,6 +29,15 @@
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建时间"
>
<el-date-picker
v-model=
"searchForm.createTime"
type=
"daterange"
value-format=
"yyyy-MM-dd"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
...
@@ -155,7 +155,7 @@ export default {
...
@@ -155,7 +155,7 @@ export default {
},
{
},
{
value
:
6
,
value
:
6
,
label
:
'已签收'
label
:
'已签收'
}
,
],
}
],
// 表格
// 表格
tableLoading
:
false
,
tableLoading
:
false
,
tableData
:
[],
tableData
:
[],
...
@@ -248,6 +248,7 @@ export default {
...
@@ -248,6 +248,7 @@ export default {
this
.
$open
(
res
.
url
)
this
.
$open
(
res
.
url
)
// notice.okTips()
// notice.okTips()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
notice
.
errorTips
()
notice
.
errorTips
()
})
})
},
},
...
@@ -288,6 +289,7 @@ export default {
...
@@ -288,6 +289,7 @@ export default {
this
.
pdfUrl
=
res
.
url
this
.
pdfUrl
=
res
.
url
this
.
detailVisible
=
!
this
.
detailVisible
this
.
detailVisible
=
!
this
.
detailVisible
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
notice
.
errorTips
()
notice
.
errorTips
()
})
})
},
},
...
@@ -301,13 +303,13 @@ export default {
...
@@ -301,13 +303,13 @@ export default {
// console.log(row)
// console.log(row)
removeApi
({
removeApi
({
orderCode
:
row
.
orderCode
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
}).
then
(
()
=>
{
notice
.
okTips
()
notice
.
okTips
()
this
.
loadingGetList
()
this
.
loadingGetList
()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
})
})
}).
catch
(
err
=>
{})
}).
catch
(
()
=>
{})
}
}
}
}
}
}
...
...
src/views/reportingLogs/index.vue
View file @
472b21c
...
@@ -128,13 +128,13 @@ export default {
...
@@ -128,13 +128,13 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
loadingGetList
()
this
.
loadingGetList
()
this
.
loadBaseData
()
this
.
loadBaseData
()
},
},
methods
:
{
methods
:
{
async
loadBaseData
()
{
async
loadBaseData
()
{
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
this
.
baseData
.
station
=
data
this
.
baseData
.
station
=
data
},
},
...
@@ -147,7 +147,7 @@ export default {
...
@@ -147,7 +147,7 @@ export default {
return
Object
.
assign
(
return
Object
.
assign
(
{
{
pageCount
:
this
.
pageSize
,
pageCount
:
this
.
pageSize
,
pageSize
:
this
.
currentPage
,
pageSize
:
this
.
currentPage
},
},
this
.
searchForm
this
.
searchForm
)
)
...
@@ -169,7 +169,7 @@ export default {
...
@@ -169,7 +169,7 @@ export default {
})
})
},
},
handleExport
()
{
handleExport
()
{
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
params
.
startTime
=
params
.
reportTime
?
params
.
reportTime
[
0
]
+
' '
+
'00:00:00 '
:
''
params
.
startTime
=
params
.
reportTime
?
params
.
reportTime
[
0
]
+
' '
+
'00:00:00 '
:
''
params
.
endTime
=
params
.
reportTime
?
params
.
reportTime
[
1
]
+
' '
+
'23:59:59'
:
''
params
.
endTime
=
params
.
reportTime
?
params
.
reportTime
[
1
]
+
' '
+
'23:59:59'
:
''
...
@@ -178,7 +178,7 @@ export default {
...
@@ -178,7 +178,7 @@ export default {
console
.
log
(
res
)
console
.
log
(
res
)
window
.
location
.
href
=
res
.
url
window
.
location
.
href
=
res
.
url
notice
.
okTips
()
notice
.
okTips
()
}).
catch
(
err
=>
{
}).
catch
(
()
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
})
})
},
},
...
...
src/views/subSysManagement/index.vue
View file @
472b21c
...
@@ -162,7 +162,7 @@ export default {
...
@@ -162,7 +162,7 @@ export default {
},
{
},
{
label
:
'生产厂家'
,
label
:
'生产厂家'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
width
:
'220'
width
:
'220'
},
{
},
{
label
:
'发送结点序列'
,
label
:
'发送结点序列'
,
prop
:
'sendSequence'
prop
:
'sendSequence'
...
@@ -193,10 +193,10 @@ export default {
...
@@ -193,10 +193,10 @@ export default {
methods
:
{
methods
:
{
async
loadBaseData
()
{
async
loadBaseData
()
{
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
SUBSYS
.
KEY
)
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
SUBSYS
.
KEY
)
this
.
baseData
.
subsys
=
data
this
.
baseData
.
subsys
=
data
},
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
tableLoading
=
true
...
@@ -239,13 +239,13 @@ export default {
...
@@ -239,13 +239,13 @@ export default {
gatewayUrl
:
''
,
gatewayUrl
:
''
,
gatewayPort
:
''
gatewayPort
:
''
}
}
if
(
!
value
.
id
)
{
if
(
!
value
.
id
)
{
delete
params
.
id
delete
params
.
id
}
else
{
}
else
{
delete
params
.
subsystemCode
delete
params
.
subsystemCode
delete
params
.
trafficCode
delete
params
.
trafficCode
}
}
for
(
var
item
in
params
)
{
for
(
var
item
in
params
)
{
params
[
item
]
=
value
[
item
]
params
[
item
]
=
value
[
item
]
}
}
for
(
var
i
in
this
.
baseData
.
subsys
)
{
for
(
var
i
in
this
.
baseData
.
subsys
)
{
...
@@ -260,7 +260,7 @@ export default {
...
@@ -260,7 +260,7 @@ export default {
this
.
handleEditClose
()
this
.
handleEditClose
()
notice
.
okTips
()
notice
.
okTips
()
this
.
loadingGetList
()
this
.
loadingGetList
()
}).
catch
(
err
=>
{
}).
catch
(
()
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
})
})
},
},
...
@@ -301,7 +301,7 @@ export default {
...
@@ -301,7 +301,7 @@ export default {
handleEditConfirm
()
{
handleEditConfirm
()
{
var
editParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
editForm
))
var
editParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
editForm
))
this
.
editSubSystem
(
this
.
editForm
)
this
.
editSubSystem
(
editParams
)
},
},
// 表格-编辑
// 表格-编辑
...
@@ -325,13 +325,13 @@ export default {
...
@@ -325,13 +325,13 @@ export default {
removeApi
({
removeApi
({
id
:
row
.
id
,
id
:
row
.
id
,
usedStatus
:
2
usedStatus
:
2
}).
then
(
res
=>
{
}).
then
(
()
=>
{
notice
.
okTips
()
notice
.
okTips
()
this
.
loadingGetList
()
this
.
loadingGetList
()
}).
catch
(
err
=>
{
}).
catch
(
()
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
})
})
}).
catch
(
err
=>
{})
}).
catch
(
()
=>
{})
}
}
}
}
}
}
...
...
src/views/system/login/dialogReg.vue
View file @
472b21c
...
@@ -195,7 +195,7 @@ export default {
...
@@ -195,7 +195,7 @@ export default {
},
},
// 加载业务所需所有数据
// 加载业务所需所有数据
async
fetchData
()
{
async
fetchData
()
{
const
{
role
,
company
,
depart
,
station
,
post
}
=
await
this
.
load
()
const
{
station
,
post
}
=
await
this
.
load
()
this
.
baseData
.
posts
=
post
this
.
baseData
.
posts
=
post
this
.
baseData
.
stations
=
station
this
.
baseData
.
stations
=
station
Object
.
freeze
(
this
.
baseData
)
Object
.
freeze
(
this
.
baseData
)
...
...
src/views/system/login/index.vue
View file @
472b21c
...
@@ -81,22 +81,22 @@
...
@@ -81,22 +81,22 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dayjs
from
"dayjs"
;
import
dayjs
from
'dayjs'
import
{
mapActions
,
mapState
}
from
"vuex"
;
import
{
mapActions
}
from
'vuex'
import
{
LOGIN_TYPE
}
from
"@/common/constants"
;
import
{
LOGIN_TYPE
}
from
'@/common/constants'
export
default
{
export
default
{
components
:
{
components
:
{
DialogReg
:
()
=>
import
(
"./dialogReg"
)
DialogReg
:
()
=>
import
(
'./dialogReg'
)
},
},
data
()
{
data
()
{
return
{
return
{
registerDialogVisible
:
false
,
registerDialogVisible
:
false
,
timeInterval
:
null
,
timeInterval
:
null
,
time
:
dayjs
().
format
(
"HH:mm:ss"
),
time
:
dayjs
().
format
(
'HH:mm:ss'
),
// 表单
// 表单
formLogin
:
{
formLogin
:
{
loginName
:
'test0001'
,
//
"limin3",
loginName
:
'test0001'
,
//
"limin3",
password
:
"123456"
,
password
:
'123456'
,
loginType
:
LOGIN_TYPE
loginType
:
LOGIN_TYPE
},
},
// 表单校验
// 表单校验
...
@@ -104,56 +104,56 @@ export default {
...
@@ -104,56 +104,56 @@ export default {
loginName
:
[
loginName
:
[
{
{
required
:
true
,
required
:
true
,
message
:
"请输入用户名"
,
message
:
'请输入用户名'
,
trigger
:
"blur"
trigger
:
'blur'
}
}
],
],
password
:
[
password
:
[
{
{
required
:
true
,
required
:
true
,
message
:
"请输入密码"
,
message
:
'请输入密码'
,
trigger
:
"blur"
trigger
:
'blur'
}
}
]
]
})
})
}
;
}
},
},
mounted
()
{
mounted
()
{
this
.
timeInterval
=
setInterval
(()
=>
this
.
refreshTime
(),
1000
)
;
this
.
timeInterval
=
setInterval
(()
=>
this
.
refreshTime
(),
1000
)
this
.
$event
.
$on
(
"e-reg-dialog"
,
res
=>
(
this
.
registerDialogVisible
=
res
));
this
.
$event
.
$on
(
'e-reg-dialog'
,
res
=>
(
this
.
registerDialogVisible
=
res
))
},
},
beforeDestroy
()
{
beforeDestroy
()
{
clearInterval
(
this
.
timeInterval
)
;
clearInterval
(
this
.
timeInterval
)
},
},
methods
:
{
methods
:
{
...
mapActions
(
"d2admin/account"
,
[
"login"
]),
...
mapActions
(
'd2admin/account'
,
[
'login'
]),
refreshTime
()
{
refreshTime
()
{
this
.
time
=
dayjs
().
format
(
"HH:mm:ss"
);
this
.
time
=
dayjs
().
format
(
'HH:mm:ss'
)
},
},
// 提交登录信息
// 提交登录信息
submit
()
{
submit
()
{
// console.log(navigator.userAgent.toLocaleLowerCase())
// console.log(navigator.userAgent.toLocaleLowerCase())
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
{
browser
,
os
}
=
this
.
$store
.
state
.
d2admin
.
ua
.
data
;
const
{
browser
,
os
}
=
this
.
$store
.
state
.
d2admin
.
ua
.
data
const
_p
=
{
const
_p
=
{
...
this
.
formLogin
,
...
this
.
formLogin
,
deviceCode
:
`
${
os
.
name
}${
os
.
version
}
-
${
browser
.
name
}${
browser
.
version
}
`
deviceCode
:
`
${
os
.
name
}${
os
.
version
}
-
${
browser
.
name
}${
browser
.
version
}
`
}
;
}
// 登录
// 登录
// 注意 这里的演示没有传验证码
// 注意 这里的演示没有传验证码
// 具体需要传递的数据请自行修改代码
// 具体需要传递的数据请自行修改代码
this
.
login
(
_p
)
this
.
login
(
_p
)
.
then
(()
=>
this
.
$store
.
dispatch
(
"d2admin/auth/init"
))
.
then
(()
=>
this
.
$store
.
dispatch
(
'd2admin/auth/init'
))
.
then
(
_
=>
this
.
$router
.
replace
(
this
.
$route
.
query
.
redirect
||
"/"
));
.
then
(
_
=>
this
.
$router
.
replace
(
this
.
$route
.
query
.
redirect
||
'/'
))
}
else
{
}
else
{
// 登录表单校验失败
// 登录表单校验失败
this
.
$message
.
error
(
"表单校验失败,请检查"
);
this
.
$message
.
error
(
'表单校验失败,请检查'
)
}
}
})
;
})
}
}
}
}
}
;
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
src/views/systemMonitor/index.vue
View file @
472b21c
...
@@ -269,7 +269,7 @@ export default {
...
@@ -269,7 +269,7 @@ export default {
const
{
station
,
subsys
}
=
await
this
.
load
()
const
{
station
,
subsys
}
=
await
this
.
load
()
this
.
baseData
.
station
=
cloneDeep
(
station
)
this
.
baseData
.
station
=
cloneDeep
(
station
)
this
.
baseData
.
subsys
=
cloneDeep
(
subsys
)
this
.
baseData
.
subsys
=
cloneDeep
(
subsys
)
this
.
baseData
.
subsys
.
unshift
({
confCode
:
''
,
confValue
:
'全部'
})
this
.
baseData
.
subsys
.
unshift
({
confCode
:
''
,
confValue
:
'全部'
})
// console.log(this.baseData)
// console.log(this.baseData)
},
},
...
@@ -321,18 +321,19 @@ export default {
...
@@ -321,18 +321,19 @@ export default {
// link.style.display = 'none'
// link.style.display = 'none'
// link.href = url
// link.href = url
// link.setAttribute('download', 'excel.xlsx')
// link.setAttribute('download', 'excel.xlsx')
// document.body.appendChild(link)
// document.body.appendChild(link)
// link.click()
// link.click()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
notice
.
errorTips
()
notice
.
errorTips
()
})
})
},
},
/* 接口请求-end */
/* 接口请求-end */
/* onlineNum Int 在网数量
/
/ /
* onlineNum Int 在网数量
offlineNum int 离网数量
//
offlineNum int 离网数量
normalNum Int 正常数量
//
normalNum Int 正常数量
breakdownNum Int 故障数量 */
//
breakdownNum Int 故障数量 */
drawPie
(
params
)
{
drawPie
(
params
)
{
this
.
totalOptions
.
series
[
0
].
data
[
0
].
value
=
params
.
onlineNum
this
.
totalOptions
.
series
[
0
].
data
[
0
].
value
=
params
.
onlineNum
this
.
totalOptions
.
series
[
0
].
data
[
1
].
value
=
params
.
offlineNum
this
.
totalOptions
.
series
[
0
].
data
[
1
].
value
=
params
.
offlineNum
...
...
src/views/trafficManagement/index.vue
View file @
472b21c
...
@@ -185,7 +185,7 @@ export default {
...
@@ -185,7 +185,7 @@ export default {
},
},
methods
:
{
methods
:
{
async
loadBaseData
()
{
async
loadBaseData
()
{
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
this
.
baseData
.
station
=
data
this
.
baseData
.
station
=
data
},
},
...
@@ -216,14 +216,14 @@ export default {
...
@@ -216,14 +216,14 @@ export default {
editTraffic
(
value
)
{
editTraffic
(
value
)
{
// console.log(value)
// console.log(value)
const
params
=
{
const
params
=
{
id
:
''
,
id
:
''
,
trafficCode
:
''
,
trafficCode
:
''
,
stationCode
:
''
,
stationCode
:
''
,
stationName
:
''
,
stationName
:
''
,
merchantName
:
''
,
merchantName
:
''
,
openType
:
''
openType
:
''
}
}
for
(
var
item
in
params
)
{
for
(
var
item
in
params
)
{
params
[
item
]
=
value
[
item
]
params
[
item
]
=
value
[
item
]
}
}
for
(
var
i
in
this
.
baseData
.
station
)
{
for
(
var
i
in
this
.
baseData
.
station
)
{
...
@@ -301,9 +301,10 @@ export default {
...
@@ -301,9 +301,10 @@ export default {
notice
.
okTips
()
notice
.
okTips
()
this
.
loadingGetList
()
this
.
loadingGetList
()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
notice
.
errorTips
()
notice
.
errorTips
()
})
})
}).
catch
(
err
=>
{})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
}
}
}
}
}
}
...
...
src/views/userManage/loginLogs/index.vue
View file @
472b21c
...
@@ -10,6 +10,12 @@
...
@@ -10,6 +10,12 @@
<el-form-item
label=
"用户"
>
<el-form-item
label=
"用户"
>
<el-input
v-model=
"searchForm.userName"
placeholder=
"请输入用户名/姓名/联系电话"
clearable
></el-input>
<el-input
v-model=
"searchForm.userName"
placeholder=
"请输入用户名/姓名/联系电话"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"登录方式"
>
<el-select
v-model=
"searchForm.loginType"
placeholder=
"请选择"
clearable
filterable
>
<el-option
label=
"PC"
value=
"1"
></el-option>
<el-option
label=
"小程序"
value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"登录时间"
>
<el-form-item
label=
"登录时间"
>
<el-date-picker
<el-date-picker
v-model=
"searchForm.loginTime"
v-model=
"searchForm.loginTime"
...
@@ -20,12 +26,6 @@
...
@@ -20,12 +26,6 @@
end-placeholder=
"结束日期"
>
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"登录方式"
>
<el-select
v-model=
"searchForm.loginType"
placeholder=
"请选择"
clearable
filterable
>
<el-option
label=
"PC"
value=
"1"
></el-option>
<el-option
label=
"小程序"
value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
...
@@ -87,7 +87,7 @@ export default {
...
@@ -87,7 +87,7 @@ export default {
tableColumns
:
[{
tableColumns
:
[{
label
:
'登录时间'
,
label
:
'登录时间'
,
prop
:
'loginTime'
,
prop
:
'loginTime'
,
width
:
'200px'
width
:
'200px'
},
{
},
{
label
:
'登录用户'
,
label
:
'登录用户'
,
prop
:
'loginName'
prop
:
'loginName'
...
@@ -97,14 +97,14 @@ export default {
...
@@ -97,14 +97,14 @@ export default {
},
{
},
{
label
:
'联系电话'
,
label
:
'联系电话'
,
prop
:
'mobile'
,
prop
:
'mobile'
,
width
:
'180px'
width
:
'180px'
},
{
},
{
label
:
'登录方式'
,
label
:
'登录方式'
,
prop
:
'loginTypeValue'
prop
:
'loginTypeValue'
},
{
},
{
label
:
'登录设备'
,
label
:
'登录设备'
,
prop
:
'deviceCode'
,
prop
:
'deviceCode'
,
width
:
'300px'
width
:
'300px'
}],
}],
// 页码
// 页码
currentPage
:
1
,
currentPage
:
1
,
...
@@ -125,7 +125,7 @@ export default {
...
@@ -125,7 +125,7 @@ export default {
return
Object
.
assign
(
return
Object
.
assign
(
{
{
pageCount
:
this
.
pageSize
,
pageCount
:
this
.
pageSize
,
pageSize
:
this
.
currentPage
,
pageSize
:
this
.
currentPage
},
},
this
.
searchForm
this
.
searchForm
)
)
...
...
src/views/userManage/role/editDialog.vue
View file @
472b21c
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
:rows=
"2"
:rows=
"2"
placeholder=
"角色描述"
placeholder=
"角色描述"
clearable
clearable
maxlength=
"50"
v-model=
"roleForm.description"
>
v-model=
"roleForm.description"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -37,7 +38,6 @@
...
@@ -37,7 +38,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
RoleReg
,
RoleModify
}
from
'@/api/sys.account'
import
{
RoleReg
,
RoleModify
}
from
'@/api/sys.account'
import
{
mapActions
}
from
'vuex'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
import
RoleTree
from
'./roleTree'
import
RoleTree
from
'./roleTree'
import
{
localRoutes
}
from
'@/router/routes'
import
{
localRoutes
}
from
'@/router/routes'
...
@@ -79,6 +79,7 @@ export default {
...
@@ -79,6 +79,7 @@ export default {
const
clone
=
util
.
deepClone
(
Object
.
values
(
localRoutes
))
const
clone
=
util
.
deepClone
(
Object
.
values
(
localRoutes
))
const
{
menus
}
=
util
.
permision
.
packMenusBtns
(
clone
)
const
{
menus
}
=
util
.
permision
.
packMenusBtns
(
clone
)
const
all
=
util
.
permision
.
flatten
(
clone
)
const
all
=
util
.
permision
.
flatten
(
clone
)
menus
.
find
(
o
=>
o
.
authId
===
'101'
).
disabled
=
true
return
{
menus
,
all
}
return
{
menus
,
all
}
}
}
},
},
...
@@ -109,8 +110,8 @@ export default {
...
@@ -109,8 +110,8 @@ export default {
this
.
$refs
.
roleForm
.
validate
(
vaild
=>
{
this
.
$refs
.
roleForm
.
validate
(
vaild
=>
{
if
(
vaild
)
{
if
(
vaild
)
{
const
authIds
=
this
.
$refs
.
roleTree
.
getCheckedNodes
()
const
authIds
=
this
.
$refs
.
roleTree
.
getCheckedNodes
()
if
(
authIds
.
length
===
0
)
{
if
(
authIds
.
length
===
0
)
{
this
.
$message
.
error
(
'请选择权限!'
)
;
this
.
$message
.
error
(
'请选择权限!'
)
return
return
}
}
var
__p
=
{
...
this
.
roleForm
,
authIds
}
var
__p
=
{
...
this
.
roleForm
,
authIds
}
...
...
src/views/userManage/role/index.vue
View file @
472b21c
...
@@ -43,7 +43,6 @@
...
@@ -43,7 +43,6 @@
<
script
>
<
script
>
import
{
RoleList
,
RoleDetail
}
from
'@/api/sys.account'
import
{
RoleList
,
RoleDetail
}
from
'@/api/sys.account'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
import
util
from
'@/libs/util'
export
default
{
export
default
{
name
:
'FimsRoles'
,
name
:
'FimsRoles'
,
components
:
{
components
:
{
...
@@ -95,7 +94,7 @@ export default {
...
@@ -95,7 +94,7 @@ export default {
RoleList
()
RoleList
()
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
tableData
=
res
this
.
tableData
=
res
const
{
pagination
,
roles
}
=
res
const
{
roles
}
=
res
this
.
tableData
=
roles
this
.
tableData
=
roles
// this.page = pagination
// this.page = pagination
this
.
tableLoading
=
false
this
.
tableLoading
=
false
...
...
src/views/userManage/role/roleTree.vue
View file @
472b21c
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
util
from
'@/libs/util.js'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
checked
:
[]
}
return
{
checked
:
[]
}
...
@@ -40,7 +39,7 @@ export default {
...
@@ -40,7 +39,7 @@ export default {
default
:
{}
default
:
{}
},
},
authIds
:
[],
authIds
:
[],
close
:
false
close
:
Boolean
},
},
watch
:
{
watch
:
{
close
(
value
)
{
close
(
value
)
{
...
@@ -50,11 +49,13 @@ export default {
...
@@ -50,11 +49,13 @@ export default {
handler
(
value
)
{
handler
(
value
)
{
if
(
!
value
)
return
if
(
!
value
)
return
let
chk
=
[]
let
chk
=
[]
let
treeChk
=
[]
let
treeChk
=
[
'101'
]
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
value
.
forEach
(
v
=>
{
value
.
forEach
(
v
=>
{
v
.
authId
+=
''
v
.
authId
+=
''
const
check
=
this
.
find
(
v
.
authId
).
hasOwnProperty
(
'handle'
)
?
chk
:
treeChk
const
node
=
this
.
find
(
v
.
authId
)
if
(
!
node
)
return
true
const
check
=
node
.
hasOwnProperty
(
'handle'
)
?
chk
:
treeChk
check
.
push
(
v
.
authId
)
check
.
push
(
v
.
authId
)
})
})
this
.
$refs
.
tree
.
setCheckedKeys
(
treeChk
)
this
.
$refs
.
tree
.
setCheckedKeys
(
treeChk
)
...
...
src/views/userManage/user/dialogReg.vue
View file @
472b21c
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系方式:"
prop=
"mobile"
>
<el-form-item
label=
"联系方式:"
prop=
"mobile"
>
<el-input
v-model=
"regForm.mobile"
placeholder=
"请输入联系方式"
clearable
></el-input>
<el-input
v-model=
"regForm.mobile"
placeholder=
"请输入联系方式"
maxlength=
"11"
clearable
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
src/views/userManage/user/index.vue
View file @
472b21c
...
@@ -8,16 +8,6 @@
...
@@ -8,16 +8,6 @@
<el-form-item
label=
"所属公司:"
>
<el-form-item
label=
"所属公司:"
>
<el-input
v-model=
"searchForm.companyName"
placeholder=
"请输入公司名"
clearable
></el-input>
<el-input
v-model=
"searchForm.companyName"
placeholder=
"请输入公司名"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"注册时间:"
>
<el-date-picker
v-model=
"searchTimes"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"角色:"
>
<el-form-item
label=
"角色:"
>
<el-select
v-model=
"searchForm.roleId"
clearable
placeholder=
"请选择"
>
<el-select
v-model=
"searchForm.roleId"
clearable
placeholder=
"请选择"
>
<el-option
<el-option
...
@@ -54,6 +44,16 @@
...
@@ -54,6 +44,16 @@
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"注册时间:"
>
<el-date-picker
v-model=
"searchTimes"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
...
@@ -148,7 +148,6 @@ export default {
...
@@ -148,7 +148,6 @@ export default {
searchForm
:
{
searchForm
:
{
userName
:
''
,
userName
:
''
,
companyName
:
''
,
companyName
:
''
,
postCode
:
''
,
status
:
''
,
status
:
''
,
stationCode
:
''
,
stationCode
:
''
,
postCode
:
''
postCode
:
''
...
@@ -184,7 +183,8 @@ export default {
...
@@ -184,7 +183,8 @@ export default {
...
mapActions
(
'd2admin/base'
,
[
'load'
]),
...
mapActions
(
'd2admin/base'
,
[
'load'
]),
// 加载业务所需所有数据
// 加载业务所需所有数据
fetchData
()
{
fetchData
()
{
this
.
loadBaseData
(),
this
.
loadUserList
()
this
.
loadBaseData
()
this
.
loadUserList
()
},
},
async
loadBaseData
()
{
async
loadBaseData
()
{
...
@@ -200,8 +200,8 @@ export default {
...
@@ -200,8 +200,8 @@ export default {
let
endTime
=
''
let
endTime
=
''
if
(
this
.
searchTimes
&&
this
.
searchTimes
.
length
)
{
if
(
this
.
searchTimes
&&
this
.
searchTimes
.
length
)
{
[
startTime
,
endTime
]
=
this
.
searchTimes
[
startTime
,
endTime
]
=
this
.
searchTimes
startTime
=
`
${
startTime
}
00:00:00`
startTime
=
`
${
startTime
}
00:00:00`
endTime
=
`
${
endTime
}
23:59:59`
endTime
=
`
${
endTime
}
23:59:59`
}
}
return
{
return
{
...
this
.
page
,
...
this
.
page
,
...
@@ -255,10 +255,10 @@ export default {
...
@@ -255,10 +255,10 @@ export default {
const
res
=
await
this
.
apiMapping
[
_actionText
]({
userId
:
row
.
userId
})
const
res
=
await
this
.
apiMapping
[
_actionText
]({
userId
:
row
.
userId
})
const
{
operateStatus
}
=
res
const
{
operateStatus
}
=
res
if
(
operateStatus
)
{
if
(
operateStatus
)
{
notice
.
okTips
(
`
${
_actionText
}
成功!`
)
notice
.
okTips
(
`
${
_actionText
}
成功!`
)
this
.
loadUserList
()
this
.
loadUserList
()
}
else
{
}
else
{
notice
.
errorTips
(
`
${
this
.
title
}
失败!`
)
notice
.
errorTips
(
`
${
_actionText
}
失败!`
)
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment