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