Merge branch 'main' of http://10.10.14.176:3000/huanghai/dsProject
commit
93743548ab
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 323 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -0,0 +1,137 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title></title>
|
||||||
|
<link rel="stylesheet" href="../layui/css/layui.css" />
|
||||||
|
<style>
|
||||||
|
.require-star {
|
||||||
|
position: absolute;
|
||||||
|
width: 3px;
|
||||||
|
height: 14px;
|
||||||
|
background-color: #ea4335;
|
||||||
|
top: 12px;
|
||||||
|
right: 8px;
|
||||||
|
border-radius: 1.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-width {
|
||||||
|
max-width: 455px
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainBox {
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
left: 0px;
|
||||||
|
bottom: 50px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-container {
|
||||||
|
margin: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom {
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0px;
|
||||||
|
left: 0px;
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
background-color: #F8F8F8;
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-container {
|
||||||
|
position: absolute;
|
||||||
|
right: 15px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<form class="layui-form" action="">
|
||||||
|
<div class="mainBox">
|
||||||
|
<div class="main-container">
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label" style="width: auto;"><span class="require-star"></span>充电桩名称</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" id="equipmentName" name="equipmentName" lay-verify="required"
|
||||||
|
autocomplete="off" placeholder="请输入充电桩名称" class="layui-input input-width">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bottom">
|
||||||
|
<div class="button-container">
|
||||||
|
<button type="submit" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="save">
|
||||||
|
<i class="layui-icon layui-icon-ok"></i>
|
||||||
|
提交
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<script src="../layui/layui.js"></script>
|
||||||
|
<script src="../../../lib/base64.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
layui.use(function () {
|
||||||
|
var form = layui.form;
|
||||||
|
var $ = layui.jquery;
|
||||||
|
var laytpl = layui.laytpl;
|
||||||
|
|
||||||
|
var id = GetQueryString("id");
|
||||||
|
var name = GetQueryString("name");
|
||||||
|
|
||||||
|
$("#equipmentName").val(decodeURIComponent(Base64.decode(name)));
|
||||||
|
|
||||||
|
|
||||||
|
form.on('submit(save)', function (data) {
|
||||||
|
|
||||||
|
data.field['equipmentId'] = id;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: '/ZhuQue/wxgzh/modifyEquipment',
|
||||||
|
async: false,
|
||||||
|
data: data.field,
|
||||||
|
type: 'post',
|
||||||
|
success: function (res) {
|
||||||
|
if (res.code === 200) {
|
||||||
|
layer.msg("修改成功!", {
|
||||||
|
icon: 1,
|
||||||
|
time: 1300
|
||||||
|
}, function () {
|
||||||
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
||||||
|
parent.layui.table.reload("data-table");
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
layer.msg(result.msg, {
|
||||||
|
icon: 2,
|
||||||
|
time: 2000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function GetQueryString(name, istop) {
|
||||||
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||||
|
var r = window.location.search.substr(1).match(reg);
|
||||||
|
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||||||
|
|
||||||
|
if (r != null) return unescape(r[2]);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
Reference in new issue