Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhmes-agecal
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhmes-agecal
Commits
0d936efc
Commit
0d936efc
authored
Dec 25, 2025
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 托盘信息 预计老化结束时间 调整
2 读取板子由之前的读10位,改成了读15位调整
parent
ec6ffe29
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
11 deletions
+24
-11
SysConfigController.java
...com/zehong/web/controller/system/SysConfigController.java
+9
-1
Modbus4jUtils.java
...ain/java/com/zehong/system/modbus/util/Modbus4jUtils.java
+1
-1
AgingStageTwoProcessJob.java
.../java/com/zehong/system/task/AgingStageTwoProcessJob.java
+2
-3
config.js
zhmes-agecal-web/src/api/system/config.js
+6
-0
TrayInformation.vue
...gecal-web/src/views/screen/components/TrayInformation.vue
+6
-6
No files found.
zhmes-agecal-admin/src/main/java/com/zehong/web/controller/system/SysConfigController.java
View file @
0d936efc
...
@@ -96,6 +96,14 @@ public class SysConfigController extends BaseController
...
@@ -96,6 +96,14 @@ public class SysConfigController extends BaseController
return
AjaxResult
.
success
(
configService
.
selectAgingStageTime
().
get
(
2
));
return
AjaxResult
.
success
(
configService
.
selectAgingStageTime
().
get
(
2
));
}
}
/**
* 获取老化阶段时间
*/
@GetMapping
(
value
=
"/getAgingStage4Time"
)
public
AjaxResult
selectAgingStage4Time
()
{
return
AjaxResult
.
success
(
configService
.
selectAgingStageTime
().
get
(
3
));
}
/**
/**
* 修改老化阶段时间
* 修改老化阶段时间
*/
*/
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/modbus/util/Modbus4jUtils.java
View file @
0d936efc
...
@@ -31,7 +31,7 @@ public class Modbus4jUtils {
...
@@ -31,7 +31,7 @@ public class Modbus4jUtils {
private
static
ModbusMaster
master
;
private
static
ModbusMaster
master
;
private
static
final
int
START_ADDRESS
=
0
;
// 对应40001
private
static
final
int
START_ADDRESS
=
0
;
// 对应40001
private
static
final
int
REGISTER_COUNT
=
1
0
;
// 读取10
个寄存器
private
static
final
int
REGISTER_COUNT
=
1
5
;
// 读取15
个寄存器
private
static
final
int
TARGET_VALUE
=
1
;
// 目标值(第二个寄存器的期望值)
private
static
final
int
TARGET_VALUE
=
1
;
// 目标值(第二个寄存器的期望值)
private
static
final
int
MAX_RETRIES
=
3
;
// 最大重试次数
private
static
final
int
MAX_RETRIES
=
3
;
// 最大重试次数
private
static
final
int
RETRY_DELAY
=
500
;
// 重试延迟(ms)// 监控参数
private
static
final
int
RETRY_DELAY
=
500
;
// 重试延迟(ms)// 监控参数
...
...
zhmes-agecal-system/src/main/java/com/zehong/system/task/AgingStageTwoProcessJob.java
View file @
0d936efc
...
@@ -200,7 +200,6 @@ public class AgingStageTwoProcessJob implements Job {
...
@@ -200,7 +200,6 @@ public class AgingStageTwoProcessJob implements Job {
errorCount
.
incrementAndGet
();
errorCount
.
incrementAndGet
();
return
false
;
return
false
;
}
}
binding
.
setRelayStatus
(
result
[
10
]);
binding
.
setRelayStatus
(
result
[
10
]);
binding
.
setPulseStatus
(
result
[
11
]);
binding
.
setPulseStatus
(
result
[
11
]);
binding
.
setModuleStatus
(
result
[
12
]);
binding
.
setModuleStatus
(
result
[
12
]);
...
...
zhmes-agecal-web/src/api/system/config.js
View file @
0d936efc
...
@@ -45,6 +45,12 @@ export function getAgingStage3Time() {
...
@@ -45,6 +45,12 @@ export function getAgingStage3Time() {
method
:
'get'
method
:
'get'
})
})
}
}
export
function
getAgingStage4Time
()
{
return
request
({
url
:
'/system/config/getAgingStage4Time'
,
method
:
'get'
})
}
export
function
updateAgingStageTime
(
data
)
{
export
function
updateAgingStageTime
(
data
)
{
return
request
({
return
request
({
...
...
zhmes-agecal-web/src/views/screen/components/TrayInformation.vue
View file @
0d936efc
...
@@ -146,7 +146,7 @@ export default {
...
@@ -146,7 +146,7 @@ export default {
// 动态列宽
// 动态列宽
boardCountWidth
:
'150'
,
boardCountWidth
:
'150'
,
locationWidth
:
'150'
,
locationWidth
:
'150'
,
agingStage
3
Time
:
0
,
agingStage
4
Time
:
0
,
};
};
},
},
created
()
{
created
()
{
...
@@ -159,7 +159,7 @@ export default {
...
@@ -159,7 +159,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
adjustTableLayout
();
this
.
adjustTableLayout
();
});
});
this
.
initAgingStage
3
Time
();
this
.
initAgingStage
4
Time
();
},
},
beforeDestroy
()
{
beforeDestroy
()
{
window
.
removeEventListener
(
'resize'
,
this
.
handleResize
);
window
.
removeEventListener
(
'resize'
,
this
.
handleResize
);
...
@@ -207,9 +207,9 @@ export default {
...
@@ -207,9 +207,9 @@ export default {
getRowKey
(
row
)
{
getRowKey
(
row
)
{
return
row
.
fTrayCode
||
row
.
trayId
;
return
row
.
fTrayCode
||
row
.
trayId
;
},
},
initAgingStage
3
Time
()
{
initAgingStage
4
Time
()
{
getAgingStage
3
Time
().
then
(
response
=>
{
getAgingStage
4
Time
().
then
(
response
=>
{
this
.
agingStage
3
Time
=
response
.
data
.
configValue
;
this
.
agingStage
4
Time
=
response
.
data
.
configValue
;
})
})
},
},
...
@@ -224,7 +224,7 @@ export default {
...
@@ -224,7 +224,7 @@ export default {
// 将开始时间转换为Date对象
// 将开始时间转换为Date对象
const
startTime
=
new
Date
(
item
.
fAgingStartTime
);
const
startTime
=
new
Date
(
item
.
fAgingStartTime
);
// 加上配置的分钟数(agingStage3Time以分钟为单位)
// 加上配置的分钟数(agingStage3Time以分钟为单位)
const
endTime
=
new
Date
(
startTime
.
getTime
()
+
this
.
agingStage
3
Time
*
60
*
1000
);
const
endTime
=
new
Date
(
startTime
.
getTime
()
+
this
.
agingStage
4
Time
*
60
*
1000
);
// 添加到item对象中
// 添加到item对象中
item
.
fAgingEndTime
=
endTime
;
item
.
fAgingEndTime
=
endTime
;
}
catch
(
e
)
{
}
catch
(
e
)
{
...
...
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