修改请求地址,修改查询用户详情接口和common/type接口,增加params传承
This commit is contained in:
parent
bf3dc320c0
commit
8054985445
|
|
@ -6,7 +6,7 @@ export const productUrl='dj-admin';
|
||||||
|
|
||||||
// const baseUrl = "https://web-api.hnsiyao.cn/czg/" //测试
|
// const baseUrl = "https://web-api.hnsiyao.cn/czg/" //测试
|
||||||
// const baseUrl = "https://web.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{
|
export default{
|
||||||
baseUrl
|
baseUrl
|
||||||
|
|
|
||||||
|
|
@ -1850,7 +1850,10 @@
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('sys/user/info/' + userId),
|
url: this.$http.adornUrl('sys/user/info/' + userId),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({})
|
params: {
|
||||||
|
...this.$http.adornParams({}),
|
||||||
|
userId: userId
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|
@ -3078,7 +3081,10 @@
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/type/152'),
|
url: this.$http.adornUrl('common/type/152'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({})
|
params: {
|
||||||
|
...this.$http.adornParams({}),
|
||||||
|
type:152
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|
@ -3090,7 +3096,10 @@
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/type/153'),
|
url: this.$http.adornUrl('common/type/153'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams({})
|
params: {
|
||||||
|
...this.$http.adornParams({}),
|
||||||
|
type:153
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|
|
||||||
|
|
@ -2651,6 +2651,9 @@ export default {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("common/type/247"),
|
url: this.$http.adornUrl("common/type/247"),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params: {
|
||||||
|
type:247
|
||||||
|
},
|
||||||
data: this.$http.adornData({}),
|
data: this.$http.adornData({}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
|
|
@ -2663,6 +2666,9 @@ export default {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("common/type/450"),
|
url: this.$http.adornUrl("common/type/450"),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params: {
|
||||||
|
type:450
|
||||||
|
},
|
||||||
data: this.$http.adornData({}),
|
data: this.$http.adornData({}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
|
|
@ -2673,6 +2679,9 @@ export default {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("common/type/451"),
|
url: this.$http.adornUrl("common/type/451"),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params: {
|
||||||
|
type:451
|
||||||
|
},
|
||||||
data: this.$http.adornData({}),
|
data: this.$http.adornData({}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
|
|
@ -2683,6 +2692,9 @@ export default {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("common/type/849"),
|
url: this.$http.adornUrl("common/type/849"),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
params: {
|
||||||
|
type:849
|
||||||
|
},
|
||||||
params: this.$http.adornParams({}),
|
params: this.$http.adornParams({}),
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
|
|
|
||||||
|
|
@ -1576,6 +1576,9 @@
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/type/247'),
|
url: this.$http.adornUrl('common/type/247'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
type:247
|
||||||
|
},
|
||||||
data: this.$http.adornData({})
|
data: this.$http.adornData({})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
|
|
||||||
|
|
@ -1453,6 +1453,9 @@
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/type/247'),
|
url: this.$http.adornUrl('common/type/247'),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
type:247
|
||||||
|
},
|
||||||
data: this.$http.adornData({})
|
data: this.$http.adornData({})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
|
|
||||||
|
|
@ -1158,7 +1158,8 @@
|
||||||
'page': this.page,
|
'page': this.page,
|
||||||
'limit': this.limit,
|
'limit': this.limit,
|
||||||
'member': this.member,
|
'member': this.member,
|
||||||
'phone': this.phone
|
'phone': this.phone,
|
||||||
|
type:88
|
||||||
})
|
})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,10 @@
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`/sys/user/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`/sys/user/info/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: {
|
||||||
|
...this.$http.adornParams(),
|
||||||
|
'userId': this.dataForm.id
|
||||||
|
}
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataForm.userName = data.user.username
|
this.dataForm.userName = data.user.username
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,10 @@
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: {
|
||||||
|
...this.$http.adornParams(),
|
||||||
|
'userId': this.dataForm.id
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,10 @@
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
url: this.$http.adornUrl(`sys/user/info/${this.dataForm.id}`),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.$http.adornParams()
|
params: {
|
||||||
|
...this.$http.adornParams(),
|
||||||
|
'userId': this.dataForm.id
|
||||||
|
}
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
}) => {
|
}) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue