From 8ac555cff89b54bbba3ebd9b4e0e59adf2c9e054 Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Tue, 22 Oct 2024 21:49:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/model.js | 8 ++++++ src/views/index.vue | 6 ++-- src/views/system/flow/index.vue | 8 +++--- src/views/system/map/index.vue | 22 +++++++++------ src/views/system/order/index.vue | 4 ++- src/views/system/user/index.vue | 48 +++++++++++++++++++++++--------- 6 files changed, 68 insertions(+), 28 deletions(-) diff --git a/src/api/system/model.js b/src/api/system/model.js index acae5fa..8575565 100644 --- a/src/api/system/model.js +++ b/src/api/system/model.js @@ -9,6 +9,14 @@ export function listModel(query) { }) } +// 查询所有车辆型号列表 +export function listAllModel() { + return request({ + url: '/system/model/allList', + method: 'get' + }) +} + // 查询车辆型号详细 export function getModel(modelId) { return request({ diff --git a/src/views/index.vue b/src/views/index.vue index 278dc27..ba69d87 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -431,9 +431,11 @@ export default { created() {}, mounted() { this.userName = this.$store.state.user.name; - this.AdminStatistics(); + if(this.userName === 'admin'){ + this.AdminStatistics(); + this.getlibord(); + } window.addEventListener("resize", this.handleResize); - this.getlibord(); }, beforeDestroy() { window.removeEventListener("resize", this.handleResize); diff --git a/src/views/system/flow/index.vue b/src/views/system/flow/index.vue index 66092bc..ef7900f 100644 --- a/src/views/system/flow/index.vue +++ b/src/views/system/flow/index.vue @@ -231,7 +231,7 @@