diff --git a/src/views/dashboard/ProcessPortal/components/MyWork.vue b/src/views/dashboard/ProcessPortal/components/MyWork.vue new file mode 100644 index 0000000..67cb19c --- /dev/null +++ b/src/views/dashboard/ProcessPortal/components/MyWork.vue @@ -0,0 +1,342 @@ + + + + + diff --git a/src/views/dashboard/ProcessPortal/components/StatCards.vue b/src/views/dashboard/ProcessPortal/components/StatCards.vue new file mode 100644 index 0000000..bf72c96 --- /dev/null +++ b/src/views/dashboard/ProcessPortal/components/StatCards.vue @@ -0,0 +1,195 @@ + + + + + diff --git a/src/views/dashboard/ProcessPortal/components/WelcomeBanner.vue b/src/views/dashboard/ProcessPortal/components/WelcomeBanner.vue new file mode 100644 index 0000000..fd0582c --- /dev/null +++ b/src/views/dashboard/ProcessPortal/components/WelcomeBanner.vue @@ -0,0 +1,180 @@ + + + + + diff --git a/src/views/dashboard/ProcessPortal/data/cc.data.ts b/src/views/dashboard/ProcessPortal/data/cc.data.ts new file mode 100644 index 0000000..5ab5e60 --- /dev/null +++ b/src/views/dashboard/ProcessPortal/data/cc.data.ts @@ -0,0 +1,28 @@ +import { BasicColumn } from '/@/components/Table'; + +export const ccColumns: BasicColumn[] = [ + { + title: '业务标题', + align: 'center', + dataIndex: 'bpmBizTitle', + ellipsis: true, + }, + { + title: '任务名称', + align: 'center', + width: 260, + dataIndex: 'taskName', + }, + { + title: '发起人', + align: 'center', + width: 160, + dataIndex: 'processApplyUserName', + }, + { + title: '办理人', + align: 'center', + width: 160, + dataIndex: 'taskAssigneeName', + }, +]; diff --git a/src/views/dashboard/ProcessPortal/data/todo.data.ts b/src/views/dashboard/ProcessPortal/data/todo.data.ts new file mode 100644 index 0000000..f617042 --- /dev/null +++ b/src/views/dashboard/ProcessPortal/data/todo.data.ts @@ -0,0 +1,43 @@ +import { BasicColumn } from '/@/components/Table'; +import { Tag } from 'ant-design-vue'; +import { h } from 'vue'; + +export const todoColumns: BasicColumn[] = [ + { + title: '业务标题', + align: 'center', + dataIndex: 'bpmBizTitle', + ellipsis: true, + }, + { + title: '当前环节', + align: 'center', + width: 200, + dataIndex: 'taskName', + }, + { + title: '转入时间', + align: 'center', + width: 160, + dataIndex: 'taskBeginTime', + }, + { + title: '事项截止时间', + align: 'center', + width: 160, + dataIndex: 'deadline', + customRender: ({ text, record }) => { + const value = !text ? '' : text.length > 10 ? text.substr(0, 10) : text; + if (!value) { + return ''; + } + if (record.deadlineOverdue) { + return h(Tag, { color: 'error' }, () => (record.deadlineWarnText ? `${value} ${record.deadlineWarnText}` : value)); + } + if (record.deadlineSoon) { + return h(Tag, { color: 'warning' }, () => (record.deadlineWarnText ? `${value} ${record.deadlineWarnText}` : value)); + } + return value; + }, + }, +]; diff --git a/src/views/dashboard/ProcessPortal/index.vue b/src/views/dashboard/ProcessPortal/index.vue new file mode 100644 index 0000000..d6ff21e --- /dev/null +++ b/src/views/dashboard/ProcessPortal/index.vue @@ -0,0 +1,22 @@ + + + + + +