From 120d0238d72741de4feec283b7c67c99dcd436d6 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期五, 17 一月 2025 13:26:56 +0800 Subject: [PATCH] 日志页面按钮权限修改及布局调整 --- src/views/data/channel/kio/tag/TagForm.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/data/channel/kio/tag/TagForm.vue b/src/views/data/channel/kio/tag/TagForm.vue index ff2fc72..ad6da51 100644 --- a/src/views/data/channel/kio/tag/TagForm.vue +++ b/src/views/data/channel/kio/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" @@ -61,9 +61,9 @@ </template> <script lang="ts" setup> import * as KioTagApi from '@/api/data/channel/kio/tag' - import { CommonEnabledBool } from '@/utils/constants' + import {CommonEnabled} from '@/utils/constants' import {isPositiveInteger} from '@/utils/validate' - import { DICT_TYPE, getStrDictOptions, getBoolDictOptions } from '@/utils/dict' + import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict' defineOptions({name: 'KioTagForm'}) @@ -79,7 +79,7 @@ dataType: undefined, tagId: undefined, tagDesc: '', - enabled: CommonEnabledBool.ENABLE, + enabled: CommonEnabled.ENABLE, device: undefined, samplingRate: undefined @@ -152,7 +152,7 @@ dataType: undefined, tagId: undefined, tagDesc: '', - enabled: CommonEnabledBool.ENABLE, + enabled: CommonEnabled.ENABLE, device: undefined, samplingRate: undefined } -- Gitblit v1.9.3