任务 不重复校验

This commit is contained in:
李东进1
2023-02-22 01:07:11 +08:00
parent 86b9ba16f2
commit 66ed0f53de
4 changed files with 20 additions and 1 deletions

View File

@@ -154,8 +154,12 @@ const rowSelection = computed(() => ({
selectedRowKeys: rowSelectKeys.value,
onChange: onSelectChange,
preserveSelectedRowKeys: true,
getCheckboxProps: getCheckboxProps
}));
const getCheckboxProps = () => ({
// 某几项默认禁止选中(R: 当state等于1时)
disabled: true
})
function onSelectChange(e, l) {
rowSelectKeys.value = e;
selectsData.value = l;

View File

@@ -156,7 +156,12 @@ const rowSelection = computed(() => ({
selectedRowKeys: rowSelectKeys.value,
onChange: onSelectChange,
preserveSelectedRowKeys: true,
getCheckboxProps: getCheckboxProps
}));
const getCheckboxProps = () => ({
// 某几项默认禁止选中(R: 当state等于1时)
disabled: true
})
function onSelectChange(e, l) {
rowSelectKeys.value = e;

View File

@@ -163,7 +163,12 @@ const rowSelection = computed(() => ({
selectedRowKeys: rowSelectKeys.value,
onChange: onSelectChange,
preserveSelectedRowKeys: true,
getCheckboxProps: getCheckboxProps
}));
const getCheckboxProps = () => ({
// 某几项默认禁止选中(R: 当state等于1时)
disabled: true
})
function onSelectChange(e, l) {
rowSelectKeys.value = e;

View File

@@ -175,7 +175,12 @@ const rowSelection = computed(() => ({
selectedRowKeys: rowSelectKeys.value,
onChange: onSelectChange,
preserveSelectedRowKeys: true,
getCheckboxProps: getCheckboxProps
}));
const getCheckboxProps = () => ({
// 某几项默认禁止选中(R: 当state等于1时)
disabled: true
})
function onSelectChange(e, l) {
rowSelectKeys.value = e;