05 2024 档案
摘要://vue3之请求方式get,post案例 //get请求==api下的js文件设置请求路径 export function listCar(query) { return request({ url: '/mqtts/weizi/listlocation', method: 'get', para
阅读全文
摘要:== Vue页面文件== //vue文件引入组件 import { onMounted, reactive, ref,watch } from "vue"; import celiangjuli from "@/components/Map/celiangjuli.vue"; //使用组件 key:
阅读全文
摘要://将json转成数组 const positions = JSON.parse(JSON.stringify(positionsPo.value)); positions.forEach(position => { const marker = new AMap.Marker({position,
阅读全文
摘要://向vue页面传值 //步骤1: // 现在js文件中规定调用的后台接口查询车辆状态详细 export function listCar(query) { return request({ url: '/mqtts/start/liststat', method: 'get', params: q
阅读全文
摘要:// 申明一个前端的变量 let showguiji = ref([]); //应用 <el-button class="dropbtnMean" :icon="ArrowLeft" @click="map">地图模式</el-button> <el-button class="dropbtnMea
阅读全文
摘要:// vue页面的操作 // vue页面中引入组件;组件放入components文件夹中 import pension from "@/components/CarWenShidu/echart.vue"; import pensionshidu from "@/components/CarWenS
阅读全文