gerson
2024-08-04 f052d279131a056cb82c178ae195f463caa72c33
src/components/chat/chatComponents/summaryCom/components/types.ts
@@ -1,6 +1,8 @@
import HTMLCom from '../../htmlCom/HTMLCom.vue';
import MapCom from '../../mapCom/MapCom.vue';
import RecordSet from './recordSet/RecordSet.vue';
import RecordSetTable from './recordSetTable/RecordSetTable.vue';
import Summary from './summary/Summary.vue';
import DeviceLastValueCom from './deviceLastValue/DeviceLastValueCom.vue';
@@ -9,7 +11,9 @@
   Summary = 'summary',
   Url = 'url',
   Map = 'map',
   DeviceLastValue='device_last_value'
   DeviceLastValue='device_last_value',
   /** @description 后端并没有增加一个新的 table 类型,而是当成 recordset 的一种特列 */
   RecordSetTable = 'recordsetTable'
}
export const summaryAnswerTypeMapCom = {
@@ -17,5 +21,7 @@
   [SummaryAnswerType.Summary]: Summary,
   [SummaryAnswerType.Url]: HTMLCom,
   [SummaryAnswerType.Map]: MapCom,
   [SummaryAnswerType.DeviceLastValue]:DeviceLastValueCom
   [SummaryAnswerType.DeviceLastValue]:DeviceLastValueCom,
   [SummaryAnswerType.RecordSetTable]:RecordSetTable,
};