mirror of
https://github.com/chillzhuang/Saber.git
synced 2024-11-22 02:19:32 +08:00
🎉 2.5.2.RELEASE 增加个人中心
This commit is contained in:
parent
8404dc9ac9
commit
cf5017721b
@ -1,5 +1,5 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/badge/Release-V2.5.1-green.svg" alt="Downloads">
|
<img src="https://img.shields.io/badge/Release-V2.5.2-green.svg" alt="Downloads">
|
||||||
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status">
|
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg" alt="Build Status">
|
||||||
<img src="https://img.shields.io/badge/license-Apache%202-blue.svg" alt="Build Status">
|
<img src="https://img.shields.io/badge/license-Apache%202-blue.svg" alt="Build Status">
|
||||||
<img src="https://img.shields.io/badge/Spring%20Cloud-Greenwich.SR3-blue.svg" alt="Coverage Status">
|
<img src="https://img.shields.io/badge/Spring%20Cloud-Greenwich.SR3-blue.svg" alt="Coverage Status">
|
||||||
@ -65,7 +65,7 @@ SpringBlade
|
|||||||
* Archer-全能代码生成系统:[https://archer.bladex.vip](https://archer.bladex.vip)
|
* Archer-全能代码生成系统:[https://archer.bladex.vip](https://archer.bladex.vip)
|
||||||
|
|
||||||
## 技术文档
|
## 技术文档
|
||||||
* [开发手册一览](https://gitee.com/smallc/SpringBlade/wikis/SpringBlade开发手册)
|
* [SpringBlade开发手册一览](https://gitee.com/smallc/SpringBlade/wikis/SpringBlade开发手册)
|
||||||
* [常见问题集锦](https://sns.bladex.vip/article-14966.html)
|
* [常见问题集锦](https://sns.bladex.vip/article-14966.html)
|
||||||
|
|
||||||
## 项目地址
|
## 项目地址
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "saber-admin",
|
"name": "saber-admin",
|
||||||
"version": "2.5.1",
|
"version": "2.5.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
import request from '@/router/axios';
|
import request from '@/router/axios';
|
||||||
|
|
||||||
export const resetPassword = (userIds) => {
|
|
||||||
return request({
|
|
||||||
url: '/api/blade-user/reset-password',
|
|
||||||
method: 'post',
|
|
||||||
params: {
|
|
||||||
userIds,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
export const getList = (current, size, params) => {
|
export const getList = (current, size, params) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/blade-user/list',
|
url: '/api/blade-user/list',
|
||||||
@ -55,3 +46,33 @@ export const getUser = (id) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getUserInfo = () => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/info',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const resetPassword = (userIds) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/reset-password',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
userIds,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const updatePassword = (oldPassword, newPassword, newPassword1) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/blade-user/update-password',
|
||||||
|
method: 'post',
|
||||||
|
params: {
|
||||||
|
oldPassword,
|
||||||
|
newPassword,
|
||||||
|
newPassword1,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,74 +1,72 @@
|
|||||||
export default {
|
export default {
|
||||||
column: [{
|
column: [{
|
||||||
label: '个人信息',
|
label: '个人信息',
|
||||||
prop: 'info',
|
prop: 'info',
|
||||||
option: {
|
option: {
|
||||||
submitText: '修改',
|
submitText: '修改',
|
||||||
column: [{
|
column: [{
|
||||||
label: '头像',
|
label: '头像',
|
||||||
type: 'upload',
|
type: 'upload',
|
||||||
listType: 'picture-img',
|
listType: 'picture-img',
|
||||||
propsHttp: {
|
propsHttp: {
|
||||||
res: 'data.0'
|
res: 'data',
|
||||||
},
|
url: 'link',
|
||||||
canvasOption: {
|
},
|
||||||
text: 'avue',
|
canvasOption: {
|
||||||
ratio: 0.1
|
text: 'blade',
|
||||||
},
|
ratio: 0.1
|
||||||
action: 'https://avueupload.91eic.com/upload/list',
|
},
|
||||||
tip: '只能上传jpg/png用户头像,且不超过500kb',
|
action: '/api/blade-resource/oss/endpoint/put-file',
|
||||||
span: 12,
|
tip: '只能上传jpg/png用户头像,且不超过500kb',
|
||||||
row: true,
|
span: 12,
|
||||||
prop: 'img'
|
row: true,
|
||||||
}, {
|
prop: 'avatar'
|
||||||
label: '姓名',
|
}, {
|
||||||
span: 6,
|
label: '姓名',
|
||||||
row: true,
|
span: 12,
|
||||||
prop: 'name'
|
row: true,
|
||||||
}, {
|
prop: 'name'
|
||||||
label: '用户名',
|
}, {
|
||||||
span: 12,
|
label: '用户名',
|
||||||
row: true,
|
span: 12,
|
||||||
prop: 'username'
|
row: true,
|
||||||
}, {
|
prop: 'realName'
|
||||||
label: '手机号',
|
}, {
|
||||||
span: 12,
|
label: '手机号',
|
||||||
row: true,
|
span: 12,
|
||||||
prop: 'phone'
|
row: true,
|
||||||
}, {
|
prop: 'phone'
|
||||||
label: '个性签名',
|
}, {
|
||||||
prop: 'detail',
|
label: '邮箱',
|
||||||
span: 24,
|
prop: 'email',
|
||||||
row: true,
|
span: 12,
|
||||||
type: 'textarea',
|
row: true,
|
||||||
minRows: 5,
|
}]
|
||||||
maxRows: 8,
|
}
|
||||||
}]
|
}, {
|
||||||
}
|
label: '修改密码',
|
||||||
}, {
|
prop: 'password',
|
||||||
label: '修改密码',
|
option: {
|
||||||
prop: 'password',
|
submitText: '修改',
|
||||||
option: {
|
column: [{
|
||||||
submitText: '修改',
|
label: '原密码',
|
||||||
column: [{
|
span: 12,
|
||||||
label: '原密码',
|
row: true,
|
||||||
span: 12,
|
type: 'password',
|
||||||
row: true,
|
prop: 'oldPassword'
|
||||||
type: 'password',
|
}, {
|
||||||
prop: 'oldpassword'
|
label: '新密码',
|
||||||
}, {
|
span: 12,
|
||||||
label: '新密码',
|
row: true,
|
||||||
span: 12,
|
type: 'password',
|
||||||
row: true,
|
prop: 'newPassword'
|
||||||
type: 'password',
|
}, {
|
||||||
prop: 'newpassword'
|
label: '确认密码',
|
||||||
}, {
|
span: 12,
|
||||||
label: '确认密码',
|
row: true,
|
||||||
span: 12,
|
type: 'password',
|
||||||
row: true,
|
prop: 'newPassword1'
|
||||||
type: 'password',
|
}]
|
||||||
prop: 'newpasswords'
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}]
|
|
||||||
}
|
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import option from "@/const/user/info";
|
import option from "@/const/user/info";
|
||||||
|
import {getUserInfo, update, updatePassword} from "@/api/system/user";
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -25,25 +27,49 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$message({
|
if (this.type === "info") {
|
||||||
message: this.form,
|
update(this.form).then(res => {
|
||||||
type: "success"
|
if (res.data.success) {
|
||||||
});
|
this.$message({
|
||||||
|
type: "success",
|
||||||
|
message: "修改信息成功!"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
type: "error",
|
||||||
|
message: res.data.msg
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
updatePassword(this.form.oldPassword, this.form.newPassword, this.form.newPassword1).then(res => {
|
||||||
|
if (res.data.success) {
|
||||||
|
this.$message({
|
||||||
|
type: "success",
|
||||||
|
message: "修改密码成功!"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
type: "error",
|
||||||
|
message: res.data.msg
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleWitch() {
|
handleWitch() {
|
||||||
if (this.type === "info") {
|
if (this.type === "info") {
|
||||||
this.form = {
|
getUserInfo().then(res => {
|
||||||
username: "smallwei",
|
const user = res.data.data;
|
||||||
name: "smallwei",
|
this.form = {
|
||||||
phone: "1888888888888",
|
id: user.id,
|
||||||
detail: "这是一个个性签名"
|
avatar: user.avatar,
|
||||||
};
|
name: user.name,
|
||||||
} else if (this.type === "password") {
|
realName: user.realName,
|
||||||
this.form = {
|
phone: user.phone,
|
||||||
oldpassword: 11111111,
|
email: user.email,
|
||||||
newpassword: 22222222,
|
}
|
||||||
newpasswords: 22222222
|
});
|
||||||
};
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleChange(item) {
|
handleChange(item) {
|
||||||
|
@ -75,6 +75,13 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-collapse v-model="logActiveNames" @change="handleChange">
|
<el-collapse v-model="logActiveNames" @change="handleChange">
|
||||||
|
<el-collapse-item title="2.5.2发布 增加个人中心" name="11">
|
||||||
|
<div>1.增加个人中心,支持用户信息自定义修改</div>
|
||||||
|
<div>2.增加网关鉴权配置示例</div>
|
||||||
|
<div>3.token的SIGN_KEY修改为一致</div>
|
||||||
|
<div>4.admin模块增加对seata服务的过滤</div>
|
||||||
|
<div>5.blade-tool增加部分工具类方法</div>
|
||||||
|
</el-collapse-item>
|
||||||
<el-collapse-item title="2.5.1发布 增加动态网关鉴权" name="10">
|
<el-collapse-item title="2.5.1发布 增加动态网关鉴权" name="10">
|
||||||
<div>1.增加网关动态鉴权</div>
|
<div>1.增加网关动态鉴权</div>
|
||||||
<div>2.secure安全模块token校验默认关闭,交由网关处理</div>
|
<div>2.secure安全模块token校验默认关闭,交由网关处理</div>
|
||||||
@ -177,7 +184,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeNames: ['1', '2', '3'],
|
activeNames: ['1', '2', '3'],
|
||||||
logActiveNames: ['10']
|
logActiveNames: ['11']
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
Loading…
Reference in New Issue
Block a user