修改请求地址,修改查询用户详情接口和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-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

View File

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

View File

@ -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) {

View File

@ -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

View File

@ -34,7 +34,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="wxCourseId" label="微信短剧ID"></el-table-column> <el-table-column prop="wxCourseId" label="微信短剧ID"></el-table-column>
<el-table-column prop="qualificationType" label="剧目资质" width="160"> <el-table-column prop="qualificationType" label="剧目资质" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.qualificationType == 1 ">取得网络剧片发行许可证或重点节目备案号</span> <span v-if="scope.row.qualificationType == 1 ">取得网络剧片发行许可证或重点节目备案号</span>
@ -181,7 +181,7 @@
:show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress4" > :show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress4" >
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
</el-upload> </el-upload>
<!-- <div class="imgs" v-for="(item,index) in cost_commitment_letter_material_id" :key="index"> <!-- <div class="imgs" v-for="(item,index) in cost_commitment_letter_material_id" :key="index">
<img width="100%" class="images" height="100%" :src="item" alt=""> <img width="100%" class="images" height="100%" :src="item" alt="">
<span class="dels"> <span class="dels">
@ -197,7 +197,7 @@
</el-upload> </el-upload>
</div> --> </div> -->
</div> </div>
</div> </div>
<div style="display: block;margin-left: 200px;margin-bottom: 20px;" v-if="qualification_type==2"> <div style="display: block;margin-left: 200px;margin-bottom: 20px;" v-if="qualification_type==2">
<div> <div>
@ -355,7 +355,7 @@
<el-dialog title="同步短剧" :visible.sync="dialogFormVisibleTbdj" center v-loading="loading" <el-dialog title="同步短剧" :visible.sync="dialogFormVisibleTbdj" center v-loading="loading"
element-loading-text="正在读取中" element-loading-spinner="el-icon-loading" element-loading-text="正在读取中" element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.8)"> element-loading-background="rgba(0, 0, 0, 0.8)">
<!-- <div style="margin-bottom: 10px;"> <!-- <div style="margin-bottom: 10px;">
<span style="width: 200px;display: inline-block;text-align: right;">读取oss路径</span> <span style="width: 200px;display: inline-block;text-align: right;">读取oss路径</span>
<el-input v-model="filePath" type="text" style="width:50%;" placeholder="请输入读取oss路径"></el-input> <el-input v-model="filePath" type="text" style="width:50%;" placeholder="请输入读取oss路径"></el-input>
@ -376,12 +376,12 @@
<span style="width: 200px;display: inline-block;text-align: right;">最小点赞数量</span> <span style="width: 200px;display: inline-block;text-align: right;">最小点赞数量</span>
<el-input v-model="minGood" type="number" style="width:50%;" placeholder="请输入最小点赞数量"></el-input> <el-input v-model="minGood" type="number" style="width:50%;" placeholder="请输入最小点赞数量"></el-input>
</div> </div>
<div slot="footer" class="dialog-footer" style="text-align: center;"> <div slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="dialogFormVisibleTbdj = false"> </el-button> <el-button @click="dialogFormVisibleTbdj = false"> </el-button>
<el-button type="primary" @click="querentongbu()"> </el-button> <el-button type="primary" @click="querentongbu()"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -576,8 +576,8 @@
percentage2: 0, percentage2: 0,
media:'', media:'',
access_token:'', access_token:'',
dialogFormVisibleTbdj: false, dialogFormVisibleTbdj: false,
filePath: '', filePath: '',
freeNum: '', freeNum: '',
@ -717,8 +717,8 @@
}else{ }else{
this.cost_commitment_letter_material_id = '' this.cost_commitment_letter_material_id = ''
} }
this.tokenSelect() this.tokenSelect()
this.dialogFormVisible1 = true this.dialogFormVisible1 = true
}, },
@ -774,7 +774,7 @@
}) })
return return
} }
if (this.qualification_certificate_material_id == '') { if (this.qualification_certificate_material_id == '') {
this.$notify({ this.$notify({
title: '提示', title: '提示',
@ -806,7 +806,7 @@
} }
} }
this.$http({ this.$http({
url: this.$http.adornUrl('course/uploadWxCourse'), url: this.$http.adornUrl('course/uploadWxCourse'),
@ -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
@ -1997,10 +2000,10 @@
this.maxGood = '' this.maxGood = ''
this.minGood = '' this.minGood = ''
this.dialogFormVisibleTbdj = true this.dialogFormVisibleTbdj = true
}, },
// querentongbu() { // querentongbu() {
// // if (this.filePath === '') { // // if (this.filePath === '') {
// // this.$notify({ // // this.$notify({
// // title: '', // // title: '',
@ -2070,7 +2073,7 @@
// }).then(({ // }).then(({
// data // data
// }) => { // }) => {
// if (data.code == 0) { // if (data.code == 0) {
// this.$message({ // this.$message({
// message: '', // message: '',
@ -2089,18 +2092,18 @@
// type: 'warning', // type: 'warning',
// duration: 3000, // duration: 3000,
// onClose: () => { // onClose: () => {
// } // }
// }) // })
// } // }
// }) // })
// }, // },
// //
querentongbu() { querentongbu() {
// this.$confirm(`?`, '', { // this.$confirm(`?`, '', {
@ -2244,10 +2247,10 @@
handleUploadSuccess4(file) { handleUploadSuccess4(file) {
this.cost_commitment_letter_material_id = file.media_id this.cost_commitment_letter_material_id = file.media_id
console.log('------',file) console.log('------',file)
// this.media = fileList // this.media = fileList
// this.cost_commitment_letter_material_id = file.data // this.cost_commitment_letter_material_id = file.data
}, },
onprogress4(event, file, fileList) { onprogress4(event, file, fileList) {
// console.log('event, file, fileList', parseInt(event.percent),event, file, fileList) // console.log('event, file, fileList', parseInt(event.percent),event, file, fileList)
@ -2271,7 +2274,7 @@
if (data.code == 0) { if (data.code == 0) {
// media:'', // media:'',
this.access_token = data.data this.access_token = data.data
// this.cost_commitment_letter_material_id = // this.cost_commitment_letter_material_id =
} else { } else {
this.$message({ this.$message({
message: data.msg, message: data.msg,
@ -2281,7 +2284,7 @@
} }
}) })
} }
}) })
}, },
mediaSelect(){ mediaSelect(){
@ -2301,7 +2304,7 @@
if (data.code == 0) { if (data.code == 0) {
// media:'', // media:'',
// access_token:'', // access_token:'',
// this.cost_commitment_letter_material_id = // this.cost_commitment_letter_material_id =
} else { } else {
this.$message({ this.$message({
message: data.msg, message: data.msg,
@ -2311,7 +2314,7 @@
} }
}) })
} }
}) })
}, },
}, },
@ -2320,7 +2323,7 @@
this.classifySelect1() this.classifySelect1()
this.dataSelect() this.dataSelect()
this.xianshi() this.xianshi()
} }
} }

View File

@ -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

View File

@ -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
@ -141,7 +144,7 @@
}) })
}, },
// //
dataFormSubmit () { dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
if(this.dataForm.roleIdList.length<1){ if(this.dataForm.roleIdList.length<1){

View File

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

View File

@ -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
}) => { }) => {
@ -233,7 +236,7 @@
this.dataForm.qdRate = qdRate this.dataForm.qdRate = qdRate
this.dataForm.sysUserId = sysUserId this.dataForm.sysUserId = sysUserId
this.dataForm.qdCode = qdCode this.dataForm.qdCode = qdCode
this.dataForm.money = 0 this.dataForm.money = 0
} }