From 02349238af964e19a46da93e20466a48d755a453 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 02 九月 2024 17:38:04 +0800 Subject: [PATCH] 正在实现设备管理模块 --- src/components/search/OptionType.vue | 23 ++++++----------------- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/components/search/OptionType.vue b/src/components/search/OptionType.vue index 5b9334f..644898d 100644 --- a/src/components/search/OptionType.vue +++ b/src/components/search/OptionType.vue @@ -1,8 +1,8 @@ <template> - <el-form-item label="绫诲瀷"> + <el-form-item v-show="isShow" label="绫诲瀷"> <el-select :model-value="modelValue" - @change="handleChange" + @update:model-value="handleChange" placeholder="绫诲瀷" size="small" class="w-80" @@ -18,6 +18,7 @@ </template> <script> +import { typeList } from '@/constant/device-type'; export default { props: { modelValue: String @@ -25,24 +26,13 @@ emits: ['update:modelValue'], data() { return { - typeList: [ - { - label: '杞﹁浇', - value: '0a' - }, - { - label: '鏃犱汉鏈�', - value: '0b' - }, - { - label: '鏃犱汉鑸�', - value: '0c' - } - ] + typeList: typeList(), + isShow: import.meta.env.VITE_DATA_MODE != 'jingan' }; }, methods: { handleChange(value) { + // todo 鏍规嵁璁惧绫诲瀷鍒囨崲鍦板浘杞藉叿鐨勫浘鏍囥�� this.$emit('update:modelValue', value); } }, @@ -51,4 +41,3 @@ } }; </script> -<style scoped></style> -- Gitblit v1.9.3