Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/holiday/holidayListView.js =================================================================== diff -u -r41403 -r41405 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/holiday/holidayListView.js (.../holidayListView.js) (revision 41403) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/holiday/holidayListView.js (.../holidayListView.js) (revision 41405) @@ -85,6 +85,9 @@ var importWindow = Ext4.create('Ext4.window.Window', { title: '导入节假日信息', + closeAction: 'hide', + layout: 'fit', + width: 450, items: [{ xtype: 'form', bodyPadding: 15, @@ -94,10 +97,26 @@ standardSubmit: false, defaults: { anchor: '100%', - labelWidth: 80, + labelWidth: 60, allowBlank: false }, items: [{ + xtype: 'text', + text: '可以在如下位置下载指定年份的假期配置文件:' + },{ + xtype: 'textfield', + readOnly: true, + fieldStyle: 'border: none; background: transparent;', + value: 'https://gitee.com/seimin/holiday-cn/tree/master' + },{ + xtype: 'text', + text: '比如2026年下载地址:' + },{ + xtype: 'textfield', + readOnly: true, + fieldStyle: 'border: none; background: transparent;', + value: 'https://gitee.com/seimin/holiday-cn/blob/master/2026.json' + },{ xtype: 'filefield', name: 'file', fieldLabel: '导入文件', @@ -125,7 +144,7 @@ if (action.result && action.result.success) { showResult('导入成功'); gridStore.load(); // 重新加载数据 - importWindow.close(); + importWindow.hide(); } else { showResult(action.result ? action.result.message : '导入失败'); } @@ -149,7 +168,7 @@ text: '取消', iconCls: 'icon-cancel', handler: function() { - importWindow.close(); + importWindow.hide(); } }] });