修正接口请求

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

@@ -115,7 +115,7 @@ export default {
params: Object,
},
data() {
return {
return {
id: '',
form: {
useCertificate: '',
@@ -134,7 +134,7 @@ export default {
radioFrom: '',
data: {},
}
},
},
computed: {
rules() {
return {
@@ -175,7 +175,7 @@ export default {
this.form = JSON.parse(JSON.stringify(this.data))
},
getDetail(id) {
this.instance.post(`/apphomesteadinfo/queryDetailById?id=${id}`).then(res => {
this.instance.post(`/app/apphomesteadinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.data = res.data
}
@@ -184,7 +184,7 @@ export default {
confirm() {
this.$refs.form.validate((valid) => {
if (valid) {
this.instance.post(`/apphomesteadinfo/addOrUpdate`, {
this.instance.post(`/app/apphomesteadinfo/addOrUpdate`, {
...this.form,
id: this.params.id || '',
}).then(res => {
@@ -219,4 +219,4 @@ export default {
-moz-appearance: textfield !important;
}
}
</style>
</style>

View File

@@ -9,7 +9,7 @@
<el-button type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button>
</template>
<template #right>
<el-input size="small" placeholder="查询证书号/使用人/使用人身份证" v-model="search.useCertificate" clearable @clear="page.current = 1, search.useCertificate = '',getTableData()"
<el-input size="small" placeholder="查询证书号/使用人/使用人身份证" v-model="search.useCertificate" clearable @clear="page.current = 1, search.useCertificate = '',getTableData()"
suffix-icon="iconfont iconSearch" v-throttle="() => {(page.current = 1), getTableData();}"/>
<!-- 导入导出 -->
<ai-import :instance="instance" :dict="dict" importUrl="/apphomesteadinfo/import" url="/apphomesteadinfo/downloadTemplate" name="宅基地管理信息模板" @success="getTableData(), $message.success('导入成功!')">
@@ -74,7 +74,7 @@ export default {
methods: {
changeArea() {},
getTableData() {
this.instance.post("/apphomesteadinfo/list", null, {
this.instance.post("/app/apphomesteadinfo/list", null, {
params: {...this.page, ...this.search,...this.select}
}).then(res => {
if (res?.data) {
@@ -93,7 +93,7 @@ export default {
},
handleDelete(id) {
this.$confirm("是否要删除?").then(() => {
this.instance.post(`/apphomesteadinfo/delete?ids=${id}`).then(res => {
this.instance.post(`/app/apphomesteadinfo/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success("删除成功")
this.getTableData()
@@ -110,4 +110,4 @@ export default {
height: 100%;
background: #f3f4f5;
}
</style>
</style>