Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
SHR
/
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 ee133425
authored
Sep 08, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口联调
1 parent
9f65342f
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
325 additions
and
113 deletions
src/assets/style/theme/theme-base.scss
src/assets/style/theme/theme.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/components/d2-icon/index.vue
src/filters/src/index.js
src/layout/header-aside/components/header-datetime/index.vue
src/layout/header-aside/components/header-user/index.vue
src/layout/header-aside/components/libs/util.menu.js
src/layout/header-aside/components/personal-panel/index.vue
src/layout/header-aside/components/personal-panel/personalDialog.vue
src/layout/header-aside/layout.vue
src/libs/util.permision.js
src/plugin/axios/index.js
src/router/routes.js
src/store/modules/d2admin/modules/account.js
src/store/modules/d2admin/modules/auth.js
src/store/modules/d2admin/modules/tsearch.js
src/views/deviceManagement/index.vue
src/views/maintainManagement/index.vue
src/views/materiaOrderManagement/detailDialog.vue
src/views/materiaOrderManagement/index.vue
src/views/materialList/index.vue
src/views/reportingLogs/index.vue
src/views/subSysManagement/index.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/user/dialogReg.vue
src/views/userManage/user/index.vue
src/assets/style/theme/theme-base.scss
View file @
ee13342
...
@@ -117,6 +117,7 @@
...
@@ -117,6 +117,7 @@
// [布局] 顶栏
// [布局] 顶栏
.d2-theme-header
{
.d2-theme-header
{
transition
:
.1s
ease
;
transition
:
.1s
ease
;
// logo区域
// logo区域
.logo-group
{
.logo-group
{
transition
:
width
.3s
;
transition
:
width
.3s
;
...
@@ -283,7 +284,7 @@
...
@@ -283,7 +284,7 @@
flex-direction
:
column
;
flex-direction
:
column
;
overflow
:
hidden
;
overflow
:
hidden
;
.d2-container-full__header
{
.d2-container-full__header
{
padding
:
20px
;
padding
:
12px
20px
0
20px
;
}
}
.d2-container-full__body
{
.d2-container-full__body
{
flex-grow
:
1
;
flex-grow
:
1
;
...
...
src/assets/style/theme/theme.scss
View file @
ee13342
...
@@ -66,6 +66,9 @@
...
@@ -66,6 +66,9 @@
.d2-theme-header-logo
{
.d2-theme-header-logo
{
background-color
:
$theme-header-logo-background-color
background-color
:
$theme-header-logo-background-color
}
}
.header-datetime
{
color
:
$theme-header-item-color
}
// 顶栏菜单空间不足时显示的滚动控件
// 顶栏菜单空间不足时显示的滚动控件
.d2-theme-header-menu
{
.d2-theme-header-menu
{
.d2-theme-header-menu__prev
,
.d2-theme-header-menu__next
{
.d2-theme-header-menu__prev
,
.d2-theme-header-menu__next
{
...
...
src/components/d2-auth/d2-auth-btn.js
View file @
ee13342
...
@@ -84,7 +84,8 @@ export default {
...
@@ -84,7 +84,8 @@ export default {
curBtns
.
forEach
(
btn
=>
curBtns
.
forEach
(
btn
=>
__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
}
`
:
''
},
},
style
:
{
style
:
{
color
:
btn
.
color
color
:
btn
.
color
...
...
src/components/d2-container/components/d2-container-full.vue
View file @
ee13342
<
template
>
<
template
>
<div
class=
"d2-container-full"
>
<div
class=
"d2-container-full"
>
<div
v-if=
"$slots.header"
class=
"d2-container-full__header"
ref=
"header"
>
<div
v-if=
"$slots.header"
class=
"d2-container-full__header"
ref=
"header"
:class=
"this.active?'active':'close'"
>
<slot
name=
"header"
/>
<slot
name=
"header"
/>
<d2-header-switch
/>
</div>
</div>
<div
class=
"d2-container-full__body"
ref=
"body"
>
<div
class=
"d2-container-full__body"
ref=
"body"
>
<slot/>
<slot
/>
</div>
</div>
<div
v-if=
"$slots.footer"
class=
"d2-container-full__footer"
ref=
"footer"
>
<div
v-if=
"$slots.footer"
class=
"d2-container-full__footer"
ref=
"footer"
>
<slot
name=
"footer"
/>
<slot
name=
"footer"
/>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
scroll
from
'./mixins/normal'
import
scroll
from
"./mixins/normal"
;
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
'd2-container-full'
,
name
:
"d2-container-full"
,
mixins
:
[
mixins
:
[
scroll
],
scroll
components
:
{
],
d2HeaderSwitch
:
()
=>
import
(
"./d2-header-switch.vue"
)
mounted
()
{
},
data
()
{
return
{
oHeaderStyle
:
{
padding
:
"20px 20px 0 20px"
}
};
},
computed
:
{
active
()
{
return
this
.
$store
.
state
.
d2admin
.
tsearch
.
active
}
},
mounted
()
{
// 增加滚动事件监听
// 增加滚动事件监听
this
.
addScrollListener
()
this
.
addScrollListener
()
;
},
},
beforeDestroy
()
{
beforeDestroy
()
{
// 移除滚动事件监听
// 移除滚动事件监听
this
.
removeScrollListener
()
this
.
removeScrollListener
()
;
}
}
}
}
;
</
script
>
</
script
>
<
style
lang=
"scss"
>
.d2-container-full
{
.d2-container-full__header
{
position
:
relative
;
transition
:
.1s
linear
;
&.active{
//
border-bottom
:
'1px solid #DCDFE6'
;
//
height
:
auto
;
}
&
.close
{
height
:
0
;
padding
:
0
20px
0
20px
!important
;
form{
opacity
:
0
;
}
border-bottom-color
:rgba
(
0
,
0
,
0
,
0
)
!
important
;
}
.el-form-item
{
margin-bottom
:
16px
;
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/components/d2-container/components/d2-header-switch.vue
0 → 100644
View file @
ee13342
<
template
>
<div
v-if=
"show"
class=
"d2-header-switch"
:class=
"
{ 'd2-header-switch--active': isActive }"
@click="handleClick">
<li
:class=
"$store.state.d2admin.tsearch.active?'fa fa-compress':'fa fa-expand'"
></li>
</div>
</
template
>
<
script
>
import
{
last
,
get
}
from
'lodash'
import
{
mapMutations
}
from
'vuex'
export
default
{
data
()
{
return
{
isActive
:
false
,
path
:
''
}
},
computed
:
{
show
()
{
return
true
}
},
mounted
()
{
setTimeout
(()
=>
this
.
isActive
=
true
,
0
)
},
methods
:
{
...
mapMutations
(
'd2admin/tsearch'
,[
'toggle'
]),
// 点击按钮的时候跳转到源代码
handleClick
()
{
this
.
toggle
()
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.d2-header-switch
{
$
borderRadius
:
30px
;
$
paddingLR
:
30px
;
$
paddingTB
:
2px
;
$
fontSize
:
12px
;
$
rightOuter
:
$
paddingLR
/
2
;
opacity
:
0
;
position
:
absolute
;
z-index
:
2019
;
right
:
20%
;
bottom
:
-17px
;
font-size
:
$
fontSize
;
line-height
:
$
fontSize
;
font-weight
:
bold
;
border-radius
:
0
0
$
borderRadius
$
borderRadius
;
padding
:
$
paddingTB
$
paddingLR
;
background-color
:
rgba
(
#fff
,
1
);
border
:
1px
solid
#DCDFE6
;
border-top
:
none
;
color
:
#606266
;
transition
:
all
.3s
;
@extend
%unable-select;
&.d2-header-switch--active
{
opacity
:
1
;
}
&
:hover
{
//
right
:
-
$
borderRadius
;
//
background-color
:
rgba
(
#000
,
.1
);
}
}
</
style
>
src/components/d2-icon/index.vue
View file @
ee13342
<
template
>
<
template
>
<i
class=
"fa"
:class=
"`fa-$
{name}`" aria-hidden="true">
</i>
<div>
<i
class=
"fa"
v-if=
"isFa"
:class=
"`fa-$
{name}`" aria-hidden="true">
</i>
<i
v-else
:class=
"`el-icon-$
{name}`" aria-hidden="true">
</i>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -11,6 +14,11 @@ export default {
...
@@ -11,6 +14,11 @@ export default {
type
:
String
,
type
:
String
,
required
:
false
,
required
:
false
,
default
:
'font-awesome'
default
:
'font-awesome'
},
isFa
:
{
type
:
Boolean
,
required
:
false
,
default
:
true
}
}
}
}
}
}
...
...
src/filters/src/index.js
View file @
ee13342
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: limin
* @Author: limin
* @Date: 2019-09-06 10:11:24
* @Date: 2019-09-06 10:11:24
* @Last Modified by: limin
* @Last Modified by: limin
* @Last Modified time: 2019-09-0
6 13:30:14
* @Last Modified time: 2019-09-0
8 19:26:56
*/
*/
const
dateFormat
=
(
dateStr
,
time
)
=>
{
const
dateFormat
=
(
dateStr
,
time
)
=>
{
// 得到特定的时间
// 得到特定的时间
...
@@ -20,7 +20,6 @@ const dateFormat = (dateStr, time) => {
...
@@ -20,7 +20,6 @@ const dateFormat = (dateStr, time) => {
}
else
if
(
time
&&
time
.
toLowerCase
()
===
'hh:mm:ss'
)
{
}
else
if
(
time
&&
time
.
toLowerCase
()
===
'hh:mm:ss'
)
{
return
`
${
hh
}
:
${
mm
}
:
${
ss
}
`
return
`
${
hh
}
:
${
mm
}
:
${
ss
}
`
}
else
{
}
else
{
console
.
log
(
1
)
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hh
}
:
${
mm
}
:
${
ss
}
`
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hh
}
:
${
mm
}
:
${
ss
}
`
}
}
}
}
...
...
src/layout/header-aside/components/header-datetime/index.vue
0 → 100644
View file @
ee13342
<
template
>
<div
class=
"header-datetime"
>
{{
time
}}
</div>
</
template
>
<
script
>
import
dayjs
from
"dayjs"
;
const
sFormat
=
"YYYY年MM月DD日"
export
default
{
name
:
'd2-header-datetime'
,
data
()
{
return
{
timeInterval
:
null
,
time
:
dayjs
().
format
(
sFormat
),
}
},
mounted
()
{
// this.timeInterval = setInterval(() => this.refreshTime(), 1000);
},
beforeDestroy
()
{
clearInterval
(
this
.
timeInterval
);
},
methods
:
{
refreshTime
()
{
this
.
time
=
dayjs
().
format
(
sFormat
);
}
}
}
</
script
>
<
style
lang=
"scss"
>
.header-datetime
{
font-weight
:
bold
;
transform
:
translateX
(
-30px
);
}
</
style
>
src/layout/header-aside/components/header-user/index.vue
View file @
ee13342
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<
/el-dropdown-menu
>
<
/el-dropdown-menu
>
<
/el-dropdown>--
>
<
/el-dropdown>--
>
<
div
v
-
popover
:
popover
-
personal
class
=
"d2-mr personal-wrap"
>
<
div
v
-
popover
:
popover
-
personal
class
=
"d2-mr personal-wrap"
>
<
span
class
=
"btn-text"
>
{{
info
.
userName
?
`${info.userName
}
`
:
'未登录'
}}
<
/span
>
<
span
class
=
"btn-text"
>
{{
info
&&
info
.
userName
?
`${info.userName
}
`
:
'未登录'
}}
<
/span
>
<
el
-
popover
ref
=
"popover-personal"
placement
=
"bottom-end"
trigger
=
"hover"
>
<
el
-
popover
ref
=
"popover-personal"
placement
=
"bottom-end"
trigger
=
"hover"
>
<
personal
-
panel
:
user
=
"info"
><
/personal-panel
>
<
personal
-
panel
:
user
=
"info"
><
/personal-panel
>
<
/el-popover
>
<
/el-popover
>
...
...
src/layout/header-aside/components/libs/util.menu.js
View file @
ee13342
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
export
function
elMenuItem
(
createElement
,
menu
)
{
export
function
elMenuItem
(
createElement
,
menu
)
{
return
createElement
(
'el-menu-item'
,
{
props
:
{
index
:
menu
.
path
}
},
[
return
createElement
(
'el-menu-item'
,
{
props
:
{
index
:
menu
.
path
}
},
[
...
menu
.
icon
?
[
...
menu
.
icon
?
[
createElement
(
'i'
,
{
attrs
:
{
class
:
`
fa fa
-
${
menu
.
icon
}
`
}
})
createElement
(
'i'
,
{
attrs
:
{
class
:
`
el-icon
-
${
menu
.
icon
}
`
}
})
]
:
[],
]
:
[],
...
menu
.
icon
===
undefined
&
!
menu
.
iconSvg
?
[
...
menu
.
icon
===
undefined
&
!
menu
.
iconSvg
?
[
createElement
(
'i'
,
{
attrs
:
{
class
:
'fa fa-file-o'
}
})
createElement
(
'i'
,
{
attrs
:
{
class
:
'fa fa-file-o'
}
})
...
@@ -18,7 +18,7 @@ export function elMenuItem (createElement, menu) {
...
@@ -18,7 +18,7 @@ export function elMenuItem (createElement, menu) {
export
function
elSubmenu
(
createElement
,
menu
)
{
export
function
elSubmenu
(
createElement
,
menu
)
{
return
createElement
(
'el-submenu'
,
{
props
:
{
index
:
menu
.
path
}
},
[
return
createElement
(
'el-submenu'
,
{
props
:
{
index
:
menu
.
path
}
},
[
...
menu
.
icon
?
[
...
menu
.
icon
?
[
createElement
(
'i'
,
{
slot
:
'title'
,
attrs
:
{
class
:
`
fa fa
-
${
menu
.
icon
}
`
}
})
createElement
(
'i'
,
{
slot
:
'title'
,
attrs
:
{
class
:
`
el-icon
-
${
menu
.
icon
}
`
}
})
]
:
[],
]
:
[],
...
menu
.
icon
===
undefined
&
!
menu
.
iconSvg
?
[
...
menu
.
icon
===
undefined
&
!
menu
.
iconSvg
?
[
createElement
(
'i'
,
{
slot
:
'title'
,
attrs
:
{
class
:
'fa fa-file-o'
}
})
createElement
(
'i'
,
{
slot
:
'title'
,
attrs
:
{
class
:
'fa fa-file-o'
}
})
...
...
src/layout/header-aside/components/personal-panel/index.vue
View file @
ee13342
<
template
>
<
template
>
<div
class=
"personal"
>
<div
class=
"personal"
>
<div
class=
"personal-panel"
>
<div
class=
"personal-panel"
>
<div
class=
"personal-desc"
>
<div
class=
"personal-desc"
v-if=
"user"
>
<div
class=
"avatar-container"
>
<div
class=
"avatar-container"
>
<el-avatar
<el-avatar
:size=
"'large'"
:size=
"'large'"
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
></el-avatar>
></el-avatar>
</div>
</div>
<div
class=
"name-role"
>
<div
class=
"name-role"
>
<span
class=
"sender"
>
{{
user
.
userName
}}
-
{{
[
'超级管理员'
,
'管理员'
][
user
.
roleType
]
}}
</span>
<span
class=
"sender"
>
{{
user
.
userName
}}
-
{{
[
'超级管理员'
,
'管理员'
][
+
user
.
roleType
]
}}
</span>
</div>
</div>
<div
class=
"registe-info"
>
<div
class=
"registe-info"
>
<span
class=
"registe-info"
>
<span
class=
"registe-info"
>
...
...
src/layout/header-aside/components/personal-panel/personalDialog.vue
View file @
ee13342
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
:append-to-body=
"true"
:append-to-body=
"true"
width=
"600px"
width=
"600px"
>
>
<el-form
label-width=
"120px"
:model=
"user"
>
<el-form
v-if=
"user"
label-width=
"120px"
:model=
"user"
>
<el-form-item
label=
"用户名:"
prop=
"loginName"
>
<el-form-item
label=
"用户名:"
prop=
"loginName"
>
<el-input
disabled
v-model=
"user.loginName"
></el-input>
<el-input
disabled
v-model=
"user.loginName"
></el-input>
</el-form-item>
</el-form-item>
...
...
src/layout/header-aside/layout.vue
View file @
ee13342
...
@@ -23,12 +23,13 @@
...
@@ -23,12 +23,13 @@
<d2-menu-header
flex-box=
"1"
/>
<d2-menu-header
flex-box=
"1"
/>
<!-- 顶栏右侧 -->
<!-- 顶栏右侧 -->
<div
class=
"d2-header-right"
flex-box=
"0"
>
<div
class=
"d2-header-right"
flex-box=
"0"
>
<d2-header-datetime
/>
<!-- 如果你只想在开发环境显示这个按钮请添加 v-if="$env === 'development'" -->
<!-- 如果你只想在开发环境显示这个按钮请添加 v-if="$env === 'development'" -->
<d2-header-search
@
click=
"handleSearchClick"
/>
<d2-header-search
@
click=
"handleSearchClick"
/>
<
d2-header-log
v-if=
"$env === 'development'"
/
>
<
!--
<d2-header-log
v-if=
"$env === 'development'"
/>
--
>
<
d2-header-size/
>
<
!--
<d2-header-size/>
--
>
<d2-header-fullscreen/>
<d2-header-fullscreen/>
<
d2-header-locales
v-if=
"$env === 'development'"
/
>
<
!--
<d2-header-locales
v-if=
"$env === 'development'"
/>
--
>
<d2-header-theme/>
<d2-header-theme/>
<d2-header-color/>
<d2-header-color/>
<d2-header-user/>
<d2-header-user/>
...
@@ -93,6 +94,7 @@ import d2HeaderUser from './components/header-user'
...
@@ -93,6 +94,7 @@ import d2HeaderUser from './components/header-user'
import
d2HeaderLog
from
'./components/header-log'
import
d2HeaderLog
from
'./components/header-log'
import
d2HeaderColor
from
'./components/header-color'
import
d2HeaderColor
from
'./components/header-color'
import
hamburger
from
'./components/hamburger'
import
hamburger
from
'./components/hamburger'
import
d2HeaderDatetime
from
'./components/header-datetime'
import
{
mapState
,
mapGetters
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapGetters
,
mapActions
}
from
'vuex'
import
mixinSearch
from
'./mixins/search'
import
mixinSearch
from
'./mixins/search'
export
default
{
export
default
{
...
@@ -112,7 +114,8 @@ export default {
...
@@ -112,7 +114,8 @@ export default {
d2HeaderUser
,
d2HeaderUser
,
d2HeaderLog
,
d2HeaderLog
,
d2HeaderColor
,
d2HeaderColor
,
hamburger
hamburger
,
d2HeaderDatetime
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -162,8 +165,17 @@ export default {
...
@@ -162,8 +165,17 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
//
注册主题
//
注册主题
@import
'~@/assets/style/theme/register.scss'
;
@import
'~@/assets/style/theme/register.scss'
;
@keyframes
lightflow
{
90
%
{
left
:
-300px
;
/*起始位置*/
}
100
%
{
left
:
300px
;
/*结束位置*/
}
}
.d2-theme-header-logo
{
.d2-theme-header-logo
{
}
}
.logo-all
{
.logo-all
{
width
:
200px
;
width
:
200px
;
img{
img{
...
...
src/libs/util.permision.js
View file @
ee13342
...
@@ -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-0
6 13:48:13
* @Last Modified time: 2019-09-0
8 12:02:47
*/
*/
import
{
cloneDeep
}
from
'lodash'
import
{
cloneDeep
}
from
'lodash'
const
permision
=
{}
const
permision
=
{}
...
@@ -26,7 +26,7 @@ permision.packRoutesBtns = function (resources, idsInPermision) {
...
@@ -26,7 +26,7 @@ permision.packRoutesBtns = function (resources, idsInPermision) {
}
else
{
// 如果取不到 判断是否有父节点 并且父节点是否有auth属性 有 则视为按钮 (同样可以定义标识变量)
}
else
{
// 如果取不到 判断是否有父节点 并且父节点是否有auth属性 有 则视为按钮 (同样可以定义标识变量)
__objResource
=
resources
[
obj
.
parentId
]
__objResource
=
resources
[
obj
.
parentId
]
if
(
__objResource
&&
__objResource
.
auth
)
{
if
(
__objResource
&&
__objResource
.
auth
)
{
__obj
=
__objResource
.
auth
.
find
(
o
=>
o
.
authId
==
=
obj
.
authId
)
__obj
=
__objResource
.
auth
.
find
(
o
=>
o
.
authId
==
obj
.
authId
)
if
(
__oBtnInPermision
[
obj
.
parentId
]
&&
__oBtnInPermision
[
obj
.
parentId
].
length
)
{
if
(
__oBtnInPermision
[
obj
.
parentId
]
&&
__oBtnInPermision
[
obj
.
parentId
].
length
)
{
__oBtnInPermision
[
obj
.
parentId
].
push
(
__obj
)
__oBtnInPermision
[
obj
.
parentId
].
push
(
__obj
)
}
else
{
}
else
{
...
@@ -62,7 +62,7 @@ permision.packAsideMenus = function (resources, idsInPermision) {
...
@@ -62,7 +62,7 @@ permision.packAsideMenus = function (resources, idsInPermision) {
if
(
!
__oMenu
)
{
// 不存在 可能是 按钮 直接继续循环
if
(
!
__oMenu
)
{
// 不存在 可能是 按钮 直接继续循环
return
true
return
true
}
}
if
(
obj
.
parentId
==
=
'0'
)
{
// 取出1级菜单
if
(
obj
.
parentId
==
'0'
)
{
// 取出1级菜单
__aMenusInPermision
.
push
(
__oMenu
)
__aMenusInPermision
.
push
(
__oMenu
)
}
else
{
// 取出子菜单
}
else
{
// 取出子菜单
__aSub
.
push
(
__oMenu
)
__aSub
.
push
(
__oMenu
)
...
@@ -73,7 +73,7 @@ permision.packAsideMenus = function (resources, idsInPermision) {
...
@@ -73,7 +73,7 @@ permision.packAsideMenus = function (resources, idsInPermision) {
*/
*/
let
__parent
=
null
let
__parent
=
null
__aSub
.
forEach
(
obj
=>
{
__aSub
.
forEach
(
obj
=>
{
__parent
=
__aMenusInPermision
.
find
(
menu
=>
menu
.
authId
==
=
obj
.
parentId
)
__parent
=
__aMenusInPermision
.
find
(
menu
=>
menu
.
authId
==
obj
.
parentId
)
if
(
__parent
.
children
)
{
if
(
__parent
.
children
)
{
__parent
.
children
.
push
(
obj
)
__parent
.
children
.
push
(
obj
)
}
else
{
}
else
{
...
...
src/plugin/axios/index.js
View file @
ee13342
...
@@ -18,6 +18,7 @@ function errorCreate (msg) {
...
@@ -18,6 +18,7 @@ function errorCreate (msg) {
throw
error
throw
error
}
}
// 记录和显示错误
// 记录和显示错误
function
errorLog
(
error
)
{
function
errorLog
(
error
)
{
// 添加到日志
// 添加到日志
...
@@ -79,16 +80,13 @@ service.interceptors.request.use(
...
@@ -79,16 +80,13 @@ service.interceptors.request.use(
Promise
.
reject
(
error
)
Promise
.
reject
(
error
)
}
}
)
)
// 响应拦截器
// 响应拦截器
service
.
interceptors
.
response
.
use
(
service
.
interceptors
.
response
.
use
(
response
=>
{
response
=>
{
// dataAxios 是 axios 返回数据中的 data
// dataAxios 是 axios 返回数据中的 data
const
dataAxios
=
response
.
data
const
dataAxios
=
response
.
data
// 这个状态码是和后端约定的
// 这个状态码是和后端约定的
const
{
const
{
code
,
data
}
=
dataAxios
code
,
data
}
=
dataAxios
// 有 code 代表这是一个后端接口 可以进行进一步的判断
// 有 code 代表这是一个后端接口 可以进行进一步的判断
switch
(
+
code
)
{
switch
(
+
code
)
{
case
0
:
case
0
:
...
@@ -100,6 +98,7 @@ service.interceptors.response.use(
...
@@ -100,6 +98,7 @@ service.interceptors.response.use(
break
break
}
}
},
},
error
=>
{
error
=>
{
if
(
error
&&
error
.
response
)
{
if
(
error
&&
error
.
response
)
{
switch
(
error
.
response
.
status
)
{
switch
(
error
.
response
.
status
)
{
...
...
src/router/routes.js
View file @
ee13342
...
@@ -20,7 +20,7 @@ const frameIn = [{
...
@@ -20,7 +20,7 @@ const frameIn = [{
export
const
home
=
{
export
const
home
=
{
path
:
'index'
,
path
:
'index'
,
name
:
'index'
,
name
:
'index'
,
icon
:
'
desktop
'
,
icon
:
'
monitor
'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
title
:
'系统监控'
,
title
:
'系统监控'
,
...
@@ -34,7 +34,8 @@ export const home = {
...
@@ -34,7 +34,8 @@ export const home = {
label
:
'导出'
,
label
:
'导出'
,
type
:
'button'
,
type
:
'button'
,
category
:
'Button'
,
category
:
'Button'
,
handle
:
'exportFile'
handle
:
'exportFile'
,
icon
:
'download'
}]
}]
}
}
export
const
sys
=
[
export
const
sys
=
[
...
@@ -70,7 +71,7 @@ export const sys = [
...
@@ -70,7 +71,7 @@ export const sys = [
export
const
resources
=
{
export
const
resources
=
{
'102'
:
{
'102'
:
{
path
:
'/trafficManagement'
,
path
:
'/trafficManagement'
,
icon
:
'tr
ain
'
,
icon
:
'tr
uck
'
,
name
:
'车辆管理'
,
name
:
'车辆管理'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -95,12 +96,13 @@ export const resources = {
...
@@ -95,12 +96,13 @@ export const resources = {
label
:
'添加车辆'
,
label
:
'添加车辆'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'handleEdit'
handle
:
'handleEdit'
,
icon
:
'plus'
}]
}]
},
},
'103'
:
{
'103'
:
{
path
:
'/subSysManagement'
,
path
:
'/subSysManagement'
,
icon
:
'
th-list
'
,
icon
:
'
cpu
'
,
name
:
'子系统管理'
,
name
:
'子系统管理'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -125,12 +127,13 @@ export const resources = {
...
@@ -125,12 +127,13 @@ export const resources = {
label
:
'添加子系统'
,
label
:
'添加子系统'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'handleEdit'
handle
:
'handleEdit'
,
icon
:
'plus'
}]
}]
},
},
'104'
:
{
'104'
:
{
path
:
'/deviceManagement'
,
path
:
'/deviceManagement'
,
icon
:
't
rain
'
,
icon
:
't
akeaway-box
'
,
name
:
'物料管理'
,
name
:
'物料管理'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -155,19 +158,21 @@ export const resources = {
...
@@ -155,19 +158,21 @@ export const resources = {
label
:
'导出'
,
label
:
'导出'
,
type
:
'button'
,
type
:
'button'
,
category
:
'Button'
,
category
:
'Button'
,
handle
:
'exportFile'
handle
:
'exportFile'
,
icon
:
'download'
},
{
},
{
authId
:
'10404'
,
authId
:
'10404'
,
parentId
:
'104'
,
parentId
:
'104'
,
label
:
'导入'
,
label
:
'导入'
,
type
:
'button'
,
type
:
'button'
,
category
:
'Button'
category
:
'Button'
,
icon
:
'upload2'
}]
}]
},
},
'105'
:
{
'105'
:
{
path
:
'materialList'
,
path
:
'materialList'
,
icon
:
'folder-o'
,
icon
:
'folder-o'
,
icon
:
'
file-text-o
'
,
icon
:
'
tickets
'
,
name
:
'物料列表'
,
name
:
'物料列表'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -179,7 +184,7 @@ export const resources = {
...
@@ -179,7 +184,7 @@ export const resources = {
},
},
'106'
:
{
'106'
:
{
path
:
'/bb'
,
path
:
'/bb'
,
icon
:
'
file-text-o
'
,
icon
:
'
document
'
,
name
:
'单据管理'
,
name
:
'单据管理'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -190,7 +195,7 @@ export const resources = {
...
@@ -190,7 +195,7 @@ export const resources = {
},
},
'10601'
:
{
'10601'
:
{
path
:
'/materiaOrderManagement'
,
path
:
'/materiaOrderManagement'
,
icon
:
'
archive
'
,
icon
:
'
document-copy
'
,
name
:
'物料订单管理'
,
name
:
'物料订单管理'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -215,12 +220,13 @@ export const resources = {
...
@@ -215,12 +220,13 @@ export const resources = {
label
:
'订单下载'
,
label
:
'订单下载'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'exportFile'
handle
:
'exportFile'
,
icon
:
'download'
}]
}]
},
},
'10602'
:
{
'10602'
:
{
path
:
'/maintainManagement'
,
path
:
'/maintainManagement'
,
icon
:
'
list-ol
'
,
icon
:
'
finished
'
,
name
:
'作业单管理'
,
name
:
'作业单管理'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -240,12 +246,13 @@ export const resources = {
...
@@ -240,12 +246,13 @@ export const resources = {
label
:
'导出订单'
,
label
:
'导出订单'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'exportOrder'
handle
:
'exportOrder'
,
icon
:
'download'
}]
}]
},
},
'107'
:
{
'107'
:
{
path
:
'/users'
,
path
:
'/users'
,
icon
:
'user
s
'
,
icon
:
'user'
,
name
:
'帐号管理'
,
name
:
'帐号管理'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -257,7 +264,7 @@ export const resources = {
...
@@ -257,7 +264,7 @@ export const resources = {
'10701'
:
{
'10701'
:
{
path
:
'/user'
,
path
:
'/user'
,
name
:
'用户管理'
,
name
:
'用户管理'
,
icon
:
'user'
,
icon
:
'user
-solid
'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
title
:
'用户管理'
,
title
:
'用户管理'
,
...
@@ -301,14 +308,15 @@ export const resources = {
...
@@ -301,14 +308,15 @@ export const resources = {
label
:
'创建用户'
,
label
:
'创建用户'
,
category
:
'action'
,
category
:
'action'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'handleRegister'
handle
:
'handleRegister'
,
icon
:
'plus'
}],
}],
component
:
_import
(
'userManage/user'
)
component
:
_import
(
'userManage/user'
)
},
},
'10702'
:
{
'10702'
:
{
path
:
'/role'
,
path
:
'/role'
,
name
:
'权限管理'
,
name
:
'权限管理'
,
icon
:
'
sitemap
'
,
icon
:
'
open
'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
title
:
'权限管理'
,
title
:
'权限管理'
,
...
@@ -320,7 +328,8 @@ export const resources = {
...
@@ -320,7 +328,8 @@ export const resources = {
parentId
:
'10702'
,
parentId
:
'10702'
,
label
:
'创建角色'
,
label
:
'创建角色'
,
handle
:
'handleEdit'
,
handle
:
'handleEdit'
,
type
:
'button'
type
:
'button'
,
icon
:
'plus'
},
{
},
{
authId
:
'1070202'
,
authId
:
'1070202'
,
parentId
:
'10702'
,
parentId
:
'10702'
,
...
@@ -333,7 +342,7 @@ export const resources = {
...
@@ -333,7 +342,7 @@ export const resources = {
'10703'
:
{
'10703'
:
{
path
:
'/loginLogs'
,
path
:
'/loginLogs'
,
name
:
'登录日志'
,
name
:
'登录日志'
,
icon
:
'
file-text
'
,
icon
:
'
tickets
'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
title
:
'登录日志'
,
title
:
'登录日志'
,
...
@@ -344,7 +353,7 @@ export const resources = {
...
@@ -344,7 +353,7 @@ export const resources = {
},
},
'108'
:
{
'108'
:
{
path
:
'/reportingLogs'
,
path
:
'/reportingLogs'
,
icon
:
'upload'
,
icon
:
'upload
2
'
,
name
:
'上报日志'
,
name
:
'上报日志'
,
meta
:
{
meta
:
{
auth
:
true
,
auth
:
true
,
...
@@ -359,7 +368,8 @@ export const resources = {
...
@@ -359,7 +368,8 @@ export const resources = {
label
:
'导出'
,
label
:
'导出'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
type
:
'button'
,
handle
:
'handleExport'
handle
:
'handleExport'
,
icon
:
'download'
}]
}]
}
}
}
}
...
...
src/store/modules/d2admin/modules/account.js
View file @
ee13342
...
@@ -2,7 +2,7 @@ import util from '@/libs/util.js'
...
@@ -2,7 +2,7 @@ import util from '@/libs/util.js'
import
{
cloneDeep
}
from
'lodash'
import
{
cloneDeep
}
from
'lodash'
import
{
AccountLogin
}
from
'@api/sys.account'
import
{
AccountLogin
}
from
'@api/sys.account'
import
{
SUPPER_ADMIN
}
from
'@/common/constants'
import
{
SUPPER_ADMIN
}
from
'@/common/constants'
import
{
resources
as
sources
,
home
}
from
'@/router/routes'
import
{
localRoutes
}
from
'@/router/routes'
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
actions
:
{
actions
:
{
...
@@ -24,16 +24,16 @@ export default {
...
@@ -24,16 +24,16 @@ 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
({
...
sources
,
[
home
.
meta
.
authId
]:
home
}
))
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
)
&&
delete
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
})
// 强制初始化基础数据
//
//
强制初始化基础数据
dispatch
(
'd2admin/base/init'
,
null
,
{
root
:
true
})
dispatch
(
'd2admin/base/init'
,
null
,
{
root
:
true
})
// 用户登录后从持久化数据加载一系列的设置
//
//
用户登录后从持久化数据加载一系列的设置
await
dispatch
(
'load'
)
await
dispatch
(
'load'
)
// 结束
// 结束
resolve
()
resolve
()
...
...
src/store/modules/d2admin/modules/auth.js
View file @
ee13342
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
* @Author: limin
* @Author: limin
* @Date: 2019-08-27 17:25:12
* @Date: 2019-08-27 17:25:12
* @Last Modified by: limin
* @Last Modified by: limin
* @Last Modified time: 2019-09-0
6 13:12:51
* @Last Modified time: 2019-09-0
8 12:48:44
*/
*/
import
util
from
'@/libs/util.js'
import
util
from
'@/libs/util.js'
import
router
from
'@/router'
import
router
from
'@/router'
import
{
localRoutes
,
home
,
frameInRoutes
,
sys
}
from
'@/router/routes'
import
{
localRoutes
,
frameInRoutes
,
sys
}
from
'@/router/routes'
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
state
:
{
state
:
{
...
@@ -119,7 +119,7 @@ export default {
...
@@ -119,7 +119,7 @@ export default {
const
__source
=
await
dispatch
(
'load'
)
const
__source
=
await
dispatch
(
'load'
)
// 过滤资源点 并动态添加到路由
// 过滤资源点 并动态添加到路由
const
{
route
,
btn
}
=
util
.
permision
.
packRoutesBtns
(
localRoutes
,
__source
)
const
{
route
,
btn
}
=
util
.
permision
.
packRoutesBtns
(
localRoutes
,
__source
)
frameInRoutes
[
0
].
children
=
[
home
,
...
route
,
...
sys
]
frameInRoutes
[
0
].
children
=
[...
route
,
...
sys
]
router
.
addRoutes
(
frameInRoutes
)
router
.
addRoutes
(
frameInRoutes
)
state
.
btns
=
btn
state
.
btns
=
btn
await
commit
(
'd2admin/page/init'
,
frameInRoutes
,
{
root
:
true
})
await
commit
(
'd2admin/page/init'
,
frameInRoutes
,
{
root
:
true
})
...
...
src/store/modules/d2admin/modules/tsearch.js
0 → 100644
View file @
ee13342
export
default
{
namespaced
:
true
,
state
:
{
// 列表搜索框状态
active
:
true
},
mutations
:
{
/**
* @description 切换状态
* @param {Object} state state
*/
toggle
(
state
)
{
state
.
active
=
!
state
.
active
},
/**
* @description 设置搜索框状态
* @param {Object} state state
* @param {Boolean} active active
*/
set
(
state
,
active
)
{
state
.
active
=
active
}
}
}
src/views/deviceManagement/index.vue
View file @
ee13342
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:inline=
"true"
:inline=
"true"
:model=
"searchForm"
:model=
"searchForm"
label-width=
"85px"
label-width=
"85px"
slot=
"header"
>
>
<el-form-item
label=
"物料"
>
<el-form-item
label=
"物料"
>
<el-input
v-model=
"searchForm.keyWord"
placeholder=
"请输入物料代码/编码/名称"
clearable
></el-input>
<el-input
v-model=
"searchForm.keyWord"
placeholder=
"请输入物料代码/编码/名称"
clearable
></el-input>
...
@@ -20,7 +21,7 @@
...
@@ -20,7 +21,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
...
src/views/maintainManagement/index.vue
View file @
ee13342
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:inline=
"true"
:inline=
"true"
:model=
"searchForm"
:model=
"searchForm"
label-width=
"100px"
label-width=
"100px"
slot=
"header"
>
>
<el-form-item
<el-form-item
v-for=
"(item, index) in searchFormArr"
v-for=
"(item, index) in searchFormArr"
...
@@ -40,7 +41,7 @@
...
@@ -40,7 +41,7 @@
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
@@ -67,7 +68,7 @@
...
@@ -67,7 +68,7 @@
:key=
"index"
:key=
"index"
:label=
"item.label"
:label=
"item.label"
:prop=
"item.prop"
:prop=
"item.prop"
:width=
"item.width"
:width=
"item.width
||200
"
align=
"center"
align=
"center"
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -82,6 +83,8 @@
...
@@ -82,6 +83,8 @@
<el-table-column
<el-table-column
align=
"center"
align=
"center"
label=
"操作"
label=
"操作"
fixed=
"right"
width=
"100"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<auth-button
<auth-button
...
@@ -245,7 +248,8 @@ export default {
...
@@ -245,7 +248,8 @@ export default {
}
}
},
{
},
{
label
:
'故障描述'
,
label
:
'故障描述'
,
prop
:
'downDescription'
prop
:
'downDescription'
,
width
:
'300'
},
{
},
{
label
:
'处理方式'
,
label
:
'处理方式'
,
prop
:
'treatment'
,
prop
:
'treatment'
,
...
@@ -352,8 +356,7 @@ export default {
...
@@ -352,8 +356,7 @@ export default {
params
.
selectEndTime
=
params
.
createTime
[
1
]
?
params
.
createTime
[
1
]
+
' '
+
'23:59:59'
:
''
params
.
selectEndTime
=
params
.
createTime
[
1
]
?
params
.
createTime
[
1
]
+
' '
+
'23:59:59'
:
''
delete
params
.
createTime
delete
params
.
createTime
exportApi
(
params
).
then
(
res
=>
{
exportApi
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$open
(
res
.
url
)
window
.
location
.
href
=
res
.
url
notice
.
okTips
()
notice
.
okTips
()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
...
@@ -368,14 +371,12 @@ export default {
...
@@ -368,14 +371,12 @@ export default {
// 页码
// 页码
handleSizeChange
(
value
)
{
handleSizeChange
(
value
)
{
console
.
log
(
value
)
this
.
pageSize
=
value
this
.
pageSize
=
value
// 调接口
// 调接口
this
.
loadingGetList
()
this
.
loadingGetList
()
},
},
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
console
.
log
(
value
)
this
.
currentPage
=
value
this
.
currentPage
=
value
// 调接口
// 调接口
this
.
loadingGetList
()
this
.
loadingGetList
()
...
...
src/views/materiaOrderManagement/detailDialog.vue
View file @
ee13342
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
width=
"800px"
width=
"800px"
>
>
<!--
<embed
src=
"file:///D:/project需求/高铁/物料申请单_20190830150550.pdf"
width=
"100%"
height=
"800px"
></embed>
-->
<!--
<embed
src=
"file:///D:/project需求/高铁/物料申请单_20190830150550.pdf"
width=
"100%"
height=
"800px"
></embed>
-->
<iframe
width=
"100%"
height=
"
80
0px"
scrolling=
"yes"
frameborder=
"0"
:src=
"pdfUrl"
></iframe>
<iframe
width=
"100%"
height=
"
68
0px"
scrolling=
"yes"
frameborder=
"0"
:src=
"pdfUrl"
></iframe>
<!--
<iframe
width=
"100%"
height=
"550px"
scrolling=
"yes"
frameborder=
"0"
src=
"https://pan.baidu.com/s/1Juauwf2c5nkNZuj6rc0W0Q"
></iframe>
-->
<!--
<iframe
width=
"100%"
height=
"550px"
scrolling=
"yes"
frameborder=
"0"
src=
"https://pan.baidu.com/s/1Juauwf2c5nkNZuj6rc0W0Q"
></iframe>
-->
<!--
<embed
width=
"100%"
height=
"800px"
src=
"https://web.stanford.edu/~xgzhou/zhou_book2017.pdf"
>
-->
<!--
<embed
width=
"100%"
height=
"800px"
src=
"https://web.stanford.edu/~xgzhou/zhou_book2017.pdf"
>
-->
</el-dialog>
</el-dialog>
...
@@ -41,8 +41,13 @@ export default {
...
@@ -41,8 +41,13 @@ export default {
}
}
</
script
>
</
script
>
<
style
>
<
style
lang=
"scss"
>
.detailDialog
.el-dialog__body
{
.detailDialog
{
padding
:
0
20px
;
.el-dialog__header,
.el-dialog__body
{
padding
:
0
;
padding
:
0
;
background-color
:
#202223
}
}
}
</
style
>
</
style
>
src/views/materiaOrderManagement/index.vue
View file @
ee13342
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:inline=
"true"
:inline=
"true"
:model=
"searchForm"
:model=
"searchForm"
label-width=
"85px"
label-width=
"85px"
slot=
"header"
>
>
<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>
...
@@ -38,7 +39,7 @@
...
@@ -38,7 +39,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
@@ -244,9 +245,8 @@ export default {
...
@@ -244,9 +245,8 @@ export default {
params
.
endTime
=
params
.
createTime
?
params
.
createTime
[
1
]
+
' '
+
'23:59:59'
:
''
params
.
endTime
=
params
.
createTime
?
params
.
createTime
[
1
]
+
' '
+
'23:59:59'
:
''
delete
params
.
createTime
delete
params
.
createTime
exportApi
(
params
).
then
(
res
=>
{
exportApi
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$open
(
res
.
url
)
window
.
location
.
href
=
res
.
url
// notice.okTips()
notice
.
okTips
()
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
})
})
...
@@ -280,12 +280,12 @@ export default {
...
@@ -280,12 +280,12 @@ export default {
// 表格-查看详情
// 表格-查看详情
handleDetail
(
row
)
{
handleDetail
(
row
)
{
console
.
log
(
row
)
console
.
log
(
row
)
d
etail
Api
({
d
ownload
Api
({
orderCode
:
row
.
orderCode
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
dialogTitle
=
row
.
orderType
this
.
dialogTitle
=
row
.
orderType
this
.
pdfUrl
=
res
.
signatureU
rl
this
.
pdfUrl
=
res
.
u
rl
this
.
detailVisible
=
!
this
.
detailVisible
this
.
detailVisible
=
!
this
.
detailVisible
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
notice
.
errorTips
()
notice
.
errorTips
()
...
...
src/views/materialList/index.vue
View file @
ee13342
...
@@ -5,12 +5,13 @@
...
@@ -5,12 +5,13 @@
:inline=
"true"
:inline=
"true"
:model=
"searchForm"
:model=
"searchForm"
label-width=
"85px"
label-width=
"85px"
slot=
"header"
>
>
<el-form-item
label=
"物料"
>
<el-form-item
label=
"物料"
>
<el-input
v-model=
"searchForm.keyWord"
placeholder=
"请输入物料代码/编码/名称"
clearable
></el-input>
<el-input
v-model=
"searchForm.keyWord"
placeholder=
"请输入物料代码/编码/名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
...
src/views/reportingLogs/index.vue
View file @
ee13342
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:inline=
"true"
:inline=
"true"
:model=
"searchForm"
:model=
"searchForm"
label-width=
"85px"
label-width=
"85px"
slot=
"header"
>
>
<el-form-item
label=
"上报时间"
>
<el-form-item
label=
"上报时间"
>
<el-date-picker
<el-date-picker
...
@@ -32,7 +33,7 @@
...
@@ -32,7 +33,7 @@
<el-input
v-model=
"searchForm.subSystemCode"
placeholder=
"请输入子系统编号"
clearable
></el-input>
<el-input
v-model=
"searchForm.subSystemCode"
placeholder=
"请输入子系统编号"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
...
src/views/subSysManagement/index.vue
View file @
ee13342
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:inline=
"true"
:inline=
"true"
:model=
"searchForm"
:model=
"searchForm"
label-width=
"85px"
label-width=
"85px"
slot=
"header"
>
>
<el-form-item
label=
"子系统编号"
>
<el-form-item
label=
"子系统编号"
>
<el-input
v-model=
"searchForm.subsystemCode"
placeholder=
"请输入子系统编号"
clearable
></el-input>
<el-input
v-model=
"searchForm.subsystemCode"
placeholder=
"请输入子系统编号"
clearable
></el-input>
...
@@ -25,7 +26,7 @@
...
@@ -25,7 +26,7 @@
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入生产厂家"
clearable
></el-input>
<el-input
v-model=
"searchForm.merchantName"
placeholder=
"请输入生产厂家"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
@@ -53,7 +54,7 @@
...
@@ -53,7 +54,7 @@
:key=
"index"
:key=
"index"
:label=
"item.label"
:label=
"item.label"
:prop=
"item.prop"
:prop=
"item.prop"
:width=
"item.width"
:width=
"item.width
||160
"
align=
"center"
align=
"center"
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -68,6 +69,7 @@
...
@@ -68,6 +69,7 @@
<el-table-column
<el-table-column
align=
"center"
align=
"center"
label=
"操作"
label=
"操作"
fix=
"right"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<auth-button
<auth-button
...
@@ -159,7 +161,8 @@ export default {
...
@@ -159,7 +161,8 @@ export default {
prop
:
'trafficCode'
prop
:
'trafficCode'
},
{
},
{
label
:
'生产厂家'
,
label
:
'生产厂家'
,
prop
:
'merchantName'
prop
:
'merchantName'
,
width
:
'220'
},
{
},
{
label
:
'发送结点序列'
,
label
:
'发送结点序列'
,
prop
:
'sendSequence'
prop
:
'sendSequence'
...
@@ -264,20 +267,17 @@ export default {
...
@@ -264,20 +267,17 @@ export default {
/* 接口请求-end */
/* 接口请求-end */
// 搜索
// 搜索
handleSearch
()
{
handleSearch
()
{
console
.
log
(
this
.
searchForm
)
this
.
loadingGetList
()
this
.
loadingGetList
()
},
},
// 页码
// 页码
handleSizeChange
(
value
)
{
handleSizeChange
(
value
)
{
console
.
log
(
value
)
this
.
pageSize
=
value
this
.
pageSize
=
value
// 调接口
// 调接口
this
.
loadingGetList
()
this
.
loadingGetList
()
},
},
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
console
.
log
(
value
)
this
.
currentPage
=
value
this
.
currentPage
=
value
// 调接口
// 调接口
this
.
loadingGetList
()
this
.
loadingGetList
()
...
@@ -300,7 +300,6 @@ export default {
...
@@ -300,7 +300,6 @@ export default {
},
},
handleEditConfirm
()
{
handleEditConfirm
()
{
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
editForm
)))
var
editParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
editForm
))
var
editParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
editForm
))
this
.
editSubSystem
(
this
.
editForm
)
this
.
editSubSystem
(
this
.
editForm
)
},
},
...
...
src/views/system/login/index.vue
View file @
ee13342
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
time
:
dayjs
().
format
(
"HH:mm:ss"
),
time
:
dayjs
().
format
(
"HH:mm:ss"
),
// 表单
// 表单
formLogin
:
{
formLogin
:
{
loginName
:
"test0001
"
,
loginName
:
'test0001'
,
//"limin3
",
password
:
"123456"
,
password
:
"123456"
,
loginType
:
LOGIN_TYPE
loginType
:
LOGIN_TYPE
},
},
...
...
src/views/systemMonitor/index.vue
View file @
ee13342
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
...
src/views/trafficManagement/index.vue
View file @
ee13342
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:inline=
"true"
:inline=
"true"
:model=
"searchForm"
:model=
"searchForm"
label-width=
"85px"
label-width=
"85px"
slot=
"header"
>
>
<el-form-item
label=
"车辆编号"
>
<el-form-item
label=
"车辆编号"
>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
></el-input>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
></el-input>
...
@@ -30,7 +31,7 @@
...
@@ -30,7 +31,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
@@ -233,7 +234,6 @@ export default {
...
@@ -233,7 +234,6 @@ export default {
}
}
!
value
.
id
?
delete
params
.
id
:
delete
params
.
trafficCode
!
value
.
id
?
delete
params
.
id
:
delete
params
.
trafficCode
params
.
method
=
value
.
id
?
methods
.
Edit
:
methods
.
Add
params
.
method
=
value
.
id
?
methods
.
Edit
:
methods
.
Add
// console.log(params)
editApi
(
params
).
then
(
res
=>
{
editApi
(
params
).
then
(
res
=>
{
this
.
handleEditClose
()
this
.
handleEditClose
()
notice
.
okTips
()
notice
.
okTips
()
...
@@ -245,7 +245,6 @@ export default {
...
@@ -245,7 +245,6 @@ export default {
/* 接口请求-end */
/* 接口请求-end */
// 搜索
// 搜索
handleSearch
()
{
handleSearch
()
{
console
.
log
(
this
.
searchForm
)
this
.
loadingGetList
()
this
.
loadingGetList
()
},
},
...
...
src/views/userManage/loginLogs/index.vue
View file @
ee13342
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:inline=
"true"
:inline=
"true"
:model=
"searchForm"
:model=
"searchForm"
label-width=
"85px"
label-width=
"85px"
slot=
"header"
>
>
<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>
...
@@ -26,7 +27,7 @@
...
@@ -26,7 +27,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
@@ -85,7 +86,8 @@ export default {
...
@@ -85,7 +86,8 @@ export default {
tableData
:
[],
tableData
:
[],
tableColumns
:
[{
tableColumns
:
[{
label
:
'登录时间'
,
label
:
'登录时间'
,
prop
:
'loginTime'
prop
:
'loginTime'
,
width
:
'200px'
},
{
},
{
label
:
'登录用户'
,
label
:
'登录用户'
,
prop
:
'loginName'
prop
:
'loginName'
...
@@ -94,13 +96,15 @@ export default {
...
@@ -94,13 +96,15 @@ export default {
prop
:
'userName'
prop
:
'userName'
},
{
},
{
label
:
'联系电话'
,
label
:
'联系电话'
,
prop
:
'mobile'
prop
:
'mobile'
,
width
:
'180px'
},
{
},
{
label
:
'登录方式'
,
label
:
'登录方式'
,
prop
:
'loginTypeValue'
prop
:
'loginTypeValue'
},
{
},
{
label
:
'登录设备'
,
label
:
'登录设备'
,
prop
:
'deviceCode'
prop
:
'deviceCode'
,
width
:
'300px'
}],
}],
// 页码
// 页码
currentPage
:
1
,
currentPage
:
1
,
...
...
src/views/userManage/user/dialogReg.vue
View file @
ee13342
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
</el-dialog>
</el-dialog>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Reg
}
from
'@/api/sys.account'
import
{
Reg
,
AccountModify
}
from
'@/api/sys.account'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
import
{
RegistType
}
from
'@/common/constants'
import
{
RegistType
}
from
'@/common/constants'
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
watch
:
{
watch
:
{
editData
:
{
editData
:
{
handler
:
function
(
value
)
{
handler
:
function
(
value
)
{
this
.
title
=
value
&&
value
.
i
d
?
'编辑用户信息'
:
'创建用户'
this
.
title
=
value
&&
value
.
userI
d
?
'编辑用户信息'
:
'创建用户'
Object
.
assign
(
this
.
regForm
,
value
)
Object
.
assign
(
this
.
regForm
,
value
)
},
},
immediate
:
true
immediate
:
true
...
@@ -182,7 +182,8 @@ export default {
...
@@ -182,7 +182,8 @@ export default {
if
(
vaild
)
{
if
(
vaild
)
{
var
__p
=
this
.
regForm
var
__p
=
this
.
regForm
__p
.
createType
=
RegistType
.
BY_ADMIN
__p
.
createType
=
RegistType
.
BY_ADMIN
Reg
(
__p
).
then
(
res
=>
{
const
fMethod
=
__p
.
userId
?
AccountModify
:
Reg
fMethod
(
__p
).
then
(
res
=>
{
const
{
operateStatus
}
=
res
const
{
operateStatus
}
=
res
if
(
operateStatus
)
{
if
(
operateStatus
)
{
notice
.
okTips
(
`
${
this
.
title
}
成功!`
)
notice
.
okTips
(
`
${
this
.
title
}
成功!`
)
...
...
src/views/userManage/user/index.vue
View file @
ee13342
<!-- 车辆管理 -->
<!-- 车辆管理 -->
<
template
>
<
template
>
<d2-container
class=
"user"
>
<d2-container
class=
"user"
>
<el-form
:inline=
"true"
:model=
"searchForm"
label-width=
"85px"
>
<el-form
:inline=
"true"
:model=
"searchForm"
label-width=
"85px"
slot=
"header"
>
<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>
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<auth-button
category=
"action"
label=
"创建用户"
></auth-button>
<auth-button
category=
"action"
label=
"创建用户"
></auth-button>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
:data=
"tableData"
v-loading=
"tableLoading"
border
>
<el-table
:data=
"tableData"
v-loading=
"tableLoading"
border
>
<el-table-column
align=
"center"
width=
"60px"
label=
"序号"
type=
"index"
></el-table-column>
<el-table-column
align=
"center"
width=
"60px"
label=
"序号"
type=
"index"
></el-table-column>
<el-table-column
label=
"用户名"
prop=
"loginName"
width=
"200"
align=
"center"
></el-table-column>
<el-table-column
label=
"用户名"
prop=
"loginName"
width=
"200"
align=
"center"
></el-table-column>
<el-table-column
label=
"角色"
prop=
"roleName"
width=
"140"
align=
"center"
></el-table-column>
<el-table-column
label=
"角色"
prop=
"roleName"
width=
"140"
align=
"center"
></el-table-column>
...
@@ -252,7 +252,7 @@ export default {
...
@@ -252,7 +252,7 @@ export default {
// 列表各种操作
// 列表各种操作
async
handleOperation
(
row
,
e
)
{
async
handleOperation
(
row
,
e
)
{
const
_actionText
=
e
.
target
.
innerText
const
_actionText
=
e
.
target
.
innerText
const
res
=
await
this
.
apiMapping
[
_actionText
]({
userId
:
row
.
i
d
})
const
res
=
await
this
.
apiMapping
[
_actionText
]({
userId
:
row
.
userI
d
})
const
{
operateStatus
}
=
res
const
{
operateStatus
}
=
res
if
(
operateStatus
)
{
if
(
operateStatus
)
{
notice
.
okTips
(
`
${
_actionText
}
成功!`
)
notice
.
okTips
(
`
${
_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