...
|
...
|
@@ -5,11 +5,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
// 初始化表格参数配置
|
|
|
Table.api.init({
|
|
|
extend: {
|
|
|
index_url: 'mobile/secret_spec/index' + location.search,
|
|
|
add_url: 'mobile/secret_spec/add' + location.search,
|
|
|
edit_url: 'mobile/secret_spec/edit',
|
|
|
del_url: 'mobile/secret_spec/del',
|
|
|
multi_url: 'mobile/secret_spec/multi',
|
|
|
index_url: 'mobile/secret/secret_spec/index' + location.search,
|
|
|
add_url: 'mobile/secret/secret_spec/add' + location.search,
|
|
|
edit_url: 'mobile/secret/secret_spec/edit',
|
|
|
del_url: 'mobile/secret/secret_spec/del',
|
|
|
multi_url: 'mobile/secret/secret_spec/multi',
|
|
|
table: 'mobile_secret_spec',
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -30,7 +30,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
{field: 'original_price', title: __('Original_price'), operate:'BETWEEN'},
|
|
|
{field: 'people_num', title: __('People_num')},
|
|
|
{field: 'is_top', title: __('Is_top'), searchList: {"0":__('Is_top 0'),"1":__('Is_top 1')}, formatter: Table.api.formatter.normal},
|
|
|
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
...
|
...
|
@@ -47,11 +46,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
},
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
$(document).on("change", "#c-is_top", function () {
|
|
|
if($(this).val() == '1'){
|
|
|
$('#c-people_num').val(999999);
|
|
|
}
|
|
|
});
|
|
|
$(document).on("change", "#c-is_top", function () {
|
|
|
if($(this).val() == '1'){
|
|
|
$('#c-people_num').val(999999);
|
|
|
}
|
|
|
});
|
|
|
Form.api.bindevent($("form[role=form]"));
|
|
|
}
|
|
|
}
|
...
|
...
|
|