From 1e18f0bcee0358e13c0e2cb750d17cd7ef5bf4d6 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期一, 07 八月 2023 17:55:21 +0800 Subject: [PATCH] 油烟检测系统 --- src/sfc/ExceptionType.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/sfc/ExceptionType.vue b/src/sfc/ExceptionType.vue index d89eea5..20d4b84 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 }); @@ -38,6 +38,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 +49,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