zhuth 7 жил өмнө
parent
commit
81b99969f6

+ 7 - 0
frontend/pc-web/app/view/Interaction/score/Detail.js

@@ -154,6 +154,13 @@ Ext.define('school.view.interaction.score.Detail', {
                 bind: {
                     hidden: '{!showDeleteBtn || !si_id || si_publish == 1}'
                 },
+            }, {
+                apply: true,
+                text: '保存',
+                bind: {
+                    hidden: '{!showSaveBtn || si_publish == 1}',
+                    disabled: '{!base.valid}'
+                }
             }],
             toolBtns: [{
                 xtype: 'button',

+ 10 - 0
frontend/pc-web/app/view/Interaction/score/DetailModel.js

@@ -10,4 +10,14 @@ Ext.define('school.view.interaction.score.DetailModel', {
         showDeleteBtn: true,
         showLogBtn: false
     },
+
+    formulas: {
+        si_publish_change: {
+            bind: '{si_publish}',
+            get: function(v) {
+                let view = this.getView();
+                view.setEditable(v != 1);
+            }
+        }
+    }
 });

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

@@ -118,7 +118,7 @@ Ext.define('school.view.interaction.timetable.List', {
                 })()
             }, {
                 xtype: 'combobox',
-                name: 'status',
+                name: 'mcur_status',
                 fieldLabel: '发布状态',
                 displayField: 'name',
                 valueField: 'value',