Resolved merge conflicts with origin/master

master
WeiRan 2024-10-09 14:03:57 +08:00
commit a7bc7944d3
3 changed files with 19 additions and 3 deletions

View File

@ -99,3 +99,11 @@ export function carDel(data) {
}) })
} }
// 解绑车辆
export function carButton() {
return request({
url: '/electronic/carFence/aaa',
method: 'post',
})
}

View File

@ -90,6 +90,7 @@ export const constantRoutes = [
}, },
] ]
// 动态路由,基于用户权限动态去加载 // 动态路由,基于用户权限动态去加载

View File

@ -2,6 +2,7 @@
<div class="app-container home"> <div class="app-container home">
<h1 style="text-align: center ;color: #0072c6 ; font-size: 50px;font-weight: bold"> 智汇车联 </h1> <h1 style="text-align: center ;color: #0072c6 ; font-size: 50px;font-weight: bold"> 智汇车联 </h1>
<h2 style="text-align: right ;color: #1f2d3d; font-size: 20px">开发小组:八组</h2> <h2 style="text-align: right ;color: #1f2d3d; font-size: 20px">开发小组:八组</h2>
<button @click="carButton">111</button>
<div> <div>
<el-chart :options="chartOptions"></el-chart> <el-chart :options="chartOptions"></el-chart>
@ -26,6 +27,7 @@ import 'echarts-gl';
import { ElChart } from 'element-ui'; import { ElChart } from 'element-ui';
// echarts // echarts
import echarts from 'echarts' import echarts from 'echarts'
import { carButton } from '@/api/electronic'
export default { export default {
components: { components: {
@ -35,9 +37,9 @@ export default {
return { return {
modules: [ modules: [
{ id: 1, content: '车辆系统管理', pageUrl: '/car/information' }, { id: 1, content: '车辆系统管理', pageUrl: '/car/information' },
{ id: 2, content: '车辆故障管理', pageUrl: '/page2-url' }, { id: 2, content: '车辆故障管理', pageUrl: '/fault/faultrule' },
{ id: 3, content: '电子围栏管理', pageUrl: '/page3-url' }, { id: 3, content: '电子围栏管理', pageUrl: '/carFence/fence' },
{ id: 4, content: '车辆预警管理', pageUrl: '/page4-url' } { id: 4, content: '车辆预警管理', pageUrl: '/platform/strategy' }
], ],
myChart: '', myChart: '',
chartOptions(){ chartOptions(){
@ -56,6 +58,11 @@ export default {
this.drawLine(); this.drawLine();
}, },
methods: { methods: {
carButton(){
carButton(res=>{
alert(res)
})
},
navigateToPage(url) { navigateToPage(url) {
this.$router.push(url); this.$router.push(url);
}, },