guanqb
2024-01-24 51d0d793101eceb55a7129ee092cbe2ee7d57391
接口对接
2 files modified
1 files added
35 ■■■■■ changed files
src/api/scanOrCode/index.js 27 ●●●●● patch | view | raw | blame | history
src/views/scanOrCode/index.vue 4 ●●●● patch | view | raw | blame | history
vue.config.js 4 ●●●● patch | view | raw | blame | history
src/api/scanOrCode/index.js
New file
@@ -0,0 +1,27 @@
import request from "@/router/axios.js"
/**
 * 获得门牌维护管理列表
 * @param {*} params
 * @returns
 */
export const getAddressManageList = (params) => {
    return request({
        url: '/api/blade-addressManage/addressManage/page',
        method: 'get',
        // params: params
    })
}
/**
 * 获得门牌维护管理详情
 * @param {*}
 * @returns
 */
export const getAddressManageDetail = (params) => {
    return request({
        url: '/api/blade-addressManage/addressManage/detail',
        method: 'get',
        params: params
    })
}
src/views/scanOrCode/index.vue
@@ -104,6 +104,7 @@
<script>
import { initMapPosition } from '@/utils/mapPositionInit'
import { getAddressManageList } from "@/api/scanOrCode/index.js"
let loading = null
@@ -587,6 +588,9 @@
        // 获取列表
        getList () {
            getAddressManageList({ current: 1, size: 10 }).then(res => {
                console.log('getAddressManageList', res)
            })
            let params = {
                searchText: this.searchText,
                type: this.typeValue,
vue.config.js
@@ -169,8 +169,8 @@
        proxy: {
            "/api": {
                // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址
                target: "http://localhost:82",
                // target: "http://z4042833u6.wicp.vip",
                // target: "http://localhost:82",
                target: "http://z4042833u6.wicp.vip",
                // target: "http://192.168.1.177:82",
                // target: "http://106.225.193.35:82",
                // target: "http://192.168.1.170:82",