This commit is contained in:
parent
38f3c33c5b
commit
f43fc2abe4
|
|
@ -23,7 +23,7 @@ body {
|
|||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
justify-content: space-between;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
|
|
@ -52,6 +52,10 @@ body {
|
|||
padding-bottom: 70px; /* 为底部固定按钮留出空间 */
|
||||
}
|
||||
|
||||
.h5-container .header-right {
|
||||
margin-right: 12px !important;
|
||||
}
|
||||
|
||||
/* 表单卡片 */
|
||||
.form-card {
|
||||
background: #fff;
|
||||
|
|
@ -96,6 +100,7 @@ body {
|
|||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin-right: 12px !important;
|
||||
}
|
||||
|
||||
.return-btn .layui-icon {
|
||||
|
|
|
|||
|
|
@ -10,15 +10,15 @@ layui.use(['form', 'layer', 'laydate', 'upload'], function () {
|
|||
layer = layui.layer;
|
||||
laydate = layui.laydate;
|
||||
upload = layui.upload;
|
||||
let token = getUrlParam('token');
|
||||
if (!token) {
|
||||
let gz_token = sessionStorage.getItem("gz-token");
|
||||
if (gz_token) {
|
||||
token = gz_token;
|
||||
}
|
||||
}else{
|
||||
sessionStorage.setItem("gz-token",token)
|
||||
}
|
||||
let token = getUrlParam('token');
|
||||
if (!token) {
|
||||
let gz_token = sessionStorage.getItem("gz-token");
|
||||
if (gz_token) {
|
||||
token = gz_token;
|
||||
}
|
||||
} else {
|
||||
sessionStorage.setItem("gz-token", token)
|
||||
}
|
||||
// 检查是否有从选择页面返回的数据
|
||||
checkSelectedData();
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ layui.use(['form', 'layer', 'laydate', 'upload'], function () {
|
|||
|
||||
// 优化下拉选择框宽度
|
||||
optimizeSelectWidth();
|
||||
getProList();
|
||||
getProList();
|
||||
// 监听下拉框打开事件,确保宽度一致
|
||||
$(document).on('click', '.layui-form-select .layui-select-title', function () {
|
||||
setTimeout(function () {
|
||||
|
|
@ -973,7 +973,8 @@ function submitApply() {
|
|||
layer.close(loadingMsg);
|
||||
if (result.code === 200) {
|
||||
layer.msg('提交成功', { icon: 1 }, function () {
|
||||
// 提交成功后刷新页面
|
||||
// 提交成功后返回上一页
|
||||
window.history.back();
|
||||
// window.location.reload();
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -8,15 +8,15 @@ layui.use(['form', 'layer', 'laydate', 'upload'], function () {
|
|||
layer = layui.layer;
|
||||
laydate = layui.laydate;
|
||||
upload = layui.upload;
|
||||
let token = getUrlParam('token');
|
||||
if (!token) {
|
||||
let gz_token = sessionStorage.getItem("gz-token");
|
||||
if (gz_token) {
|
||||
token = gz_token;
|
||||
}
|
||||
}else{
|
||||
sessionStorage.setItem("gz-token",token)
|
||||
}
|
||||
let token = getUrlParam('token');
|
||||
if (!token) {
|
||||
let gz_token = sessionStorage.getItem("gz-token");
|
||||
if (gz_token) {
|
||||
token = gz_token;
|
||||
}
|
||||
} else {
|
||||
sessionStorage.setItem("gz-token", token)
|
||||
}
|
||||
// 检查是否有从选择页面返回的数据
|
||||
checkSelectedData();
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ layui.use(['form', 'layer', 'laydate', 'upload'], function () {
|
|||
}, 50);
|
||||
}
|
||||
});
|
||||
getProList();
|
||||
getProList();
|
||||
// 不拦截layui的搜索事件,让layui自己处理过滤
|
||||
// layui会自动处理搜索过滤,我们只需要确保样式正确
|
||||
});
|
||||
|
|
@ -928,7 +928,7 @@ function submitApply() {
|
|||
layer.close(loadingMsg);
|
||||
if (result.code === 200) {
|
||||
layer.msg('提交成功', { icon: 1 }, function () {
|
||||
// 提交成功后返回上一页或跳转
|
||||
// 提交成功后返回上一页
|
||||
window.history.back();
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,13 @@
|
|||
<i class="layui-icon layui-icon-setting"></i>
|
||||
<span class="header-title">贵送机具管理系统</span>
|
||||
</div>
|
||||
|
||||
<div class="header-right">
|
||||
<button class="return-btn" onclick="closePage()">
|
||||
<i class="layui-icon layui-icon-left"></i>
|
||||
<span>返回</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="h5-container">
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@
|
|||
<i class="layui-icon layui-icon-setting"></i>
|
||||
<span class="header-title">贵送机具管理系统</span>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<button class="return-btn" onclick="closePage()">
|
||||
<i class="layui-icon layui-icon-left"></i>
|
||||
<span>返回</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="h5-container">
|
||||
|
|
|
|||
Loading…
Reference in New Issue