diff --git a/sbewmxjxt/src/main/resources/static/route/pages/3aa3bd/update.html b/sbewmxjxt/src/main/resources/static/route/pages/3aa3bd/update.html
index b7da710..a07d480 100644
--- a/sbewmxjxt/src/main/resources/static/route/pages/3aa3bd/update.html
+++ b/sbewmxjxt/src/main/resources/static/route/pages/3aa3bd/update.html
@@ -15,43 +15,43 @@
-
+
diff --git a/sbewmxjxt/src/main/resources/static/route/pages/460879/list.html b/sbewmxjxt/src/main/resources/static/route/pages/460879/list.html
index 9cb255a..7ac81b2 100644
--- a/sbewmxjxt/src/main/resources/static/route/pages/460879/list.html
+++ b/sbewmxjxt/src/main/resources/static/route/pages/460879/list.html
@@ -79,51 +79,63 @@
field: 'sbmc',
title: '设备名称',
minWidth: 80,
+ fixed: "left",
+ align:"center"
},
{
field: 'sbxh',
title: '设备型号',
minWidth: 80,
+ fixed: "left",
+ align:"center"
},
{
field: 'sccs',
title: '生产厂商',
- minWidth: 80,
+ minWidth: 270,
+ align:"center"
},
{
field: 'gzrq',
title: '购置日期',
- minWidth: 80,
+ minWidth: 120,
+ align:"center"
},
{
field: 'azwz',
title: '安装位置',
- minWidth: 80,
+ minWidth: 200,
+ align:"center"
},
{
field: 'fzr',
title: '负责人',
minWidth: 80,
+ align:"center"
},
{
field: 'lxfs',
title: '联系方式',
- minWidth: 80,
+ minWidth: 120,
+ align:"center"
},
{
field: 'xjzq',
title: '巡检周期',
minWidth: 80,
+ align:"center"
},
{
field: 'zjxjrq',
title: '最近巡检日期',
- minWidth: 80,
+ minWidth: 120,
+ align:"center"
},
{
field: 'bzxx',
title: '备注信息',
- minWidth: 80,
+ minWidth: 200,
+ align:"center"
},
]
],
diff --git a/sbewmxjxt/src/main/resources/static/route/pages/460879/save.html b/sbewmxjxt/src/main/resources/static/route/pages/460879/save.html
index c9c5ddf..2452c23 100644
--- a/sbewmxjxt/src/main/resources/static/route/pages/460879/save.html
+++ b/sbewmxjxt/src/main/resources/static/route/pages/460879/save.html
@@ -1,11 +1,11 @@
-
-
+
+
设备二维码巡检系统
-
-
+
+
@@ -14,57 +14,64 @@
@@ -76,8 +83,12 @@
@@ -85,6 +96,18 @@
@@ -51,13 +57,13 @@
var $ = layui.$;
var $win = $(window);
- var initTableData = function(keywords) {
+ var initTableData = function (keywords) {
$.ajax({
type: 'GET',
url: 'api/data/list/ea3a1a/ade5a9',
data: 'keywords=' + (keywords ? encodeURI(keywords) : ''),
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
var datas = resp;
table.render({
elem: "#datatable",
@@ -66,7 +72,7 @@
toolbar: '#headerToolBar',
cols: [
[
- { type: "checkbox", fixed: "left" },
+ {type: "checkbox", fixed: "left"},
{
field: "rowNum",
width: 80,
@@ -79,46 +85,56 @@
field: 'czr',
title: '操作人',
minWidth: 80,
+ fixed: "left",
+ align: "center"
},
{
field: 'czsj',
title: '操作时间',
- minWidth: 80,
+ minWidth: 180,
+ align: "center"
},
{
field: 'czlx',
title: '操作类型',
minWidth: 80,
+ align: "center"
},
{
field: 'czdx',
title: '操作对象',
minWidth: 80,
+ align: "center"
},
{
field: 'czjg',
title: '操作结果',
minWidth: 80,
+ align: "center"
},
{
field: 'czxq',
title: '操作详情',
minWidth: 80,
+ align: "center"
},
{
field: 'IPdz',
title: 'IP地址',
minWidth: 80,
+ align: "center"
},
{
field: 'sbID',
title: '设备ID',
minWidth: 80,
+ align: "center"
},
{
field: 'sbmc',
title: '设备名称',
minWidth: 80,
+ align: "center"
},
]
],
@@ -128,19 +144,19 @@
limit: 20,
});
},
- error: function(resp) {
+ error: function (resp) {
console.error(resp);
}
})
}
- var addEvent = function() {
+ var addEvent = function () {
// 事件 - 增删改
- table.on('toolbar(datatable)', function(obj) {
+ table.on('toolbar(datatable)', function (obj) {
var layEvent = obj.event;
var checkStatus = table.checkStatus('datatable');
var checkDatas = checkStatus.data;
- if(layEvent === 'saveEvent') {
+ if (layEvent === 'saveEvent') {
top.layer.open({
type: 2,
title: false,
@@ -150,14 +166,14 @@
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
- } else if(layEvent === 'updateEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'updateEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要编辑的数据');
- } else if(checkDatas.length > 1) {
+ } else if (checkDatas.length > 1) {
top.layer.msg('不能编辑多条数据');
} else {
top.layer.open({
@@ -165,48 +181,49 @@
title: false,
closeBtn: false,
shadeClose: true,
- content: 'route/pages/ade5a9/update.html?id='+ checkDatas[0].id,
+ content: 'route/pages/ade5a9/update.html?id=' + checkDatas[0].id,
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
}
- } else if(layEvent === 'removeEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'removeEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要删除的数据');
} else {
var ids = '';
- for(var i = 0, item; item = checkDatas[i++];) {
- if(i > 1) {
+ for (var i = 0, item; item = checkDatas[i++];) {
+ if (i > 1) {
ids += ',';
}
ids += item.id;
}
- top.layer.confirm('确定删除吗?', {title: false}, function(index) {
+ top.layer.confirm('确定删除吗?', {title: false}, function (index) {
top.layer.close(index);
var loadingIndex;
$.ajax({
type: 'DELETE',
url: 'api/data/delete/ea3a1a/ade5a9?ids=' + ids,
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
top.layer.msg('删除成功');
initTableData();
},
- error: function(resp) {
+ error: function (resp) {
var data = JSON.parse(resp.responseText);
top.layer.msg(data.msg);
},
- beforeSend: function() {
+ beforeSend: function () {
loadingIndex = top.layer.msg('正在删除...', {
icon: 16,
shade: 0.01
- });;
+ });
+ ;
},
- complete: function() {
+ complete: function () {
top.layer.close(loadingIndex);
}
})
@@ -214,7 +231,7 @@
}
}
});
- form.on('submit(searchFilter)', function(formData) {
+ form.on('submit(searchFilter)', function (formData) {
initTableData(formData.field.keywords);
});
}
diff --git a/sbewmxjxt/src/main/resources/static/route/pages/ade5a9/save.html b/sbewmxjxt/src/main/resources/static/route/pages/ade5a9/save.html
index d051271..6378055 100644
--- a/sbewmxjxt/src/main/resources/static/route/pages/ade5a9/save.html
+++ b/sbewmxjxt/src/main/resources/static/route/pages/ade5a9/save.html
@@ -1,11 +1,11 @@
-
-
+
+
设备二维码巡检系统
-
-
+
+
@@ -51,13 +57,13 @@
var $ = layui.$;
var $win = $(window);
- var initTableData = function(keywords) {
+ var initTableData = function (keywords) {
$.ajax({
type: 'GET',
url: 'api/data/list/ea3a1a/b98900',
data: 'keywords=' + (keywords ? encodeURI(keywords) : ''),
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
var datas = resp;
table.render({
elem: "#datatable",
@@ -66,7 +72,7 @@
toolbar: '#headerToolBar',
cols: [
[
- { type: "checkbox", fixed: "left" },
+ {type: "checkbox", fixed: "left"},
{
field: "rowNum",
width: 80,
@@ -79,41 +85,50 @@
field: 'yhm',
title: '用户名',
minWidth: 80,
+ fixed: "left",
+ align: "center"
},
{
field: 'mm',
title: '密码',
minWidth: 80,
+ align: "center"
},
{
field: 'js',
title: '角色',
minWidth: 80,
+ align: "center"
},
{
field: 'zt',
title: '状态',
minWidth: 80,
+ align: "center"
},
{
field: 'cjsj',
title: '创建时间',
- minWidth: 80,
+ minWidth: 180,
+ align: "center"
},
{
field: 'zhdlsj',
title: '最后登录时间',
- minWidth: 80,
+ minWidth: 180,
+ align: "center"
},
{
field: 'yx',
title: '邮箱',
- minWidth: 80,
+ minWidth: 230,
+ align: "center"
},
{
field: 'sjhm',
title: '手机号码',
- minWidth: 80,
+ minWidth: 120,
+ align: "center"
},
]
],
@@ -123,19 +138,19 @@
limit: 20,
});
},
- error: function(resp) {
+ error: function (resp) {
console.error(resp);
}
})
}
- var addEvent = function() {
+ var addEvent = function () {
// 事件 - 增删改
- table.on('toolbar(datatable)', function(obj) {
+ table.on('toolbar(datatable)', function (obj) {
var layEvent = obj.event;
var checkStatus = table.checkStatus('datatable');
var checkDatas = checkStatus.data;
- if(layEvent === 'saveEvent') {
+ if (layEvent === 'saveEvent') {
top.layer.open({
type: 2,
title: false,
@@ -145,14 +160,14 @@
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
- } else if(layEvent === 'updateEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'updateEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要编辑的数据');
- } else if(checkDatas.length > 1) {
+ } else if (checkDatas.length > 1) {
top.layer.msg('不能编辑多条数据');
} else {
top.layer.open({
@@ -160,48 +175,49 @@
title: false,
closeBtn: false,
shadeClose: true,
- content: 'route/pages/b98900/update.html?id='+ checkDatas[0].id,
+ content: 'route/pages/b98900/update.html?id=' + checkDatas[0].id,
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
}
- } else if(layEvent === 'removeEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'removeEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要删除的数据');
} else {
var ids = '';
- for(var i = 0, item; item = checkDatas[i++];) {
- if(i > 1) {
+ for (var i = 0, item; item = checkDatas[i++];) {
+ if (i > 1) {
ids += ',';
}
ids += item.id;
}
- top.layer.confirm('确定删除吗?', {title: false}, function(index) {
+ top.layer.confirm('确定删除吗?', {title: false}, function (index) {
top.layer.close(index);
var loadingIndex;
$.ajax({
type: 'DELETE',
url: 'api/data/delete/ea3a1a/b98900?ids=' + ids,
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
top.layer.msg('删除成功');
initTableData();
},
- error: function(resp) {
+ error: function (resp) {
var data = JSON.parse(resp.responseText);
top.layer.msg(data.msg);
},
- beforeSend: function() {
+ beforeSend: function () {
loadingIndex = top.layer.msg('正在删除...', {
icon: 16,
shade: 0.01
- });;
+ });
+ ;
},
- complete: function() {
+ complete: function () {
top.layer.close(loadingIndex);
}
})
@@ -209,7 +225,7 @@
}
}
});
- form.on('submit(searchFilter)', function(formData) {
+ form.on('submit(searchFilter)', function (formData) {
initTableData(formData.field.keywords);
});
}
diff --git a/sbewmxjxt/src/main/resources/static/route/pages/b98900/save.html b/sbewmxjxt/src/main/resources/static/route/pages/b98900/save.html
index d750380..dbcc179 100644
--- a/sbewmxjxt/src/main/resources/static/route/pages/b98900/save.html
+++ b/sbewmxjxt/src/main/resources/static/route/pages/b98900/save.html
@@ -1,11 +1,11 @@
-
-
+
+
设备二维码巡检系统
-
-
+
+
@@ -14,39 +14,54 @@
@@ -73,6 +92,18 @@
@@ -51,13 +57,13 @@
var $ = layui.$;
var $win = $(window);
- var initTableData = function(keywords) {
+ var initTableData = function (keywords) {
$.ajax({
type: 'GET',
url: 'api/data/list/ea3a1a/bb6cd1',
data: 'keywords=' + (keywords ? encodeURI(keywords) : ''),
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
var datas = resp;
table.render({
elem: "#datatable",
@@ -66,7 +72,7 @@
toolbar: '#headerToolBar',
cols: [
[
- { type: "checkbox", fixed: "left" },
+ {type: "checkbox", fixed: "left"},
{
field: "rowNum",
width: 80,
@@ -79,46 +85,56 @@
field: 'ycmc',
title: '异常名称',
minWidth: 80,
+ fixed: "left",
+ align: "center"
},
{
field: 'sbbh',
title: '设备编号',
minWidth: 80,
+ align: "center"
},
{
field: 'sblx',
title: '设备类型',
minWidth: 80,
+ align: "center"
},
{
field: 'xjsj',
title: '巡检时间',
- minWidth: 80,
+ minWidth: 180,
+ align: "center"
},
{
field: 'bjjb',
title: '报警级别',
minWidth: 80,
+ align: "center"
},
{
field: 'clzt',
title: '处理状态',
minWidth: 80,
+ align: "center"
},
{
field: 'clr',
title: '处理人',
minWidth: 80,
+ align: "center"
},
{
field: 'clsj',
title: '处理时间',
- minWidth: 80,
+ minWidth: 180,
+ align: "center"
},
{
field: 'bzxx',
title: '备注信息',
- minWidth: 80,
+ minWidth: 280,
+ align: "center"
},
]
],
@@ -128,19 +144,19 @@
limit: 20,
});
},
- error: function(resp) {
+ error: function (resp) {
console.error(resp);
}
})
}
- var addEvent = function() {
+ var addEvent = function () {
// 事件 - 增删改
- table.on('toolbar(datatable)', function(obj) {
+ table.on('toolbar(datatable)', function (obj) {
var layEvent = obj.event;
var checkStatus = table.checkStatus('datatable');
var checkDatas = checkStatus.data;
- if(layEvent === 'saveEvent') {
+ if (layEvent === 'saveEvent') {
top.layer.open({
type: 2,
title: false,
@@ -150,14 +166,14 @@
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
- } else if(layEvent === 'updateEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'updateEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要编辑的数据');
- } else if(checkDatas.length > 1) {
+ } else if (checkDatas.length > 1) {
top.layer.msg('不能编辑多条数据');
} else {
top.layer.open({
@@ -165,48 +181,49 @@
title: false,
closeBtn: false,
shadeClose: true,
- content: 'route/pages/bb6cd1/update.html?id='+ checkDatas[0].id,
+ content: 'route/pages/bb6cd1/update.html?id=' + checkDatas[0].id,
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
}
- } else if(layEvent === 'removeEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'removeEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要删除的数据');
} else {
var ids = '';
- for(var i = 0, item; item = checkDatas[i++];) {
- if(i > 1) {
+ for (var i = 0, item; item = checkDatas[i++];) {
+ if (i > 1) {
ids += ',';
}
ids += item.id;
}
- top.layer.confirm('确定删除吗?', {title: false}, function(index) {
+ top.layer.confirm('确定删除吗?', {title: false}, function (index) {
top.layer.close(index);
var loadingIndex;
$.ajax({
type: 'DELETE',
url: 'api/data/delete/ea3a1a/bb6cd1?ids=' + ids,
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
top.layer.msg('删除成功');
initTableData();
},
- error: function(resp) {
+ error: function (resp) {
var data = JSON.parse(resp.responseText);
top.layer.msg(data.msg);
},
- beforeSend: function() {
+ beforeSend: function () {
loadingIndex = top.layer.msg('正在删除...', {
icon: 16,
shade: 0.01
- });;
+ });
+ ;
},
- complete: function() {
+ complete: function () {
top.layer.close(loadingIndex);
}
})
@@ -214,7 +231,7 @@
}
}
});
- form.on('submit(searchFilter)', function(formData) {
+ form.on('submit(searchFilter)', function (formData) {
initTableData(formData.field.keywords);
});
}
diff --git a/sbewmxjxt/src/main/resources/static/route/pages/bb6cd1/save.html b/sbewmxjxt/src/main/resources/static/route/pages/bb6cd1/save.html
index e0e19be..3532ced 100644
--- a/sbewmxjxt/src/main/resources/static/route/pages/bb6cd1/save.html
+++ b/sbewmxjxt/src/main/resources/static/route/pages/bb6cd1/save.html
@@ -1,11 +1,11 @@
-
-
+
+
设备二维码巡检系统
-
-
+
+
@@ -14,39 +14,48 @@
@@ -51,13 +57,13 @@
var $ = layui.$;
var $win = $(window);
- var initTableData = function(keywords) {
+ var initTableData = function (keywords) {
$.ajax({
type: 'GET',
url: 'api/data/list/ea3a1a/c85e75',
data: 'keywords=' + (keywords ? encodeURI(keywords) : ''),
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
var datas = resp;
table.render({
elem: "#datatable",
@@ -66,7 +72,7 @@
toolbar: '#headerToolBar',
cols: [
[
- { type: "checkbox", fixed: "left" },
+ {type: "checkbox", fixed: "left"},
{
field: "rowNum",
width: 80,
@@ -79,46 +85,55 @@
field: 'sbbh',
title: '设备编号',
minWidth: 80,
+ align: "center"
},
{
field: 'bylx',
title: '保养类型',
minWidth: 80,
+ align: "center"
},
{
field: 'byzq',
title: '保养周期',
minWidth: 80,
+ align: "center"
},
{
field: 'xcbyrq',
title: '下次保养日期',
- minWidth: 80,
+ minWidth: 120,
+ align: "center"
},
{
field: 'bynr',
title: '保养内容',
- minWidth: 80,
+ minWidth: 280,
+ align: "center"
},
{
field: 'byry',
title: '保养人员',
minWidth: 80,
+ align: "center"
},
{
field: 'byzt',
title: '保养状态',
minWidth: 80,
+ align: "center"
},
{
field: 'cjsj',
title: '创建时间',
- minWidth: 80,
+ minWidth: 180,
+ align: "center"
},
{
field: 'gxsj',
title: '更新时间',
- minWidth: 80,
+ minWidth: 180,
+ align: "center"
},
]
],
@@ -128,19 +143,19 @@
limit: 20,
});
},
- error: function(resp) {
+ error: function (resp) {
console.error(resp);
}
})
}
- var addEvent = function() {
+ var addEvent = function () {
// 事件 - 增删改
- table.on('toolbar(datatable)', function(obj) {
+ table.on('toolbar(datatable)', function (obj) {
var layEvent = obj.event;
var checkStatus = table.checkStatus('datatable');
var checkDatas = checkStatus.data;
- if(layEvent === 'saveEvent') {
+ if (layEvent === 'saveEvent') {
top.layer.open({
type: 2,
title: false,
@@ -150,14 +165,14 @@
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
- } else if(layEvent === 'updateEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'updateEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要编辑的数据');
- } else if(checkDatas.length > 1) {
+ } else if (checkDatas.length > 1) {
top.layer.msg('不能编辑多条数据');
} else {
top.layer.open({
@@ -165,48 +180,49 @@
title: false,
closeBtn: false,
shadeClose: true,
- content: 'route/pages/c85e75/update.html?id='+ checkDatas[0].id,
+ content: 'route/pages/c85e75/update.html?id=' + checkDatas[0].id,
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
}
- } else if(layEvent === 'removeEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'removeEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要删除的数据');
} else {
var ids = '';
- for(var i = 0, item; item = checkDatas[i++];) {
- if(i > 1) {
+ for (var i = 0, item; item = checkDatas[i++];) {
+ if (i > 1) {
ids += ',';
}
ids += item.id;
}
- top.layer.confirm('确定删除吗?', {title: false}, function(index) {
+ top.layer.confirm('确定删除吗?', {title: false}, function (index) {
top.layer.close(index);
var loadingIndex;
$.ajax({
type: 'DELETE',
url: 'api/data/delete/ea3a1a/c85e75?ids=' + ids,
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
top.layer.msg('删除成功');
initTableData();
},
- error: function(resp) {
+ error: function (resp) {
var data = JSON.parse(resp.responseText);
top.layer.msg(data.msg);
},
- beforeSend: function() {
+ beforeSend: function () {
loadingIndex = top.layer.msg('正在删除...', {
icon: 16,
shade: 0.01
- });;
+ });
+ ;
},
- complete: function() {
+ complete: function () {
top.layer.close(loadingIndex);
}
})
@@ -214,7 +230,7 @@
}
}
});
- form.on('submit(searchFilter)', function(formData) {
+ form.on('submit(searchFilter)', function (formData) {
initTableData(formData.field.keywords);
});
}
diff --git a/sbewmxjxt/src/main/resources/static/route/pages/c85e75/save.html b/sbewmxjxt/src/main/resources/static/route/pages/c85e75/save.html
index b987b16..e5babee 100644
--- a/sbewmxjxt/src/main/resources/static/route/pages/c85e75/save.html
+++ b/sbewmxjxt/src/main/resources/static/route/pages/c85e75/save.html
@@ -1,11 +1,11 @@
-
-
+
+
设备二维码巡检系统
-
-
+
+
@@ -14,64 +14,84 @@
@@ -79,6 +99,30 @@
@@ -51,13 +57,13 @@
var $ = layui.$;
var $win = $(window);
- var initTableData = function(keywords) {
+ var initTableData = function (keywords) {
$.ajax({
type: 'GET',
url: 'api/data/list/ea3a1a/d80717',
data: 'keywords=' + (keywords ? encodeURI(keywords) : ''),
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
var datas = resp;
table.render({
elem: "#datatable",
@@ -66,7 +72,7 @@
toolbar: '#headerToolBar',
cols: [
[
- { type: "checkbox", fixed: "left" },
+ {type: "checkbox", fixed: "left"},
{
field: "rowNum",
width: 80,
@@ -79,31 +85,38 @@
field: 'sbmc',
title: '设备名称',
minWidth: 80,
+ fixed: "left",
+ align: "center"
},
{
field: 'smsj',
title: '扫码时间',
- minWidth: 80,
+ minWidth: 180,
+ align: "center"
},
{
field: 'xjry',
title: '巡检人员',
minWidth: 80,
+ align: "center"
},
{
field: 'sbzt',
title: '设备状态',
minWidth: 80,
+ align: "center"
},
{
field: 'bzxx',
title: '备注信息',
- minWidth: 80,
+ minWidth: 280,
+ align: "center"
},
{
field: 'ewmnr',
title: '二维码内容',
- minWidth: 80,
+ minWidth: 680,
+ align: "center"
},
]
],
@@ -113,19 +126,19 @@
limit: 20,
});
},
- error: function(resp) {
+ error: function (resp) {
console.error(resp);
}
})
}
- var addEvent = function() {
+ var addEvent = function () {
// 事件 - 增删改
- table.on('toolbar(datatable)', function(obj) {
+ table.on('toolbar(datatable)', function (obj) {
var layEvent = obj.event;
var checkStatus = table.checkStatus('datatable');
var checkDatas = checkStatus.data;
- if(layEvent === 'saveEvent') {
+ if (layEvent === 'saveEvent') {
top.layer.open({
type: 2,
title: false,
@@ -135,14 +148,14 @@
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
- } else if(layEvent === 'updateEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'updateEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要编辑的数据');
- } else if(checkDatas.length > 1) {
+ } else if (checkDatas.length > 1) {
top.layer.msg('不能编辑多条数据');
} else {
top.layer.open({
@@ -150,48 +163,49 @@
title: false,
closeBtn: false,
shadeClose: true,
- content: 'route/pages/d80717/update.html?id='+ checkDatas[0].id,
+ content: 'route/pages/d80717/update.html?id=' + checkDatas[0].id,
area: ['400px', '100%'],
offset: 'r',
anim: 'slideLeft',
- end: function() {
+ end: function () {
initTableData();
}
});
}
- } else if(layEvent === 'removeEvent') {
- if(checkDatas.length === 0) {
+ } else if (layEvent === 'removeEvent') {
+ if (checkDatas.length === 0) {
top.layer.msg('请勾选要删除的数据');
} else {
var ids = '';
- for(var i = 0, item; item = checkDatas[i++];) {
- if(i > 1) {
+ for (var i = 0, item; item = checkDatas[i++];) {
+ if (i > 1) {
ids += ',';
}
ids += item.id;
}
- top.layer.confirm('确定删除吗?', {title: false}, function(index) {
+ top.layer.confirm('确定删除吗?', {title: false}, function (index) {
top.layer.close(index);
var loadingIndex;
$.ajax({
type: 'DELETE',
url: 'api/data/delete/ea3a1a/d80717?ids=' + ids,
contentType: "application/json;charset=utf-8",
- success: function(resp) {
+ success: function (resp) {
top.layer.msg('删除成功');
initTableData();
},
- error: function(resp) {
+ error: function (resp) {
var data = JSON.parse(resp.responseText);
top.layer.msg(data.msg);
},
- beforeSend: function() {
+ beforeSend: function () {
loadingIndex = top.layer.msg('正在删除...', {
icon: 16,
shade: 0.01
- });;
+ });
+ ;
},
- complete: function() {
+ complete: function () {
top.layer.close(loadingIndex);
}
})
@@ -199,7 +213,7 @@
}
}
});
- form.on('submit(searchFilter)', function(formData) {
+ form.on('submit(searchFilter)', function (formData) {
initTableData(formData.field.keywords);
});
}
diff --git a/sbewmxjxt/src/main/resources/static/route/pages/d80717/save.html b/sbewmxjxt/src/main/resources/static/route/pages/d80717/save.html
index 0c1de17..0a94b7f 100644
--- a/sbewmxjxt/src/main/resources/static/route/pages/d80717/save.html
+++ b/sbewmxjxt/src/main/resources/static/route/pages/d80717/save.html
@@ -1,11 +1,11 @@
-
-
+
+
设备二维码巡检系统
-
-
+
+