Browse Source

查看选科弹窗关闭回显

shilipojs 2 năm trước cách đây
mục cha
commit
882b47027a

+ 12 - 0
src/views/system/user/profile/components/select-subject-report-dialog.vue

@@ -3,6 +3,7 @@
     title="我的选科方案"
     :visible.sync="dialogVisible"
     width="70%"
+    :before-close="handlerClose"
   >
     <select-subject-report :type="1" querySource="2" ></select-subject-report>
   </el-dialog>
@@ -20,11 +21,22 @@ export default {
       dialogVisible: false
     };
   },
+  inject: {
+    optionalMajors: {
+      default: function() {
+        // default - empty function
+      }
+    }
+  },
   created() {
   },
   methods: {
     open(){
       this.dialogVisible = true
+    },
+    handlerClose() {
+      this.dialogVisible =false
+      this.optionalMajors()
     }
   },
 };