Explorar el Código

Merge branch 'visu_firecontrol_01_siping_2.5d' of http://121.37.83.100:3000/sooka_onest/sooka_onest_forestfire_vue2_visualization into visu_firecontrol_01_siping_2.5d

whao hace 1 año
padre
commit
6555653dd9
Se han modificado 2 ficheros con 7 adiciones y 3 borrados
  1. 5 2
      src/components/v-fastmenu.vue
  2. 2 1
      src/views/system/user/profile/resetPwd.vue

+ 5 - 2
src/components/v-fastmenu.vue

@@ -30,10 +30,10 @@
 				</div>
 			</el-popover>
 		</div>
-    <el-dialog title="修改密码" :visible.sync="isResetPwd" v-if="isResetPwd" width="30%" append-to-body>
+    <el-dialog title="修改密码" :visible.sync="isResetPwd" v-if="isResetPwd" :close="close" width="30%" append-to-body>
       <resetPwd :user="user" />
     </el-dialog>
-	</div>
+  </div>
 </template>
 
 <script>
@@ -94,6 +94,9 @@ import Cookies from 'js-cookie';
           this.isResetPwd=true
         });
       },
+      close(){
+        this.isResetPwd=false;
+      },
       async logout() {
         this.$confirm('确定注销并退出系统吗?', '提示', {
           confirmButtonText: '确定',

+ 2 - 1
src/views/system/user/profile/resetPwd.vue

@@ -56,12 +56,13 @@ export default {
         if (valid) {
           updateUserPwd(this.user.oldPassword, this.user.newPassword).then(response => {
             this.$modal.msgSuccess("修改成功");
+            this.$emit("close")
           });
         }
       });
     },
     close() {
-      this.$tab.closePage();
+      this.$emit("close")
     }
   }
 };