修正接口请求

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

@@ -70,7 +70,7 @@
</template>
</ai-card>
</template>
<template slot="footer" class="footer">
<el-button class="delete-btn footer-btn" @click="cancel(false)">取消</el-button>
<el-button class="footer-btn" type="primary" @click="confirm()">保存</el-button>
@@ -167,7 +167,7 @@ export default {
this.forms = JSON.parse(JSON.stringify(this.data))
},
getDetail(id) {
this.instance.post(`/appcreditadministrativesanction/queryDetailById?id=${id}`).then(res => {
this.instance.post(`/app/appcreditadministrativesanction/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.data = res.data
}
@@ -176,7 +176,7 @@ export default {
confirm() {
this.$refs.forms.validate((valid) => {
if (valid) {
this.instance.post(`/appcreditadministrativesanction/addOrUpdate`, {
this.instance.post(`/app/appcreditadministrativesanction/addOrUpdate`, {
...this.forms,
id: this.params.id || '',
}).then(res => {
@@ -258,4 +258,4 @@ export default {
padding-bottom: 80px;
}
}
</style>
</style>

View File

@@ -10,15 +10,15 @@
<template #right>
<el-input size="small" placeholder="处罚文书号/受罚主体" v-model="search.sanctionCode" clearable suffix-icon="iconfont iconSearch" @change="getTableData()"
@clear="page.current = 1, search.sanctionCode = '', getTableData()" v-throttle="() => {(page.current = 1), getTableData();}"/>
<ai-import :instance="instance" :dict="dict" importUrl="appcreditadministrativesanction/import"
<ai-import :instance="instance" :dict="dict" importUrl="appcreditadministrativesanction/import"
url="appcreditadministrativesanction/downloadTemplate" name="行政处罚信息" @success="getTableData(), $message.success('导入成功!')">
<el-button size="small">导入</el-button>
</ai-import>
</ai-import>
<ai-download :instance="instance" url="appcreditadministrativesanction/export" :params="search" fileName="行政处罚信息"
:disabled="tableData.length == 0">
<el-button size="small">导出</el-button>
</ai-download>
</template>
</ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@@ -73,7 +73,7 @@ export default {
this.getTableData()
},
getTableData() {
this.instance.post("/appcreditadministrativesanction/list", null, {
this.instance.post("/app/appcreditadministrativesanction/list", null, {
params: {...this.page, ...this.search, ...this.select}
}).then(res => {
if (res?.data) {
@@ -100,7 +100,7 @@ export default {
},
handleDelete(id) {
this.$confirm("是否要删除?").then(() => {
this.instance.post(`/appcreditadministrativesanction/delete?ids=${id}`).then(res => {
this.instance.post(`/app/appcreditadministrativesanction/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success("删除成功")
this.getTableData()
@@ -117,4 +117,4 @@ export default {
height: 100%;
background: #f3f4f5;
}
</style>
</style>