Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
41a2b41e
Commit
41a2b41e
authored
Jul 18, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历久设备展示
parent
c8ec2a47
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
12 deletions
+22
-12
device-manager-ui/admin/src/views/device/list.vue
device-manager-ui/admin/src/views/device/list.vue
+21
-12
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+1
-0
No files found.
device-manager-ui/admin/src/views/device/list.vue
View file @
41a2b41e
...
...
@@ -12,7 +12,14 @@
<el-link
style=
"margin-left: 10px"
type=
"primary"
:underline=
"false"
>
地图模式
</el-link
>
<el-button
style=
"float:right;margin-right:10px"
type=
"text"
icon=
"el-icon-back"
@
click=
"$router.go(-1)"
size=
"small"
>
返回
</el-button>
<el-button
style=
"float: right; margin-right: 10px"
type=
"text"
icon=
"el-icon-back"
@
click=
"$router.go(-1)"
size=
"small"
>
返回
</el-button
>
<el-divider></el-divider>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
<el-button
...
...
@@ -67,9 +74,6 @@
type=
"danger"
>
未激活:
{{
tableData
.
unActiveCount
}}
台
</el-tag
>
</LayoutTable>
<!-- 设备导入对话框 -->
...
...
@@ -158,7 +162,11 @@ export default {
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/device/downloadTemplate
"
,
{},
{
type
:
"
excel
"
,
fileName
:
"
设备导入模板
"
})
this
.
$download
(
"
/device/downloadTemplate
"
,
{},
{
type
:
"
excel
"
,
fileName
:
"
设备导入模板
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
...
...
@@ -184,15 +192,15 @@ export default {
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
console
.
log
(
"
ids
"
,
this
.
selection
)
console
.
log
(
"
ids
"
,
this
.
selection
)
;
this
.
$download
(
"
/device/exportExcel
"
,
{
"
idList
"
:
this
.
selection
,
"
deviceName
"
:
this
.
$route
.
query
[
"
deviceName
"
],
"
siteId
"
:
this
.
$route
.
query
[
"
siteId
"
],
idList
:
this
.
selection
,
deviceName
:
this
.
$route
.
query
[
"
deviceName
"
],
siteId
:
this
.
$route
.
query
[
"
siteId
"
],
},
{
type
:
"
excel
"
,
fileName
:
"
设备表
"
}
{
type
:
"
excel
"
,
fileName
:
"
设备表
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
...
...
@@ -343,6 +351,8 @@ export default {
formatter
:
this
.
formatter
,
},
{
label
:
"
利旧设备
"
,
prop
:
"
source
"
,
formatter
:
this
.
formatter
},
{
prop
:
"
enabled
"
,
label
:
"
启用/停用
"
,
...
...
@@ -356,7 +366,6 @@ export default {
formatter
:
this
.
formatterDate
,
},
// { label: "激活状态", prop: "active", formatter: this.formatterYES },
{
label
:
"
操作
"
,
width
:
240
,
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
41a2b41e
...
...
@@ -87,6 +87,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
this
.
addDict
(
model
,
"isReceiveMess"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"isReceiveMess"
));
this
.
addDict
(
model
,
"deviceStatus"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"deviceStatus"
));
this
.
addDict
(
model
,
"enabled"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"enabled"
));
this
.
addDict
(
model
,
"source"
,
YesNoEnum
.
getEnumMap
());
super
.
init
(
model
,
context
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment