|
@@ -12,6 +12,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ var that= this
|
|
|
import {
|
|
|
address
|
|
|
} from '@/components/data/data.js'
|
|
@@ -43,17 +44,34 @@
|
|
|
disabled: {
|
|
|
value: Boolean,
|
|
|
default: false
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
-
|
|
|
- // searchPlace(oldValue, newValue) {
|
|
|
- // console.log(123)
|
|
|
- // console.log(oldValue, newValue)
|
|
|
- // // if (val != '') {
|
|
|
- // // this.place = val
|
|
|
- // // }
|
|
|
- // }
|
|
|
+
|
|
|
+ text:{
|
|
|
+ handler(oldValue, newValue) {
|
|
|
+ console.log(11111111)
|
|
|
+ console.log(oldValue, newValue)
|
|
|
+ // if (val != '') {
|
|
|
+ this.place = oldValue
|
|
|
+ // }
|
|
|
+ console.log(this.place,this.text,this.edit)
|
|
|
+ },
|
|
|
+ deep:true,
|
|
|
+ immediate:true,
|
|
|
+ },
|
|
|
+ place:{
|
|
|
+ handler(oldValue, newValue) {
|
|
|
+ // console.log(11111111)
|
|
|
+ // console.log(oldValue, newValue)
|
|
|
+ // // if (val != '') {
|
|
|
+ // this.place = oldValue
|
|
|
+ // // }
|
|
|
+ // console.log(this.place,this.text,this.edit)
|
|
|
+ },
|
|
|
+ deep:true,
|
|
|
+ immediate:true,
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -73,8 +91,9 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log(this.disabled)
|
|
|
- this.place = this.searchPlace
|
|
|
+ if(!this.edit&&!this.text){
|
|
|
+ this.place = this.searchPlace
|
|
|
+ }
|
|
|
console.log("this.series", this.series)
|
|
|
if (this.series == 3) {
|
|
|
this.addressCopy = JSON.parse(JSON.stringify(address1))
|
|
@@ -132,8 +151,13 @@
|
|
|
.label
|
|
|
this.place = this.multiArray[1][e.detail.value[1]].label
|
|
|
} else {
|
|
|
- _address = this.multiArray[0][e.detail.value[0]].label + this.multiArray[1][e.detail.value[1]]
|
|
|
+ if(this.multiArray[0][e.detail.value[0]].label=='北京'||this.multiArray[0][e.detail.value[0]].label=='天津'||this.multiArray[0][e.detail.value[0]].label=='上海'||this.multiArray[0][e.detail.value[0]].label=='重庆'){
|
|
|
+ _address = this.multiArray[1][e.detail.value[1]]
|
|
|
.label + this.multiArray[2][e.detail.value[2]].label
|
|
|
+ }else{
|
|
|
+ _address = this.multiArray[0][e.detail.value[0]].label + this.multiArray[1][e.detail.value[1]]
|
|
|
+ .label + this.multiArray[2][e.detail.value[2]].label
|
|
|
+ }
|
|
|
this.place = this.multiArray[2][e.detail.value[2]].label
|
|
|
this.check = true
|
|
|
}
|