function openProcurementRegModal() { showDevRegForm(); setTimeout(function () { $('#procurementRegModal').modal('show');
$('#procurementRegModal').on('shown.bs.modal', function () { jQuery('#procurement_record').datagrid({ toolbar:'#tb', width:700, height:480, fit: true, fitColumns: true, nowrap: true, striped: true, collapsible:true, url:'', remoteSort: true, checkOnSelect: true, idField:'id', rownumbers:true, pagination:false, singleSelect:true, pageSize:5, pageList: [5,10,15,20,25,50,100], columns:[[ {title:'ck', field:'ck',checkbox:true, width:30}, {field:'name',title:'名称',width:100,height: 35}, {field:'author',title:'作者',width:50,height: 35}, {field:'type',title:'索书号',width:50,height: 35}, {field:'press',title:'出版社',width:50,height: 35}, {field:'publication',title:'出版时间',width:50,height: 35}, {field:'quantity',title:'数量',width:50,height: 35}, {field:'intro',title:'介绍',width:50,height: 35}, {field:'date',title:'上架时间',width:50,height: 35} ]] }); });
}, 230); backend_url = '/admin/api/v1.0/procurement'; submitType = 'POST'; }
|