refactor(device): 解决个人中心消息报错、添加事件组件类型映射
This commit is contained in:
parent
32ed53f92b
commit
cb2a53ebc9
|
@ -82,6 +82,23 @@ const visible = ref<boolean>(false);
|
||||||
const info = ref<Record<string, any>>({});
|
const info = ref<Record<string, any>>({});
|
||||||
const objectKey = ref<Array>([]);
|
const objectKey = ref<Array>([]);
|
||||||
|
|
||||||
|
const componentsType = {
|
||||||
|
int: 'number',
|
||||||
|
long: 'number',
|
||||||
|
float: 'number',
|
||||||
|
double: 'number',
|
||||||
|
string: 'string',
|
||||||
|
array: 'string',
|
||||||
|
password: 'string',
|
||||||
|
enum: 'select',
|
||||||
|
boolean: 'select',
|
||||||
|
date: 'date',
|
||||||
|
object: 'string',
|
||||||
|
geoPoint: 'string',
|
||||||
|
file: 'string',
|
||||||
|
time: 'time',
|
||||||
|
}
|
||||||
|
|
||||||
const _getEventList = (_params: any) =>
|
const _getEventList = (_params: any) =>
|
||||||
getEventList(instanceStore.current.id || '', events.data.id || '', _params);
|
getEventList(instanceStore.current.id || '', events.data.id || '', _params);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue