mirror of
https://gitee.com/dromara/go-view.git
synced 2025-06-30 08:39:15 +08:00
35 lines
1.0 KiB
Vue
35 lines
1.0 KiB
Vue
<template>
|
|
<setting-item-box name="启用数据" :alone="true">
|
|
<n-space justify="start">
|
|
<n-switch v-model:value="currentObj.enable"/>
|
|
</n-space>
|
|
</setting-item-box>
|
|
<setting-item-box name="空间ID" :alone="true">
|
|
<n-space justify="start">
|
|
<n-input
|
|
v-model:value="currentObj.space_complete_id"
|
|
size="small"
|
|
placeholder="请输入空间ID"
|
|
clearable
|
|
/>
|
|
</n-space>
|
|
</setting-item-box>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import {computed} from 'vue'
|
|
import type {Ref} from 'vue'
|
|
import {SettingItemBox} from '@/components/Pages/ChartItemSetting'
|
|
import {useTargetData} from '../../hooks/useTargetData.hook'
|
|
import {commonDataType, DeviceClassType} from '@/store/modules/chartEditStore/chartEditStore.d'
|
|
const {targetData} = useTargetData() as { targetData: Ref<{ commonData: commonDataType, id: string }> }
|
|
|
|
const currentObj = computed(() => {
|
|
return targetData.value.commonData[targetData.value.commonData.currentSource] as DeviceClassType
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style>
|