12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- define(function (require) {
- return function (context) {
- var $dlg, $grid;
- function queryGrid1() {
- $grid.reload({
- mtype: 'GET',
- url: api('/sweepCode/selectVaccineByUserId'),
- queryParams: {userId: context.userId}
- }, true);
- }
- return {
- xtype: 'dialog',
- dialogId: 'dialogDetail',
- title: '疫苗接种记录 >> ' + context.linkman,
- width: '45%',
- height: '50%',
- onOpen: function () {
- $dlg = $(this);
- },
- center: {
- items: {
- onRender: function () {
- $grid = $(this);
- queryGrid1();
- },
- toolbar: {
- xtype: 'toolbar',
- title: '疫苗接种',
- },
- xtype: 'grid',
- idField: "reportDate",
- pagination: false,
- columns: [[
- {field: 'num', title: 'num', hidden: true},
- {field: 'times', title: '剂次', maxWidth: 150, align: 'right',},
- {field: 'time', title: '接种日期', align: 'left', formatter: 'tsymd'},
- {field: 'hospital', title: '接种医院', maxWidth: 200, align: 'right',},
- {field: 'unit', title: '接种单位', maxWidth: 200, align: 'right',},
- ]],
- }
- },
- buttons: [
- {
- text: "关闭", iconCls: "fa fa-times", onClick: function () {
- // $dlg.dialog('close');
- $dlg.window('close');
- }
- }
- ]
- };
- };
- });
|