Commit 7db047f50b61c2282778ae595f40a69a499d0df2

Authored by fengwotao
1 parent c976095b

pref:设备命令下发记录响应结果没有显示为无

... ... @@ -6,7 +6,8 @@
6 6 </template>
7 7 <template #responseContent="{ record }">
8 8 <div v-if="!record.request?.oneway">
9   - <a-button type="link" class="ml-2" @click="handleRecordResponseContent(record)">
  9 + <a-button v-if="record?.response === null" type="text" class="ml-2"> 无 </a-button>
  10 + <a-button v-else type="link" class="ml-2" @click="handleRecordResponseContent(record)">
10 11 查看
11 12 </a-button>
12 13 </div>
... ... @@ -55,7 +56,6 @@
55 56 commonModalInfo('命令下发内容', jsonParams?.params ? jsonParams?.params : jsonParams);
56 57 };
57 58 const handleRecordResponseContent = (record) => {
58   - if (!record?.response) return;
59 59 const jsonParams = record?.response;
60 60 commonModalInfo('响应结果', jsonParams);
61 61 };
... ...