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