下拉框
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {regionList, vehicleInConfirm} from '@/utils/getData4.js'
|
import {getSect, vehicleInConfirm} from '@/utils/getData4.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -53,12 +53,12 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this._regionList()
|
this._getSect()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async _regionList () {
|
async _getSect () {
|
||||||
try {
|
try {
|
||||||
let res = await regionList()
|
let res = await getSect()
|
||||||
if (res) {
|
if (res) {
|
||||||
this.options = res.data
|
this.options = res.data
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {regionList, iosOutvehicleOutConfirm} from '@/utils/getData4.js'
|
import {getSect, iosOutvehicleOutConfirm} from '@/utils/getData4.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -53,12 +53,12 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this._regionList()
|
this._getSect()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async _regionList () {
|
async _getSect () {
|
||||||
try {
|
try {
|
||||||
let res = await regionList()
|
let res = await getSect()
|
||||||
if (res) {
|
if (res) {
|
||||||
this.options = res.data
|
this.options = res.data
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user