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