fix:暂时取消无接口组件的配置id以正常挂载
This commit is contained in:
parent
40a1a836d7
commit
418cefce82
@ -57,7 +57,7 @@ export const seriesItem = {
|
||||
}
|
||||
}
|
||||
export const option = {
|
||||
sceneId: '',
|
||||
sceneId: '04',
|
||||
dateTime: {
|
||||
selectValue: 'day',
|
||||
dataset: [
|
||||
|
@ -3,7 +3,7 @@ import { CreateComponentType } from '@/packages/index.d'
|
||||
import { TopAlarmsConfig } from './index'
|
||||
import dataJson from './data.json'
|
||||
export const option = {
|
||||
sceneId: '',
|
||||
sceneId: '04',
|
||||
dateTime: {
|
||||
selectValue: 'day',
|
||||
dataset: [
|
||||
|
@ -22,6 +22,7 @@ export const FontStyleObject = {
|
||||
[FontStyleEnum.ITALIC]: 'italic',
|
||||
}
|
||||
export const option = {
|
||||
secneID:"",
|
||||
dataset: dataJson,
|
||||
header: ['报警事件', '时间', '所属企业', '状态'],
|
||||
headerTextColor: '#B4B4B4',
|
||||
|
@ -1,5 +1,10 @@
|
||||
<template>
|
||||
<collapse-item name="信息" :expanded="true">
|
||||
<setting-item-box name="场景ID" :alone="true">
|
||||
<setting-item>
|
||||
<n-input v-model:value="optionData.secneID" type="textarea" size="small"></n-input>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
<setting-item-box name="标题" :alone="true">
|
||||
<setting-item>
|
||||
<n-input v-model:value="optionData.title" type="textarea" size="small"></n-input>
|
||||
|
@ -91,7 +91,7 @@ const fetchRecentAlarms = async () => {
|
||||
|
||||
const res: any = await axiosInstance({
|
||||
method: 'GET',
|
||||
url: `/space/getRecentAlarms`,
|
||||
url: `/awjt/space/getRecentAlarms/${props.chartConfig.option.secneID}`,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
|
@ -3,7 +3,6 @@ import { CreateComponentType } from '@/packages/index.d'
|
||||
import { DeviceStatusConfig } from './index'
|
||||
import dataJson from './data.json'
|
||||
export const option = {
|
||||
secneID:"",
|
||||
dataset: dataJson.source,
|
||||
header: ['所属企业', '设备类型', '设备名称'],
|
||||
headerTextColor: '#7F9DB4',
|
||||
|
@ -1,13 +1,7 @@
|
||||
<template>
|
||||
<collapse-item name="信息" :expanded="true">
|
||||
<setting-item-box name="场景ID" :alone="true">
|
||||
<setting-item>
|
||||
<n-input v-model:value="option.secneID" type="textarea" size="small"></n-input>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
</collapse-item>
|
||||
|
||||
<div class="go-device-status-config">
|
||||
<n-form-item label="标题">
|
||||
<!-- <n-form-item label="标题">
|
||||
<n-input v-model:value="option.title" />
|
||||
</n-form-item>
|
||||
<n-form-item label="标题大小">
|
||||
@ -30,17 +24,18 @@
|
||||
</n-form-item>
|
||||
<n-form-item label="总设备">
|
||||
<n-input-number v-model:value="option.totalDevice" />
|
||||
</n-form-item>
|
||||
</n-form-item> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType } from 'vue'
|
||||
import { option } from './config'
|
||||
import { option as optionConfig } from './config'
|
||||
import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
|
||||
|
||||
defineProps({
|
||||
option: {
|
||||
type: Object as PropType<typeof option>,
|
||||
type: Object as PropType<typeof optionConfig>,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
@ -1,13 +1,7 @@
|
||||
<template>
|
||||
|
||||
<div>
|
||||
<collapse-item name="信息" :expanded="true">
|
||||
<setting-item-box name="场景ID" :alone="true">
|
||||
<setting-item>
|
||||
<n-input v-model:value="option.secneID" type="textarea" size="small"></n-input>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
</collapse-item>
|
||||
<div class="go-parking-scene-config">
|
||||
|
||||
<n-form-item label="标题">
|
||||
<n-input v-model:value="option.title" />
|
||||
</n-form-item>
|
||||
@ -28,12 +22,12 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType } from 'vue'
|
||||
import { option as optionConfig } from './config'
|
||||
import { option } from './config'
|
||||
import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
|
||||
|
||||
defineProps({
|
||||
option: {
|
||||
type: Object as PropType<typeof optionConfig>,
|
||||
type: Object as PropType<typeof option>,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user