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
fcd137e2
Commit
fcd137e2
authored
Feb 28, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分辨率字典获取
parent
668ed6e7
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
114 additions
and
7 deletions
+114
-7
device-manager-ui/admin/src/router.js
device-manager-ui/admin/src/router.js
+1
-1
device-manager-ui/admin/src/views/device/drawershow.vue
device-manager-ui/admin/src/views/device/drawershow.vue
+4
-0
device-manager/db/add.sql
device-manager/db/add.sql
+1
-0
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java
...ava/com/mortals/xhx/module/device/model/DeviceEntity.java
+5
-0
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceQuery.java
...java/com/mortals/xhx/module/device/model/DeviceQuery.java
+56
-2
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+3
-0
device-manager/src/main/resources/sqlmap/module/device/DeviceMapper.xml
.../src/main/resources/sqlmap/module/device/DeviceMapper.xml
+44
-4
doc/设备管理系统.docx
doc/设备管理系统.docx
+0
-0
No files found.
device-manager-ui/admin/src/router.js
View file @
fcd137e2
...
...
@@ -10,7 +10,7 @@ NProgress.configure({ showSpinner: false });
Vue
.
use
(
Router
);
const
originalPush
=
Router
.
prototype
.
push
;
Vue
Router
.
prototype
.
push
=
function
push
(
location
,
onResolve
,
onReject
)
{
Router
.
prototype
.
push
=
function
push
(
location
,
onResolve
,
onReject
)
{
if
(
onResolve
||
onReject
)
return
originalPush
.
call
(
this
,
location
,
onResolve
,
onReject
);
return
originalPush
.
call
(
this
,
location
).
catch
((
err
)
=>
err
);
...
...
device-manager-ui/admin/src/views/device/drawershow.vue
View file @
fcd137e2
...
...
@@ -275,6 +275,10 @@ export default {
},
methods
:
{
beforeSubmit
(
form
)
{
form
.
resolutionValue
=
this
.
dict
.
resolution
[
form
.
resolution
]
return
form
;
},
changeProduct
(
val
)
{
this
.
form
.
productCode
=
this
.
dict
.
productCode
[
val
];
},
...
...
device-manager/db/add.sql
View file @
fcd137e2
...
...
@@ -81,3 +81,4 @@ ALTER TABLE mortals_xhx_idgenerator ADD COLUMN `createTime` datetime(0) NULL DE
-- ----------------------------
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`resolution`
varchar
(
64
)
DEFAULT
''
COMMENT
'设备分辨率'
AFTER
deviceInFloor
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`resolutionValue`
varchar
(
64
)
DEFAULT
''
COMMENT
'设备分辨率'
AFTER
resolution
;
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java
View file @
fcd137e2
...
...
@@ -221,6 +221,10 @@ public class DeviceEntity extends DeviceVo {
* 设备分辨率
*/
private
String
resolution
;
/**
* 设备分辨率值
*/
private
String
resolutionValue
;
@Override
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
...
...
@@ -286,5 +290,6 @@ public class DeviceEntity extends DeviceVo {
this
.
showWechatQrCode
=
1
;
this
.
orgName
=
""
;
this
.
resolution
=
""
;
this
.
resolutionValue
=
""
;
}
}
\ No newline at end of file
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceQuery.java
View file @
fcd137e2
package
com.mortals.xhx.module.device.model
;
import
java.util.Date
;
import
java.util.List
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
/**
* 设备查询对象
*
...
...
@@ -490,6 +488,11 @@ public class DeviceQuery extends DeviceEntity {
/** 设备分辨率排除列表 */
private
List
<
String
>
resolutionNotList
;
/** 设备分辨率值 */
private
List
<
String
>
resolutionValueList
;
/** 设备分辨率值排除列表 */
private
List
<
String
>
resolutionValueNotList
;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private
List
<
DeviceQuery
>
orConditionList
;
...
...
@@ -3223,6 +3226,38 @@ public class DeviceQuery extends DeviceEntity {
this
.
resolutionNotList
=
resolutionNotList
;
}
/**
* 获取 设备分辨率值
* @return resolutionValueList
*/
public
List
<
String
>
getResolutionValueList
(){
return
this
.
resolutionValueList
;
}
/**
* 设置 设备分辨率值
* @param resolutionValueList
*/
public
void
setResolutionValueList
(
List
<
String
>
resolutionValueList
){
this
.
resolutionValueList
=
resolutionValueList
;
}
/**
* 获取 设备分辨率值
* @return resolutionValueNotList
*/
public
List
<
String
>
getResolutionValueNotList
(){
return
this
.
resolutionValueNotList
;
}
/**
* 设置 设备分辨率值
* @param resolutionValueNotList
*/
public
void
setResolutionValueNotList
(
List
<
String
>
resolutionValueNotList
){
this
.
resolutionValueNotList
=
resolutionValueNotList
;
}
/**
* 设置 主键ID,主键,自增长
* @param id
...
...
@@ -4875,6 +4910,25 @@ public class DeviceQuery extends DeviceEntity {
return
this
;
}
/**
* 设置 设备分辨率值
* @param resolutionValue
*/
public
DeviceQuery
resolutionValue
(
String
resolutionValue
){
setResolutionValue
(
resolutionValue
);
return
this
;
}
/**
* 设置 设备分辨率值
* @param resolutionValueList
*/
public
DeviceQuery
resolutionValueList
(
List
<
String
>
resolutionValueList
){
this
.
resolutionValueList
=
resolutionValueList
;
return
this
;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
fcd137e2
...
...
@@ -113,6 +113,9 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
Rest
<
Map
<
String
,
String
>>
restDict
=
skinBaseFeign
.
dict
(
"SkinBase"
,
"imageResolution"
);
if
(
restDict
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
Map
<
String
,
String
>
dict
=
restDict
.
getData
();
this
.
addDict
(
model
,
"resolution"
,
dict
);
}
//siteHallFeign.list(new SiteHallPdu().setSiteId(context.g);)
...
...
device-manager/src/main/resources/sqlmap/module/device/DeviceMapper.xml
View file @
fcd137e2
This diff is collapsed.
Click to expand it.
doc/设备管理系统.docx
View file @
fcd137e2
No preview for this file type
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