修改删除提示

master
夜笙歌 2 years ago
parent 2014a0aff4
commit c733b15fb6

@ -81,7 +81,7 @@
<el-button
type="text"
icon="Finished"
@click="handleBang(scope.row)"
@click="handleBang()"
>
绑定接收器
</el-button>
@ -177,6 +177,7 @@ const loading = ref(true);
const showSearch = ref(true);
// id
const ids = ref([]);
const msg = ref([])
//
const single = ref(true);
//
@ -251,7 +252,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;
}
@ -311,7 +313,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(() => {

Loading…
Cancel
Save