mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
导入和选择显示已选的问题
This commit is contained in:
@@ -198,8 +198,10 @@ const state = reactive({
|
||||
})
|
||||
//删除选中
|
||||
const remove = (id) => {
|
||||
state.selectedRow = state.selectedRow.filter(item => item.id !== id)
|
||||
state.selectedRowKeys = state.selectedRowKeys.filter(item => item !== id)
|
||||
state.selectedRow = state.selectedRow.filter(item => item.id !== id)
|
||||
// 过滤导入删除的条数
|
||||
state.caseTitleList = state.caseTitleList.filter(item => state.selectedRow.some(sel => sel.id == item.id))
|
||||
}
|
||||
// 下一步返回的刷新列表
|
||||
function submitCall(flag) {
|
||||
@@ -252,6 +254,8 @@ const onSelectChange = (selectedRowKeys, selectedRow) => {
|
||||
return acc;
|
||||
}, {})
|
||||
);
|
||||
console.log(state.selectedRow, state.caseTitleList);
|
||||
|
||||
};
|
||||
|
||||
// 请求列表数据是formdata类型的
|
||||
|
||||
Reference in New Issue
Block a user