diff --git a/ruoyi-ui/src/views/deviceManagement/info/index.vue b/ruoyi-ui/src/views/deviceManagement/info/index.vue index 27f1185..8147ad0 100644 --- a/ruoyi-ui/src/views/deviceManagement/info/index.vue +++ b/ruoyi-ui/src/views/deviceManagement/info/index.vue @@ -220,6 +220,7 @@ const loading = ref(true); const showSearch = ref(true); // 选择行id const ids = ref([]); +const internetThingsNos = ref([]) // 修改按钮是否可用标识 const single = ref(true); // 删除按钮是否可用标识 @@ -309,6 +310,7 @@ const resetQuery = () => { /** 多选框选中数据 */ function handleSelectionChange(selection) { ids.value = selection.map(item => item.id); + internetThingsNos.value = selection.map(item => item.internetThingsNo); single.value = selection.length !== 1; multiple.value = !selection.length; } @@ -357,8 +359,8 @@ function submitForm() { function handleDelete(row) { const postIds = row.postId || ids.value; proxy.$modal.confirm(t('option.confirmDeletion', { - key: t('baseDevice.baseDevice.tyreFacCode'), - value: postIds + key: t('baseDevice.baseDevice.internetThingsNo'), + value: internetThingsNos.value })).then(function () { return delBaseDevice(postIds); }).then(() => {