Browse Source

修改处理楼盘数据问题

develop
caoyizhong 3 years ago
parent
commit
52090abcd6
  1. 25
      src/views/city/cityInterest/index.vue
  2. 15
      src/views/houseList/page/houseInfo.vue
  3. 20
      src/views/houseList/page/index.vue
  4. 24
      src/views/sale/index.vue

25
src/views/city/cityInterest/index.vue

@ -214,6 +214,7 @@
<!-- <el-button type="primary" @click="save"> </el-button>-->
</span>
</el-dialog>
<div class="page_content_table">
<el-table
:data="tableData"
@ -274,6 +275,7 @@
</div>
</div>
</div>
<!-- 添加||修改 -->
<el-dialog :title="title" :visible.sync="dialogVisible" width="35%">
<el-form :model="editForm" :disabled="dialogReadOnly" :rules="rules" label-width="200px">
<el-form-item label="周边地区名称:" prop="name">
@ -440,6 +442,7 @@ import {
delGroupData,
} from "@/views/banner/api/api";
import { getInterest,addInterest, delInterest ,updateInterest ,selectInterestType ,importFile ,getInterestRim ,delInterestRim } from "@/views/city/cityInterest/api/Interest";
import * as api from "../../city/cityInterest/api/Interest";
export default {
name: "interest",
@ -652,7 +655,7 @@ export default {
}
console.log(param);
this.title = "删除城市数据";
getInterestRim(param).then(rest => {
api.getInterestRim(param).then(rest => {
//console.log(rest.data);
this.aroundTownRim = rest.data.data.records;
//console.log(this.aroundTownRim);
@ -669,7 +672,7 @@ export default {
console.log(row);
let pasme = row ;
this.$modal.confirm('是否确认删除地区为"' + row.county + '"的数据项?').then(function() {
return delInterestRim(pasme);
return api.delInterestRim(pasme);
}).then(() => {
this.circumDelete("1");
@ -694,7 +697,7 @@ export default {
const file = e;
let formData = new FormData();
formData.append("uploadFile", file);
importFile(formData).then((res) => {
api.importFile(formData).then((res) => {
this.loading = false;
if (res.data.success) {
this.$message({
@ -725,7 +728,7 @@ export default {
//
selectTypeLists(){
selectInterestType().then(rest => {
api.selectInterestType().then(rest => {
this.interestType = rest.data.data;
//console.log(this.interestType)
})
@ -765,8 +768,8 @@ export default {
},
this.searchForm
);
console.log(param);
getInterest(param).then((response) => {
// console.log(param);
api.getInterest(param).then((response) => {
//console.log(response.data);
this.tableData = response.data.data.records;
this.page.total = response.data.data.total;
@ -859,7 +862,7 @@ export default {
this.editForm.oldType = null;
}
console.log(this.editForm)
updateInterest(this.editForm).then((res) => {
api.updateInterest(this.editForm).then((res) => {
this.dialogVisible = false;
this.onSubmit();
this.hiedType =true;
@ -896,7 +899,7 @@ export default {
let param = Object.assign(
this.editForm);
console.log(param);
addInterest(param).then((res) => {
api.addInterest(param).then((res) => {
this.dialogVisible = false;
this.onSubmit();
this.$message.success("添加成功");
@ -923,7 +926,7 @@ export default {
type: "warning",
}).then(function () {
//console.log(row);
delInterest(row.gid).then((res) => {
api.delInterest(row.gid).then((res) => {
if (res.data.success) {
_this.$message({
type: "success",
@ -950,8 +953,8 @@ export default {
for (let item of this.selectedData) {
ids.push(item["gid"]);
}
console.log(ids)
delInterest(ids).then((res) => {
// console.log(ids)
api.delInterest(ids).then((res) => {
if (res.data.success) {
this.$message({
type: "success",

15
src/views/houseList/page/houseInfo.vue

@ -496,7 +496,7 @@ export default {
},
//
tou(id){
console.log("执行了");
//console.log("");
//
api.houseById(id).then(res=>{
this.upInfo = res.data.data.housingEstates;
@ -522,6 +522,7 @@ export default {
return false;
}
var temp = this.initData[this.ruleFormer.propertyType];
this.Bigye = [];
for (var key in temp) {
this.Bigye.push(key);
}
@ -540,7 +541,7 @@ export default {
//
infoEditing(row){
this.dialogFormVisible = true;
console.log(row)
// console.log(row)
// this.ruleFormer = row;
// this.ruleFormerCopy= row;
// this.ruleFormer.name = this.upInfo.name;
@ -548,7 +549,7 @@ export default {
// console.log(res.data.data);
this.ruleFormer= res.data.data;
})
apis.getHousingNames().then((res) => {
apis.getNameList().then((res) => {
if (res.data.data) {
this.nameList = res.data.data.records;
}
@ -601,7 +602,7 @@ export default {
})
} else {
console.log("error submit!!");
// console.log("error submit!!");
return false;
}
});
@ -623,8 +624,8 @@ export default {
},
getList(page, params) {
this.tableLoading = true;
console.debug(page);
console.debug(params);
// console.debug(page);
// console.debug(params);
fetchHandLandList(
Object.assign({
current: page.currentPage,
@ -659,7 +660,7 @@ export default {
this.$route.query.housingEstateId?this.$set(param,'housingEstateId',this.$route.query.housingEstateId):this.$set(param,'housingEstateId',id);
this.$route.query.largeFormat?this.$set(param,'largeFormat',this.$route.query.largeFormat):false;
this.$route.query.format?this.$set(param,'format',this.$route.query.format):false;
console.log(param);
// console.log(param);
api.blocksList(param)
.then((response) => {
this.tableData = response.data.data.records;

20
src/views/houseList/page/index.vue

@ -731,6 +731,10 @@ export default {
},
{
label: "公告编号",
prop: "annoId",
},
{
label: "地块编号",
prop: "landCode",
},
// {
@ -916,9 +920,9 @@ export default {
this.onSubmit()
}
}).catch((e)=>{this.dialogLoad=false;})
console.log(this.ruleForm);
// console.log(this.ruleForm);
} else {
console.log("error submit!!");
// console.log("error submit!!");
return false;
}
});
@ -931,7 +935,7 @@ export default {
this.dialogFormVisible = true;
this.dialogLoad=true;
api.houseById(item.housingEstateId).then(res=>{
console.log(res);
// console.log(res);
this.ruleForm = res.data.data.housingEstates;
this.dialogLoad=false;
}).catch((e)=>{this.dialogLoad=false;})
@ -945,8 +949,8 @@ export default {
},
getList(page, params) {
this.tableLoading = true;
console.debug(page);
console.debug(params);
// console.debug(page);
// console.debug(params);
api.houseList(
Object.assign({
current: page.currentPage,
@ -965,7 +969,7 @@ export default {
//
editItemChange(val) {
console.log("editItemChange", val);
// console.log("editItemChange", val);
},
//
@ -979,7 +983,7 @@ export default {
},
this.searchForm
);
console.log(param);
// console.log(param);
api.houseList(param) .then((response) => {
this.tableData = response.data.data.records;
this.page.total = response.data.data.total;
@ -1000,7 +1004,7 @@ export default {
//
exportData() {
console.debug("导出数据");
// console.debug("");
if (this.selectedData.length < 1) {
this.$message({
message: "未选中数据",

24
src/views/sale/index.vue

@ -265,10 +265,10 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="关联地块:">
<el-form-item label="关联【公告序号】:">
<el-select
v-model="params.landListedId"
placeholder="请选择关联地块"
placeholder="请选择关联【公告序号】"
filterable
multiple
remote
@ -280,9 +280,10 @@
<el-option
v-for="item in landList"
:key="item.landListedId"
:label="item.landCode"
:label="item.annoId"
:value="item.landListedId"
>
<!-- :label="`${item.annoId}——${item.landCode}`"-->
</el-option>
</el-select>
</el-form-item>
@ -540,7 +541,7 @@ export default {
this.landList = response.data.data.records;
}
});
api.getHousingNames().then((res) => {
api.getNameList().then((res) => {
if (res.data.data) {
this.nameList = res.data.data.records;
}
@ -558,7 +559,7 @@ export default {
},
params: {
handler(newVal, oldVal) {
console.log(newVal)
// console.log(newVal)
},
deep: true
}
@ -608,23 +609,24 @@ export default {
}
});
},
/** 物业类型 */
getBigye() {
if (!this.params.propertyType) {
return false;
}
var temp = this.initData[this.params.propertyType];
this.Bigye = [];
for (var key in temp) {
this.Bigye.push(key);
}
this.$set(this.params, "largeFormat", "");
},
//
//
getYe() {
if (!this.params.propertyType && !this.params.largeFormat) {
return false;
}
var temp =
this.initData[this.params.propertyType][this.params.largeFormat];
var temp = this.initData[this.params.propertyType][this.params.largeFormat];
this.ye = temp;
this.$set(this.params, "format", "");
},
@ -645,7 +647,7 @@ export default {
this.dialogLoad = false;
});
} else {
console.log("error submit!!");
// console.log("error submit!!");
return false;
}
});
@ -684,7 +686,7 @@ export default {
// console.log(param)
api.getSaleList(param).then((response) => {
this.tableDataRepeal = [];
console.log(response.data.data.records)
//console.log(response.data.data.records)
// this.tableData = response.data.data.records;
for (let i = 0; i < response.data.data.records.length; i++) {
if (response.data.data.records[i].statusCd == "1") {
@ -712,7 +714,7 @@ export default {
// console.log(param)
api.getSaleList(param).then((response) => {
this.tableData = [];
console.log(response.data.data.records)
// console.log(response.data.data.records)
// this.tableData = response.data.data.records;
for (let i = 0; i < response.data.data.records.length; i++) {
if (response.data.data.records[i].statusCd == "0") {

Loading…
Cancel
Save