修改删除提示

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

@ -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(() => {

Loading…
Cancel
Save