|
|
|
@ -37,50 +37,7 @@
|
|
|
|
|
<div style="display: flex; justify-content: space-between"> |
|
|
|
|
<div class="page_content_head_left"> |
|
|
|
|
<div>任务列表</div> |
|
|
|
|
<!-- <div style="margin-left: 10px"> |
|
|
|
|
<img src="@public/img/land/u1343.png" /> |
|
|
|
|
</div> --> |
|
|
|
|
<!-- <div style="margin-left: 10px"> |
|
|
|
|
<span>已选择{{ selectedData.length }}项</span> |
|
|
|
|
</div> |
|
|
|
|
<div style="margin-left: 10px"> |
|
|
|
|
<el-button type="text" @click="clearSelection">清空</el-button> |
|
|
|
|
</div> --> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="page_content_head_right"> |
|
|
|
|
<div> |
|
|
|
|
<el-button @click="exportData" v-show="hasSelectData" |
|
|
|
|
><img src="@public/img/land/u1340.png" />导出</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-button v-show="hasSelectData" |
|
|
|
|
><img src="@public/img/land/u1340.png" />批量删除</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-button |
|
|
|
|
><img src="@public/img/land/u1401.png" />导入</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-tooltip |
|
|
|
|
class="item" |
|
|
|
|
effect="dark" |
|
|
|
|
content="点击此处下载模版" |
|
|
|
|
placement="bottom" |
|
|
|
|
> |
|
|
|
|
<el-button @click="downloadTemplate" |
|
|
|
|
><i class="el-icon-download"></i |
|
|
|
|
></el-button> |
|
|
|
|
</el-tooltip> |
|
|
|
|
</div> |
|
|
|
|
<div style="margin-right: 30px"> |
|
|
|
|
<el-button @click="newItem" type="primary" |
|
|
|
|
><i class="el-icon-plus"></i>新建</el-button |
|
|
|
|
> |
|
|
|
|
</div> --> |
|
|
|
|
<!-- </div> --> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="page_content_table"> |
|
|
|
@ -94,7 +51,7 @@
|
|
|
|
|
v-loading="loading" |
|
|
|
|
> |
|
|
|
|
<el-table-column |
|
|
|
|
v-for="(item, index) in cols.slice(0, 3)" |
|
|
|
|
v-for="(item, index) in cols" |
|
|
|
|
:key="index" |
|
|
|
|
:prop="item.prop" |
|
|
|
|
:label="item.label" |
|
|
|
@ -349,42 +306,42 @@ export default {
|
|
|
|
|
{ |
|
|
|
|
label: "预售许可证号/房产证号", |
|
|
|
|
prop: "preSaleLicenseNo", |
|
|
|
|
width: 200, |
|
|
|
|
width: 300, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "315楼盘名称", |
|
|
|
|
prop: "netName", |
|
|
|
|
width: 150, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "楼盘名称", |
|
|
|
|
prop: "name", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "业态", |
|
|
|
|
prop: "landUsage", |
|
|
|
|
width: 150, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "楼栋", |
|
|
|
|
prop: "buildingNo", |
|
|
|
|
width: 150, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "公告编号", |
|
|
|
|
prop: "landTransferMu", |
|
|
|
|
width: 150, |
|
|
|
|
width: 400, |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "楼盘名称", |
|
|
|
|
// prop: "name", |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// label: "业态", |
|
|
|
|
// prop: "landUsage", |
|
|
|
|
// width: 150, |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// label: "楼栋", |
|
|
|
|
// prop: "buildingNo", |
|
|
|
|
// width: 150, |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// label: "公告编号", |
|
|
|
|
// prop: "landTransferMu", |
|
|
|
|
// width: 150, |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// label: "其它编号", |
|
|
|
|
// prop: "otherNo", |
|
|
|
|
// width: 120, |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
label: "爬取时间", |
|
|
|
|
prop: "createDate", |
|
|
|
|
width: 150, |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "爬取时间", |
|
|
|
|
// prop: "createDate", |
|
|
|
|
// width: 150, |
|
|
|
|
// }, |
|
|
|
|
], |
|
|
|
|
ruleForm: {}, |
|
|
|
|
rules: { |
|
|
|
@ -641,11 +598,6 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 编辑项 |
|
|
|
|
editItemChange(val) { |
|
|
|
|
console.log("editItemChange", val); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 查询 |
|
|
|
|
onSubmit() { |
|
|
|
|
this.loading = true; |
|
|
|
@ -681,93 +633,10 @@ export default {
|
|
|
|
|
this.searchForm[item] = ""; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 导出数据 |
|
|
|
|
exportData() { |
|
|
|
|
console.debug("导出数据"); |
|
|
|
|
if (this.selectedData.length < 1) { |
|
|
|
|
this.$message({ |
|
|
|
|
message: "未选中数据", |
|
|
|
|
type: "warning", |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let ids = []; |
|
|
|
|
for (let item of this.selectedData) { |
|
|
|
|
ids.push(item["landListedId"]); |
|
|
|
|
} |
|
|
|
|
exportHandLandToListExcel(ids.toString()).then((res) => { |
|
|
|
|
fileDownload(res.data, "kg.xlsx"); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 选中更改 |
|
|
|
|
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.queryLonLatList(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 () {}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 新建 |
|
|
|
|
newItem() { |
|
|
|
|
// 从cols里面拷贝字段 |
|
|
|
|
let newObj = {}; |
|
|
|
|
for (let col of this.cols) { |
|
|
|
|
newObj[col.prop] = ""; |
|
|
|
|
} |
|
|
|
|
this.editForm = newObj; |
|
|
|
|
this.readOnly = false; |
|
|
|
|
this.dialogFormVisible = true; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
save() {}, |
|
|
|
|
|
|
|
|
|
// 下载模板 |
|
|
|
|
downloadTemplate() { |
|
|
|
|
downloadHandLandTemplate().then((res) => { |
|
|
|
|
let url = res.data.data; |
|
|
|
|
downUrlFile(url); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
handleSizeChange(val) { |
|
|
|
|
this.page.pageSize = val; |
|
|
|
|
this.onSubmit(); |
|
|
|
|