yxk-20260714
改造抄送模块,将我的抄送拆分为:我的待阅和我的已阅
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
待办
|
||||
<span class="my-work__badge my-work__badge--danger">{{ todoTotal }}</span>
|
||||
</div>
|
||||
<div class="my-work__tab" :class="{ 'my-work__tab--active': activeTab === 'cc' }" @click="activeTab = 'cc'">我的抄送</div>
|
||||
<div class="my-work__tab" :class="{ 'my-work__tab--active': activeTab === 'cc' }" @click="activeTab = 'cc'">待阅</div>
|
||||
</div>
|
||||
<ReloadOutlined class="my-work__refresh" :class="{ 'my-work__refresh--spinning': refreshing }" @click="handleRefresh" />
|
||||
<a class="my-work__more" @click="goMore">
|
||||
@@ -110,7 +110,7 @@
|
||||
designScope: 'process-portal-cc',
|
||||
pagination: true,
|
||||
tableProps: {
|
||||
api: ccList,
|
||||
api: (params) => ccList({ ...params, isRead: 0 }),
|
||||
columns: ccColumns,
|
||||
showIndexColumn: true,
|
||||
showTableSetting: false,
|
||||
@@ -120,7 +120,7 @@
|
||||
useSearchForm: false,
|
||||
},
|
||||
});
|
||||
const [registerCcTable] = ccContext;
|
||||
const [registerCcTable, { reload: reloadCc }] = ccContext;
|
||||
|
||||
onMounted(() => {
|
||||
fetchTodoTotal();
|
||||
@@ -138,7 +138,11 @@
|
||||
async function handleRefresh() {
|
||||
refreshing.value = true;
|
||||
try {
|
||||
reloadTodo();
|
||||
if (activeTab.value === 'todo') {
|
||||
reloadTodo();
|
||||
} else {
|
||||
reloadCc();
|
||||
}
|
||||
await fetchTodoTotal();
|
||||
emit('refresh');
|
||||
} finally {
|
||||
@@ -150,7 +154,7 @@
|
||||
if (activeTab.value === 'todo') {
|
||||
router.push('/task/myTodoTaskInfo');
|
||||
} else {
|
||||
router.push('/task/myCcTaskListInfo');
|
||||
router.push('/task/myUnreadCcTaskList');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user