7
This commit is contained in:
Regular → Executable
+11
-2
@@ -1066,8 +1066,17 @@ define(['jquery', 'bootstrap', 'moment', 'bootstrap-table', 'bootstrap-table-lan
|
||||
if (typeof this.disable !== "undefined") {
|
||||
disable = typeof this.disable === "function" ? this.disable.call(this, value, row, index) : this.disable;
|
||||
}
|
||||
return '<label data-toggle="tooltip" title="' + __('点击切换') + '" class="lyear-switch switch-success switch-light btn-change ' + (disable ? 'btn disabled no-padding' : '') + '" data-index="' + index + '" data-id="'
|
||||
+ row[pk] + '" ' + (url ? "data-url='" + url + "'" : "") + (confirm ? "data-confirm='" + confirm + "'" : "") + ' data-params="' + this.field + "=" + (value == yes ? no : yes) + '"><input type="checkbox" '+(value ? 'checked' : '')+'><span></span></label>';
|
||||
return '<label data-toggle="tooltip" '
|
||||
+'title="' + __('点击切换') + '" '
|
||||
+'class="lyear-switch switch-success switch-light btn-change ' + (disable ? 'btn disabled no-padding' : '') + '" '
|
||||
+'data-index="' + index + '" '
|
||||
+'data-id="'+ row[pk] + '" '
|
||||
+ (url ? "data-url='" + url + "'" : "")
|
||||
+ (confirm ? "data-confirm='" + confirm + "'" : "")
|
||||
+ ' data-params="' + this.field + "=" + (value == yes ? no : yes) + '">'
|
||||
+'<input type="checkbox" '+(value ? 'checked' : '')+'>'
|
||||
+'<i title="开启|关闭"></i>'
|
||||
+'</label>';
|
||||
},
|
||||
normal: function (value, row, index) {
|
||||
var colorArr = ["primary", "success", "danger", "warning", "info", "gray", "red", "yellow", "aqua", "blue", "navy", "teal", "olive", "lime", "fuchsia", "purple", "maroon"];
|
||||
|
||||
Reference in New Issue
Block a user