修正接口请求

This commit is contained in:
aixianling
2022-08-26 14:24:34 +08:00
parent 44ca30cbf3
commit ce1fd46b7e
53 changed files with 151 additions and 151 deletions

View File

@@ -146,7 +146,7 @@ export default {
this.forms=JSON.parse(JSON.stringify(this.data))
},
getDetail(id) {
this.instance.post(`/appcreditdishonestperson/queryDetailById?id=${id}`).then(res => {
this.instance.post(`/app/appcreditdishonestperson/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.data = res.data
}
@@ -155,7 +155,7 @@ export default {
confirm( ) {
this.$refs.forms.validate((valid) => {
if (valid) {
this.instance.post(`/appcreditdishonestperson/addOrUpdate`, {
this.instance.post(`/app/appcreditdishonestperson/addOrUpdate`, {
...this.forms,
id: this.params.id || '',
}).then(res => {
@@ -241,4 +241,4 @@ export default {
padding-bottom: 80px;
}
}
</style>
</style>

View File

@@ -8,7 +8,7 @@
<el-button type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button>
</template>
<template #right>
<el-input size="small" placeholder="执行案号/失信被执行主体" v-model="search.executionCode" clearable @clear="page.current = 1, search.executionCode = '',getTableData()"
<el-input size="small" placeholder="执行案号/失信被执行主体" v-model="search.executionCode" clearable @clear="page.current = 1, search.executionCode = '',getTableData()"
suffix-icon="iconfont iconSearch" v-throttle="() => {(page.current = 1), getTableData();}"/>
<ai-import :instance="instance" :dict="dict" importUrl="/appcreditdishonestperson/import" url="/appcreditdishonestperson/downloadTemplate" name="失信被执行人信息" @success="getTableData(), $message.success('导入成功!')">
<el-button size="small">导入</el-button>
@@ -67,7 +67,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appcreditdishonestperson/list", null, {
this.instance.post("/app/appcreditdishonestperson/list", null, {
params: {...this.page, ...this.search,...this.select}
}).then(res => {
if (res?.data) {
@@ -94,7 +94,7 @@ export default {
// },
handleDelete(id) {
this.$confirm("是否要删除?").then(() => {
this.instance.post(`/appcreditdishonestperson/delete?ids=${id}`).then(res => {
this.instance.post(`/app/appcreditdishonestperson/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success("删除成功")
this.getTableData()
@@ -111,4 +111,4 @@ export default {
height: 100%;
background: #f3f4f5;
}
</style>
</style>