修正接口请求
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<el-col :span="20">
|
||||
<el-form-item label="土地承接方" prop="landUndertakeName">
|
||||
<el-input v-model="form.landUndertakeName" placeholder="请输入土地承接方名称"></el-input>
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="20">
|
||||
<el-form-item label="土地承接方证件号码" prop="landUndertakeNumber">
|
||||
@@ -174,7 +174,7 @@ export default {
|
||||
return (
|
||||
time.getTime() < new Date(this.form.startDate).getTime()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
@@ -200,7 +200,7 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
},
|
||||
created() {
|
||||
this.$dict.load('landCirculateType')
|
||||
@@ -221,7 +221,7 @@ export default {
|
||||
this.form = JSON.parse(JSON.stringify(this.data))
|
||||
},
|
||||
getDetail(id) {
|
||||
this.instance.post(`/applandcirculateinfo/queryDetailById?id=${id}`).then(res => {
|
||||
this.instance.post(`/app/applandcirculateinfo/queryDetailById?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.data = res.data
|
||||
}
|
||||
@@ -230,7 +230,7 @@ export default {
|
||||
confirm() {
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
this.instance.post(`/applandcirculateinfo/addOrUpdate`, {
|
||||
this.instance.post(`/app/applandcirculateinfo/addOrUpdate`, {
|
||||
...this.form,
|
||||
id: this.params.id || '',
|
||||
}).then(res => {
|
||||
@@ -261,4 +261,4 @@ export default {
|
||||
// width: 130px;
|
||||
// }
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<ai-select v-model="select.circulateType" @change="onChange" placeholder="流转形式" :selectList="$dict.getDict('landCirculateType')"></ai-select>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input size="small" placeholder="查询合同编号/流出方/承接方/证件号码" v-model="search.contractNo" clearable @clear="page.current = 1, search.contractNo = '',getTableData()"
|
||||
<el-input size="small" placeholder="查询合同编号/流出方/承接方/证件号码" v-model="search.contractNo" clearable @clear="page.current = 1, search.contractNo = '',getTableData()"
|
||||
suffix-icon="iconfont iconSearch" v-throttle="() => {(page.current = 1), getTableData();}"/>
|
||||
<!-- 导入导出 -->
|
||||
<ai-import :instance="instance" :dict="dict" importUrl="/applandcirculateinfo/import" url="/applandcirculateinfo/downloadTemplate" name="土地流转经营信息" @success="getTableData(), $message.success('导入成功!')">
|
||||
@@ -82,7 +82,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post("/applandcirculateinfo/list", null, {
|
||||
this.instance.post("/app/applandcirculateinfo/list", null, {
|
||||
params: {...this.page, ...this.search,...this.select}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -106,7 +106,7 @@ export default {
|
||||
},
|
||||
handleDelete(id) {
|
||||
this.$confirm("是否要删除?").then(() => {
|
||||
this.instance.post(`/applandcirculateinfo/delete?ids=${id}`).then(res => {
|
||||
this.instance.post(`/app/applandcirculateinfo/delete?ids=${id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success("删除成功")
|
||||
this.getTableData()
|
||||
@@ -123,4 +123,4 @@ export default {
|
||||
height: 100%;
|
||||
background: #f3f4f5;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user