From 94258fd2a1119beaef2c8662df94eddae44c69f0 Mon Sep 17 00:00:00 2001 From: whycq <123456> Date: 星期二, 29 十一月 2022 21:33:47 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/locDetl/locDetl.js | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js index fcda34d..8c1eab5 100644 --- a/src/main/webapp/static/js/locDetl/locDetl.js +++ b/src/main/webapp/static/js/locDetl/locDetl.js @@ -8,8 +8,8 @@ ,{field: 'batch', align: 'center',title: '搴忓垪鐮�', width: 300, sort:true} ,{field: 'anfme', align: 'center',title: '鏁伴噺'} ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'} - - ,{field: 'specs', align: 'center',title: '閰嶇疆'} + ,{field: 'memo', align: 'center',title: '澶囨敞',sort: true} + ,{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', @@ -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