pengjun 1 year ago
parent
commit
e490b1ecf1
  1. 35
      src/views/Home.vue

35
src/views/Home.vue

@ -49,7 +49,7 @@
<!--2级菜单-->
<template v-for="menu2 in menu1.treeChildren">
<el-menu-item :key="menu2.id" v-if="menu2.menuType == '1'" :index="menu2.id">{{ menu2.displayName
}}</el-menu-item>
}}</el-menu-item>
</template>
<template v-for="menu2 in menu1.treeChildren">
<el-submenu :popper-append-to-body="false" :key="menu2.id" v-if="menu2.menuType == '0'"
@ -110,7 +110,7 @@
<el-dropdown-item @click.native="localSet">本地设置</el-dropdown-item>
<el-dropdown-item v-if="LocalConfig.normal.isDevTool"
@click.native="toggleDevTools">调试工具</el-dropdown-item>
<el-dropdown-item @click.native="clientConfigShow">客户端参数</el-dropdown-item>
<el-dropdown-item @click.native="clientConfigShow">客户端参数</el-dropdown-item>
<!--
<el-dropdown-item @click.native="windowMax"
>最大化</el-dropdown-item
@ -152,8 +152,8 @@
</div>
<div>
<!--通用本地参数设置-->
<el-dialog title="本地参数设置" :visible.sync="dialogWin.LocalConfig" :close-on-click-modal="false" :append-to-body="true"
width="800px" height="600px">
<el-dialog title="本地参数设置" :visible.sync="dialogWin.LocalConfig" :close-on-click-modal="false"
:append-to-body="true" width="800px" height="600px">
<LocalConfig />
</el-dialog>
</div>
@ -217,7 +217,7 @@ export default {
this.password = this.changepassword;
// console.log(this.password);
// console.log(this.$store.state.changepassword, "ssssssssssss");
this.user = window.sessionStorage.getItem("user");
this.user = window.sessionStorage.getItem("user");
this.LocalConfigInit = deepCopy(this.LocalConfig)
let LocalConfig = window.localStorage.getItem("LocalConfig") || null
@ -227,7 +227,7 @@ export default {
console.log('window.localStorage.getItem("LocalConfig")', error)
}
},
mounted() {
//
this.getUserAllPriv();
@ -309,25 +309,28 @@ export default {
determine() {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
if (this.form.oldPassWord != this.password) {
this.$message.warning("旧密码输入错误");
if (!this.form.oldPassWord) {
this.$message.warning("请输入旧密码");
} else if (this.confirmpassword != this.form.newPassWord) {
this.$message.warning("二次输入的密码不一致");
} else {
postapi("/api/identity/users/updatepassword", this.form).then(
(res) => {
console.log("修改成功");
this.dialogVisible = false;
}
);
postapi("/api/identity/users/updatepassword", this.form)
.then(res => {
if (res.code > -1) {
console.log("修改成功");
this.dialogVisible = false;
}
});
}
}
});
},
//
editpassword() {
this.dialogVisible = true;
console.log(this.password);
this.form.oldPassWord = ""
this.confirmpassword = ""
this.form.newPassWord = ""
this.dialogVisible = true;
},
//退
logout() {

Loading…
Cancel
Save