From ef6a447ebd464a254b5d028c1b108fdc6db82fb3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 27 九月 2022 15:47:33 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/locDetl/locDetl.js | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index fcda34d..7c9a734 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -59,6 +59,9 @@
url: baseUrl+'/locDetl/list/auth',
page: true,
limit: 20,
+ where:{
+ unreason: false
+ },
limits: [20, 30, 50, 100, 200, 500],
even: true,
toolbar: '#toolbar',
@@ -447,11 +450,35 @@
tableReload(false);
});
+
// 鎼滅储鏍忛噸缃簨浠�
form.on('submit(reset)', function (data) {
pageCurr = 1;
clearFormVal($('#search-box'));
tableReload(false);
+ });
+
+ //鏌ョ湅寮傚父鏁版嵁
+ form.on('submit(unreason)', function (data) {
+ pageCurr = 1;
+
+ tableIns.reload({
+ where: {
+ unreason: true
+ },
+ page: {
+ curr: pageCurr
+ },
+ done: function (res, curr, count) {
+
+ if (res.code === 403) {
+ top.location.href = baseUrl+"/";
+ }
+ pageCurr=curr;
+
+ limit(child);
+ }
+ });
});
// 鏃堕棿閫夋嫨鍣�
@@ -473,7 +500,9 @@
});
function tableReload(child) {
- var searchData = {};
+ var searchData = {
+ unreason: false
+ };
$.each($('#search-box [name]').serializeArray(), function() {
searchData[this.name] = this.value;
});
--
Gitblit v1.9.1