|
@@ -7,8 +7,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
extend: {
|
|
|
index_url: 'commission/agent/index' + location.search,
|
|
|
add_url: '',
|
|
|
- edit_url: 'commission/agent/edit',
|
|
|
- del_url: 'commission/agent/del',
|
|
|
multi_url: 'commission/agent/multi',
|
|
|
import_url: 'commission/agent/import',
|
|
|
table: 'commission_agent',
|
|
@@ -89,30 +87,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
table.bootstrapTable('refresh');
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- name: 'edit_status',
|
|
|
- text: __('编辑状态'),
|
|
|
- title: __('编辑状态'),
|
|
|
- classname: 'btn btn-xs btn-success btn-click',
|
|
|
- icon: 'fa fa-edit',
|
|
|
- click: function (data) {
|
|
|
- Layer.prompt({
|
|
|
- title: '修改状态',
|
|
|
- formType: 2,
|
|
|
- value: data.status,
|
|
|
- select: ['normal', 'pending', 'freeze', 'forbidden', 'reject'],
|
|
|
- selectTips: ['正常', '审核中', '冻结', '禁用', '拒绝']
|
|
|
- }, function(value, index, elem) {
|
|
|
- Fast.api.ajax({
|
|
|
- url: 'commission/agent/edit',
|
|
|
- data: {ids: data.user_id, status: value}
|
|
|
- }, function(data, ret) {
|
|
|
- table.bootstrapTable('refresh');
|
|
|
- Layer.close(index);
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
],
|
|
|
formatter: Table.api.formatter.operate}
|
|
|
]
|