From e9c4bbdc195c56e866298c8989ee22cc3450f9fe Mon Sep 17 00:00:00 2001 From: "DESKTOP-7M4123\\asus" Date: Thu, 8 Apr 2021 11:30:35 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=90=8E=E5=8F=B0=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=87=AA=E5=AE=9A=E4=B9=89=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/assets/js/zhyd.table.js | 19 ++++++++++++------- .../main/resources/templates/article/list.ftl | 15 +++++++++++++++ .../blog/business/vo/ArticleConditionVO.java | 1 + .../resources/mybatis/BizArticleMapper.xml | 5 +++++ 4 files changed, 33 insertions(+), 7 deletions(-) diff --git a/blog-admin/src/main/resources/static/assets/js/zhyd.table.js b/blog-admin/src/main/resources/static/assets/js/zhyd.table.js index 1ceee25..97c99be 100644 --- a/blog-admin/src/main/resources/static/assets/js/zhyd.table.js +++ b/blog-admin/src/main/resources/static/assets/js/zhyd.table.js @@ -25,7 +25,8 @@ Table.prototype = { var $tablelist = $(options.tableBox); $tablelist.bootstrapTable('destroy').bootstrapTable({ url: options.url, - method: 'post', //请求方式(*) + method: 'method' in options ? options.method : 'post', //请求方式(*) + formId: 'formId' in this.options ? this.options.formId : '#form1', toolbar: options.showToolbar !== false ? options.toolbar ? options.toolbar : '#toolbar' : '', //工具按钮用哪个容器 striped: true, //是否显示行间隔色 cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*) @@ -208,12 +209,16 @@ Table.prototype = { $(options.tableBox).bootstrapTable('refresh', {url: options.url}); }, getSelectedIds: function () { - var selectedJson = this.getSelections(); - var ids = []; - $.each(selectedJson, function (i) { - ids.push(selectedJson[i].id); - }); - return ids; + var formdata = $(this.formId).serialize(); + var data = formdata.split('&'); + var parameter = {}; + for(var i=0;i
+
+
+ + +
+
+ + +
+
+ +
+
+