修改删除提示

master
夜笙歌 2 years ago
parent 69153120bb
commit 38e9817bf1

@ -220,6 +220,7 @@ const loading = ref(true);
const showSearch = ref(true); const showSearch = ref(true);
// id // id
const ids = ref([]); const ids = ref([]);
const internetThingsNos = ref([])
// //
const single = ref(true); const single = ref(true);
// //
@ -309,6 +310,7 @@ const resetQuery = () => {
/** 多选框选中数据 */ /** 多选框选中数据 */
function handleSelectionChange(selection) { function handleSelectionChange(selection) {
ids.value = selection.map(item => item.id); ids.value = selection.map(item => item.id);
internetThingsNos.value = selection.map(item => item.internetThingsNo);
single.value = selection.length !== 1; single.value = selection.length !== 1;
multiple.value = !selection.length; multiple.value = !selection.length;
} }
@ -357,8 +359,8 @@ function submitForm() {
function handleDelete(row) { function handleDelete(row) {
const postIds = row.postId || ids.value; const postIds = row.postId || ids.value;
proxy.$modal.confirm(t('option.confirmDeletion', { proxy.$modal.confirm(t('option.confirmDeletion', {
key: t('baseDevice.baseDevice.tyreFacCode'), key: t('baseDevice.baseDevice.internetThingsNo'),
value: postIds value: internetThingsNos.value
})).then(function () { })).then(function () {
return delBaseDevice(postIds); return delBaseDevice(postIds);
}).then(() => { }).then(() => {

Loading…
Cancel
Save