forked from integrated_whb/integrated_whb_vue
init
parent
6db2c2cb03
commit
1812d05ec3
|
@ -112,9 +112,11 @@ const fnSubmit = debounce(
|
|||
1000,
|
||||
() => {
|
||||
const selectionData = tableRef.value.getSelectionRows();
|
||||
const listData = differenceWith(selectionData, props.listData, (a, b) => {
|
||||
return a.RISKCHECKITEM_ID === b.RISKCHECKITEM_ID;
|
||||
});
|
||||
const listData = differenceWith(
|
||||
selectionData,
|
||||
props.listData,
|
||||
(a, b) => a.RISKCHECKITEM_ID === b.RISKCHECKITEM_ID
|
||||
);
|
||||
fnClose();
|
||||
emits("submit", listData);
|
||||
},
|
||||
|
|
|
@ -111,10 +111,9 @@ const { list, pagination, fnGetData, fnResetPagination, tableRef, searchForm } =
|
|||
const fnInit = async () => {
|
||||
await nextTick();
|
||||
props.userList.forEach((item) => {
|
||||
console.log(item.NAME);
|
||||
tableRef.value.toggleRowSelection(item);
|
||||
});
|
||||
list.value.length === 0 && fnGetData();
|
||||
fnGetData();
|
||||
};
|
||||
const fnClose = () => {
|
||||
tableRef.value.clearSelection();
|
||||
|
|
|
@ -197,9 +197,11 @@ const fnDeleteNewUser = (USER_ID, index) => {
|
|||
);
|
||||
};
|
||||
const fnUserDialogSubmit = (selectionData) => {
|
||||
data.newUserList = differenceWith(selectionData, data.oldUserList, (a, b) => {
|
||||
return a.USER_ID === b.USER_ID;
|
||||
});
|
||||
data.newUserList = differenceWith(
|
||||
selectionData,
|
||||
data.oldUserList,
|
||||
(a, b) => a.USER_ID === b.USER_ID
|
||||
);
|
||||
};
|
||||
const fnSubmit = debounce(
|
||||
1000,
|
||||
|
|
Loading…
Reference in New Issue