|
@@ -20,7 +20,7 @@
|
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label">系列</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <select name="status">
|
|
|
+ <select name="series_id">
|
|
|
<option value="">全部系列</option>
|
|
|
{volist name="series_list" id="v"}
|
|
|
<option value="{$v.id}">{$v.title}</option>
|
|
@@ -85,6 +85,7 @@
|
|
|
{field: 'series', title: '系列', width: 200, templet: '#seriesTpl'},
|
|
|
{field: 'title', title: '标题'},
|
|
|
{field: 'main_image', title: '主图' ,width: 160, templet: '#userTpl'},
|
|
|
+ {field: 'priority', title: '排序', width: 80, align: 'center', edit: 'text'},
|
|
|
{field: 'status_text', title: '状态', width: 80, align: 'center'},
|
|
|
{title: '操作', width: 240, align: 'center', fixed: 'right', toolbar: '#setTpl'}
|
|
|
]
|
|
@@ -95,6 +96,21 @@
|
|
|
text: '对不起,加载出现异常!'
|
|
|
});
|
|
|
|
|
|
+ //监听单元格编辑
|
|
|
+ table.on('edit({$lay_table})', function (obj) {
|
|
|
+ const id = obj.data.id;
|
|
|
+ const field = obj.field;
|
|
|
+ const value = obj.value;
|
|
|
+ admin.req({
|
|
|
+ url: "{:url('soldier/fieldVideo')}",
|
|
|
+ data: {id: id, field: field, value: value},
|
|
|
+ done: function (res) {
|
|
|
+ layer.msg('修改成功');
|
|
|
+ layui.table.reload('{$lay_table}');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
form.on('submit({$lay_btn})', function (data) {
|
|
|
table.reload('{$lay_table}', {
|
|
|
where: data.field,
|