Browse Source

修改详情编辑没有反应

develop
caoyizhong 3 years ago
parent
commit
3c576fe131
  1. 10
      src/views/city/cityCoordinate/index.vue
  2. 2
      src/views/land/api/land.js
  3. 8
      src/views/land/handLand/index.vue
  4. 71
      src/views/land/handLand/newLand.vue

10
src/views/city/cityCoordinate/index.vue

@ -125,6 +125,7 @@
</div>
</div>
</div>
<!-- 编辑弹框-->
<el-dialog :title="title" width="60%" :visible.sync="dialogVisible">
<el-form :model="editForm" :disabled="dialogReadOnly">
<el-row>
@ -181,7 +182,7 @@
<el-select v-model="editForm.lineColor">
<el-option
v-for="item in colorList"
:key="item.value"
:key="item.id"
:label="item.label"
:value="item.value"
>
@ -206,7 +207,7 @@
<el-select v-model="editForm.fillColor">
<el-option
v-for="item in colorList"
:key="item.value"
:key="item.id"
:label="item.label"
:value="item.value"
>
@ -307,9 +308,9 @@ export default {
};
},
mounted() {
this.onSubmit();
getDict("color").then((res) => {
this.colorList = res.data.data;
console.log(this.colorList)
});
getDict("city_area_type").then((res) => {
this.areaType = res.data.data;
@ -317,6 +318,7 @@ export default {
getCityList().then((res) => {
this.cityList = res.data.data;
});
this.onSubmit();
},
watch: {
selectedData: {
@ -502,4 +504,4 @@ export default {
/deep/ .el-form-item__label {
width: 100px;
}
</style>
</style>

2
src/views/land/api/land.js

@ -334,4 +334,4 @@ export function allFileUpload(data) {
method: 'post',
data: data
})
}
}

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

@ -189,7 +189,7 @@
<el-button type="text" @click="clearSelection">清空</el-button>
</div>
</div>
<div class="page_content_head_right">
<div>
<el-button @click="exportAllData"
@ -1010,9 +1010,9 @@ export default {
aLink.click();
});
},
//
//
exportAllData() {
exportAllHandLandListExcel().then((res) => {
// fileDownload(res.data, "kg.xlsx");
const aLink = document.createElement("a");
@ -1520,7 +1520,7 @@ export default {
<style lang="scss" scoped>
//
//@import "@/styles/public.scss";
@import "src/styles/public";
@import "@/styles/public.scss";
/deep/ .el-dialog {
margin-top: 9vh !important;

71
src/views/land/handLand/newLand.vue

@ -250,12 +250,12 @@
</template>
<el-table :data="constructionPlanList" style="width: 100%">
<el-table-column label="序号" width="120">
<template scope="scope">
<template slot-scope="scope">
<span>{{ scope.row.index + 1 }}</span>
</template>
</el-table-column>
<el-table-column label="规划类型">
<template scope="scope">
<template slot-scope="scope">
<el-select
v-if="scope.row.edit"
v-model="scope.row.planType"
@ -277,7 +277,7 @@
</template>
</el-table-column>
<el-table-column label="配件类型">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.constructionType"
v-if="scope.row.edit"
@ -287,7 +287,7 @@
</template>
</el-table-column>
<el-table-column label="配件面积">
<template scope="scope">
<template slot-scope="scope">
<el-input
oninput="value=value.replace(/[^\d^\.]+/g, '').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')"
v-model="scope.row.constructionArea"
@ -869,12 +869,12 @@
</template>
<el-table :data="companyList" style="width: 100%">
<el-table-column label="序号" width="120">
<template scope="scope">
<template slot-scope="scope">
<span>{{ scope.row.index + 1 }}</span>
</template>
</el-table-column>
<el-table-column label="企业">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.enterpriseName"
v-if="scope.row.edit"
@ -884,7 +884,7 @@
</template>
</el-table-column>
<el-table-column label="股比">
<template scope="scope">
<template slot-scope="scope">
<el-input
oninput="value=value.replace(/[^\d^\.]+/g, '').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')"
v-model="scope.row.shareRatio"
@ -895,7 +895,7 @@
</template>
</el-table-column>
<el-table-column label="是否操盘" width="200">
<template scope="scope">
<template slot-scope="scope">
<el-select
v-if="scope.row.edit"
v-model="scope.row.operation"
@ -969,12 +969,12 @@
</template>
<el-table :data="landLonLat" style="width: 100%">
<el-table-column label="序号" width="120">
<template scope="scope">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.index }}</span>
</template>
</el-table-column>
<el-table-column label="经纬度">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.landLonLat"
v-if="scope.row.edit"
@ -986,7 +986,7 @@
</template>
</el-table-column>
<el-table-column label="地块类型" width="150">
<template scope="scope">
<template slot-scope="scope">
<el-select
v-model="scope.row.landColorType"
placeholder="请选择"
@ -996,7 +996,7 @@
>
<el-option
v-for="item in landColorTypeList"
:key="item.value"
:key="item.id"
:label="item.label"
:value="item.value"
>
@ -1005,7 +1005,7 @@
</template>
</el-table-column>
<el-table-column label="线条宽度" width="80">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.lineWidth"
v-if="scope.row.edit"
@ -1017,7 +1017,7 @@
</template>
</el-table-column>
<el-table-column label="线条颜色" width="110">
<template scope="scope">
<template slot-scope="scope">
<el-select
v-model="scope.row.lineColor"
placeholder="请选择"
@ -1026,7 +1026,7 @@
>
<el-option
v-for="item in colorList"
:key="item.value"
:key="item.id"
:label="item.label"
:value="item.value"
>
@ -1035,7 +1035,7 @@
</template>
</el-table-column>
<el-table-column label="线条不透明度" width="110">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.lineOpaqueness"
v-if="scope.row.edit"
@ -1047,7 +1047,7 @@
</template>
</el-table-column>
<el-table-column label="填充颜色" width="110">
<template scope="scope">
<template slot-scope="scope">
<el-select
v-model="scope.row.fillColor"
placeholder="请选择"
@ -1056,7 +1056,7 @@
>
<el-option
v-for="item in colorList"
:key="item.value"
:key="item.id"
:label="item.label"
:value="item.value"
>
@ -1069,7 +1069,7 @@
label="填充不透明度"
width="110"
>
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.fillOpaqueness"
v-if="scope.row.edit"
@ -1093,7 +1093,7 @@
type="text"
size="small"
v-show="!scope.row.edit"
@click="handleLonLatEditClick(scope.row)"
@click="handleLonLatEditClick(scope.row,'lala')"
>编辑
</el-button>
<el-button
@ -1146,7 +1146,7 @@
</template>
<el-table :data="landRecord" style="width: 100%">
<el-table-column label="排名" width="180">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.ranking"
v-if="scope.row.edit"
@ -1158,7 +1158,7 @@
</template>
</el-table-column>
<el-table-column label="举牌企业" width="180">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.raiseEnterprise"
v-if="scope.row.edit"
@ -1170,7 +1170,7 @@
</template>
</el-table-column>
<el-table-column label="举牌价(万元)" width="180">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.raisePrice"
v-if="scope.row.edit"
@ -1182,7 +1182,7 @@
</template>
</el-table-column>
<el-table-column label="名义楼面价(元/㎡)" width="180">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.nominalFloorPrice"
v-if="scope.row.edit"
@ -1194,7 +1194,7 @@
</template>
</el-table-column>
<el-table-column label="无偿移交比例(%)" width="180">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.percentUnpaidTransfers"
v-if="scope.row.edit"
@ -1206,7 +1206,7 @@
</template>
</el-table-column>
<el-table-column label="实际楼面价(元/㎡)" width="180">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.actualFloorPrice"
v-if="scope.row.edit"
@ -1218,7 +1218,7 @@
</template>
</el-table-column>
<el-table-column label="溢价率(%)" width="180">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.premiumRate"
v-if="scope.row.edit"
@ -1230,7 +1230,7 @@
</template>
</el-table-column>
<el-table-column label="最后轮次" width="180">
<template scope="scope">
<template slot-scope="scope">
<el-input
v-model="scope.row.finalRound"
v-if="scope.row.edit"
@ -1444,7 +1444,7 @@
<el-table-column prop="fileName" label="文件名称" width="200">
</el-table-column>
<el-table-column prop="uploadProcess" label="上传进度">
<template scope="scope">
<template slot-scope="scope">
<el-progress
:text-inside="true"
:stroke-width="13"
@ -1978,7 +1978,7 @@ export default {
let index = 0;
this.landLonLat = response.data.data;
this.landLonLat.forEach((item) => {
item.edit = false;
this.$set(item, "edit", false);
item.index = index;
index++;
});
@ -1986,6 +1986,7 @@ export default {
this.landLonLat = [];
}
});
},
conductenterList(landListedId) {
let data = {
@ -2039,7 +2040,8 @@ export default {
let index = 0;
this.landRecord = response.data.data.records;
this.landRecord.forEach((item) => {
item.edit = false;
// item.edit = false;
this.$set(item, "edit", false);
item.index = index;
index++;
});
@ -2201,7 +2203,7 @@ export default {
},
landColorTypeChange(row, index) {
let landColorType = JSON.parse(row.landColorType);
console.log(landColorType);
// console.log(landColorType);
row.fillColor = landColorType.fillColor;
row.fillOpaqueness = landColorType.fillOpaqueness;
row.lineColor = landColorType.lineColor;
@ -2345,6 +2347,7 @@ export default {
//
handleLonLatEditClick(row, type) {
//console.log(row);
this.$nextTick(() => {
row.edit = true;
});
@ -2358,6 +2361,8 @@ export default {
this.landLonLat = [];
this.landLonLat = bakObj;
}
// console.log(row);
//this.$forceUpdate();
},
editRecord(row) {
this.isLonLatEdit = true;
@ -2637,4 +2642,4 @@ export default {
/deep/ .el-form-item__label {
width: 180px;
}
</style>
</style>

Loading…
Cancel
Save