修改请求地址,修改查询用户详情接口和common/type接口,增加params传承

This commit is contained in:
2025-07-23 15:10:44 +08:00
parent bf3dc320c0
commit 8054985445
9 changed files with 77 additions and 40 deletions

View File

@@ -126,7 +126,10 @@
this.$http({
url: this.$http.adornUrl(`/sys/user/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
params: {
...this.$http.adornParams(),
'userId': this.dataForm.id
}
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm.userName = data.user.username
@@ -141,7 +144,7 @@
})
},
// 表单提交
dataFormSubmit () {
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
if(this.dataForm.roleIdList.length<1){

View File

@@ -190,7 +190,10 @@
this.$http({
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
params: {
...this.$http.adornParams(),
'userId': this.dataForm.id
}
}).then(({
data
}) => {

View File

@@ -193,7 +193,10 @@
this.$http({
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
method: 'get',
params: this.$http.adornParams()
params: {
...this.$http.adornParams(),
'userId': this.dataForm.id
}
}).then(({
data
}) => {
@@ -233,7 +236,7 @@
this.dataForm.qdRate = qdRate
this.dataForm.sysUserId = sysUserId
this.dataForm.qdCode = qdCode
this.dataForm.money = 0
}