...
|
...
|
@@ -11,6 +11,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
del_url: 'doctor/del',
|
|
|
multi_url: 'doctor/multi',
|
|
|
import_url: 'doctor/import',
|
|
|
examine_url: 'doctor/examine',
|
|
|
table: 'doctor',
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -39,7 +40,23 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
{field: 'total_receive_num', title: __('Total_receive_num')},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'doctorlevel.level', title: __('Doctorlevel.level')},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate,
|
|
|
buttons: [
|
|
|
{
|
|
|
name: 'examine',
|
|
|
text: '审核',
|
|
|
title: '审核',
|
|
|
classname: 'btn btn-xs btn-primary btn-dialog',
|
|
|
icon: '',
|
|
|
url: $.fn.bootstrapTable.defaults.extend.examine_url,
|
|
|
// visible:function (row) {
|
|
|
// if(row.status == 0){
|
|
|
// return true;
|
|
|
// }
|
|
|
// },
|
|
|
},
|
|
|
], formatter: Table.api.formatter.operate
|
|
|
}
|
|
|
]
|
|
|
]
|
|
|
});
|
...
|
...
|
@@ -53,6 +70,20 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
examine: function () {
|
|
|
Controller.api.bindevent();
|
|
|
setTimeout(function(){
|
|
|
$("input[name='row[status]']").trigger("change");
|
|
|
},100);
|
|
|
$(document).on("change","input[name='row[status]']",function(){
|
|
|
var status = $(this).val();
|
|
|
if(status == '1'){
|
|
|
$('.reject_reason').addClass('hide');
|
|
|
}else{
|
|
|
$('.reject_reason').removeClass('hide');
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|
...
|
...
|
|