From f3acb8ce787f3df0eda633031473be4e6a9ff448 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期四, 12 十月 2023 16:56:28 +0800 Subject: [PATCH] 油烟 更新了实时监控页面 --- src/sfc/ExceptionType.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/sfc/ExceptionType.vue b/src/sfc/ExceptionType.vue index d89eea5..c4956ca 100644 --- a/src/sfc/ExceptionType.vue +++ b/src/sfc/ExceptionType.vue @@ -3,8 +3,8 @@ 灏嗛�変腑鐨勫涓紓甯镐互鏁扮粍褰㈠紡杩斿洖缁欑埗缁勪欢 --> <script> -// import axios from 'axios'; -import axiosInstance from '../utils/request.js' +// import axiosInstance from 'axiosInstance'; +import axiosInstanceInstance from '../utils/request.js' export default { emits:['submitExceptionType'], data() { @@ -18,7 +18,7 @@ methods: { //鑾峰彇涓嶅悓鐨勫紓甯哥被鍨� getShopName() { - axiosInstance.get('/fume/exceptiontype').then(result => { + axiosInstanceInstance.get('/fume/exceptiontype').then(result => { this.exceptionType = result.data.data }); @@ -27,9 +27,6 @@ }, mounted(){ this.getShopName() - setTimeout(() => { - console.log(this.exceptionType); - }, 1000); } }; </script> @@ -38,6 +35,7 @@ <div class="container"> <span class="text">寮傚父绫诲瀷锛�</span> + <div class="exception-type"> <el-checkbox-group v-model="checkedList" :change="$emit('submitExceptionType',checkedList)"> <el-checkbox :label="item.exceptionType" v-for="(item,index) in exceptionType" :key="index"> <template #default> @@ -48,17 +46,23 @@ </el-checkbox> </el-checkbox-group> </div> +</div> </template> <style scoped> /* 涓嶈兘瀵� */ .container { display: flex; - flex-wrap: wrap; + /* flex-wrap: wrap; */ } .text { margin-top: 5px; margin-right: 10px; + margin-left: 20px; font-weight: bolder; + white-space: nowrap; +} +.exception-type { + white-space: nowrap; } </style> -- Gitblit v1.9.3