作者 开飞机的舒克

取消下拉框选择

... ... @@ -17,14 +17,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var table = $("#table");
//顶部搜索栏
table.on('post-common-search.bs.table', function (event, table) {
var form = $("form", table.$commonsearch);
//类型名称
$("input[name='title']", form).addClass("selectpage").data("source", "activity/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
Form.events.cxselect(form);
Form.events.selectpage(form);
});
// 初始化表格
table.bootstrapTable({
... ...
... ... @@ -17,16 +17,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var table = $("#table");
//顶部搜索栏
table.on('post-common-search.bs.table', function (event, table) {
var form = $("form", table.$commonsearch);
//类型名称
$("input[name='title']", form).addClass("selectpage").data("source", "campus/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
$("input[name='school.title']", form).addClass("selectpage").data("source", "school/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
$("input[name='activity.title']", form).addClass("selectpage").data("source", "activity/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
Form.events.cxselect(form);
Form.events.selectpage(form);
});
// 初始化表格
table.bootstrapTable({
... ...
... ... @@ -17,17 +17,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var table = $("#table");
//顶部搜索栏
table.on('post-common-search.bs.table', function (event, table) {
var form = $("form", table.$commonsearch);
//类型名称
$("input[name='campus.title']", form).addClass("selectpage").data("source", "campus/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
//$("input[name='activity.title']", form).addClass("selectpage").data("source", "activity/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
$("input[name='title']", form).addClass("selectpage").data("source", "item/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
Form.events.cxselect(form);
Form.events.selectpage(form);
});
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
... ...
... ... @@ -17,15 +17,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var table = $("#table");
//顶部搜索栏
table.on('post-common-search.bs.table', function (event, table) {
var form = $("form", table.$commonsearch);
//类型名称
$("input[name='item.title']", form).addClass("selectpage").data("source", "item/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
$("input[name='team.title']", form).addClass("selectpage").data("source", "team/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
Form.events.cxselect(form);
Form.events.selectpage(form);
});
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
... ...
... ... @@ -31,7 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('ID')},
{field: 'id', title: __('ID'), operate: false},
{field: 'title', title: __('Title'), operate: 'LIKE'},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
//{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
... ...
... ... @@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'id', title: __('Id'), operate: false},
{field: 'campus.title', title: __('Campus.title'), operate: 'LIKE'},
{field: 'title', title: __('Title'), operate: 'LIKE'},
{field: 'holdtime', title: __('Holdtime'), operate: 'LIKE',formatter:Table.api.formatter.datetime,datetimeFormat: "YYYY-MM-DD"},
... ...
... ... @@ -17,14 +17,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
var table = $("#table");
//顶部搜索栏
table.on('post-common-search.bs.table', function (event, table) {
var form = $("form", table.$commonsearch);
//类型名称
$("input[name='title']", form).addClass("selectpage").data("source", "school/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
Form.events.cxselect(form);
Form.events.selectpage(form);
});
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
... ...
... ... @@ -31,7 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('ID')},
{field: 'id', title: __('ID'), operate: false},
{field: 'title', title: __('Title'), operate: 'LIKE'},
{field: 'count_time', title: __('倒计时')},
//{field: 'campus_id', title: __('Campus_id')},
... ...
... ... @@ -31,7 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'id', title: __('Id'), operate: false},
{field: 'title', title: __('Title'), operate: 'LIKE'},
{field: 'score', title: __('Score'), operate:'BETWEEN'},
{field: 'rank_text', title: __('排名'), operate: false},
... ...