From ace56cf0504470ffe6a771322afde56f048c1c26 Mon Sep 17 00:00:00 2001 From: eviltrue <81997167@qq.com> Date: Fri, 17 Aug 2018 14:40:46 +0800 Subject: [PATCH] =?UTF-8?q?toggle=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit toggle无效问题 --- public/assets/js/require-table.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js index d192c1a3..afff4a14 100644 --- a/public/assets/js/require-table.js +++ b/public/assets/js/require-table.js @@ -423,9 +423,8 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table var yes = typeof this.yes !== 'undefined' ? this.yes : 1; var no = typeof this.no !== 'undefined' ? this.no : 0; return ""; - } - , + + row.id + "' data-params='" + this.field + "=" + (value == yes ? no : yes) + "'>"; + }, url: function (value, row, index) { return '
'; },