修改请求地址,修改查询用户详情接口和common/type接口,增加params传承
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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
|
||||
}) => {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user