优化提示
This commit is contained in:
parent
5368651639
commit
fadb49352a
@ -8,12 +8,12 @@
|
||||
<link rel="stylesheet" href="/app/admin/admin/css/reset.css" />
|
||||
</head>
|
||||
<body class="pear-container">
|
||||
|
||||
|
||||
<!-- 顶部查询表单 -->
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<form class="layui-form top-search-from">
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">家长姓名</label>
|
||||
<div class="layui-input-block">
|
||||
@ -22,7 +22,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">账号</label>
|
||||
<div class="layui-input-block">
|
||||
@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item layui-inline">
|
||||
<label class="layui-form-label"></label>
|
||||
<button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="table-query">
|
||||
@ -48,7 +48,7 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 数据表格 -->
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
@ -87,7 +87,7 @@
|
||||
<script src="/app/admin/component/pear/pear.js"></script>
|
||||
<script src="/app/admin/admin/js/permission.js"></script>
|
||||
<script src="/app/admin/admin/js/common.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
// 相关常量
|
||||
@ -123,7 +123,7 @@
|
||||
let $ = layui.$;
|
||||
let common = layui.common;
|
||||
let util = layui.util;
|
||||
|
||||
|
||||
// 表头参数
|
||||
let cols = [
|
||||
{
|
||||
@ -186,7 +186,7 @@
|
||||
width: 220,
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
// 渲染表格
|
||||
table.render({
|
||||
elem: "#data-table",
|
||||
@ -206,8 +206,8 @@
|
||||
layer.photos({photos: 'div[lay-id="data-table"]', anim: 5});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
// 编辑或删除行事件
|
||||
table.on("tool(data-table)", function(obj) {
|
||||
if (obj.event === "remove") {
|
||||
@ -253,14 +253,14 @@
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
// 表格顶部搜索重置事件
|
||||
form.on("submit(table-reset)", function(data) {
|
||||
table.reload("data-table", {
|
||||
where: []
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
// 字段允许为空
|
||||
form.verify({
|
||||
phone: [/(^$)|^1\d{10}$/, "请输入正确的手机号"],
|
||||
@ -320,7 +320,7 @@
|
||||
let first_name = obj.data['account'].split(' ');
|
||||
console.log(first_name)
|
||||
let new_password = first_name[0].trim() + '001';
|
||||
layer.confirm("确定重置密码?重置后新密码格式为【Ben001】", {
|
||||
layer.confirm("确定重置密码?重置后新密码格式为【"+new_password+"】", {
|
||||
icon: 3,
|
||||
title: "提示"
|
||||
}, function(index) {
|
||||
|
@ -340,7 +340,7 @@
|
||||
let first_name = obj.data['account'].split(' ');
|
||||
console.log(first_name)
|
||||
let new_password = first_name[0].trim() + '001';
|
||||
layer.confirm("确定充值密码?重置后新密码为【" + new_password + "】", {
|
||||
layer.confirm("确定重置密码?重置后新密码为【" + new_password + "】", {
|
||||
icon: 3,
|
||||
title: "提示"
|
||||
}, function (index) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user