This commit is contained in:
2025-09-16 11:29:06 +08:00
parent aceb3a3301
commit 6a4e67c027
5 changed files with 78 additions and 25 deletions

View File

@@ -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 {