Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
QisdaNew
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2a479cb1
由
sunke
编写于
2020-04-22 15:05:36 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
超过10分钟未更新的任务,显示到左边
1 个父辈
c0d65a5f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
3 行删除
myproject/src/main/java/com/myproject/webapp/controller/webService/StorageDataController.java
myproject/src/main/webapp/WEB-INF/pages/storage/allBoxView.jsp
myproject/src/main/java/com/myproject/webapp/controller/webService/StorageDataController.java
查看文件 @
2a479cb
...
...
@@ -588,7 +588,7 @@ public class StorageDataController extends BaseController {
resultMap
.
put
(
"barcode"
,
barcode
.
getBarcode
());
Storage
theStorage
=
dataCache
.
getStorageById
(
pos
.
getStorageId
());
resultMap
.
put
(
"cid"
,
theStorage
.
getCid
());
okMsg
=
"["
+
rfid
+
"]["
+
barcode
.
getBarcode
()+
"]准备入库到["
+
pos
.
getPosName
()+
"]
,添加入库任务
"
;
okMsg
=
"["
+
rfid
+
"]["
+
barcode
.
getBarcode
()+
"]准备入库到["
+
pos
.
getPosName
()+
"]"
;
taskService
.
addPutInTaskToExecute
(
theStorage
,
barcode
,
pos
);
}
else
{
resultMap
.
put
(
"result"
,
"104"
);
...
...
myproject/src/main/webapp/WEB-INF/pages/storage/allBoxView.jsp
查看文件 @
2a479cb
...
...
@@ -136,6 +136,11 @@
.green{
color:green;
}
.lobibox-notify-wrapper{
max-height: 100%;
overflow-y: auto;
}
</style>
<link href="${ctx}/scripts/lobibox/css/lobibox.min.css?id=2" rel="stylesheet" type="text/css"/>
...
...
@@ -482,7 +487,6 @@
var status = data[item].status.toLowerCase();
options['status'] = status;
options['showClass'] = 'label-'+status;
options['taskId'] = taskId;
options['barcode'] = barcode;
options['num'] = data[item].num;
...
...
@@ -496,6 +500,23 @@
}
var position = 'bottom right';
var showClass = 'label-'+status;
if(!data[item].wait){
//非等待任务超过5分钟还未完成,变红
var updateDate = new Date(data[item].updateDate);
var now = new Date();
var minutes = (now.getTime() - updateDate.getTime())/(1000*60) ; //时间差的分钟数
if(minutes > 10){
//超过8分钟变红,放左边
//showClass="label-pause";
position = 'bottom left';
}
}
options['position']= position;
//options['onClick']= modifyClick;
var statusMsg ="["+status+"]";
...
...
@@ -510,6 +531,8 @@
options['onClose']= cancelTask;
operate = '<a class="btn btn-xs default" href="#" onclick=cancelTask('+data[item].id+');><i class="fa fa-trash-o"></i> ${cancelTask_label} </a>';
}else if(data[item].finished){
statusMsg ="[${taskFinished_label}]";
}else if(data[item].wait){
...
...
@@ -525,12 +548,13 @@
sourceStr = "<br/>${source_label} " + data[item].sourceStr;
}
options['msg']= showStr + statusMsg + data[item].locInfo + sourceStr;
options['showClass'] = showClass;
var task = cidTasks[taskId];
if(!task){
cidTasks[taskId] = Lobibox.notify('success', options);
}else{
if(s
tatus != task.$options["statu
s"]){
if(s
howClass != task.$options["showClas
s"]){
task.remove();
delete cidTasks[taskId];
cidTasks[taskId] = Lobibox.notify('success', options);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论