Showing
1 changed file
with
10 additions
and
2 deletions
@@ -155,7 +155,7 @@ | @@ -155,7 +155,7 @@ | ||
155 | </div> | 155 | </div> |
156 | </template> | 156 | </template> |
157 | <script lang="ts"> | 157 | <script lang="ts"> |
158 | - import { defineComponent, reactive, unref, nextTick } from 'vue'; | 158 | + import { defineComponent, reactive, unref, nextTick, h } from 'vue'; |
159 | import { DeviceState, DeviceTypeEnum } from '/@/api/device/model/deviceModel'; | 159 | import { DeviceState, DeviceTypeEnum } from '/@/api/device/model/deviceModel'; |
160 | import { BasicTable, useTable, TableAction, TableImg } from '/@/components/Table'; | 160 | import { BasicTable, useTable, TableAction, TableImg } from '/@/components/Table'; |
161 | import { columns, searchFormSchema } from './config/device.data'; | 161 | import { columns, searchFormSchema } from './config/device.data'; |
@@ -272,7 +272,9 @@ | @@ -272,7 +272,9 @@ | ||
272 | // 该设备是否正在被场景联动使用中? | 272 | // 该设备是否正在被场景联动使用中? |
273 | const isEnabled = await checkDeviceOccupied(record.id); | 273 | const isEnabled = await checkDeviceOccupied(record.id); |
274 | if (!isEnabled.data) { | 274 | if (!isEnabled.data) { |
275 | - createMessage.warn(`${isEnabled.message}`); | 275 | + const props = { style: { maxWidth: '600' + 'px' } }; |
276 | + const small = h('small', ''); | ||
277 | + createMessage.warn(h('h2', props, [`${isEnabled.message}`, small])); | ||
276 | } else { | 278 | } else { |
277 | await cancelDispatchCustomer(record); | 279 | await cancelDispatchCustomer(record); |
278 | handleReload(); | 280 | handleReload(); |
@@ -343,3 +345,9 @@ | @@ -343,3 +345,9 @@ | ||
343 | }, | 345 | }, |
344 | }); | 346 | }); |
345 | </script> | 347 | </script> |
348 | + | ||
349 | +<style scoped lang="css"> | ||
350 | + /* /deep/.ant-message-notice-content { | ||
351 | + max-width: 600px !important; | ||
352 | + } */ | ||
353 | +</style> |