Browse Source

修改事件监听逻辑

develop
王健 4 years ago
parent
commit
4a1bebf59d
  1. 25
      src/views/land/handLand/newLand.vue
  2. 36
      src/views/land/noneHandLand/newLand.vue

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

@ -1739,18 +1739,24 @@ export default {
editForm: {
handler(newValue, oldValue) {
if (this.editForm.city && this.editForm.city != '') {
getAreaList(this.editForm.city).then(res => {
this.regionList = res.data.data
})
if (this.editForm.canton && this.editForm.canton != '') {
getBigGroupList(this.editForm.city, this.editForm.canton).then(res => {
this.bigGroupList = res.data.data
if (newValue.city !== oldValue.city) {
getAreaList(this.editForm.city).then(res => {
this.regionList = res.data.data
})
if (this.editForm.bigGroup && this.editForm.bigGroup != '') {
getSmallGroupList(this.editForm.city, this.editForm.canton, this.editForm.bigGroup).then(res => {
this.smallGroupList = res.data.data
}
if (this.editForm.canton && this.editForm.canton != '') {
if (newValue.canton !== oldValue.canton) {
getBigGroupList(this.editForm.city, this.editForm.canton).then(res => {
this.bigGroupList = res.data.data
})
}
if (this.editForm.bigGroup && this.editForm.bigGroup != '') {
if (newValue.bigGroup !== oldValue.bigGroup) {
getSmallGroupList(this.editForm.city, this.editForm.canton, this.editForm.bigGroup).then(res => {
this.smallGroupList = res.data.data
})
}
}
}
}
if (
@ -1786,6 +1792,7 @@ export default {
if (this.editForm.transferPrice && this.editForm.transferPrice != 0) {
this.editForm.premiumRate = ((this.editForm.dealPrice - this.editForm.transferPrice) / this.editForm.transferPrice).toFixed(2)
}
},
deep: true,
},

36
src/views/land/noneHandLand/newLand.vue

@ -1246,18 +1246,24 @@ export default {
editForm: {
handler(newValue, oldValue) {
if (this.editForm.city && this.editForm.city != '') {
getAreaList(this.editForm.city).then(res => {
this.regionList = res.data.data
})
if (this.editForm.canton && this.editForm.canton != '') {
getBigGroupList(this.editForm.city, this.editForm.canton).then(res => {
this.bigGroupList = res.data.data
if (newValue.city !== oldValue.city) {
getAreaList(this.editForm.city).then(res => {
this.regionList = res.data.data
})
if (this.editForm.bigGroup && this.editForm.bigGroup != '') {
getSmallGroupList(this.editForm.city, this.editForm.canton, this.editForm.bigGroup).then(res => {
this.smallGroupList = res.data.data
}
if (this.editForm.canton && this.editForm.canton != '') {
if (newValue.canton !== oldValue.canton) {
getBigGroupList(this.editForm.city, this.editForm.canton).then(res => {
this.bigGroupList = res.data.data
})
}
if (this.editForm.bigGroup && this.editForm.bigGroup != '') {
if (newValue.bigGroup !== oldValue.bigGroup) {
getSmallGroupList(this.editForm.city, this.editForm.canton, this.editForm.bigGroup).then(res => {
this.smallGroupList = res.data.data
})
}
}
}
}
if (
@ -1268,7 +1274,7 @@ export default {
this.editForm.landTransferMu = (
(this.editForm.landTransferSquare / 2000) *
3
).toFixed(2);
).toFixed(0);
//
this.editForm.plotRatio = (
this.editForm.totalConsArea / this.editForm.landTransferSquare
@ -1276,7 +1282,7 @@ export default {
}
if (this.editForm.totalConsArea && this.editForm.totalConsArea != 0) {
//(%)
//(%)
this.editForm.bizCommerceRate = (
((this.editForm.bizSpace + this.editForm.commerceSpace) /
this.editForm.totalConsArea) *
@ -1286,8 +1292,14 @@ export default {
this.editForm.startingFloorPrice = (
(this.editForm.transferPrice * 10000) /
this.editForm.totalConsArea
).toFixed(2);
).toFixed(0);
//(/)
this.editForm.dealFloorPrice = (this.editForm.dealPrice * 10000 / this.editForm.totalConsArea).toFixed(0)
}
if (this.editForm.transferPrice && this.editForm.transferPrice != 0) {
this.editForm.premiumRate = ((this.editForm.dealPrice - this.editForm.transferPrice) / this.editForm.transferPrice).toFixed(2)
}
},
deep: true,
},

Loading…
Cancel
Save