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
b13d1199
Commit
b13d1199
authored
Jul 15, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志展示修改
parent
0de09262
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
65 deletions
+78
-65
device-manager-ui/admin/src/views/device/log/list.vue
device-manager-ui/admin/src/views/device/log/list.vue
+76
-62
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceLogController.java
...om/mortals/xhx/module/device/web/DeviceLogController.java
+2
-3
No files found.
device-manager-ui/admin/src/views/device/log/list.vue
View file @
b13d1199
<
template
>
<
template
>
<div
class=
"page"
>
<div
class=
"page"
>
<LayoutTable
:data=
"tableData"
notAdd
notDel
:config=
"tableConfig"
>
<LayoutTable
:data=
"tableData"
notAdd
notDel
:config=
"tableConfig"
>
</LayoutTable>
</LayoutTable>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
/** 表单弹出框模式需引入 */
/** 表单弹出框模式需引入 */
import
dialogShow
from
"
./dialogshow
"
;
import
dialogShow
from
"
./dialogshow
"
;
import
table
from
"
@/assets/mixins/table
"
;
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
export
default
{
name
:
"
DeviceLog
"
,
name
:
"
DeviceLog
"
,
components
:
{
dialogShow
},
components
:
{
dialogShow
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{
created
()
{},
},
methods
:
{
methods
:
{
/** 重写新增方法 */
toAdd
(
row
)
{
/** 重写新增方法 */
this
.
$refs
.
dialogform
.
add
(
row
);
toAdd
(
row
)
{
},
this
.
$refs
.
dialogform
.
add
(
row
);
/** 重写编辑方法 */
},
toEdit
(
row
)
{
/** 重写编辑方法 */
this
.
$refs
.
dialogform
.
edit
(
row
);
toEdit
(
row
)
{
},
this
.
$refs
.
dialogform
.
edit
(
row
);
/** 重写查看方法 */
toView
(
row
)
{
},
this
.
$refs
.
dialogform
.
view
(
row
);
/** 重写查看方法 */
},
// toView(row) {
},
// this.$refs.dialogform.view(row);
data
()
{
// },
return
{
config
:
{
},
search
:
[
data
()
{
{
return
{
name
:
"
deviceCode
"
,
config
:
{
type
:
"
text
"
,
search
:
[
label
:
"
设备编号
"
,
{
fuzzy
:
true
name
:
'
deviceNum
'
,
type
:
'
text
'
,
label
:
'
设备编号
'
,
},
},
{
name
:
"
logType
"
,
type
:
"
select
"
,
label
:
"
日志类型
"
,
},
],
columns
:
[
{
label
:
"
traceID
"
,
prop
:
"
traceID
"
},
],
{
label
:
"
设备编号
"
,
prop
:
"
deviceCode
"
},
columns
:
[
{
label
:
"
traceID
"
,
prop
:
"
traceID
"
},
{
label
:
"
设备编号
"
,
prop
:
"
deviceCode
"
},
{
label
:
"
设备名称
"
,
prop
:
"
deviceName
"
},
{
label
:
"
设备名称
"
,
prop
:
"
deviceName
"
},
{
label
:
"
业务标识
"
,
prop
:
"
messageHead
"
},
{
label
:
"
业务标识
"
,
prop
:
"
messageHead
"
},
{
label
:
"
日志类型
"
,
prop
:
"
logType
"
,
formatter
:
this
.
formatter
},
{
label
:
"
日志类型
"
,
prop
:
"
logType
"
,
formatter
:
this
.
formatter
},
{
label
:
"
内容
"
,
prop
:
"
content
"
},
{
label
:
"
内容
"
,
prop
:
"
content
"
},
{
label
:
"
创建时间
"
,
prop
:
"
createTime
"
,
formatter
:
this
.
formatterDate
},
{
{
label
:
"
创建时间
"
,
label
:
"
操作
"
,
prop
:
"
createTime
"
,
width
:
240
,
formatter
:
this
.
formatterDate
,
formatter
:
row
=>
{
},
return
(
{
<
table
-
buttons
noAdd
row
=
{
row
}
onEdit
=
{
this
.
toEdit
}
onView
=
{
this
.
toView
}
onDel
=
{
this
.
toDel
}
/
>
label
:
"
操作
"
,
);
width
:
240
,
}
formatter
:
(
row
)
=>
{
}
return
(
]
<
table
-
buttons
}
noAdd
};
noEdit
}
noDel
row
=
{
row
}
onEdit
=
{
this
.
toEdit
}
onView
=
{
this
.
toView
}
onDel
=
{
this
.
toDel
}
/
>
);
},
},
],
},
};
};
},
};
</
script
>
</
script
>
\ No newline at end of file
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceLogController.java
View file @
b13d1199
...
@@ -6,6 +6,7 @@ import com.mortals.framework.model.Context;
...
@@ -6,6 +6,7 @@ import com.mortals.framework.model.Context;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.model.OrderCol
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.LogTypeEnum
;
import
com.mortals.xhx.module.device.model.DeviceLogEntity
;
import
com.mortals.xhx.module.device.model.DeviceLogEntity
;
import
com.mortals.xhx.module.device.service.DeviceLogService
;
import
com.mortals.xhx.module.device.service.DeviceLogService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -26,8 +27,6 @@ import java.util.Map;
...
@@ -26,8 +27,6 @@ import java.util.Map;
@RequestMapping
(
"device/log"
)
@RequestMapping
(
"device/log"
)
public
class
DeviceLogController
extends
BaseCRUDJsonBodyMappingController
<
DeviceLogService
,
DeviceLogEntity
,
Long
>
{
public
class
DeviceLogController
extends
BaseCRUDJsonBodyMappingController
<
DeviceLogService
,
DeviceLogEntity
,
Long
>
{
@Autowired
private
ParamService
paramService
;
public
DeviceLogController
()
{
public
DeviceLogController
()
{
super
.
setModuleDesc
(
"设备日志"
);
super
.
setModuleDesc
(
"设备日志"
);
...
@@ -35,7 +34,7 @@ public class DeviceLogController extends BaseCRUDJsonBodyMappingController<Devic
...
@@ -35,7 +34,7 @@ public class DeviceLogController extends BaseCRUDJsonBodyMappingController<Devic
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"logType"
,
paramService
.
getParamBySecondOrganize
(
"DeviceLog"
,
"logType"
));
this
.
addDict
(
model
,
"logType"
,
LogTypeEnum
.
getEnumMap
(
));
super
.
init
(
model
,
context
);
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