Browse Source

问题修改

master
wklion 4 years ago
parent
commit
7cbb2e5711
  1. 47
      src/views/housingestates/api.js
  2. 105
      src/views/housingestates/index.vue
  3. 10
      src/views/land/api/land.js
  4. 10
      src/views/land/api/noLand.js
  5. 135
      src/views/land/handLand/index.vue
  6. 53
      src/views/land/noneHandLand/index.vue

47
src/views/housingestates/api.js

@ -0,0 +1,47 @@
import request from '@/router/axios'
// 查询楼盘
export function queryHousingEstatesList(param) {
return request({
url: '/api/housingestates/page',
method: 'get',
params: param
})
}
// 新增楼盘
export function addHousingEstates(param) {
return request({
url: '/api/housingestates',
method: 'post',
headers: {'Content-Type': 'application/json'},
data: param
})
}
// 修改楼盘
export function updateHousingEstates(param) {
return request({
url: '/api/housingestates',
method: 'put',
headers: {'Content-Type': 'application/json'},
data: param
})
}
// 通过id查询楼盘
export function queryHousingEstatesByID(housingEstatesId) {
return request({
url: '/api/housingestates/'+housingEstatesId,
method: 'get'
})
}
// 通过id删除楼盘
export function delHousingEstatesByID(housingEstatesId) {
return request({
url: '/api/housingestates/'+housingEstatesId,
method: 'delete'
})
}

105
src/views/housingestates/index.vue

@ -0,0 +1,105 @@
<template>
<div class="normal_page">
<div class="page_search">
<span>上东汇楼盘基础信息</span>
<div>
<el-row>
<el-col :span="5">
<span>楼盘名称上东汇</span>
</el-col>
<el-col :span="5">
<span>公告编号201254</span>
</el-col>
<el-col :span="5">
<span>城市重庆</span>
</el-col>
<el-col :span="5">
<span>行政区渝北区</span>
</el-col>
<el-col :span="5">
<span>特区两江新区</span>
</el-col>
<el-col :span="4">
<span>环线三环</span>
</el-col>
</el-row>
<el-row>
<el-col :span="5">
<span>大组团中央公园</span>
</el-col>
<el-col :span="5">
<span>小组团中央公园北</span>
</el-col>
<el-col :span="5">
<span>操盘企业金科51</span>
</el-col>
<el-col :span="5">
<span>合作商美的49</span>
</el-col>
<el-col :span="5">
<span>经营企业美的49</span>
</el-col>
</el-row>
<el-row>
<el-col :span="5">
<span>开发企业金科51+美的49</span>
</el-col>
<el-col :span="5">
<span>经纬度百度BD09106.573631,29.743152</span>
</el-col>
</el-row>
</div>
</div>
<div class="page_content">
<div class="page_content_head">
</div>
<div class="page_content_table">
<el-table
:data="tableData"
border
style="width: 100%"
ref="multipleTable"
v-loading="loading"
>
<el-table-column
v-for="(item, index) in cols"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
:show-overflow-tooltip="item.hideMore"
>
</el-table-column>
</el-table>
</div>
</div>
</div>
</template>
<script>
import {
queryHousingEstatesList,
addHousingEstates,
updateHousingEstates,
queryHousingEstatesByID,
delHousingEstatesByID,
} from "@/views/housingestates/api";
export default {
name: "",
data() {
return {
tableData: [],
//
cols: [],
loading: false
};
},
methods:{
}
};
</script>
<style lang="scss" scoped>
</style>

10
src/views/land/api/land.js

