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
29fc4619
Commit
29fc4619
authored
Jul 13, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备列表导出优化
parent
70795cb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
device-manager-ui/admin/src/views/device/list.vue
device-manager-ui/admin/src/views/device/list.vue
+3
-0
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java
...ava/com/mortals/xhx/module/device/model/DeviceEntity.java
+2
-1
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceVo.java
...java/com/mortals/xhx/module/device/model/vo/DeviceVo.java
+6
-1
No files found.
device-manager-ui/admin/src/views/device/list.vue
View file @
29fc4619
...
...
@@ -184,6 +184,7 @@ export default {
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
console
.
log
(
"
ids
"
,
this
.
selection
)
this
.
$download
(
"
/device/exportExcel
"
,
{
...
...
@@ -210,6 +211,8 @@ export default {
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
siteName
=
this
.
siteName
;
row
.
siteCode
=
this
.
siteCode
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java
View file @
29fc4619
...
...
@@ -27,11 +27,12 @@ public class DeviceEntity extends DeviceVo {
/**
* 设备编码,SN码等,默认为MAC地址
*/
@Excel
(
name
=
"设备编码
,SN码等,默认为MAC地址
"
)
@Excel
(
name
=
"设备编码"
)
private
String
deviceCode
;
/**
* 设备的MAC地址
*/
@Excel
(
name
=
"Mac地址"
,
type
=
Excel
.
Type
.
EXPORT
)
private
String
deviceMac
;
/**
* 站点Id,来源基础服务平台
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceVo.java
View file @
29fc4619
...
...
@@ -31,7 +31,7 @@ public class DeviceVo extends BaseEntityLong {
/**
* 产品编码
*/
@Excel
(
name
=
"产品
"
,
cacheDict
=
"productDict"
)
@Excel
(
name
=
"产品
类型"
,
cacheDict
=
"productDict"
,
type
=
Excel
.
Type
.
IMPORT
)
private
String
productCode
;
...
...
@@ -47,4 +47,9 @@ public class DeviceVo extends BaseEntityLong {
@JSONField
(
deserialize
=
false
,
serialize
=
false
)
@JsonIgnore
private
PictureData
picObj
;
/** 主键ID,主键,自增长列表 */
private
List
<
Long
>
idList
;
}
\ No newline at end of file
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