|
|
|
@ -182,7 +182,7 @@
|
|
|
|
|
<el-collapse-item name="12"> |
|
|
|
|
<template slot="title"> |
|
|
|
|
<div class="ti-box"> |
|
|
|
|
<span>建筑配建计容</span> |
|
|
|
|
<span>建设规划</span> |
|
|
|
|
<span class="ti-tag">{{ setTagName(12) }}</span> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
@ -274,15 +274,6 @@
|
|
|
|
|
>+添加一行</el-button |
|
|
|
|
> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="8"> </el-col> |
|
|
|
|
<el-col :span="8"> </el-col> |
|
|
|
|
<el-col :span="8" style="text-align: right"> |
|
|
|
|
<el-button v-show="!readOnly" @click="save" type="primary" |
|
|
|
|
>保存</el-button |
|
|
|
|
> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-collapse-item> |
|
|
|
|
<el-collapse-item name="3"> |
|
|
|
|
<template slot="title"> |
|
|
|
@ -530,7 +521,7 @@
|
|
|
|
|
<el-input v-model="editForm.lonLatBd"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="8" style="text-align: right"> |
|
|
|
|
<el-col :span="8" style="text-align: right;padding-top:20px"> |
|
|
|
|
<el-button v-show="!readOnly" @click="save" type="primary" |
|
|
|
|
>保存</el-button |
|
|
|
|
> |
|
|
|
@ -799,15 +790,6 @@
|
|
|
|
|
>+添加一行</el-button |
|
|
|
|
> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="8"> </el-col> |
|
|
|
|
<el-col :span="8"> </el-col> |
|
|
|
|
<el-col :span="8" style="text-align: right"> |
|
|
|
|
<el-button v-show="!readOnly" @click="save" type="primary" |
|
|
|
|
>保存</el-button |
|
|
|
|
> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-collapse-item> |
|
|
|
|
<el-collapse-item name="8"> |
|
|
|
|
<template slot="title"> |
|
|
|
@ -943,16 +925,6 @@
|
|
|
|
|
<!-- <el-row style="text-align: center">--> |
|
|
|
|
<!-- <el-button type="text" style="color: gray">导入</el-button>--> |
|
|
|
|
<!-- </el-row>--> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="8"> </el-col> |
|
|
|
|
<el-col :span="8"> </el-col> |
|
|
|
|
<el-col :span="8" style="text-align: right"> |
|
|
|
|
<el-button v-show="!readOnly" type="primary">导入</el-button> |
|
|
|
|
<el-button v-show="!readOnly" @click="save" type="primary" |
|
|
|
|
>保存</el-button |
|
|
|
|
> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-collapse-item> |
|
|
|
|
<el-collapse-item name="9"> |
|
|
|
|
<template slot="title"> |
|
|
|
@ -1102,11 +1074,16 @@
|
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="8"> </el-col> |
|
|
|
|
<el-col :span="8"> </el-col> |
|
|
|
|
<el-col :span="8" style="text-align: right"> |
|
|
|
|
<el-button v-show="!readOnly" type="primary">导入</el-button> |
|
|
|
|
<el-button v-show="!readOnly" @click="save" type="primary" |
|
|
|
|
>保存</el-button |
|
|
|
|
<el-col :span="8" style="display: flex;justify-content: flex-end"> |
|
|
|
|
<el-upload |
|
|
|
|
v-show="!readOnly" |
|
|
|
|
style="margin-right: 10px;" |
|
|
|
|
action="" |
|
|
|
|
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel" |
|
|
|
|
:before-upload="uploadExcel" |
|
|
|
|
> |
|
|
|
|
<el-button size="medium" type="primary">导入</el-button> |
|
|
|
|
</el-upload> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-collapse-item> |
|
|
|
@ -1311,6 +1288,8 @@
|
|
|
|
|
addConstructionPlan, |
|
|
|
|
updateConstructionPlan, |
|
|
|
|
delConstructionPlan, |
|
|
|
|
importLand, |
|
|
|
|
saveLandMulti |
|
|
|
|
} from "@/views/land/api/land"; |
|
|
|
|
import { uploadFile } from "@/views/api/api"; |
|
|
|
|
import { downUrlFile } from "@/util/file"; |
|
|
|
@ -1741,15 +1720,16 @@
|
|
|
|
|
newObj[col.prop] = ""; |
|
|
|
|
} |
|
|
|
|
this.editForm = newObj; |
|
|
|
|
if (this.$route.query.readOnly==='true'){ |
|
|
|
|
// console.log(this.$route); |
|
|
|
|
if (this.$route.params.readOnly==='true'){ |
|
|
|
|
this.readOnly = true; |
|
|
|
|
let row=JSON.parse(this.$route.query.data) |
|
|
|
|
let row=JSON.parse(this.$route.params.data) |
|
|
|
|
this.editForm = row; |
|
|
|
|
}else { |
|
|
|
|
this.readOnly = false; |
|
|
|
|
} |
|
|
|
|
if (this.$route.query.isEditOr==='true'){ |
|
|
|
|
let row=JSON.parse(this.$route.query.data) |
|
|
|
|
if (this.$route.params.isEditOr==='true'){ |
|
|
|
|
let row=JSON.parse(this.$route.params.data) |
|
|
|
|
this.editForm = row; |
|
|
|
|
this.onlyId = row.landListedId; |
|
|
|
|
this.queryLonLatList(row.landListedId); |
|
|
|
@ -1765,6 +1745,7 @@
|
|
|
|
|
this.activeNames.some((item) => item == val) |
|
|
|
|
? (txt = "收起") |
|
|
|
|
: (txt = "展开"); |
|
|
|
|
txt=''; |
|
|
|
|
return txt; |
|
|
|
|
}, |
|
|
|
|
getList(page, params) { |
|
|
|
@ -1787,7 +1768,7 @@
|
|
|
|
|
|
|
|
|
|
// 编辑项 |
|
|
|
|
editItemChange(val) { |
|
|
|
|
console.log("editItemChange", val); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 查询 |
|
|
|
@ -1847,7 +1828,10 @@
|
|
|
|
|
formData.append("uploadFile", file); |
|
|
|
|
importFile(formData).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("导入成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '导入成功' |
|
|
|
|
}); |
|
|
|
|
this.onSubmit(); |
|
|
|
|
return true |
|
|
|
|
} else { |
|
|
|
@ -1921,7 +1905,10 @@
|
|
|
|
|
} |
|
|
|
|
multiDeteleList(ids).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("删除成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '删除成功' |
|
|
|
|
}); |
|
|
|
|
this.onSubmit(); |
|
|
|
|
} else { |
|
|
|
|
this.$message("删除失败"); |
|
|
|
@ -2043,10 +2030,13 @@
|
|
|
|
|
// 保存所有数据 |
|
|
|
|
saveAllData() { |
|
|
|
|
let type=''; |
|
|
|
|
this.$route.query.isEditOr==='true'?type='put':type='post'; |
|
|
|
|
this.$route.params.isEditOr==='true'?type='put':type='post'; |
|
|
|
|
saveHandLandList(JSON.stringify(this.editForm),type).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
window.history.back() |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
@ -2146,7 +2136,10 @@
|
|
|
|
|
if (type==='企业'){ |
|
|
|
|
delConductenter(row.conductEnterpriseId).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("删除成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '删除成功' |
|
|
|
|
}); |
|
|
|
|
this.conductenterList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("删除失败"); |
|
|
|
@ -2156,7 +2149,10 @@
|
|
|
|
|
// console.log(row); |
|
|
|
|
delConstructionPlan(row.constructionPlanId).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("删除成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '删除成功' |
|
|
|
|
}); |
|
|
|
|
this.getPlanList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("删除失败"); |
|
|
|
@ -2165,7 +2161,10 @@
|
|
|
|
|
}else { |
|
|
|
|
delLandLonLat(row.latId).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("删除成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '删除成功' |
|
|
|
|
}); |
|
|
|
|
this.queryLonLatList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("删除失败"); |
|
|
|
@ -2176,7 +2175,10 @@
|
|
|
|
|
handelDeleteRecord(row) { |
|
|
|
|
deleteRecord(row.auctionRecordId).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("删除成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '删除成功' |
|
|
|
|
}); |
|
|
|
|
this.queryRecordList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("删除失败"); |
|
|
|
@ -2196,7 +2198,10 @@
|
|
|
|
|
if (this.companyEdit) { |
|
|
|
|
updateConductenter(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
this.conductenterList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
@ -2205,7 +2210,10 @@
|
|
|
|
|
} else { |
|
|
|
|
addConductenter(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
this.conductenterList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
@ -2216,7 +2224,10 @@
|
|
|
|
|
if (this.planEdit) { |
|
|
|
|
updateConstructionPlan(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
this.getPlanList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
@ -2225,7 +2236,10 @@
|
|
|
|
|
} else { |
|
|
|
|
addConstructionPlan(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
this.getPlanList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
@ -2241,7 +2255,10 @@
|
|
|
|
|
if (this.isLonLatEdit) { |
|
|
|
|
updateLonLat(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
row.edit = false; |
|
|
|
|
this.queryLonLatList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
@ -2251,7 +2268,10 @@
|
|
|
|
|
} else { |
|
|
|
|
addLonLat(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
row.edit = false; |
|
|
|
|
this.queryLonLatList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
@ -2276,7 +2296,10 @@
|
|
|
|
|
if (this.isLonLatEdit) { |
|
|
|
|
updateRecord(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
this.queryRecordList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
@ -2285,7 +2308,10 @@
|
|
|
|
|
} else { |
|
|
|
|
updateRecord(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
this.queryRecordList(row.landListedId); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
@ -2422,7 +2448,10 @@
|
|
|
|
|
landListedId |
|
|
|
|
).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("上传成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '上传成功' |
|
|
|
|
}); |
|
|
|
|
this.queryFileList(); |
|
|
|
|
} else { |
|
|
|
|
this.$message("上传失败"); |
|
|
|
@ -2434,13 +2463,45 @@
|
|
|
|
|
delRes(row) { |
|
|
|
|
delLandResFile(row.id).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("删除成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '删除成功' |
|
|
|
|
}); |
|
|
|
|
this.queryFileList(); |
|
|
|
|
} else { |
|
|
|
|
this.$message("删除失败"); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
uploadExcel(e){ |
|
|
|
|
const file = e; |
|
|
|
|
let formData = new FormData(); |
|
|
|
|
formData.append("uploadFile", file); |
|
|
|
|
importLand(formData).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
let data=res.data.data; |
|
|
|
|
data.forEach((item) => { |
|
|
|
|
item.landListedId=this.onlyId; |
|
|
|
|
}); |
|
|
|
|
saveLandMulti(data).then(res=>{ |
|
|
|
|
if (res.data.success){ |
|
|
|
|
this.queryRecordList(this.onlyId); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '导入成功' |
|
|
|
|
}); |
|
|
|
|
}else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
return false |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("导入失败"); |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return false |
|
|
|
|
}, |
|
|
|
|
//分布保存 |
|
|
|
|
save() { |
|
|
|
|
if (!this.editForm.landCode) { |
|
|
|
@ -2456,10 +2517,13 @@
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let type=''; |
|
|
|
|
this.$route.query.isEditOr==='true'?type='put':type='post'; |
|
|
|
|
this.$route.params.isEditOr==='true'?type='put':type='post'; |
|
|
|
|
saveHandLandList(JSON.stringify(this.editForm),type).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("保存成功"); |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '保存成功' |
|
|
|
|
}); |
|
|
|
|
this.onlyId = res.data.data; |
|
|
|
|
// window.history.back() |
|
|
|
|
// this.dialogFormVisible = false; |
|
|
|
|