834 lines
40 KiB
Plaintext
834 lines
40 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8" %>
|
||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
||
<%@ page import="com.sipai.entity.base.ServerObject" %>
|
||
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security" %>
|
||
|
||
|
||
<!DOCTYPE html>
|
||
<!-- <html lang="zh-CN"> -->
|
||
<!-- BEGIN HEAD -->
|
||
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||
<title>
|
||
<%= ServerObject.atttable.get("TOPTITLE")%>
|
||
</title>
|
||
<!-- 引用页头及CSS页-->
|
||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||
|
||
<!-- 引入daterangepicker-->
|
||
<link rel="stylesheet"
|
||
href="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.css"/>
|
||
<script type="text/javascript"
|
||
src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/moment.min.js"
|
||
charset="utf-8"></script>
|
||
<script type="text/javascript"
|
||
src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.js"
|
||
charset="utf-8"></script>
|
||
<!--bootstrap-edittable 表格行内编辑 -->
|
||
<link rel="stylesheet" href="<%=request.getContextPath()%>/plugins/bootstrap-editable/css/bootstrap-editable.css"/>
|
||
<script type="text/javascript"
|
||
src="<%=request.getContextPath()%>/plugins/bootstrap-editable/js/bootstrap-editable.js"
|
||
charset="utf-8"></script>
|
||
<script type="text/javascript"
|
||
src="<%=request.getContextPath()%>/plugins/bootstrap-editable/js/bootstrap-table-editable.js"
|
||
charset="utf-8"></script>
|
||
<!-- 引入viewer.js-->
|
||
<link rel="stylesheet"
|
||
href="<%=request.getContextPath()%>/node_modules/viewer-js/viewer.min.css"/>
|
||
<script type="text/javascript"
|
||
src="<%=request.getContextPath()%>/node_modules/viewer-js/viewer.min.js"
|
||
charset="utf-8"></script>
|
||
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/chart.js/dist/Chart.min.js"
|
||
charset="utf-8"></script>
|
||
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/chart.js/dist/Chart.bundle.min.js"
|
||
charset="utf-8"></script>
|
||
<!-- 引入daterangepicker-->
|
||
<link rel="stylesheet" href="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.css"/>
|
||
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/moment.min.js"
|
||
charset="utf-8"></script>
|
||
<script type="text/javascript"
|
||
src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.js"
|
||
charset="utf-8"></script>
|
||
<!-- echarts-->
|
||
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/echarts/echarts.js"
|
||
charset="utf-8"></script>
|
||
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/echarts/macarons.js"
|
||
charset="utf-8"></script>
|
||
<!-- bootstrap switch -->
|
||
<link rel="stylesheet"
|
||
href="<%=request.getContextPath()%>/node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css"/>
|
||
<script type="text/javascript"
|
||
src="<%=request.getContextPath()%>/node_modules/bootstrap-switch/dist/js/bootstrap-switch.min.js"
|
||
charset="utf-8"></script>
|
||
|
||
|
||
<style type="text/css">
|
||
.modal-full {
|
||
width: 100%;
|
||
margin: 0;
|
||
}
|
||
|
||
.viewer {
|
||
margin: 0;
|
||
padding: 0;
|
||
min-height: 470px;
|
||
}
|
||
|
||
.viewer > li {
|
||
overflow: hidden;
|
||
width: calc(100% / 2);
|
||
float: left;
|
||
cursor: pointer;
|
||
padding: 0 1px;
|
||
}
|
||
|
||
.viewer > li > img {
|
||
width: 100%;
|
||
}
|
||
</style>
|
||
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
getJobList2();
|
||
getJobListTYPE_2();
|
||
// initDate();
|
||
// initFun();
|
||
// goodsList();
|
||
// taskStart();
|
||
// taskResult();
|
||
});
|
||
|
||
|
||
// function getJobList(){
|
||
// $.ajax({
|
||
// type: 'get',
|
||
// url: "http://10.194.10.125:8088/SIPAIIS_WMS/robot/getJobList.do",
|
||
// // url: "http://10.194.10.125:8088/SIPAIIS_WMS/robot/getJobList.do",
|
||
// dataType: JSON,
|
||
// async: true,
|
||
// success: function(data) {
|
||
// alert(data)
|
||
// console.log(111111111)
|
||
// console.log(data);
|
||
// console.log(data.code);
|
||
// // if(data.code == 200) {
|
||
// // console.log('成功');
|
||
// // console.log(data);
|
||
// // }else{
|
||
// // console.log('错误');
|
||
// // }
|
||
// },
|
||
// error: function(data) {
|
||
// console.log(data)
|
||
//
|
||
//
|
||
// console.log(data.status)
|
||
// console.log(data.responseText)
|
||
// let toJSON = JSON.parse(data.responseText);
|
||
// console.log(toJSON)
|
||
// console.log(toJSON.body)
|
||
// let parse = JSON.parse(toJSON.body);
|
||
// console.log(parse.message)
|
||
// let data1 = parse.data;
|
||
// console.log(data1)
|
||
//
|
||
// let sdom="";
|
||
// if (data1.length>=0){
|
||
// for (let i = 0; i <data1.length ; i++) {
|
||
// let jobId= data1[i].jobId;
|
||
// let taskId= data1[i].taskId;
|
||
// let taskName= data1[i].taskName;
|
||
// let createdTime= data1[i].createdTime;
|
||
// let jobStatus= data1[i].jobStatus;
|
||
// let jobStart= data1[i].jobStart;
|
||
// let jobStop= data1[i].jobStop;
|
||
// let type= data1[i].type;
|
||
// let dateTime= data1[i].dateTime;
|
||
//
|
||
//
|
||
// sdom+='<div>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+jobId+'</span>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+taskId+'</span>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+taskName+'</span>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+createdTime+'</span>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+jobStatus+'</span>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+jobStart+'</span>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+jobStop+'</span>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+type+'</span>'
|
||
// sdom+='<span class="alert alert-warning alert-dismissible">'+dateTime+'</span>'
|
||
// sdom+="<button onclick='taskResult(\"" +jobId + "\",\""+taskId+" \")'>巡检点详情</button> <br>"
|
||
// sdom+='</div>'
|
||
//
|
||
// console.log(jobId)
|
||
// console.log(taskId)
|
||
// console.log(taskName)
|
||
// console.log(createdTime)
|
||
// console.log(jobStatus)
|
||
// console.log(jobStart)
|
||
// console.log(jobStop)
|
||
// console.log(type)
|
||
// console.log(dateTime)
|
||
// $('#subDiv').html(sdom);
|
||
// }
|
||
// }
|
||
//
|
||
// console.log(toJSON.body)
|
||
//
|
||
// console.log(2222222222222222)
|
||
// // alert('失败')
|
||
// console.log('失败')
|
||
// }
|
||
// })
|
||
//
|
||
// }
|
||
|
||
|
||
function taskStart(taskId) {
|
||
|
||
$.ajax({
|
||
type: 'get',
|
||
// url: "http://10.197.50.126:8081/SIPAIIS_WMS/robot/taskStart.do?type=1&taskId=" + taskId,
|
||
url: "http://10.194.10.125:8088/SIPAIIS_WMS/robot/taskStart.do?type=1&taskId=" + taskId,
|
||
dataType: JSON,
|
||
async: true,
|
||
success: function (data) {
|
||
if (data.code == 200) {
|
||
console.log('成功');
|
||
console.log(data);
|
||
} else {
|
||
console.log('错误');
|
||
}
|
||
},
|
||
error: function (data) {
|
||
console.log(data.status)
|
||
console.log(data.responseText)
|
||
let toJSON = JSON.parse(data.responseText);
|
||
console.log(toJSON)
|
||
console.log(toJSON.body)
|
||
let parse = JSON.parse(toJSON.body);
|
||
console.log(parse.message)
|
||
|
||
console.log(data);
|
||
|
||
|
||
let data1 = parse.data;
|
||
console.log(data1)
|
||
if (data1.length >= 0) {
|
||
for (let i = 0; i < data1.length; i++) {
|
||
let taskId = data1[i].taskId;
|
||
let type = data1[i].type;
|
||
let jobId = data1[i].jobId;
|
||
console.log(jobId)
|
||
console.log(taskId)
|
||
console.log(type)
|
||
}
|
||
}
|
||
|
||
|
||
alert("成功")
|
||
|
||
console.log(4444444444444444444444444444);
|
||
|
||
|
||
}
|
||
})
|
||
|
||
}
|
||
|
||
|
||
// var addFun = function () {
|
||
|
||
|
||
// stopBubbleDefaultEvent();
|
||
// $.post(ext.contextPath + '/equipment/doadd.do', {unitId: unitId}, function (data) {
|
||
// $("#subDiv").html(data);
|
||
//
|
||
// });
|
||
// };
|
||
// stopBubbleDefaultEvent();
|
||
|
||
|
||
function getJobList2() {
|
||
// $.post("http://10.194.10.125:8088/SIPAIIS_WMS/robot/getJobList.do", {id: hiddenUnitId}, function (data) {
|
||
// $('#mptableTop').css('display', 'block');
|
||
// $('#singleBizDivTop').css('display', 'none');
|
||
|
||
$('#table9').bootstrapTable('destroy');
|
||
$("#table9").bootstrapTable({ // 对应table标签的id
|
||
// url: "http://10.197.50.126:8081/SIPAIIS_WMS/robot/getJobList.do", // 获取表格数据的url
|
||
url: "http://10.194.10.125:8088/SIPAIIS_WMS/robot/getJobList.do", // 获取表格数据的url
|
||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [15], // 设置页面可以显示的数据条数
|
||
pageSize: 15, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
sidePagination: "client", //分页方式:client客户端分页,server服务端分页(*)
|
||
paginationDetailHAlign: 'right',
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
// search_name: $('#mpsearch_name').val(),
|
||
// pSectionId: $('#processSection').val(),
|
||
// signalType: signalType,
|
||
// sourceType: sourceType
|
||
}
|
||
},
|
||
columns: [
|
||
{
|
||
field: 'jobId', // 返回json数据中的name
|
||
title: '机器人id', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'taskId', // 返回json数据中的name
|
||
title: '任务id', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'taskName', // 返回json数据中的name
|
||
title: '任务名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'createdTime', // 返回json数据中的name
|
||
title: '创建时间', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'jobStatus', // 返回json数据中的name
|
||
title: '工作状态', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'jobStart', // 返回json数据中的name
|
||
title: '工作启动', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'jobStop', // 返回json数据中的name
|
||
title: '工作停止', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'type', // 返回json数据中的name
|
||
title: '类型', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle', // 上下居中
|
||
},
|
||
{
|
||
title: '操作', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle', // 上下居中
|
||
formatter: function (value, row, index) {
|
||
var buts = "";
|
||
|
||
buts += '<button class="btn btn-default btn-sm" title="巡检点详情" onclick="taskResult(\'' + row.jobId + '\',\'' + row.taskId + '\')"><i class="fa fa-map-marker"></i><span class="hidden-md hidden-lg"> 定位</span></button>';
|
||
|
||
return buts;
|
||
}
|
||
}
|
||
],
|
||
onLoadSuccess: function () { //加载成功时执行
|
||
console.info("加载数据suc");
|
||
adjustBootstrapTableView("table9");
|
||
},
|
||
onLoadError: function () { //加载失败时执行
|
||
console.info("加载数据失败");
|
||
},
|
||
onClickRow: function (row) {
|
||
taskResult(row.jobId, row.taskId);
|
||
}
|
||
});
|
||
|
||
// }, 'json');
|
||
|
||
}
|
||
|
||
function tologin() {
|
||
let data = {username: "ceshi", password: "123456"}
|
||
// $.post('/nspai_front/prod-api/auth/login', $("#loginForm").serialize(), function (data) {
|
||
// console.log(data)
|
||
// }, 'json');
|
||
|
||
$.ajax({
|
||
type: 'post',
|
||
url: "/nspai_front/prod-api/auth/login",
|
||
//数据,json字符串
|
||
data: JSON.stringify(data),
|
||
async: true,
|
||
headers: {
|
||
'Content-Type': 'application/json'
|
||
},
|
||
success: function (data) {
|
||
if (data.code == 200) {
|
||
console.log('成功');
|
||
// $.cookie('Admin-Token', data.data.access_token, { path: '/' });
|
||
// $.cookie('Admin-Expires-In', data.data.expires_in, { path: '/' });
|
||
// document.cookie = "Admin-Token" + "=" + data.data.access_token + ";" + "Admin-Expires-In" + "=" + data.data.expires_in
|
||
// document.cookie = "Admin-Expires-In" + "=" + data.data.expires_in
|
||
// let newWindow = window.open("/nspai_front/nssc/report", "_blank")
|
||
var cookiestr = "?Admin-Token=" + data.data.access_token + "&Admin-Expires-In=" + data.data.expires_in;
|
||
let newWindow = window.open("http://10.197.50.126:8998/robot.html" + cookiestr, "_blank")
|
||
// newWindow.document.cookie = 'Admin-Token=' + data.data.access_token
|
||
// newWindow.document.cookie = 'Admin-Expires-In=' + data.data.expires_in
|
||
|
||
} else {
|
||
console.log('错误');
|
||
}
|
||
},
|
||
error: function (data) {
|
||
console.log('错误2');
|
||
console.log(data)
|
||
}
|
||
})
|
||
}
|
||
|
||
|
||
function getJobListTYPE_2() {
|
||
// $.post("http://10.194.10.125:8088/SIPAIIS_WMS/robot/getJobList.do", {id: hiddenUnitId}, function (data) {
|
||
// $('#mptableTop').css('display', 'block');
|
||
// $('#singleBizDivTop').css('display', 'none');
|
||
|
||
$('#table11').bootstrapTable('destroy');
|
||
$("#table11").bootstrapTable({ // 对应table标签的id
|
||
// url: "http://10.197.50.126:8081/SIPAIIS_WMS/robot/getJobListTYPE_2.do", // 获取表格数据的url
|
||
url: "http://10.194.10.125:8088/SIPAIIS_WMS/robot/getJobListTYPE_2.do", // 获取表格数据的url
|
||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [10, 20, 50], // 设置页面可以显示的数据条数
|
||
pageSize: 10, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
sidePagination: 'server', // 设置为服务器端分页
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
pageSize: params.limit, // 每页要显示的数据条数
|
||
pageNum: params.offset / params.limit + 1, // 每页显示数据的开始页码
|
||
}
|
||
},
|
||
columns: [
|
||
{
|
||
field: 'robot_config_id', // 返回json数据中的name
|
||
title: '机器人id', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'robot_name', // 返回json数据中的name
|
||
title: '机器人名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'task_id', // 返回json数据中的name
|
||
title: '任务id', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'task_name', // 返回json数据中的name
|
||
title: '任务名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'creater_time', // 返回json数据中的name
|
||
title: '创建时间', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle', // 上下居中,
|
||
formatter:function(value,row,index){
|
||
return formatDate(value);
|
||
}
|
||
}, {
|
||
field: 'execution_time', // 返回json数据中的name
|
||
title: '执行时间', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'residence time', // 返回json数据中的name
|
||
title: '停留时间', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'inspect_type', // 返回json数据中的name
|
||
title: '录像类型', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'speed', // 返回json数据中的name
|
||
title: '机器人速度', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
title: '操作', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle', // 上下居中
|
||
formatter: function (value, row, index) {
|
||
var buts = "";
|
||
buts += '<button class="btn btn-default btn-sm" title="详情" onclick="tologin()"><i class="fa fa-map-marker"></i><span class="hidden-md hidden-lg"> 定位</span></button>';
|
||
return buts;
|
||
}
|
||
}
|
||
],
|
||
onLoadSuccess: function () { //加载成功时执行
|
||
adjustBootstrapTableView("table11");
|
||
},
|
||
onLoadError: function () { //加载失败时执行
|
||
console.info("加载数据失败")
|
||
},
|
||
onClickRow: function (row) {
|
||
}
|
||
});
|
||
}
|
||
|
||
|
||
// function getJobList() {
|
||
// $("#table").bootstrapTable({ // 对应table标签的id
|
||
// url: "http://10.194.10.125:8088/SIPAIIS_WMS/robot/getJobList.do", // 获取表格数据的url
|
||
// contentType: null,
|
||
// cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
// striped: true, //表格显示条纹,默认为false
|
||
// pagination: true, // 在表格底部显示分页组件,默认false
|
||
// pageList: [10, 20, 50], // 设置页面可以显示的数据条数
|
||
// pageSize: 10, // 页面数据条数
|
||
// pageNumber: 1, // 首页页码
|
||
// sidePagination: 'client', // 设置为服务器端分页
|
||
// queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
// return {
|
||
// rows: params.limit, // 每页要显示的数据条数
|
||
// page: params.offset / params.limit + 1, // 每页显示数据的开始页码
|
||
// sort: params.sort, // 要排序的字段
|
||
// order: params.order,
|
||
// // startDateStr: beginTimeStore,
|
||
// // endDateStr: endTimeStore,
|
||
// // carNumber: $('#search_name').val(),
|
||
// // errorCode: $('#errorCode').val(),
|
||
// }
|
||
// },
|
||
// sortName: 'jobId', // 要排序的字段
|
||
// sortOrder: 'desc', // 排序规则
|
||
// columns: [
|
||
// {
|
||
// /*checkbox: true, // 显示一个勾选框
|
||
// },{*/
|
||
// field: 'jobId', // 返回json数据中的name
|
||
// title: 'jobId', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle' // 上下居中
|
||
// }, {
|
||
// field: 'taskId', // 返回json数据中的name
|
||
// title: 'taskId', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle', // 上下居中
|
||
// // formatter: function (value, row, index) {
|
||
// // return value.substring(0, 16);
|
||
// // },
|
||
// }, {
|
||
// field: 'taskName', // 返回json数据中的name
|
||
// title: 'taskName', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle' // 上下居中
|
||
// }, {
|
||
// field: 'createdTime', // 返回json数据中的name
|
||
// title: 'createdTime', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle', // 上下居中
|
||
// editable: {
|
||
// type: 'select',
|
||
// title: '进/出',
|
||
// source: [{value: 1, text: '进'}, {value: 2, text: '出'}, {value: 3, text: '未知'}],
|
||
// // display: function (value) {
|
||
// // let text = "未知";
|
||
// // if (value == 1) {
|
||
// // text = "进";
|
||
// // }
|
||
// // if (value == 2) {
|
||
// // text = "出";
|
||
// // }
|
||
// // $(this).text(text);
|
||
// // }
|
||
// },
|
||
// }, {
|
||
// field: 'jobStatus', // 返回json数据中的name
|
||
// title: 'jobStatus', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle', // 上下居中
|
||
// editable: { //编辑列元素
|
||
// type: 'text',
|
||
// title: '车牌号',
|
||
// // validate: function (v) {
|
||
// // if (!v) return '车牌号不能为空';
|
||
// // }
|
||
// }
|
||
// }, {
|
||
// field: 'jobStart', // 返回json数据中的name
|
||
// title: 'jobStart', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle', // 上下居中
|
||
// // formatter: function (value, row, index) {
|
||
// // if (value) {
|
||
// // return "未识别";
|
||
// // } else {
|
||
// // return "已识别";
|
||
// // }
|
||
// // }
|
||
// }, {
|
||
// field: 'jobStop',
|
||
// title: "jobStop",
|
||
// align: 'center',
|
||
// valign: 'middle',
|
||
// width: 160, // 定义列的宽度,单位为像素px
|
||
// // formatter: function (value, row, index) {
|
||
// // var buts = '';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="图片" onclick="getimg(\'' + row.serialNo + '\')">图片</button>';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="识别" onclick="getCarNumber(\'' + row.serialNo + '\')">识别</button>';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="拟合" onclick="fitting(\'' + row.serialNo + '\',\'' + row.IOType + '\')">拟合</button>';
|
||
// // buts = '<div class="btn-group" >' + buts + '</div>';
|
||
// // return buts;
|
||
// // }
|
||
// }, {
|
||
// field: 'type',
|
||
// title: "type",
|
||
// align: 'center',
|
||
// valign: 'middle',
|
||
// width: 160
|
||
// }// 定义列的宽度,单位为像素px
|
||
// // formatter: function (value, row, index) {
|
||
// // var buts = '';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="图片" onclick="getimg(\'' + row.serialNo + '\')">图片</button>';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="识别" onclick="getCarNumber(\'' + row.serialNo + '\')">识别</button>';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="拟合" onclick="fitting(\'' + row.serialNo + '\',\'' + row.IOType + '\')">拟合</button>';
|
||
// // buts = '<div class="btn-group" >' + buts + '</div>';
|
||
// // return buts;
|
||
// // }
|
||
// // }, {
|
||
// // field: 'dateTime',
|
||
// // title: "dateTime",
|
||
// // align: 'center',
|
||
// // valign: 'middle',
|
||
// // width: 160, // 定义列的宽度,单位为像素px
|
||
// // formatter: function (value, row, index) {
|
||
// // var buts = '';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="图片" onclick="getimg(\'' + row.serialNo + '\')">图片</button>';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="识别" onclick="getCarNumber(\'' + row.serialNo + '\')">识别</button>';
|
||
// // buts += '<button class="btn btn-default btn-sm" title="拟合" onclick="fitting(\'' + row.serialNo + '\',\'' + row.IOType + '\')">拟合</button>';
|
||
// // buts = '<div class="btn-group" >' + buts + '</div>';
|
||
// // return buts;
|
||
// // }
|
||
// // }
|
||
// ],
|
||
// //保存列修改后的数据
|
||
// onEditableSave: function (field, row, oldValue, $el) {
|
||
// /*$.post("http://" + modelIp + "/work/weighingData/doUpdate.do", {
|
||
// serialNo: row.serialNo, carNumber: row.carNumber, IOType: row.IOType
|
||
// }, function (data) {
|
||
// if (data.res == 1) {
|
||
// $("#table").bootstrapTable('refresh');
|
||
// } else if (data.res == 0) {
|
||
// showAlert('d', '修改失败', 'mainAlertdiv');
|
||
// } else {
|
||
// showAlert('d', data.res, 'mainAlertdiv');
|
||
// }
|
||
// }, 'json');*/
|
||
// },
|
||
// onLoadSuccess: function () { //加载成功时执行
|
||
// console.info("加载数据cg");
|
||
// adjustBootstrapTableView("table");
|
||
// },
|
||
// onLoadError: function () { //加载失败时执行
|
||
// console.info("加载数据失败");
|
||
// }
|
||
// });
|
||
//
|
||
//
|
||
// }
|
||
|
||
|
||
function taskResult(jobId, taskId) {
|
||
openModal("robotsubModal")
|
||
$('#table10').bootstrapTable('destroy');
|
||
$("#table10").bootstrapTable({ // 对应table标签的id
|
||
// url: "http://10.197.50.126:8081/SIPAIIS_WMS/robot/taskResult.do", // 获取表格数据的url
|
||
url: "http://10.194.10.125:8088/SIPAIIS_WMS/robot/taskResult.do", // 获取表格数据的url
|
||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [15], // 设置页面可以显示的数据条数
|
||
pageSize: 15, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
sidePagination: "client", //分页方式:client客户端分页,server服务端分页(*)
|
||
paginationDetailHAlign: 'right',
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
// search_name: $('#mpsearch_name').val(),
|
||
// pSectionId: $('#processSection').val(),
|
||
// signalType: signalType,
|
||
// sourceType: sourceType
|
||
jobId : jobId
|
||
}
|
||
},
|
||
columns: [
|
||
{
|
||
field: 'unitType', // 返回json数据中的name
|
||
title: '单位类型', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'cabinetName', // 返回json数据中的name
|
||
title: '内部名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'unitName', // 返回json数据中的name
|
||
title: '单位名称', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'unitCode', // 返回json数据中的name
|
||
title: '单位编码', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'unitResult', // 返回json数据中的name
|
||
title: '单位结果', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'cabinetCode', // 返回json数据中的name
|
||
title: '内部编码', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle' // 上下居中
|
||
}, {
|
||
field: 'unitStatus', // 返回json数据中的name
|
||
title: '单位状态', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle', // 上下居中
|
||
},{
|
||
field: 'unitTime', // 返回json数据中的name
|
||
title: '单位时间', // 表格表头显示文字
|
||
align: 'center', // 左右居中
|
||
valign: 'middle', // 上下居中
|
||
},
|
||
// {
|
||
// title: '操作', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle', // 上下居中
|
||
// formatter: function (value, row, index) {
|
||
// var buts = "";
|
||
//
|
||
// buts += '<button class="btn btn-default btn-sm" title="巡检点详情" onclick="taskStart(\'' + taskId+ '\')"><i class="fa fa-eye"></i><span class="hidden-md hidden-lg"> 启动</span></button>';
|
||
//
|
||
// return buts;
|
||
// }
|
||
// }
|
||
],
|
||
onLoadSuccess: function () { //加载成功时执行
|
||
console.info("加载数据suc");
|
||
adjustBootstrapTableView("table10");
|
||
},
|
||
onLoadError: function () { //加载失败时执行
|
||
console.info("加载数据失败");
|
||
},
|
||
onClickRow: function (row) {
|
||
taskStart(taskId);
|
||
}
|
||
});
|
||
|
||
|
||
}
|
||
|
||
function cancel() {
|
||
$('#editDiv').css("display", "none")
|
||
|
||
}
|
||
|
||
function formatDate(time) {
|
||
if (time == null || time == "") return "";
|
||
let date = new Date(time)
|
||
let year = date.getFullYear()
|
||
let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
|
||
let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
|
||
let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
||
let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
||
let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
|
||
return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds
|
||
}
|
||
|
||
</script>
|
||
|
||
</head>
|
||
<body class="hold-transition ${cu.themeclass} sidebar-mini">
|
||
<div class="wrapper">
|
||
<div class="content-wrapper">
|
||
<input type="hidden" name="jsp_id" id="jsp_id" value="waterQualityModel">
|
||
<!-- Main content -->
|
||
<section class="content container-fluid">
|
||
<form id="loginForm">
|
||
<input type="hidden" id="username" name ="username" value="ceshi"></input>
|
||
<input type="hidden" id="password" name ="password" value="123456"></input>
|
||
</form>
|
||
|
||
<div id="subDetailDiv">
|
||
<div class="modal fade" id="robotsubModal">
|
||
|
||
<div class="modal-dialog modal-xlg">
|
||
<div class="modal-content">
|
||
<div class="modal-body">
|
||
<div class="box box-primary">
|
||
<div class="box-header with-border">
|
||
<div class="box-tools pull-right">
|
||
</div>
|
||
</div>
|
||
<div class="box-body ">
|
||
<table id="table10"></table>
|
||
<button type="button" class="btn btn-default pull-right" data-dismiss="modal">关闭</button>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="PRDetail4SelectsDiv"></div>
|
||
<div id="user4SelectDiv"></div>
|
||
<div id="Goods4SelectsDiv"></div>
|
||
<div id="fileInputDiv"></div>
|
||
<div id="goodsAddDiv"></div>
|
||
<div id="equ4SelectDiv"></div>
|
||
<div id="fault4SelectDiv"></div>
|
||
<div class="nav-tabs-custom">
|
||
<ul class="nav nav-tabs" id="myTab">
|
||
<li class="kuandu active"><a href="#tab1" data-toggle="tab" index="1" aria-expanded="true"
|
||
onclick="getJobList2();">电容器室与6KV开关室机器人</a></li>
|
||
<li class="kuandu "><a href="#tab2" data-toggle="tab" index="2" aria-expanded="false"
|
||
onclick="getJobListTYPE_2();">综合滤池机器人</a></li>
|
||
</ul>
|
||
</div>
|
||
<div class="tab-content" id="equipmentCardView_tab_content">
|
||
<div class=" tab-pane active" id="tab1">
|
||
<div class="box box-primary">
|
||
<div class="box-body ">
|
||
<table id="table9"></table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class=" tab-pane " id="tab2">
|
||
<div class="box box-primary">
|
||
<div class="box-body ">
|
||
<table id="table11"></table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="subDiv"></div>
|
||
<div id="dialogDiv"></div>
|
||
|
||
|
||
</section>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
|
||
</html>
|