|
|
|
@ -173,7 +173,7 @@
|
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="商务面积占比(%):"> |
|
|
|
|
<el-form-item label="商业商务占比(%):"> |
|
|
|
|
<el-input |
|
|
|
|
readonly |
|
|
|
|
v-model="editForm.bizCommerceRate" |
|
|
|
@ -1841,12 +1841,10 @@ export default {
|
|
|
|
|
newObj[col.prop] = ""; |
|
|
|
|
} |
|
|
|
|
this.editForm = newObj; |
|
|
|
|
// console.log(this.$route); |
|
|
|
|
if (this.$route.query.readOnly === "true") { |
|
|
|
|
this.readOnly = true; |
|
|
|
|
let row = this.$route.query.data; |
|
|
|
|
this.onlyId = row; |
|
|
|
|
// this.editForm = row; |
|
|
|
|
queryHandLandObj(row).then((res) => { |
|
|
|
|
this.editForm = res.data.data; |
|
|
|
|
}); |
|
|
|
@ -1876,14 +1874,10 @@ export default {
|
|
|
|
|
return txt; |
|
|
|
|
}, |
|
|
|
|
calculate() { |
|
|
|
|
if ( |
|
|
|
|
this.editForm.bizSpace && |
|
|
|
|
this.editForm.commerceSpace && |
|
|
|
|
this.editForm.commerceSpace != 0 |
|
|
|
|
) { |
|
|
|
|
this.editForm.bizCommerceRate = parseFloat( |
|
|
|
|
this.editForm.bizSpace / this.editForm.commerceSpace |
|
|
|
|
); |
|
|
|
|
if (this.editForm.totalConsArea && this.editForm.totalConsArea != 0) { |
|
|
|
|
this.editForm.bizCommerceRate = |
|
|
|
|
((this.editForm.bizSpace + this.editForm.commerceSpace) / |
|
|
|
|
this.editForm.totalConsArea*100).toFixed(2) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getList(page, params) { |
|
|
|
@ -1977,115 +1971,6 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 选中更改 |
|
|
|
|
handleSelectionChange(val) { |
|
|
|
|
this.selectedData = val; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 查看 |
|
|
|
|
viewItem(row) { |
|
|
|
|
this.dialogTitle = "查看数据"; |
|
|
|
|
this.readOnly = true; |
|
|
|
|
this.dialogFormVisible = true; |
|
|
|
|
this.editForm = row; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 编辑 |
|
|
|
|
editItem(row) { |
|
|
|
|
this.dialogTitle = "编辑数据"; |
|
|
|
|
this.readOnly = false; |
|
|
|
|
this.dialogFormVisible = true; |
|
|
|
|
this.editForm = row; |
|
|
|
|
this.onlyId = row.landListedId; |
|
|
|
|
this.queryLonLatList(row.landListedId); |
|
|
|
|
this.queryRecordList(row.landListedId); |
|
|
|
|
this.conductenterList(row.landListedId); |
|
|
|
|
this.getPlanList(row.landListedId); |
|
|
|
|
this.queryFileList(row.landListedId); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 删除单个 |
|
|
|
|
delItem(row) { |
|
|
|
|
let me = this; |
|
|
|
|
let ids = [row.landListedId]; |
|
|
|
|
this.$confirm("确认删除?", "系统提示", { |
|
|
|
|
confirmButtonText: "确定", |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
cancelButtonClass: "btn-custom-cancel", |
|
|
|
|
type: "warning", |
|
|
|
|
}) |
|
|
|
|
.then(function () { |
|
|
|
|
delHandLandObj(ids).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
me.$message("删除成功"); |
|
|
|
|
me.onSubmit(); |
|
|
|
|
} else { |
|
|
|
|
me.$message("删除失败"); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(function () {}); |
|
|
|
|
}, |
|
|
|
|
//批量删除 |
|
|
|
|
multiDelete() { |
|
|
|
|
if (this.selectedData.length < 1) { |
|
|
|
|
this.$message({ |
|
|
|
|
message: "未选中数据", |
|
|
|
|
type: "warning", |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let ids = []; |
|
|
|
|
for (let item of this.selectedData) { |
|
|
|
|
ids.push(item["landListedId"]); |
|
|
|
|
} |
|
|
|
|
multiDeteleList(ids).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|
message: "删除成功", |
|
|
|
|
}); |
|
|
|
|
this.onSubmit(); |
|
|
|
|
} else { |
|
|
|
|
this.$message("删除失败"); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 新建 |
|
|
|
|
newItem() { |
|
|
|
|
this.$router.push("/land/handLand/newLand"); |
|
|
|
|
// 从cols里面拷贝字段 |
|
|
|
|
let newObj = {}; |
|
|
|
|
for (let col of this.cols) { |
|
|
|
|
newObj[col.prop] = ""; |
|
|
|
|
} |
|
|
|
|
this.editForm = newObj; |
|
|
|
|
this.readOnly = false; |
|
|
|
|
this.dialogFormVisible = true; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 下载模板 |
|
|
|
|
downloadTemplate() { |
|
|
|
|
downloadHandLandTemplate().then((res) => { |
|
|
|
|
let url = res.data.data; |
|
|
|
|
downUrlFile(url); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
handleSizeChange(val) { |
|
|
|
|
this.page.pageSize = val; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
handleCurrentChange(val) { |
|
|
|
|
this.page.currentPage = val; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 清空选中 |
|
|
|
|
clearSelection() { |
|
|
|
|
this.$refs.multipleTable.clearSelection(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 通过公告序号经纬度列表查询 |
|
|
|
|
queryLonLatList(landListedId) { |
|
|
|
|
queryLonLatList(landListedId).then((response) => { |
|
|
|
@ -2519,7 +2404,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 查询文件列表 |
|
|
|
|
queryFileList(landListedId) { |
|
|
|
|
// let landListedId = this.editForm.landListedId; |
|
|
|
|
// let landListedId = this.editForm.landListedId; |
|
|
|
|
if (landListedId == undefined) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -2643,21 +2528,6 @@ export default {
|
|
|
|
|
formData.append("uploadFile", file); |
|
|
|
|
importLonLat(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("保存失败"); |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
this.queryLonLatList(this.onlyId); |
|
|
|
|
return false; |
|
|
|
|
} else { |
|
|
|
@ -2669,18 +2539,18 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
//分布保存 |
|
|
|
|
save() { |
|
|
|
|
if (!this.editForm.landCode) { |
|
|
|
|
this.$message.error("请输入地块编号"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!this.editForm.annoId) { |
|
|
|
|
this.$message.error("请输入公告序号"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!this.editForm.landPosition) { |
|
|
|
|
this.$message.error("请输入地块位置"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// if (!this.editForm.landCode) { |
|
|
|
|
// this.$message.error("请输入地块编号"); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
// if (!this.editForm.annoId) { |
|
|
|
|
// this.$message.error("请输入公告序号"); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
// if (!this.editForm.landPosition) { |
|
|
|
|
// this.$message.error("请输入地块位置"); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
let type = ""; |
|
|
|
|
this.$route.query.isEditOr === "true" ? (type = "put") : (type = "post"); |
|
|
|
|
saveHandLandList(JSON.stringify(this.editForm), type).then((res) => { |
|
|
|
@ -2689,10 +2559,6 @@ export default {
|
|
|
|
|
type: "success", |
|
|
|
|
message: "保存成功", |
|
|
|
|
}); |
|
|
|
|
this.onlyId = res.data.data; |
|
|
|
|
// window.history.back() |
|
|
|
|
// this.dialogFormVisible = false; |
|
|
|
|
// this.onSubmit(); |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("保存失败"); |
|
|
|
|
} |
|
|
|
|