|
@@ -0,0 +1,52 @@
|
|
|
+/*
|
|
|
+ 地址列表
|
|
|
+ author: zsy
|
|
|
+ date: 2023-2-14
|
|
|
+ */
|
|
|
+<template>
|
|
|
+ <div class="location-list">
|
|
|
+ <el-table :data="tableData" style="width: 100%">
|
|
|
+ <el-table-column type="index" width="50"> </el-table-column>
|
|
|
+ <el-table-column prop="addressid" label="银行id" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="addressname" label="银行地址名称" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="addressname" label="银行地址名称" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="longitude" label="经度" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="latitude" label="纬度" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import {getLocation} from '@/api/location'
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ tableData: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ //获取地址列表
|
|
|
+ getLocationList(){
|
|
|
+ getLocation().then((res)=>{
|
|
|
+ console.log(res.data)
|
|
|
+ this.tableData = res.data
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created(){
|
|
|
+ this.getLocationList()
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+.location-list{
|
|
|
+ width: 1000px;
|
|
|
+ margin: 100px auto 0;
|
|
|
+}
|
|
|
+</style>
|