Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
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 e741450b
authored
Jun 02, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
a311b8b5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
37 deletions
src/App.vue
src/main.js
src/pages/monitor/editFence.vue
src/pages/monitor/fenceManagement.vue
src/pages/monitor/userList.vue
src/router/index.js
src/App.vue
View file @
e741450
...
@@ -33,9 +33,17 @@ export default {
...
@@ -33,9 +33,17 @@ export default {
name
:
'app'
,
name
:
'app'
,
data
()
{
data
()
{
return
{
return
{
isQiankun
:
window
.
__POWERED_BY_QIANKUN__
,
logo
:
require
(
'images/logo.png'
)
logo
:
require
(
'images/logo.png'
)
}
}
},
},
watch
:
{
$route
(
to
,
from
)
{
if
(
this
.
isQiankun
)
{
this
.
getBreadcrumb
();
}
}
},
mounted
(){
mounted
(){
// store.dispatch('getDeviceResources')
// store.dispatch('getDeviceResources')
// store.dispatch('getLoginUser').then((res)=>{
// store.dispatch('getLoginUser').then((res)=>{
...
@@ -66,6 +74,29 @@ export default {
...
@@ -66,6 +74,29 @@ export default {
])
])
},
},
methods
:
{
methods
:
{
getBreadcrumb
()
{
let
matched
=
this
.
$route
.
matched
.
filter
(
item
=>
item
.
name
);
// this.$route.matched 可以获取到一个数组,包含当前路由的所有嵌套路径片段的路由记录
const
first
=
matched
[
0
];
const
{
meta
,
path
}
=
first
;
const
basePath
=
'/oEshield#'
;
let
breadcrumb
=
[];
if
(
meta
)
{
const
{
title
,
parentTitle
,
parentPath
}
=
meta
;
if
(
parentTitle
)
{
breadcrumb
.
push
({
name
:
parentTitle
,
path
:
basePath
+
parentPath
})
}
if
(
title
)
{
breadcrumb
.
push
({
name
:
title
,
path
:
basePath
+
path
})
}
this
.
$root
.
parentVuex
.
dispatch
(
'menu/setBreadCrumb'
,
breadcrumb
);
}
},
toggle
(){
toggle
(){
this
.
toggleCollapse
()
this
.
toggleCollapse
()
},
},
...
...
src/main.js
View file @
e741450
...
@@ -51,27 +51,6 @@ function render({ data = {} , container } = {}) {
...
@@ -51,27 +51,6 @@ function render({ data = {} , container } = {}) {
},
},
render
:
h
=>
h
(
App
),
render
:
h
=>
h
(
App
),
}).
$mount
(
container
?
container
.
querySelector
(
'#glsx-sub-system'
)
:
'#glsx-sub-system'
);
}).
$mount
(
container
?
container
.
querySelector
(
'#glsx-sub-system'
)
:
'#glsx-sub-system'
);
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
const
metaTitle
=
to
.
meta
.
title
;
const
thisBreadCrumb
=
data
.
store
.
getters
.
curBreadCrumb
;
if
(
metaTitle
)
{
if
(
thisBreadCrumb
)
{
let
nextChildren
=
{};
nextChildren
=
{
active
:
true
,
menuName
:
metaTitle
,
path
:
'/oEshield#'
+
to
.
path
,
params
:
to
.
params
};
thisBreadCrumb
.
children
.
children
=
nextChildren
;
}
}
else
{
thisBreadCrumb
.
children
.
children
=
''
;
}
data
.
store
.
dispatch
(
'menu/setBreadCrumb'
,
thisBreadCrumb
);
next
();
})
}
}
if
(
!
window
.
__POWERED_BY_QIANKUN__
)
{
if
(
!
window
.
__POWERED_BY_QIANKUN__
)
{
...
...
src/pages/monitor/editFence.vue
View file @
e741450
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<el-form-item
label=
"区域类型"
prop=
"shapeType"
>
<el-form-item
label=
"区域类型"
prop=
"shapeType"
>
<el-radio-group
v-model=
"form.shapeType"
@
change=
"shapeTypeChange"
>
<el-radio-group
v-model=
"form.shapeType"
@
change=
"shapeTypeChange"
>
<!--
<el-radio-button
label=
"4"
value=
"4"
>
行政区域
</el-radio-button>
-->
<!--
<el-radio-button
label=
"4"
value=
"4"
>
行政区域
</el-radio-button>
-->
<
el-radio-button
label=
"1"
value=
"1"
:disabled=
"readonlyStatus"
>
圆形
</el-radio-button
>
<
!--
<el-radio-button
label=
"1"
value=
"1"
:disabled=
"readonlyStatus"
>
圆形
</el-radio-button>
--
>
<el-radio-button
label=
"3"
value=
"3"
:disabled=
"readonlyStatus"
>
多边形
</el-radio-button>
<el-radio-button
label=
"3"
value=
"3"
:disabled=
"readonlyStatus"
>
多边形
</el-radio-button>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
...
@@ -407,7 +407,7 @@ export default{
...
@@ -407,7 +407,7 @@ export default{
form
:
{
form
:
{
fenceName
:
''
,
fenceName
:
''
,
bizFenceType
:
'12'
,
bizFenceType
:
'12'
,
shapeType
:
1
,
shapeType
:
3
,
specialShopId
:
''
,
specialShopId
:
''
,
specialShopName
:
''
,
specialShopName
:
''
,
// fenceNo: '',
// fenceNo: '',
...
@@ -508,7 +508,13 @@ export default{
...
@@ -508,7 +508,13 @@ export default{
userListModalVisible
:
false
,
userListModalVisible
:
false
,
selectedIds
:
[],
selectedIds
:
[],
mapData
:
null
,
mapData
:
null
,
polygonPath
:
[]
polygonPath
:
[
[
"113.989993"
,
"22.588762"
],
[
"113.993298"
,
"22.590585"
],
[
"113.996431"
,
"22.58892"
],
[
"113.99274"
,
"22.586622"
],
[
"113.99008"
,
"22.585592"
]
]
}
}
},
},
...
@@ -597,7 +603,8 @@ export default{
...
@@ -597,7 +603,8 @@ export default{
// });
// });
this
.
$refs
.
fenceMap
.
initFence
({
this
.
$refs
.
fenceMap
.
initFence
({
fenceType
:
'circle'
fenceType
:
'polygon'
,
polygonPath
:
this
.
polygonPath
});
});
this
.
restainFenceName
=
undefined
;
this
.
restainFenceName
=
undefined
;
...
@@ -804,7 +811,7 @@ export default{
...
@@ -804,7 +811,7 @@ export default{
const
params
=
this
.
getParams
();
const
params
=
this
.
getParams
();
params
.
id
=
this
.
fenceId
;
params
.
id
=
this
.
fenceId
;
MONITOR_SERVICE
.
updateFence
(
JSON
.
stringify
(
params
)
).
then
((
res
)
=>
{
MONITOR_SERVICE
.
updateFence
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
//this.closeDialog();
//this.closeDialog();
...
...
src/pages/monitor/fenceManagement.vue
View file @
e741450
...
@@ -126,7 +126,8 @@
...
@@ -126,7 +126,8 @@
<el-table-column
prop=
"shopLevel"
label=
"店级别"
min-width=
"120"
align=
"center"
></el-table-column>
<el-table-column
prop=
"shopLevel"
label=
"店级别"
min-width=
"120"
align=
"center"
></el-table-column>
<el-table-column
prop=
"fenceName"
label=
"围栏名称"
min-width=
"120"
align=
"center"
></el-table-column>
<el-table-column
prop=
"fenceName"
label=
"围栏名称"
min-width=
"120"
align=
"center"
></el-table-column>
<el-table-column
prop=
"bizFenceType"
label=
"围栏类型"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"bizFenceType"
label=
"围栏类型"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"checkResult"
label=
"审核结果"
min-width=
"120"
align=
"center"
></el-table-column>
<el-table-column
prop=
"approvalResult"
label=
"审核结果"
min-width=
"120"
align=
"center"
></el-table-column>
<el-table-column
prop=
"approvalRemark"
label=
"审核结果备注"
min-width=
"120"
align=
"center"
></el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
min-width=
"120"
align=
"center"
>
<el-table-column
fixed=
"right"
label=
"操作"
min-width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"deleteFence(scope.row.fenceId)"
type=
"text"
size=
"medium"
>
删除
</el-button>
<el-button
@
click=
"deleteFence(scope.row.fenceId)"
type=
"text"
size=
"medium"
>
删除
</el-button>
...
...
src/pages/monitor/userList.vue
View file @
e741450
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-select
v-model=
"form.termType"
slot=
"prepend"
style=
"width:100px;"
placeholder=
"请选择"
size=
"small"
>
<el-select
v-model=
"form.termType"
slot=
"prepend"
style=
"width:100px;"
placeholder=
"请选择"
size=
"small"
>
<el-option
label=
"设备号"
value=
"1"
></el-option>
<el-option
label=
"设备号"
value=
"1"
></el-option>
<el-option
label=
"车架号"
value=
"2"
></el-option>
<el-option
label=
"车架号"
value=
"2"
></el-option>
<
el-option
label=
"姓名"
value=
"3"
></el-option
>
<
!--
<el-option
label=
"姓名"
value=
"3"
></el-option>
--
>
<!--
<el-option
label=
"工单号"
value=
"4"
></el-option>
-->
<!--
<el-option
label=
"工单号"
value=
"4"
></el-option>
-->
</el-select>
</el-select>
</el-input>
</el-input>
...
@@ -199,7 +199,7 @@ export default{
...
@@ -199,7 +199,7 @@ export default{
highSearchVisible
:
false
,
highSearchVisible
:
false
,
userImportModalVisible
:
false
,
userImportModalVisible
:
false
,
pageNumber
:
1
,
pageNumber
:
1
,
pageSize
:
1
0
,
pageSize
:
5
0
,
total
:
0
,
total
:
0
,
maxPage
:
1
,
maxPage
:
1
,
resultList
:
[],
resultList
:
[],
...
@@ -448,7 +448,6 @@ export default{
...
@@ -448,7 +448,6 @@ export default{
return
params
;
return
params
;
},
},
infiniteHandler
(
$state
){
infiniteHandler
(
$state
){
if
(
this
.
pageNumber
>
this
.
maxPage
){
if
(
this
.
pageNumber
>
this
.
maxPage
){
$state
.
complete
();
$state
.
complete
();
return
;
return
;
...
@@ -462,15 +461,15 @@ export default{
...
@@ -462,15 +461,15 @@ export default{
const
{
list
}
=
data
;
const
{
list
}
=
data
;
if
(
list
&&
list
.
length
>
0
)
{
if
(
list
&&
list
.
length
>
0
)
{
list
.
map
((
obj
)
=>
{
list
.
map
((
obj
)
=>
{
if
(
obj
.
sn
){
if
(
obj
.
sn
s
){
obj
.
sns
=
obj
.
sn
.
split
(
','
)
obj
.
sns
=
obj
.
sn
s
.
split
(
','
)
}
else
{
}
else
{
obj
.
sns
=
[];
obj
.
sns
=
[];
}
}
});
});
this
.
resultList
=
this
.
resultList
.
concat
(
list
);
this
.
resultList
=
this
.
resultList
.
concat
(
list
);
this
.
total
=
res
.
recordsTotal
;
this
.
total
=
data
.
totalElements
;
this
.
maxPage
=
Math
.
ceil
(
this
.
total
/
this
.
pageSize
)
;
this
.
maxPage
=
data
.
totalPages
;
this
.
pageNumber
++
;
this
.
pageNumber
++
;
$state
.
loaded
()
$state
.
loaded
()
}
else
{
}
else
{
...
@@ -490,7 +489,7 @@ export default{
...
@@ -490,7 +489,7 @@ export default{
BUSINESS_SERVICE
.
getWorkOrderList
(
params
).
then
((
response
)
=>
{
BUSINESS_SERVICE
.
getWorkOrderList
(
params
).
then
((
response
)
=>
{
if
(
Array
.
isArray
(
response
.
data
)){
if
(
Array
.
isArray
(
response
.
data
)){
this
.
tableData
=
response
.
data
;
this
.
tableData
=
response
.
data
;
this
.
total
=
response
.
recordsTotal
;
this
.
total
=
totalElements
;
}
else
{
}
else
{
this
.
tableData
=
[];
this
.
tableData
=
[];
this
.
total
=
0
;
this
.
total
=
0
;
...
...
src/router/index.js
View file @
e741450
...
@@ -232,13 +232,17 @@ const routes = [
...
@@ -232,13 +232,17 @@ const routes = [
{
{
path
:
'fenceManagement'
,
path
:
'fenceManagement'
,
name
:
'fenceManagement'
,
name
:
'fenceManagement'
,
meta
:
{
title
:
'
围栏
管理'
},
meta
:
{
title
:
'
试驶线路
管理'
},
component
:
fenceManagement
component
:
fenceManagement
},
},
{
{
path
:
'editFence'
,
path
:
'editFence'
,
name
:
'editFence'
,
name
:
'editFence'
,
meta
:
{
title
:
'新增围栏'
},
meta
:
{
title
:
'新增围栏'
,
parentTitle
:
'试驶线路管理'
,
parentPath
:
'/monitor/fenceManagement'
},
component
:
editFence
,
component
:
editFence
,
notMenu
:
true
,
notMenu
:
true
,
},{
},{
...
...
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