From 937f69c1060ac7acbd0f6e664f73c71a0fcc46d6 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期一, 28 三月 2022 13:12:03 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/orderTable.js | 3 ++-
src/main/webapp/static/js/order/out.js | 10 +++++++---
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/static/js/order/out.js b/src/main/webapp/static/js/order/out.js
index d9f3b50..95280dd 100644
--- a/src/main/webapp/static/js/order/out.js
+++ b/src/main/webapp/static/js/order/out.js
@@ -173,12 +173,13 @@
let index = obj.othis.parents('tr').attr("data-index");
let data = tableCache[index];
data['staNo'] = Number(obj.elem.value);
+ obj.othis.children().find("input").css("color", "blue");
return false;
});
}
,yes: function(index, layero){
//鎸夐挳銆愮珛鍗冲嚭搴撱�戠殑鍥炶皟
- pakout(tableCache);
+ pakout(tableCache, index);
}
,btn2: function(index, layero){
//鎸夐挳銆愮◢鍚庡鐞嗐�戠殑鍥炶皟
@@ -195,7 +196,7 @@
})
}
- function pakout(tableCache) {
+ function pakout(tableCache, layerIndex) {
let loadIndex = layer.load(2);
$.ajax({
url: baseUrl + "/out/pakout/auth",
@@ -206,7 +207,10 @@
success: function (res) {
layer.close(loadIndex);
if (res.code === 200) {
- layer.msg(res.msg, {icon: 1})
+ layer.close(layerIndex);
+ layer.msg(res.msg, {icon: 1});
+ insTb.reload({where: null});
+ insTb2.reload({where: null, page: {curr: 1}});
} else if (res.code === 403) {
top.location.href = baseUrl + "/";
} else {
diff --git a/src/main/webapp/static/js/orderTable.js b/src/main/webapp/static/js/orderTable.js
index 2225c57..5d4c8b1 100644
--- a/src/main/webapp/static/js/orderTable.js
+++ b/src/main/webapp/static/js/orderTable.js
@@ -1,3 +1,4 @@
+var insTb;
layui.config({
base: baseUrl + "/static/layui/lay/modules/" // 閰嶇疆妯″潡鎵�鍦ㄧ殑鐩綍
}).use(['table','laydate', 'form', 'admin'], function() {
@@ -10,7 +11,7 @@
/****************************************** 宸﹁竟琛� *************************************************/
- var insTb = table.render({
+ insTb = table.render({
elem: '#originTable',
url: baseUrl + '/order/nav/list/auth',
height: 'full-120',
--
Gitblit v1.9.1