点位
This commit is contained in:
@@ -107,7 +107,7 @@ export default {
|
|||||||
async _queryPoint () {
|
async _queryPoint () {
|
||||||
let res = await pointQueryPoint()
|
let res = await pointQueryPoint()
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.option1 = [...res.result]
|
this.option1 = [...res.result.regionja]
|
||||||
this.option1.map(el => {
|
this.option1.map(el => {
|
||||||
this.$set(el, 'value', el.region_code)
|
this.$set(el, 'value', el.region_code)
|
||||||
this.$set(el, 'label', el.region_name)
|
this.$set(el, 'label', el.region_name)
|
||||||
@@ -126,6 +126,7 @@ export default {
|
|||||||
dropdownMenu1 (i) {
|
dropdownMenu1 (i) {
|
||||||
this.active1 = i + ''
|
this.active1 = i + ''
|
||||||
this.open1 = false
|
this.open1 = false
|
||||||
|
this.active2 = ''
|
||||||
this.option1.map(el => {
|
this.option1.map(el => {
|
||||||
if (el.region_code === this.option1[this.active1].value) {
|
if (el.region_code === this.option1[this.active1].value) {
|
||||||
this.option2 = el.pointArr
|
this.option2 = el.pointArr
|
||||||
|
|||||||
Reference in New Issue
Block a user