From 291bf570b2106cb99b0e689af7d6ccaacc9e5c1c Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期三, 25 十二月 2024 18:10:42 +0800 Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat-ui-vue3 --- src/views/data/channel/opcda/tag/TagForm.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/data/channel/opcda/tag/TagForm.vue b/src/views/data/channel/opcda/tag/TagForm.vue index 9f4b6ab..813b9ca 100644 --- a/src/views/data/channel/opcda/tag/TagForm.vue +++ b/src/views/data/channel/opcda/tag/TagForm.vue @@ -36,7 +36,7 @@ <el-form-item label="是否启用" prop="enabled"> <el-select v-model="formData.enabled" placeholder="请选择"> <el-option - v-for="dict in getBoolDictOptions(DICT_TYPE.IS_ENABLED)" + v-for="dict in getIntDictOptions(DICT_TYPE.COM_IS_INT)" :key="dict.value" :label="dict.label" :value="dict.value" @@ -54,8 +54,8 @@ </template> <script lang="ts" setup> import * as OpcdaTagApi from '@/api/data/channel/opcda/tag' - import { CommonEnabledBool } from '@/utils/constants' - import { DICT_TYPE, getStrDictOptions, getBoolDictOptions } from '@/utils/dict' + import {CommonEnabled} from '@/utils/constants' + import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict' defineOptions({name: 'OpcdaTagForm'}) @@ -70,7 +70,7 @@ serverId: undefined, tagName: undefined, dataType: undefined, - enabled: CommonEnabledBool.ENABLE, + enabled: CommonEnabled.ENABLE, itemId: undefined }) const formRules = reactive({ @@ -133,7 +133,7 @@ serverId: undefined, tagName: undefined, dataType: undefined, - enabled: CommonEnabledBool.ENABLE, + enabled: CommonEnabled.ENABLE, itemId: undefined } formRef.value?.resetFields() -- Gitblit v1.9.3