统一
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {getRegions, getPointnByRegion, sendPointTask} from '@/utils/getData4.js'
|
||||
import {getStartRegions, getEndRegions, getPointnByRegion, sendPointTask} from '@/utils/getData4.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -72,13 +72,13 @@
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._getRegions1()
|
||||
this._getRegions2()
|
||||
this._getStartRegions()
|
||||
this._getEndRegions()
|
||||
},
|
||||
methods: {
|
||||
async _getRegions1 () {
|
||||
async _getStartRegions () {
|
||||
try {
|
||||
let res = await getRegions()
|
||||
let res = await getStartRegions()
|
||||
if (res) {
|
||||
this.options = res.data
|
||||
} else {
|
||||
@@ -92,9 +92,9 @@
|
||||
this.index = e
|
||||
this._getPointnByRegion1()
|
||||
},
|
||||
async _getRegions2 () {
|
||||
async _getEndRegions () {
|
||||
try {
|
||||
let res = await getRegions()
|
||||
let res = await getEndRegions()
|
||||
if (res) {
|
||||
this.options2 = res.data
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user