diff --git a/ruoyi-ui/src/views/basecar/car/index.vue b/ruoyi-ui/src/views/basecar/car/index.vue index f53825c..9fb19c8 100644 --- a/ruoyi-ui/src/views/basecar/car/index.vue +++ b/ruoyi-ui/src/views/basecar/car/index.vue @@ -81,7 +81,7 @@ 绑定接收器 @@ -183,6 +183,7 @@ const loading = ref(true); const showSearch = ref(true); // 选择行id const ids = ref([]); +const msg = ref([]) // 修改按钮是否可用标识 const single = ref(true); // 删除按钮是否可用标识 @@ -257,7 +258,8 @@ const resetQuery = () => { /** 多选框选中数据 */ function handleSelectionChange(selection) { - ids.value = selection.map(item => item.carLicense); + ids.value = selection.map(item => item.id); + msg.value = selection.map(item => item.carLicense); single.value = selection.length !== 1; multiple.value = !selection.length; } @@ -317,7 +319,7 @@ function submitForm() { function handleDelete(row) { const postIds = row.id || ids.value; proxy.$modal.confirm(t('option.confirmDeletion', { - key: t('baseCar.car.carLicense'), value: postIds + key: t('baseCar.car.carLicense'), value: msg.value })).then(function () { return delBaseCar(postIds); }).then(() => {