|
|
|
@ -66,9 +66,13 @@
|
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-button |
|
|
|
|
><img src="@public/img/land/u1401.png" />导入</el-button |
|
|
|
|
<el-upload |
|
|
|
|
class="upload-demo" |
|
|
|
|
action="" |
|
|
|
|
:before-upload="importData" |
|
|
|
|
> |
|
|
|
|
<el-button size="medium" type="primary">导入数据</el-button> |
|
|
|
|
</el-upload> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-tooltip |
|
|
|
@ -956,11 +960,19 @@
|
|
|
|
|
> |
|
|
|
|
<el-tab-pane label="红线图" name="redLineMap"> |
|
|
|
|
<el-upload |
|
|
|
|
class="upload-demo" |
|
|
|
|
drag |
|
|
|
|
action |
|
|
|
|
list-type="picture-card" |
|
|
|
|
:http-request="uploadFile" |
|
|
|
|
multiple |
|
|
|
|
> |
|
|
|
|
<i class="el-icon-plus"></i> |
|
|
|
|
<i class="el-icon-upload"></i> |
|
|
|
|
<div class="el-upload__text"> |
|
|
|
|
将文件拖到此处,或<em>点击上传</em> |
|
|
|
|
</div> |
|
|
|
|
<div class="el-upload__tip" slot="tip"> |
|
|
|
|
只支持上传doc、docx、pdf、ppt、pptx文件,且不超过10M。 |
|
|
|
|
</div> |
|
|
|
|
</el-upload> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="控规图" name="controlChart"> |
|
|
|
@ -1079,8 +1091,8 @@
|
|
|
|
|
<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-button v-show="!readOnly" @click="allUpload" type="primary" |
|
|
|
|
>全部上传</el-button |
|
|
|
|
> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
@ -1098,6 +1110,7 @@
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
allFileUpload, |
|
|
|
|
getDict, |
|
|
|
|
fetchNoHandLandList, |
|
|
|
|
saveNoHandLandList, |
|
|
|
@ -1122,6 +1135,7 @@ export default {
|
|
|
|
|
name: "NoHandLand", |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
onlyId: "", |
|
|
|
|
searchForm: { |
|
|
|
|
// 公告序号 |
|
|
|
|
annoId: "", |
|
|
|
@ -1572,6 +1586,8 @@ export default {
|
|
|
|
|
handler(newVal, oldVal) { |
|
|
|
|
if (newVal) { |
|
|
|
|
this.queryFileList(); |
|
|
|
|
} else { |
|
|
|
|
this.onSubmit(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -1689,7 +1705,9 @@ export default {
|
|
|
|
|
this.readOnly = false; |
|
|
|
|
this.dialogFormVisible = true; |
|
|
|
|
this.editForm = row; |
|
|
|
|
this.onlyId = row.proposedseriaId; |
|
|
|
|
this.queryLonLatList(row.proposedseriaId); |
|
|
|
|
this.queryFileList(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 删除单个 |
|
|
|
@ -1729,8 +1747,16 @@ export default {
|
|
|
|
|
|
|
|
|
|
//分布保存 |
|
|
|
|
save() { |
|
|
|
|
if (!this.editForm.landName) { |
|
|
|
|
this.$message.error("请输入地块名称"); |
|
|
|
|
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.proposedseriaId) { |
|
|
|
@ -1773,7 +1799,13 @@ export default {
|
|
|
|
|
queryLonLatList(proposedseriaId) { |
|
|
|
|
queryLonLatList(proposedseriaId).then((response) => { |
|
|
|
|
if (response.data.success) { |
|
|
|
|
let index = 0; |
|
|
|
|
this.landLonLat = response.data.data; |
|
|
|
|
this.landLonLat.forEach((item) => { |
|
|
|
|
item.edit = false; |
|
|
|
|
item.index = index; |
|
|
|
|
index++; |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.landLonLat = []; |
|
|
|
|
} |
|
|
|
@ -1797,13 +1829,13 @@ export default {
|
|
|
|
|
this.isLonLatEdit = false; |
|
|
|
|
let index = 0; |
|
|
|
|
this.landLonLat.forEach((item) => { |
|
|
|
|
item.edit = true; |
|
|
|
|
item.edit = false; |
|
|
|
|
item.index = index; |
|
|
|
|
index++; |
|
|
|
|
}); |
|
|
|
|
this.landLonLat.push({ |
|
|
|
|
// annoId: this.editForm.annoId, |
|
|
|
|
proposedseriaId: this.editForm.proposedseriaId, |
|
|
|
|
// proposedseriaId: this.editForm.proposedseriaId, |
|
|
|
|
landCode: "", |
|
|
|
|
landLonLat: "", |
|
|
|
|
lineColor: "#FF0000", |
|
|
|
@ -1818,7 +1850,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 删除一行经纬度 |
|
|
|
|
handleLonLatDelClick(row) { |
|
|
|
|
delLandLonLat(row.proposedseriaId, row.landCode).then((res) => { |
|
|
|
|
delLandLonLat(row.latId).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message("删除成功"); |
|
|
|
|
this.queryLonLatList(row.proposedseriaId); |
|
|
|
@ -1828,13 +1860,19 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 确定编辑行 |
|
|
|
|
// 保存编辑行 |
|
|
|
|
handleLonLatOKClick(row) { |
|
|
|
|
if(!row.landCode) { |
|
|
|
|
this.$message.error("请输入地块编号") |
|
|
|
|
return |
|
|
|
|
if (!this.readOnly && !this.onlyId) { |
|
|
|
|
this.$message.error("请先填写公告信息"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!row.landCode) { |
|
|
|
|
this.$message.error("请输入宗地编号"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
row.edit = false; |
|
|
|
|
this.$set(row, "proposedseriaId", this.onlyId); |
|
|
|
|
this.$set(row, "annoId", this.editForm.annoId); |
|
|
|
|
if (this.isLonLatEdit) { |
|
|
|
|
updateLonLat(row).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
@ -1867,7 +1905,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 取消编辑行 |
|
|
|
|
handleLonLatCancelClick(row, index) { |
|
|
|
|
this.landLonLat.splice(index,1) |
|
|
|
|
this.landLonLat.splice(index, 1); |
|
|
|
|
}, |
|
|
|
|
//批量删除 |
|
|
|
|
multiDelete() { |
|
|
|
@ -1936,14 +1974,18 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 上传文件 |
|
|
|
|
uploadFile(file) { |
|
|
|
|
if (!this.onlyId) { |
|
|
|
|
this.$message.error("请先填写公告信息"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
uploadFile(file).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
let tempData = res.data.data; |
|
|
|
|
this.uploadFiles.push({ |
|
|
|
|
id: -1, |
|
|
|
|
fileName: tempData.fileName, |
|
|
|
|
filePath: tempData.path, |
|
|
|
|
uploadProcess: 0, |
|
|
|
|
fileType: this.activeType, |
|
|
|
|
proposedseriaId: this.onlyId, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -1966,6 +2008,12 @@ export default {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//全部上传 |
|
|
|
|
allUpload() { |
|
|
|
|
allFileUpload(this.uploadFiles).then((res) => { |
|
|
|
|
this.queryFileList(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 删除资料 |
|
|
|
|
delRes(row) { |
|
|
|
|