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

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

View File

@ -6,7 +6,7 @@ export const productUrl='dj-admin';
// const baseUrl = "https://web-api.hnsiyao.cn/czg/" //测试
// const baseUrl = "https://web.hnsiyao.cn/czg/" // 线上
const baseUrl = "http://192.168.1.43:1333/admin/" // php
const baseUrl = "http://192.168.1.31:8080/admin/" // php
export default{
baseUrl

View File

@ -1850,7 +1850,10 @@
this.$http({
url: this.$http.adornUrl('sys/user/info/' + userId),
method: 'get',
params: this.$http.adornParams({})
params: {
...this.$http.adornParams({}),
userId: userId
}
}).then(({
data
}) => {
@ -3078,7 +3081,10 @@
this.$http({
url: this.$http.adornUrl('common/type/152'),
method: 'get',
params: this.$http.adornParams({})
params: {
...this.$http.adornParams({}),
type:152
}
}).then(({
data
}) => {
@ -3090,7 +3096,10 @@
this.$http({
url: this.$http.adornUrl('common/type/153'),
method: 'get',
params: this.$http.adornParams({})
params: {
...this.$http.adornParams({}),
type:153
}
}).then(({
data
}) => {

View File

@ -2651,6 +2651,9 @@ export default {
this.$http({
url: this.$http.adornUrl("common/type/247"),
method: "get",
params: {
type:247
},
data: this.$http.adornData({}),
}).then(({ data }) => {
if (data.code == 0) {
@ -2663,6 +2666,9 @@ export default {
this.$http({
url: this.$http.adornUrl("common/type/450"),
method: "get",
params: {
type:450
},
data: this.$http.adornData({}),
}).then(({ data }) => {
if (data.code == 0) {
@ -2673,6 +2679,9 @@ export default {
this.$http({
url: this.$http.adornUrl("common/type/451"),
method: "get",
params: {
type:451
},
data: this.$http.adornData({}),
}).then(({ data }) => {
if (data.code == 0) {
@ -2683,6 +2692,9 @@ export default {
this.$http({
url: this.$http.adornUrl("common/type/849"),
method: "get",
params: {
type:849
},
params: this.$http.adornParams({}),
}).then(({ data }) => {
if (data.code == 0) {

View File

@ -1576,6 +1576,9 @@
this.$http({
url: this.$http.adornUrl('common/type/247'),
method: 'get',
params: {
type:247
},
data: this.$http.adornData({})
}).then(({
data

View File

@ -1453,6 +1453,9 @@
this.$http({
url: this.$http.adornUrl('common/type/247'),
method: 'get',
params: {
type:247
},
data: this.$http.adornData({})
}).then(({
data

View File

@ -1158,7 +1158,8 @@
'page': this.page,
'limit': this.limit,
'member': this.member,
'phone': this.phone
'phone': this.phone,
type:88
})
}).then(({
data

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

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
}) => {