@ -72,6 +72,16 @@ export function addLonLat(param) {
})
}
// 更新已挂牌地块经纬度
export function updateLonLat(param) {
return request({
url: '/api/landlistedlonlat',
method: 'put',
headers: {'Content-Type': 'application/json'},
data: param
})
}
// 通过ID删除拟挂牌地块
export function delLandLonLat(landListedId,landCode) {
return request({

10
src/views/land/api/noLand.js

@ -83,6 +83,16 @@ export function addLonLat(param) {
})
}
// 更新已挂牌地块经纬度
export function updateLonLat(param) {
return request({
url: '/api/landtolistlonlat',
method: 'put',
headers: {'Content-Type': 'application/json'},
data: param
})
}
// 通过ID删除拟挂牌地块
export function delLandLonLat(proposedseriaId,landCode) {
return request({

135
src/views/land/handLand/index.vue

@ -716,7 +716,11 @@
@click="handleLonLatOKClick(scope.row)"
>确定</el-button
>
<el-button type="text" size="small" v-show="!scope.row.edit"
<el-button
type="text"
size="small"
v-show="!scope.row.edit"
@click="handleLonLatEditClick(scope.row)"
>编辑</el-button
>
<el-button
@ -822,7 +826,13 @@
</template>
<el-tabs v-model="activeType" type="card" @tab-click="tabChange">
<el-tab-pane label="规划条件函" name="planningConditionsLetter">
<el-upload class="upload-demo" drag action :http-request="uploadFile" multiple>
<el-upload
class="upload-demo"
drag
action
:http-request="uploadFile"
multiple
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处<em>点击上传</em>
@ -833,17 +843,31 @@
</el-upload></el-tab-pane
>
<el-tab-pane label="红线图" name="redLineMap">
<el-upload action list-type="picture-card" :http-request="uploadFile">
<el-upload
action
list-type="picture-card"
:http-request="uploadFile"
>
<i class="el-icon-plus"></i>
</el-upload>
</el-tab-pane>
<el-tab-pane label="控规图" name="controlChart">
<el-upload action list-type="picture-card" :http-request="uploadFile">
<el-upload
action
list-type="picture-card"
:http-request="uploadFile"
>
<i class="el-icon-plus"></i>
</el-upload>
</el-tab-pane>
<el-tab-pane label="竞买须知" name="biddingNotice">
<el-upload class="upload-demo" drag action :http-request="uploadFile" multiple>
<el-upload
class="upload-demo"
drag
action
:http-request="uploadFile"
multiple
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处<em>点击上传</em>
@ -854,7 +878,13 @@
</el-upload>
</el-tab-pane>
<el-tab-pane label="出让合同模板" name="transferContractTemplate">
<el-upload class="upload-demo" drag action :http-request="uploadFile" multiple>
<el-upload
class="upload-demo"
drag
action
:http-request="uploadFile"
multiple
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处<em>点击上传</em>
@ -862,9 +892,16 @@
<div class="el-upload__tip" slot="tip">
只支持上传docdocxpdfpptpptx文件且不超过10M
</div>
</el-upload></el-tab-pane>
</el-upload></el-tab-pane
>
<el-tab-pane label="建设方案" name="developmentScheme">
<el-upload class="upload-demo" drag action :http-request="uploadFile" multiple>
<el-upload
class="upload-demo"
drag
action
:http-request="uploadFile"
multiple
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处<em>点击上传</em>
@ -875,11 +912,21 @@
</el-upload>
</el-tab-pane>
<el-tab-pane label="航拍图片" name="aerialPhoto"
><el-upload action list-type="picture-card" :http-request="uploadFile">
><el-upload
action
list-type="picture-card"
:http-request="uploadFile"
>
<i class="el-icon-plus"></i> </el-upload
></el-tab-pane>
<el-tab-pane label="其他资料" name="otherInfo"
><el-upload class="upload-demo" drag action :http-request="uploadFile" multiple>
><el-upload
class="upload-demo"
drag
action
:http-request="uploadFile"
multiple
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处<em>点击上传</em>
@ -887,7 +934,8 @@
<div class="el-upload__tip" slot="tip">
只支持上传docdocxpdfpptpptx文件且不超过10M
</div>
</el-upload></el-tab-pane>
</el-upload></el-tab-pane
>
</el-tabs>
<el-table :data="uploadFiles" border style="width: 100%">
<el-table-column prop="fileName" label="文件名称" width="200">
@ -947,9 +995,11 @@ import {
queryFileList,
saveLandResFile,
delLandResFile,
updateLonLat,
} from "@/views/land/api/land";
import { uploadFile } from "@/views/api/api";
import { downUrlFile } from "@/util/file";
import fileDownload from "js-file-download";
export default {
name: "HandLand",
@ -1320,6 +1370,7 @@ export default {
{ required: true, message: "请输入地块位置", trigger: "blur" },
],
},
isLonLatEdit: false,
};
},
created() {},
@ -1422,9 +1473,8 @@ export default {
for (let item of this.selectedData) {
ids.push(item["landListedId"]);
}
console.debug(ids);
exportHandLandToListExcel(ids.toString()).then((res) => {
console.debug(res);
fileDownload(res.data, "kg.xlsx");
});
},
@ -1452,6 +1502,7 @@ export default {
//
delItem(row) {
let me = this;
let ids = [row.landListedId];
this.$confirm("确认删除?", "系统提示", {
confirmButtonText: "确定",
@ -1461,7 +1512,12 @@ export default {
})
.then(function () {
delHandLandObj(ids).then((res) => {
console.debug(res);
if (res.data.success) {
me.$message("删除成功");
me.onSubmit();
} else {
me.$message("删除失败");
}
});
})
.catch(function () {});
@ -1475,7 +1531,6 @@ export default {
newObj[col.prop] = "";
}
this.editForm = newObj;
console.debug(this.editForm);
this.readOnly = false;
this.dialogFormVisible = true;
},
@ -1507,7 +1562,13 @@ export default {
queryLonLatList(landListedId) {
queryLonLatList(landListedId).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 = [];
}
@ -1529,6 +1590,7 @@ export default {
//
addOneRowForLonLat() {
this.isLonLatEdit = false;
let index = 0;
this.landLonLat.forEach((item) => {
item.edit = false;
@ -1565,14 +1627,34 @@ export default {
//
handleLonLatOKClick(row) {
row.edit = false;
addLonLat(row).then((res) => {
if (res.data.success) {
this.$message("保存成功");
this.queryLonLatList(row.landListedId);
} else {
this.$message.error("保存失败");
}
});
if (this.isLonLatEdit) {
updateLonLat(row).then((res) => {
if (res.data.success) {
this.$message("保存成功");
this.queryLonLatList(row.landListedId);
} else {
this.$message.error("保存失败");
}
});
} else {
addLonLat(row).then((res) => {
if (res.data.success) {
this.$message("保存成功");
this.queryLonLatList(row.landListedId);
} else {
this.$message.error("保存失败");
}
});
}
},
//
handleLonLatEditClick(row) {
this.isLonLatEdit = true;
row.edit = true;
let bakObj = this.landLonLat.concat();
this.landLonLat = [];
this.landLonLat = bakObj;
},
//
@ -1586,6 +1668,9 @@ export default {
//
queryFileList() {
let landListedId = this.editForm.landListedId;
if (landListedId == undefined) {
return;
}
let param = {
landListedId: landListedId,
fileType: this.activeType,
@ -1683,10 +1768,10 @@ export default {
/deep/ .el-collapse-item__wrap {
border-top: 1px solid #e8eaec;
}
/deep/ .upload-demo{
/deep/ .upload-demo {
text-align: center;
}
/deep/ .el-upload__tip{
/deep/ .el-upload__tip {
text-align: right;
}
.ti-box {

53
src/views/land/noneHandLand/index.vue

@ -755,7 +755,7 @@
@click="handleLonLatOKClick(scope.row)"
>确定</el-button
>
<el-button type="text" size="small" v-show="!scope.row.edit"
<el-button type="text" size="small" v-show="!scope.row.edit" @click="handleLonLatEditClick(scope.row)"
>编辑</el-button
>
<el-button
@ -919,6 +919,7 @@ import {
queryFileList,
saveLandResFile,
delLandResFile,
updateLonLat
} from "@/views/land/api/noLand";
import { uploadFile } from "@/views/api/api";
import { downUrlFile } from "@/util/file";
@ -1297,6 +1298,7 @@ export default {
{ required: true, message: "请输入地块位置", trigger: "blur" },
],
},
isLonLatEdit: false,
};
},
created() {},
@ -1424,6 +1426,7 @@ export default {
//
delItem(row) {
let me = this;
let ids = [row.proposedseriaId];
this.$confirm("确认删除?", "系统提示", {
confirmButtonText: "确定",
@ -1433,7 +1436,13 @@ export default {
})
.then(function () {
delNoHandLandObj(ids).then((res) => {
console.debug(res);
if(res.data.success){
me.$message("删除成功");
me.onSubmit();
}
else{
me.$message("删除失败");
}
});
})
.catch(function () {});
@ -1500,6 +1509,7 @@ export default {
//
addOneRowForLonLat() {
this.isLonLatEdit = false;
let index = 0;
this.landLonLat.forEach((item) => {
item.edit = false;
@ -1536,14 +1546,34 @@ export default {
//
handleLonLatOKClick(row) {
row.edit = false;
addLonLat(row).then((res) => {
if (res.data.success) {
this.$message("保存成功");
this.queryLonLatList(row.proposedseriaId);
} else {
this.$message.error("保存失败");
}
});
if (this.isLonLatEdit) {
updateLonLat(row).then((res) => {
if (res.data.success) {
this.$message("保存成功");
this.queryLonLatList(row.proposedseriaId);
} else {
this.$message.error("保存失败");
}
});
} else {
addLonLat(row).then((res) => {
if (res.data.success) {
this.$message("保存成功");
this.queryLonLatList(row.proposedseriaId);
} else {
this.$message.error("保存失败");
}
});
}
},
//
handleLonLatEditClick(row) {
this.isLonLatEdit = true;
row.edit = true;
let bakObj = this.landLonLat.concat();
this.landLonLat = [];
this.landLonLat = bakObj;
},
//
@ -1569,6 +1599,9 @@ export default {
//
queryFileList() {
let proposedseriaId = this.editForm.proposedseriaId;
if(proposedseriaId == undefined){
return;
}
let param = {
proposedseriaId: proposedseriaId,
fileType: this.activeType,

Loading…
Cancel
Save