Browse Source

Merge branch 'dev' of ssh://10.10.100.21/source/smartschool-platform into dev

zhaoy 7 years ago
parent
commit
e8ba43c7b6

+ 10 - 2
frontend/pc-web/app/view/Interaction/timetable/Detail.js

@@ -115,10 +115,18 @@ Ext.define('school.view.interaction.timetable.Detail', {
                     let now = new Date();
                     let now = new Date();
                     let year = now.getFullYear();
                     let year = now.getFullYear();
                     let month = now.getMonth() + 1;
                     let month = now.getMonth() + 1;
-                    let o1, o2;
+                    let o1, o2, termPart;
+                    
                     o1 = [(year - 1) + '-' + year];
                     o1 = [(year - 1) + '-' + year];
                     o2 = [year + '-' + (year + 1)];
                     o2 = [year + '-' + (year + 1)];
-                    return (month < 9) ? o1[0] : o2[0]
+
+                    if((month > 2 && month < 8) || (month == 2 && date > 15) || (month == 8 && date < 15)) {
+                        termPart = o1[0];
+                    }else {
+                        termPart = o2[0];
+                    }
+
+                    return termPart;
                 })()
                 })()
             }, {
             }, {
                 xtype: "combobox",
                 xtype: "combobox",

+ 10 - 2
frontend/pc-web/app/view/Interaction/timetable/List.js

@@ -77,10 +77,18 @@ Ext.define('school.view.interaction.timetable.List', {
                     let now = new Date();
                     let now = new Date();
                     let year = now.getFullYear();
                     let year = now.getFullYear();
                     let month = now.getMonth() + 1;
                     let month = now.getMonth() + 1;
-                    let o1, o2;
+                    let o1, o2, termPart;
+                    
                     o1 = [(year - 1) + '-' + year];
                     o1 = [(year - 1) + '-' + year];
                     o2 = [year + '-' + (year + 1)];
                     o2 = [year + '-' + (year + 1)];
-                    return (month < 9) ? o1[0] : o2[0]
+
+                    if((month > 2 && month < 8) || (month == 2 && date > 15) || (month == 8 && date < 15)) {
+                        termPart = o1[0];
+                    }else {
+                        termPart = o2[0];
+                    }
+
+                    return termPart;
                 })()
                 })()
             }, {
             }, {
                 xtype: "combobox",
                 xtype: "combobox",

+ 6 - 15
frontend/pc-web/app/view/setting/operatelog/OperateLog.js

@@ -11,19 +11,14 @@ Ext.define('school.view.setting.operatelog.OperateLog', {
         var me = this;
         var me = this;
         Ext.apply(this, {
         Ext.apply(this, {
             searchField: [{
             searchField: [{
-                width: 110,
-                name: 'obj',
-                xtype: 'textfield',
-                emptyText : '对象',
+                columnWidth: 0.5,
+                name: 'createTime',
+                xtype: 'condatefield',
+                fieldLabel : '时间',
+                labelWidth: 50
             }, {
             }, {
-            //     // columnWidth: 0.5,
-            //     // name: 'time',
-            //     // xtype: 'condatefield',
-            //     // fieldLabel : '时间',
-            //     // labelWidth: 50
-            // }, {
                 width: 110,
                 width: 110,
-                name: 'man',
+                name: 'ml_man',
                 xtype: 'textfield',
                 xtype: 'textfield',
                 emptyText : '操作人员',
                 emptyText : '操作人员',
             }],
             }],
@@ -45,10 +40,6 @@ Ext.define('school.view.setting.operatelog.OperateLog', {
                     text:'单据类型',
                     text:'单据类型',
                     dataIndex : "ml_name",
                     dataIndex : "ml_name",
                     width : 110.0, 
                     width : 110.0, 
-                }, {
-                    text : "单据编号", 
-                    width : 150.0, 
-                    dataIndex : "ml_code", 
                 }, {
                 }, {
                     text : "操作", 
                     text : "操作", 
                     dataIndex : "ml_content", 
                     dataIndex : "ml_content",