From 1812d05ec38618f8837ab12181211e6d07d425cd Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Mon, 22 Jan 2024 16:18:39 +0800 Subject: [PATCH] init --- .../inventory_management/components/select_risk.vue | 8 +++++--- src/views/online_learn_exam/task/components/user.vue | 3 +-- src/views/online_learn_exam/task/view.vue | 8 +++++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/views/hazard_investigation/inventory_management/components/select_risk.vue b/src/views/hazard_investigation/inventory_management/components/select_risk.vue index 2ee7fd7..e5f62ab 100644 --- a/src/views/hazard_investigation/inventory_management/components/select_risk.vue +++ b/src/views/hazard_investigation/inventory_management/components/select_risk.vue @@ -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); }, diff --git a/src/views/online_learn_exam/task/components/user.vue b/src/views/online_learn_exam/task/components/user.vue index 1964289..2da4bbe 100644 --- a/src/views/online_learn_exam/task/components/user.vue +++ b/src/views/online_learn_exam/task/components/user.vue @@ -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(); diff --git a/src/views/online_learn_exam/task/view.vue b/src/views/online_learn_exam/task/view.vue index 144c93e..e3bf765 100644 --- a/src/views/online_learn_exam/task/view.vue +++ b/src/views/online_learn_exam/task/view.vue @@ -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,