yxk-20260714
首页的待阅列表,增加直接已阅的按钮
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
import HeaderCell from '/@/components/Table/src/components/HeaderCell.vue';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { useModal } from '/@/components/Modal';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { RightOutlined, QuestionCircleOutlined, ReloadOutlined } from '@ant-design/icons-vue';
|
||||
import { Tooltip } from 'ant-design-vue';
|
||||
import TaskHandleModal from '/@/views/super/bpm/process/personalOffice/myHandleTask/modal/TaskHandleModal.vue';
|
||||
@@ -77,9 +78,10 @@
|
||||
taskClaim,
|
||||
taskComplaint,
|
||||
} from '/@/views/super/bpm/process/personalOffice/myHandleTask/task.handle.api';
|
||||
import { list as ccList } from '/@/views/super/bpm/process/personalOffice/myCcTask/task.cc.api';
|
||||
import { list as ccList, markRead } from '/@/views/super/bpm/process/personalOffice/myCcTask/task.cc.api';
|
||||
|
||||
const router = useRouter();
|
||||
const { createMessage } = useMessage();
|
||||
const activeTab = ref<'todo' | 'cc'>('todo');
|
||||
const todoTotal = ref(0);
|
||||
const refreshing = ref(false);
|
||||
@@ -116,7 +118,7 @@
|
||||
showTableSetting: false,
|
||||
canResize: false,
|
||||
scroll: { x: 1050 },
|
||||
actionColumn: { dataIndex: 'action', fixed: 'right', width: 120 },
|
||||
actionColumn: { dataIndex: 'action', fixed: 'right', width: 150 },
|
||||
useSearchForm: false,
|
||||
},
|
||||
});
|
||||
@@ -257,6 +259,15 @@
|
||||
openHandleModal(true, { formData, formUrl, title: '流程历史' });
|
||||
}
|
||||
|
||||
async function handleCcRead(record) {
|
||||
if (!record?.ccId) {
|
||||
createMessage.warning('缺少抄送记录ID,无法标记已阅');
|
||||
return;
|
||||
}
|
||||
await markRead(record.ccId);
|
||||
await reloadCc();
|
||||
}
|
||||
|
||||
function getTodoTableAction(record) {
|
||||
let arr = [];
|
||||
if (record.taskAssigneeId && record.taskAssigneeId != '') {
|
||||
@@ -277,7 +288,10 @@
|
||||
}
|
||||
|
||||
function getCcTableAction(record) {
|
||||
return [{ label: '查看详情', onClick: showCcHistory.bind(null, record) }];
|
||||
return [
|
||||
{ label: '查看详情', onClick: showCcHistory.bind(null, record) },
|
||||
{ label: '已阅', onClick: handleCcRead.bind(null, record) },
|
||||
];
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user