正在显示
1 个修改的文件
包含
36 行增加
和
1 行删除
@@ -34,7 +34,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -34,7 +34,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
34 | {field: 'teacher_avatar', title: __('Teacher_avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image}, | 34 | {field: 'teacher_avatar', title: __('Teacher_avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image}, |
35 | {field: 'teacher_name', title: __('Teacher_name')}, | 35 | {field: 'teacher_name', title: __('Teacher_name')}, |
36 | {field: 'teacher_desc', title: __('Teacher_desc')}, | 36 | {field: 'teacher_desc', title: __('Teacher_desc')}, |
37 | - {field: 'is_top', title: __('Is_top'), searchList: {"0":__('Is_top 0'),"1":__('Is_top 1')}, formatter: Table.api.formatter.toggle}, | 37 | + // {field: 'is_top', title: __('Is_top'), searchList: {"0":__('Is_top 0'),"1":__('Is_top 1')}, formatter: Table.api.formatter.toggle}, |
38 | + {field: 'pay_times', title: __('Pay_times')}, | ||
38 | //操作栏,默认有编辑、删除或排序按钮,可自定义配置buttons来扩展按钮 | 39 | //操作栏,默认有编辑、删除或排序按钮,可自定义配置buttons来扩展按钮 |
39 | { | 40 | { |
40 | field: 'operate', | 41 | field: 'operate', |
@@ -43,6 +44,39 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -43,6 +44,39 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
43 | events: Table.api.events.operate, | 44 | events: Table.api.events.operate, |
44 | buttons: [ | 45 | buttons: [ |
45 | { | 46 | { |
47 | + name: 'top', | ||
48 | + text: '置顶', | ||
49 | + title: '置顶', | ||
50 | + classname: 'btn btn-xs btn-danger btn-ajax', | ||
51 | + icon: 'fa fa-long-arrow-up', | ||
52 | + url: 'mobile/course/course/top?course_id={id}&is_top=1', | ||
53 | + visible: function (row) { | ||
54 | + if(row.is_top == '0'){ | ||
55 | + return true; | ||
56 | + } | ||
57 | + }, | ||
58 | + success: function (data) { | ||
59 | + table.bootstrapTable('refresh'); | ||
60 | + } | ||
61 | + }, | ||
62 | + { | ||
63 | + name: 'top', | ||
64 | + text: '取消置顶', | ||
65 | + title: '取消置顶', | ||
66 | + classname: 'btn btn-xs btn-primary btn-ajax', | ||
67 | + icon: 'fa fa-long-arrow-down', | ||
68 | + url: 'mobile/course/course/top?course_id={id}&is_top=0', | ||
69 | + visible: function (row) { | ||
70 | + if(row.is_top == '1'){ | ||
71 | + return true; | ||
72 | + } | ||
73 | + }, | ||
74 | + success: function (data) { | ||
75 | + table.bootstrapTable('refresh'); | ||
76 | + } | ||
77 | + }, | ||
78 | + { | ||
79 | + name: 'catalog', | ||
46 | text: '目录管理', | 80 | text: '目录管理', |
47 | title: '目录管理', | 81 | title: '目录管理', |
48 | classname: 'btn btn-xs btn-primary btn-dialog', | 82 | classname: 'btn btn-xs btn-primary btn-dialog', |
@@ -50,6 +84,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | @@ -50,6 +84,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin | ||
50 | url: 'mobile/course/course_catalog?course_id={id}', | 84 | url: 'mobile/course/course_catalog?course_id={id}', |
51 | }, | 85 | }, |
52 | { | 86 | { |
87 | + name: 'spec', | ||
53 | text: '规格管理', | 88 | text: '规格管理', |
54 | title: '规格管理', | 89 | title: '规格管理', |
55 | classname: 'btn btn-xs btn-primary btn-dialog', | 90 | classname: 'btn btn-xs btn-primary btn-dialog', |
-
请 注册 或 登录 后发表评论