|
|
@@ -195,8 +195,18 @@
|
|
|
|
|
|
<template #bodyCell="{column, record}" >
|
|
|
<template v-if="column.key === 'cmdParameters'" >
|
|
|
-
|
|
|
- <span> {{JSON.stringify(record.cmdParameters)}}</span>
|
|
|
+ <a-tooltip color="white" :overlayStyle="{width: '800px'}" >
|
|
|
+ <template #title>
|
|
|
+ <a-textarea
|
|
|
+ :bordered="false"
|
|
|
+ style="width: 600px;"
|
|
|
+ :auto-size="{ minRows: 5, maxRows: 15 }"
|
|
|
+ :value="JSON.stringify(record.cmdParameters, null, '\t')"
|
|
|
+ >
|
|
|
+ </a-textarea>
|
|
|
+ </template>
|
|
|
+ <div style="width: 100px">{{record.cmdParameters}}</div>
|
|
|
+ </a-tooltip>
|
|
|
|
|
|
</template>
|
|
|
<template v-if="column.key === 'action'" >
|
|
|
@@ -794,7 +804,7 @@ const actionsColumns = reactive({
|
|
|
DEVICE_CMD: [
|
|
|
{ title: '触发动作', dataIndex: 'actionType' }, { title: '产品ID', dataIndex: 'modelId' },
|
|
|
{ title: '设备id', dataIndex: 'deviceId' }, { title: '命令名称', dataIndex: 'cmdLabel' },
|
|
|
- { title: '命令参数', key: 'cmdParameters', dataIndex: 'cmdParameters' }, { title: '操作', dataIndex: 'action', key: 'action' }
|
|
|
+ { title: '命令参数', key: 'cmdParameters', dataIndex: 'cmdParameters', ellipsis: true, width: 120 }, { title: '操作', dataIndex: 'action', key: 'action' }
|
|
|
],
|
|
|
REPORT_WARN: [
|
|
|
{ title: '触发动作', dataIndex: 'actionType' }, { title: '设备id', dataIndex: 'deviceId' },
|