|
|
@ -251,7 +251,7 @@ const resetQuery = () => {
|
|
|
|
|
|
|
|
|
|
|
|
/** 多选框选中数据 */
|
|
|
|
/** 多选框选中数据 */
|
|
|
|
function handleSelectionChange(selection) {
|
|
|
|
function handleSelectionChange(selection) {
|
|
|
|
ids.value = selection.map(item => item.id);
|
|
|
|
ids.value = selection.map(item => item.carLicense);
|
|
|
|
single.value = selection.length !== 1;
|
|
|
|
single.value = selection.length !== 1;
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -311,7 +311,7 @@ function submitForm() {
|
|
|
|
function handleDelete(row) {
|
|
|
|
function handleDelete(row) {
|
|
|
|
const postIds = row.id || ids.value;
|
|
|
|
const postIds = row.id || ids.value;
|
|
|
|
proxy.$modal.confirm(t('option.confirmDeletion', {
|
|
|
|
proxy.$modal.confirm(t('option.confirmDeletion', {
|
|
|
|
key: t('baseCar.car.companyCode'), value: postIds
|
|
|
|
key: t('baseCar.car.carLicense'), value: postIds
|
|
|
|
})).then(function () {
|
|
|
|
})).then(function () {
|
|
|
|
return delBaseCar(postIds);
|
|
|
|
return delBaseCar(postIds);
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|