From b5130c2e6d60c7f23e37f7c620375bc4e253caa3 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 18 十月 2022 14:52:20 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/locDetl/locDetl.js | 35 +++++++++++++++++++++++++++++++++-- 1 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js index 7adbca0..9ec3489 100644 --- a/src/main/webapp/static/js/locDetl/locDetl.js +++ b/src/main/webapp/static/js/locDetl/locDetl.js @@ -9,7 +9,7 @@ ,{field: 'anfme', align: 'center',title: '鏁伴噺'} ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'} - ,{field: 'specs', align: 'center',title: '閰嶇疆'} + ,{field: 'specs', align: 'center',title: '瑙勬牸'} ,{field: 'model', align: 'center',title: '浠g爜', hide: true} ,{field: 'color', align: 'center',title: '棰滆壊', hide: true} ,{field: 'brand', align: 'center',title: '鍝佺墝', hide: true} @@ -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', @@ -190,6 +193,7 @@ 'locDetl': exportData, 'fields': fields }; + var loadIndex = layer.msg('姝e湪瀵煎嚭...', {icon: 16, shade: 0.01, time: false}); $.ajax({ url: baseUrl+"/locDetl/export/auth", headers: {'token': localStorage.getItem('token')}, @@ -198,6 +202,7 @@ contentType:'application/json;charset=UTF-8', method: 'POST', success: function (res) { + layer.close(loadIndex); layer.closeAll(); if (res.code === 200) { table.exportFile(titles,res.data,'xls'); @@ -445,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); + } + }); }); // 鏃堕棿閫夋嫨鍣� @@ -471,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