Browse Source

楼盘管理修改

develop
王健 4 years ago
parent
commit
352118af52
  1. 185
      src/views/sale/index.vue
  2. 6
      vue.config.js

185
src/views/sale/index.vue

@ -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();

6
vue.config.js

@ -6,10 +6,8 @@ const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
// const url = 'http://192.168.24.3:9002'; //裴
// const url = 'http://192.168.28.41:9002';//尔伯
// const url = 'http://139.159.180.147:9002';//生产
const url = 'https://yoursairdata.com/api';//生产
const url = 'http://192.168.209.210:9002'; //裴
// const url = 'https://yoursairdata.com/api';//生产
module.exports = {
lintOnSave: true,
productionSourceMap: false,

Loading…
Cancel
Save