From 5cb2fe66b6ec966e8b641e8386033cf78107aa5b Mon Sep 17 00:00:00 2001 From: itgaojian163 Date: Fri, 4 Jul 2025 16:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E5=B7=A1=E6=A3=80=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/crpm/index/index9/index9.css | 280 ++++++++++-------- .../static/route/pages/178cdf/list.html | 97 +++--- .../static/route/pages/178cdf/save.html | 86 ++++-- .../static/route/pages/178cdf/update.html | 102 ++++--- .../static/route/pages/17fbb1/list.html | 81 ++--- .../static/route/pages/17fbb1/save.html | 76 +++-- .../static/route/pages/17fbb1/update.html | 92 +++--- .../static/route/pages/3aa3bd/list.html | 87 +++--- .../static/route/pages/3aa3bd/save.html | 18 +- .../static/route/pages/3aa3bd/update.html | 18 +- .../static/route/pages/460879/list.html | 24 +- .../static/route/pages/460879/save.html | 87 ++++-- .../static/route/pages/460879/update.html | 103 ++++--- .../static/route/pages/ade5a9/list.html | 87 +++--- .../static/route/pages/ade5a9/save.html | 95 +++--- .../static/route/pages/ade5a9/update.html | 111 ++++--- .../static/route/pages/b98900/list.html | 92 +++--- .../static/route/pages/b98900/save.html | 93 ++++-- .../static/route/pages/b98900/update.html | 109 ++++--- .../static/route/pages/bb6cd1/list.html | 91 +++--- .../static/route/pages/bb6cd1/save.html | 85 ++++-- .../static/route/pages/bb6cd1/update.html | 101 ++++--- .../static/route/pages/c49755/list.html | 13 +- .../static/route/pages/c49755/save.html | 75 +++-- .../static/route/pages/c49755/update.html | 91 +++--- .../static/route/pages/c85e75/list.html | 92 +++--- .../static/route/pages/c85e75/save.html | 112 ++++--- .../static/route/pages/c85e75/update.html | 128 +++++--- .../static/route/pages/cdfd45/list.html | 13 +- .../static/route/pages/cdfd45/save.html | 77 +++-- .../static/route/pages/cdfd45/update.html | 93 +++--- .../static/route/pages/d80717/list.html | 88 +++--- .../static/route/pages/d80717/save.html | 78 +++-- .../static/route/pages/d80717/update.html | 94 +++--- .../resources/static/route/pages/index.html | 71 +++-- 35 files changed, 1902 insertions(+), 1138 deletions(-) diff --git a/sbewmxjxt/src/main/resources/static/assets/crpm/index/index9/index9.css b/sbewmxjxt/src/main/resources/static/assets/crpm/index/index9/index9.css index b588ef0..c3bef57 100644 --- a/sbewmxjxt/src/main/resources/static/assets/crpm/index/index9/index9.css +++ b/sbewmxjxt/src/main/resources/static/assets/crpm/index/index9/index9.css @@ -1,4 +1,4 @@ - .system { +.system { display: flex; flex-direction: column; width: 100%; @@ -7,44 +7,44 @@ background-size: contain; background-color: #f5f5f5; overflow-y: hidden; - } +} - .system .top { +.system .top { display: flex; justify-content: space-between; height: 80px; color: #FFF; /* line-height: 80px; */ - } +} - .system .top h3 { +.system .top h3 { line-height: 80px; font-size: 26px; margin-left: 30px; - } +} - .system .top span { +.system .top span { display: flex; height: 80px; margin-right: 30px; - } +} - .system .top span img { +.system .top span img { width: 30px; height: 30px; margin: 25px 10px; - } +} - .system .top span em { +.system .top span em { line-height: 80px; - } +} - .system .bottom { +.system .bottom { display: flex; height: calc(100vh - 100px); - } +} - .system .bottom .left { +.system .bottom .left { display: flex; flex-direction: column; width: 200px; @@ -52,9 +52,9 @@ margin-right: 20px; height: 100%; /* background-color: pink; */ - } +} - .system .bottom .left .head { +.system .bottom .left .head { display: flex; flex-direction: column; align-content: center; @@ -64,145 +64,151 @@ border-top-left-radius: 30px; border-top-right-radius: 30px; /* background-color: skyblue; */ - background-color:#497fdf; + background-color: #497fdf; background-size: cover; color: #FFF; - } +} - .system .bottom .left .head img { +.system .bottom .left .head img { width: 70px; height: 70px; border-radius: 35px; background-color: gray; margin: 10px 45px; - } +} - .system .bottom .left .head h4 { +.system .bottom .left .head h4 { font-size: 18px; text-align: center; margin-top: 5px; - } +} - .system .bottom .left .head em { +.system .bottom .left .head em { font-size: 15px; text-align: center; - } +} - .system .bottom .left .titleList { +.system .bottom .left .titleList { display: flex; flex-direction: column; background-color: #fff; height: 100%; - } +} - .system .bottom .left .titleList li { +.system .bottom .left .titleList li { display: flex; line-height: 30px; padding: 10px 10px; - } +} - .system .bottom .left .titleList li .li1 { +.system .bottom .left .titleList li .li1 { width: 20px; height: 20px; margin: 5px 10px; - } +} - .system .bottom .left .titleList .title4 { +.system .bottom .left .titleList .title4 { display: flex; flex-direction: column; - } +} - .system .bottom .left .titleList .title4 .title { +.system .bottom .left .titleList .title4 .title { display: flex; - } +} - .system .bottom .left .titleList .title4 .list { +.system .bottom .left .titleList .title4 .list { margin-top: 15px; - } +} - .system .bottom .left .titleList .title4 .list li { +.system .bottom .left .titleList .title4 .list li { display: flex; line-height: 30px; - } +} - .system .bottom .left .titleList .title4 .list li:nth-child(1) { +.system .bottom .left .titleList .title4 .list li:nth-child(1) { border-radius: 10px; background-color: #497fdf; color: #FFF; - } +} - .system .bottom .left .titleList .title4 .list li em { +.system .bottom .left .titleList .title4 .list li em { line-height: 30px; margin: 0 15px 0 5px; - } +} - .system .bottom .left .titleList .title4 .list li h5 { +.system .bottom .left .titleList .title4 .list li h5 { line-height: 30px; font-size: 14px; - } +} - .system .bottom .right { +.system .bottom .right { display: flex; flex-direction: column; width: 100%; height: calc(100vh - 80px); margin-right: 30px; - - } - .system .bottom .right .top { +} + +.system .bottom .right .top { width: 100%; height: 60px; border-radius: 20px; margin-bottom: 15px; background-color: #fff; - } -.system .bottom .right .top .headline { - height: 60px; - line-height: 60px; - color: #333; - font-size: 16px; - margin-left: 20px; } - .system .bottom .right .content { +.system .bottom .right .top .headline { + height: 60px; + line-height: 60px; + color: #333; + font-size: 16px; + margin-left: 20px; +} + +.system .bottom .right .content { width: 100%; height: calc(100vh - 175px); border-radius: 20px; overflow: hidden; - } -.page-iframe{ - width: 100%; +} + +.page-iframe { + width: 100%; height: 100%; - border:none; - background:#fff; + border: none; + background: #fff; } -.layui-layout-right{ - background-color: #FFF !important; - margin-right:30px; - margin-top:20px; - height:40px; -} - .layui-layout-right .layui-nav-item, - .layui-layout-right .layui-nav-item a -{ - color: #000 !important; - font-size:18px !important; + +.layui-layout-right { + background-color: #FFF !important; + margin-right: 30px; + margin-top: 20px; + height: 40px; } + +.layui-layout-right .layui-nav-item, +.layui-layout-right .layui-nav-item a { + color: #000 !important; + font-size: 18px !important; +} + .layui-nav.layui-nav-tree { width: 200px; padding: 0; - background-color: #FFF !important; + background-color: #FFF !important; height: 650px; overflow: scroll; overflow-x: hidden; - padding-top:10px; + padding-top: 10px; } + ::-webkit-scrollbar { - display: none; /* Chrome Safari */ + display: none; /* Chrome Safari */ + -ms-overflow-style: none; /* IE 10+ */ + scrollbar-width: none; /* Firefox */ } --ms-overflow-style: none; /* IE 10+ */ -scrollbar-width: none; /* Firefox */ + .layui-nav-tree .layui-nav-item { display: block; @@ -211,78 +217,91 @@ scrollbar-width: none; /* Firefox */ line-height: 40px; padding: 5px 0; } -.layui-nav-tree .layui-nav-item>a { - color:#000!important; + +.layui-nav-tree .layui-nav-item > a { + color: #000 !important; } + .layui-nav-tree .layui-this, -.layui-nav-tree .layui-this>a, -.layui-nav-tree .layui-this>a:hover { - background: #497fdf !important; - color: #FFF !important; - border-radius: 10px; +.layui-nav-tree .layui-this > a, +.layui-nav-tree .layui-this > a:hover { + background: #497fdf !important; + color: #FFF !important; + border-radius: 10px; } .content .homepage { - display: flex; - flex-direction: column; - height: calc(100vh - 175px); - /*background-color: pink;*/ + display: flex; + flex-direction: column; + height: calc(100vh - 175px); + /*background-color: pink;*/ } + .content .homepage .homepage-top { - flex: 6; - margin-bottom: 15px; - background-color: #FFF; - border-radius: 20px; - padding: 10px; + flex: 6; + margin-bottom: 15px; + background-color: #FFF; + border-radius: 20px; + padding: 10px; } + .content .homepage .homepage-top .lineChart1 { - width: 100%; - height: 100%; + width: 100%; + height: 100%; } + .content .homepage .homepage-bottom { - display: flex; - flex: 4; - /*background-color: green;*/ + display: flex; + flex: 4; + /*background-color: green;*/ } + .content .homepage .homepage-bottom .lineChart2 { - flex: 3; - margin-right: 10px; - background-color: #FFF; - border-radius: 20px; - padding: 10px; + flex: 3; + margin-right: 10px; + background-color: #FFF; + border-radius: 20px; + padding: 10px; } + .content .homepage .homepage-bottom .pieChart { - flex: 3; - margin-right: 10px; - background-color: #FFF; - border-radius: 20px; - padding: 10px; + flex: 3; + margin-right: 10px; + background-color: #FFF; + border-radius: 20px; + padding: 10px; } + .content .homepage .homepage-bottom .barChart { - flex: 4; - background-color: #FFF; - border-radius: 20px; - padding: 10px; + flex: 4; + background-color: #FFF; + border-radius: 20px; + padding: 10px; } element.style { } -.layui-nav-tree .layui-this, .layui-nav-tree .layui-this>a, .layui-nav-tree .layui-this>a:hover { + +.layui-nav-tree .layui-this, .layui-nav-tree .layui-this > a, .layui-nav-tree .layui-this > a:hover { background: #497fdf !important; color: #fff !important; } -.layui-nav-tree .layui-nav-item>a { + +.layui-nav-tree .layui-nav-item > a { text-indent: 20px; /*color: #FFF!important;*/ } -.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this>a, .layui-nav-tree .layui-this>a:hover { + +.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this > a, .layui-nav-tree .layui-this > a:hover { background-color: #16baaa; color: #fff; } -.layui-nav-tree .layui-nav-item>a { + +.layui-nav-tree .layui-nav-item > a { padding-top: 5px; padding-bottom: 5px; } + .layui-nav-tree .layui-nav-item a { position: relative; height: 40px; @@ -291,34 +310,43 @@ element.style { overflow: hidden; white-space: nowrap; } + /*list~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ .list-page-container { - padding: 15px; + padding: 15px; } + .layui-btn { - background-color: #1e9fff; + background-color: #1e9fff; } + .layui-btn-normal { background-color: #16baaa; } + .layui-btn-danger { background-color: #ff5722; } + .layui-btn-primary { border-color: #d2d2d2; background: 0 0; color: #5f5f5f; } + .layui-input-block { margin-left: 0px; min-height: 36px; } + .layui-input:focus { - border-color: #6083e9 !important; + border-color: #6083e9 !important; } + .layui-col-xs2 { width: 12%; } + .layui-elem-quote { margin-bottom: 10px; padding: 15px; @@ -327,16 +355,19 @@ element.style { border-radius: 0 2px 2px 0; background-color: #fafafa; } + .layui-btn-sm { height: 30px; line-height: 30px; padding: 0 20px; font-size: 12px; } + /*save~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ .form-container { padding: 0px 15px 15px 0; } + .form-container .form-header { /* border-bottom: 1px solid #EEEEEE; */ padding: 10px 0 10px 15px; @@ -352,15 +383,18 @@ element.style { background-color: #fafafa; border-left: 5px solid #6083e9; } + .form-container .form-body { padding: 20px 0 62px 20px; } + .layui-form-item { position: relative; margin-bottom: 15px; clear: both; *zoom: 1; } + .layui-form-label { position: relative; float: left; @@ -371,6 +405,7 @@ element.style { line-height: 20px; /* text-align: right; */ } + .form-container .form-footer { border-top: 1px solid #EEEEEE; padding: 15px; @@ -382,3 +417,8 @@ element.style { z-index: 100; text-align: center; } + +.red-star:after { + content: "*"; + color: red; +} \ No newline at end of file diff --git a/sbewmxjxt/src/main/resources/static/route/pages/178cdf/list.html b/sbewmxjxt/src/main/resources/static/route/pages/178cdf/list.html index 828107e..879d3af 100644 --- a/sbewmxjxt/src/main/resources/static/route/pages/178cdf/list.html +++ b/sbewmxjxt/src/main/resources/static/route/pages/178cdf/list.html @@ -1,12 +1,12 @@ - - - + + + 设备二维码巡检系统 - - + +
@@ -16,9 +16,10 @@
- +
- +
@@ -33,9 +34,14 @@
@@ -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/178cdf', 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,51 +85,63 @@ field: 'sbmc', title: '设备名称', minWidth: 80, + fixed: "left", + align: "center" }, { field: 'sbxh', title: '设备型号', minWidth: 80, + fixed: "left", + align: "center" }, { field: 'gzms', title: '故障描述', - minWidth: 80, + minWidth: 150, + align: "center" }, { field: 'bxsj', title: '报修时间', - minWidth: 80, + minWidth: 180, + align: "center" }, { field: 'yjxfsj', title: '预计修复时间', - minWidth: 80, + minWidth: 180, + align: "center" }, { field: 'sjxfsj', title: '实际修复时间', - minWidth: 80, + minWidth: 180, + align: "center" }, { field: 'wxry', title: '维修人员', minWidth: 80, + align: "center" }, { field: 'wxzt', title: '维修状态', minWidth: 80, + align: "center" }, { field: 'wxfy', title: '维修费用', minWidth: 80, + align: "center" }, { field: 'bz', title: '备注', - minWidth: 80, + minWidth: 280, + align: "center" }, ] ], @@ -133,19 +151,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, @@ -155,14 +173,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({ @@ -170,48 +188,49 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/178cdf/update.html?id='+ checkDatas[0].id, + content: 'route/pages/178cdf/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/178cdf?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); } }) @@ -219,7 +238,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/178cdf/save.html b/sbewmxjxt/src/main/resources/static/route/pages/178cdf/save.html index 366526c..517019a 100644 --- a/sbewmxjxt/src/main/resources/static/route/pages/178cdf/save.html +++ b/sbewmxjxt/src/main/resources/static/route/pages/178cdf/save.html @@ -1,11 +1,11 @@ - - + + 设备二维码巡检系统 - - + +
@@ -14,55 +14,61 @@
维修管理新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -76,8 +82,12 @@
@@ -85,6 +95,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/17fbb1', 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,37 @@ field: 'ewmID', title: '二维码ID', minWidth: 80, + align: "center" }, { field: 'sbID', title: '设备ID', minWidth: 80, + align: "center" }, { field: 'xjzt', title: '巡检状态', minWidth: 80, + align: "center" }, { field: 'gxsj', title: '更新时间', minWidth: 80, + align: "center" }, { field: 'cjsj', title: '创建时间', minWidth: 80, + align: "center" }, { field: 'bz', title: '备注', minWidth: 80, + align: "center" }, ] ], @@ -113,19 +125,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 +147,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 +162,49 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/17fbb1/update.html?id='+ checkDatas[0].id, + content: 'route/pages/17fbb1/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/17fbb1?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 +212,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/17fbb1/save.html b/sbewmxjxt/src/main/resources/static/route/pages/17fbb1/save.html index 650f2c0..7cdbd35 100644 --- a/sbewmxjxt/src/main/resources/static/route/pages/17fbb1/save.html +++ b/sbewmxjxt/src/main/resources/static/route/pages/17fbb1/save.html @@ -1,11 +1,11 @@ - - + + 设备二维码巡检系统 - - + +
@@ -14,33 +14,37 @@
二维码更新新增数据
- +
- +
- +
- +
- +
- +
- +
- +
@@ -52,8 +56,12 @@
@@ -61,6 +69,18 @@
@@ -51,13 +58,13 @@ var $ = layui.$; var $win = $(window); - var initTableData = function(keywords) { + var initTableData = function (keywords) { $.ajax({ type: 'GET', url: 'api/data/list/ea3a1a/3aa3bd', 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 +73,7 @@ toolbar: '#headerToolBar', cols: [ [ - { type: "checkbox", fixed: "left" }, + {type: "checkbox", fixed: "left"}, { field: "rowNum", width: 80, @@ -79,41 +86,50 @@ field: 'bjmc', title: '备件名称', minWidth: 80, + fixed: "left", + align: "center" }, { field: 'bjbh', title: '备件编号', minWidth: 80, + align: "center" }, { field: 'bjlx', title: '备件类型', minWidth: 80, + align: "center" }, { field: 'kcsl', title: '库存数量', minWidth: 80, + align: "center" }, { field: 'aqkcl', title: '安全库存量', minWidth: 80, + align: "center" }, { field: 'gys', title: '供应商', - minWidth: 80, + minWidth: 230, + align: "center" }, { field: 'cgjg', title: '采购价格', minWidth: 80, + align: "center" }, { field: 'bzxx', title: '备注信息', minWidth: 80, + align: "center" }, ] ], @@ -123,19 +139,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 +161,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 +176,49 @@ title: false, closeBtn: false, shadeClose: true, - content: 'route/pages/3aa3bd/update.html?id='+ checkDatas[0].id, + content: 'route/pages/3aa3bd/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/3aa3bd?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 +226,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/3aa3bd/save.html b/sbewmxjxt/src/main/resources/static/route/pages/3aa3bd/save.html index 8ab1e09..ecd482b 100644 --- a/sbewmxjxt/src/main/resources/static/route/pages/3aa3bd/save.html +++ b/sbewmxjxt/src/main/resources/static/route/pages/3aa3bd/save.html @@ -14,43 +14,43 @@
备件库存新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
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 @@ - - + + 设备二维码巡检系统 - - + +
@@ -14,55 +14,66 @@
操作日志新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -70,8 +81,12 @@
@@ -79,6 +94,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/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 @@
权限管理新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -56,7 +71,7 @@
- +
@@ -64,8 +79,12 @@
@@ -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 @@
异常报警新增数据
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -58,7 +67,7 @@
- +
@@ -70,8 +79,12 @@
@@ -79,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/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 @@ - - + + 设备二维码巡检系统 - - + +
@@ -14,37 +14,43 @@
扫码识别新增数据
- +
- +
- +
- +
- +
- +
- +
- +
@@ -52,8 +58,12 @@
@@ -61,6 +71,18 @@