From 99bac1ebecd5adf552835c9fe084b0dd3f0a25b7 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期三, 17 七月 2024 16:43:27 +0800
Subject: [PATCH] 增加、修改、删除链接接口的修改
---
Source/plt-web/plt-web-ui/src/page/index/top/index.vue | 55 +++++++++++++++++++++++++++++++++----------------------
1 files changed, 33 insertions(+), 22 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/page/index/top/index.vue b/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
index 49677d6..9969734 100644
--- a/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
+++ b/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
@@ -27,14 +27,15 @@
<top-color></top-color>
</div>
</el-tooltip>
- <el-tooltip v-if="showDebug"
- :content="logsFlag?$t('navbar.bug'):logsLen+$t('navbar.bugs')"
- effect="dark"
- placement="bottom">
- <div class="top-bar__item">
- <top-logs></top-logs>
- </div>
- </el-tooltip>
+<!-- 閿欒鏃ュ織-->
+<!-- <el-tooltip v-if="showDebug"-->
+<!-- :content="logsFlag?$t('navbar.bug'):logsLen+$t('navbar.bugs')"-->
+<!-- effect="dark"-->
+<!-- placement="bottom">-->
+<!-- <div class="top-bar__item">-->
+<!-- <top-logs></top-logs>-->
+<!-- </div>-->
+<!-- </el-tooltip>-->
<el-tooltip v-if="showLock"
:content="$t('navbar.lock')"
effect="dark"
@@ -51,13 +52,14 @@
<top-theme></top-theme>
</div>
</el-tooltip>
- <el-tooltip :content="$t('navbar.notice')"
- effect="dark"
- placement="bottom">
- <div class="top-bar__item top-bar__item--show">
- <top-notice></top-notice>
- </div>
- </el-tooltip>
+<!-- 娑堟伅閫氱煡-->
+<!-- <el-tooltip :content="$t('navbar.notice')"-->
+<!-- effect="dark"-->
+<!-- placement="bottom">-->
+<!-- <div class="top-bar__item top-bar__item--show">-->
+<!-- <top-notice></top-notice>-->
+<!-- </div>-->
+<!-- </el-tooltip>-->
<el-tooltip :content="$t('navbar.language')"
effect="dark"
placement="bottom">
@@ -129,6 +131,7 @@
import topColor from "./top-color";
import topNotice from './top-notice'
import topLang from "./top-lang";
+import {changePassword} from "@/api/user"
export default {
components: {
@@ -151,9 +154,10 @@
column: [
{
label: '鐧婚檰瀵嗙爜',
- prop: 'input',
+ prop: 'oldPassword',
span: 24,
labelWidth:"15%",
+ type:'password',
rules: [
{
required: true,
@@ -164,9 +168,10 @@
},
{
label: '鏂扮櫥闄嗗瘑鐮�',
- prop: 'input1',
+ prop: 'password',
span: 24,
labelWidth:"15%",
+ type:'password',
rules: [
{
required: true,
@@ -177,9 +182,10 @@
},
{
label: '鏂板瘑鐮佺櫥闄嗙‘璁�',
- prop: 'input2',
+ prop: 'confirmPassword',
span: 24,
labelWidth:"15%",
+ type:'password',
rules: [
{
required: true,
@@ -270,7 +276,6 @@
methods: {
// 淇敼瀵嗙爜
changePasswordHandler() {
- console.log('123');
this.passwordVisible = true;
},
handleScreen() {
@@ -293,10 +298,16 @@
this.userBox = true;
},
submitSwitch(form, done) {
- this.$store.dispatch("refreshToken", form).then(() => {
- this.userBox = false;
- this.$router.push({path: "/"});
+ let userInfo = JSON.parse(localStorage.getItem('saber-userInfo'));
+
+ let params = {userOid:userInfo.content.userOid,...form}
+ changePassword(params).then(res =>{
+ console.log(res);
})
+ // this.$store.dispatch("refreshToken", form).then(() => {
+ // this.userBox = false;
+ // this.$router.push({path: "/"});
+ // })
done();
},
logout() {
--
Gitblit v1.10.0