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 @@