From 7003e5312aa1623bd246e7f9fa98bd75fcbea543 Mon Sep 17 00:00:00 2001 From: PPPSCN <35696959@qq.com> Date: Sun, 29 Apr 2018 10:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=99=AE=E9=80=9A=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=8F=92=E4=BB=B6=E2=80=94=E2=80=94=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=BC=A0=E5=85=A5css=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/bootstrap-table-commonsearch.js | 19 ++++++++++--------- public/assets/js/require-table.js | 7 +++++++ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/public/assets/js/bootstrap-table-commonsearch.js b/public/assets/js/bootstrap-table-commonsearch.js index 7036c40e..5711bd28 100644 --- a/public/assets/js/bootstrap-table-commonsearch.js +++ b/public/assets/js/bootstrap-table-commonsearch.js @@ -51,7 +51,7 @@ return Template(that.options.searchFormTemplate, {columns: pColumns, table: that}); } var htmlForm = []; - htmlForm.push(sprintf('
', that.options.actionForm)); + htmlForm.push(sprintf('', that.options.searchFormCss.form, that.options.actionForm)); htmlForm.push('
'); if (that.options.titleForm.length > 0) htmlForm.push(sprintf("%s", that.options.titleForm)); @@ -66,9 +66,9 @@ vObjCol.operate = that.options.renderDefault && operate ? operate : (typeof vObjCol.operate === 'undefined' ? '=' : vObjCol.operate); ColumnsForSearch.push(vObjCol); - htmlForm.push('
'); - htmlForm.push(sprintf('', vObjCol.field, vObjCol.title)); - htmlForm.push('
'); + htmlForm.push(sprintf('
', that.options.searchFormCss.form_group)); + htmlForm.push(sprintf('', vObjCol.field, that.options.searchFormCss.label, vObjCol.title)); + htmlForm.push(sprintf('
', that.options.searchFormCss.container)); vObjCol.operate = vObjCol.operate ? vObjCol.operate.toUpperCase() : '='; htmlForm.push(sprintf('', vObjCol.field, vObjCol.field, vObjCol.operate)); @@ -132,7 +132,8 @@ htmlForm.push('
'); } } - htmlForm.push('
'); + htmlForm.push(sprintf('
', that.options.searchFormCss.form_group)); + htmlForm.push(sprintf('', that.options.searchFormCss.label_btn)); htmlForm.push(createFormBtn(that).join('')); htmlForm.push('
'); htmlForm.push('
'); @@ -146,7 +147,7 @@ var htmlBtn = []; var searchSubmit = that.options.formatCommonSubmitButton(); var searchReset = that.options.formatCommonResetButton(); - htmlBtn.push('
'); + htmlBtn.push(sprintf('
', that.options.searchFormCss.container)); htmlBtn.push(sprintf(' ', searchSubmit)); htmlBtn.push(sprintf(' ', searchReset)); htmlBtn.push('
'); @@ -297,7 +298,7 @@ var that = this, html = []; - if(that.options.showSearch){ + if (that.options.showSearch) { html.push(sprintf('
', this.options.buttonsAlign, this.options.buttonsAlign)); html.push(sprintf('