|
|
@ -81,7 +81,7 @@
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="Finished"
|
|
|
|
icon="Finished"
|
|
|
|
@click="handleBang(scope.row)"
|
|
|
|
@click="handleBang()"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
绑定接收器
|
|
|
|
绑定接收器
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
@ -177,6 +177,7 @@ const loading = ref(true);
|
|
|
|
const showSearch = ref(true);
|
|
|
|
const showSearch = ref(true);
|
|
|
|
// 选择行id
|
|
|
|
// 选择行id
|
|
|
|
const ids = ref([]);
|
|
|
|
const ids = ref([]);
|
|
|
|
|
|
|
|
const msg = ref([])
|
|
|
|
// 修改按钮是否可用标识
|
|
|
|
// 修改按钮是否可用标识
|
|
|
|
const single = ref(true);
|
|
|
|
const single = ref(true);
|
|
|
|
// 删除按钮是否可用标识
|
|
|
|
// 删除按钮是否可用标识
|
|
|
@ -251,7 +252,8 @@ const resetQuery = () => {
|
|
|
|
|
|
|
|
|
|
|
|
/** 多选框选中数据 */
|
|
|
|
/** 多选框选中数据 */
|
|
|
|
function handleSelectionChange(selection) {
|
|
|
|
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;
|
|
|
|
single.value = selection.length !== 1;
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -311,7 +313,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.carLicense'), value: postIds
|
|
|
|
key: t('baseCar.car.carLicense'), value: msg.value
|
|
|
|
})).then(function () {
|
|
|
|
})).then(function () {
|
|
|
|
return delBaseCar(postIds);
|
|
|
|
return delBaseCar(postIds);
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|