From 8d4cc2711bbcf744ad79889e80c320dfeced2d93 Mon Sep 17 00:00:00 2001 From: gitlh <101574860@qq.com> Date: Fri, 25 Oct 2024 19:00:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(pages/colab):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=E5=92=8C?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(service/bpm/BpmAPI): 新增工作流相关查询接口 feat(utils): 新增时间格式化、is等utils方法 feat(ua-timeline): 引入ua-timeline组件显示审批步骤 fix(pages/login): 修改了隐私与用户条款勾选状态返回到登录页面,并修改登录页面 --- .eslintrc.cjs | 33 +- pages.config.ts | 22 +- pnpm-lock.yaml | 11 + src/pages.json | 7 + src/pages/colab/detail/index.vue | 450 + src/pages/colab/index.vue | 217 +- src/pages/colab/mock.js | 1124 +++ src/pages/login/components/Copyright.vue | 10 +- src/pages/login/index.vue | 9 +- src/service/bpm/BpmAPI.ts | 56 + src/static/images/robot-head-avatar.jpg | Bin 0 -> 173117 bytes src/types/auto-import.d.ts | 89 +- src/types/uni-pages.d.ts | 3 +- .../ua-timeline-item/ua-timeline-item.vue | 257 + .../components/ua-timeline-item/util.js | 388 + .../components/ua-timeline/ua-timeline.vue | 196 + .../components/ua-timeline/util.js | 388 + src/uni_modules/ua-timeline/package.json | 18 + src/uni_modules/ua-timeline/readme.md | 108 + .../ua-timeline/static/fonts/demo.css | 539 ++ .../ua-timeline/static/fonts/demo_index.html | 7373 +++++++++++++++++ .../ua-timeline/static/fonts/iconfont.css | 1451 ++++ .../ua-timeline/static/fonts/iconfont.js | 1 + .../ua-timeline/static/fonts/iconfont.json | 2508 ++++++ .../ua-timeline/static/fonts/iconfont.ttf | Bin 0 -> 79848 bytes .../ua-timeline/static/fonts/iconfont.woff | Bin 0 -> 35716 bytes .../ua-timeline/static/fonts/iconfont.woff2 | Bin 0 -> 28840 bytes src/uni_modules/ua-timeline/static/logo.png | Bin 0 -> 4023 bytes src/uni_modules/ua-timeline/static/vite.svg | 1 + src/uni_modules/ua-timeline/static/vue.svg | 1 + src/utils/common.ts | 4 +- src/utils/is.ts | 125 + src/utils/time.ts | 123 + 33 files changed, 15470 insertions(+), 42 deletions(-) create mode 100644 src/pages/colab/detail/index.vue create mode 100644 src/pages/colab/mock.js create mode 100644 src/service/bpm/BpmAPI.ts create mode 100644 src/static/images/robot-head-avatar.jpg create mode 100644 src/uni_modules/ua-timeline/components/ua-timeline-item/ua-timeline-item.vue create mode 100644 src/uni_modules/ua-timeline/components/ua-timeline-item/util.js create mode 100644 src/uni_modules/ua-timeline/components/ua-timeline/ua-timeline.vue create mode 100644 src/uni_modules/ua-timeline/components/ua-timeline/util.js create mode 100644 src/uni_modules/ua-timeline/package.json create mode 100644 src/uni_modules/ua-timeline/readme.md create mode 100644 src/uni_modules/ua-timeline/static/fonts/demo.css create mode 100644 src/uni_modules/ua-timeline/static/fonts/demo_index.html create mode 100644 src/uni_modules/ua-timeline/static/fonts/iconfont.css create mode 100644 src/uni_modules/ua-timeline/static/fonts/iconfont.js create mode 100644 src/uni_modules/ua-timeline/static/fonts/iconfont.json create mode 100644 src/uni_modules/ua-timeline/static/fonts/iconfont.ttf create mode 100644 src/uni_modules/ua-timeline/static/fonts/iconfont.woff create mode 100644 src/uni_modules/ua-timeline/static/fonts/iconfont.woff2 create mode 100644 src/uni_modules/ua-timeline/static/logo.png create mode 100644 src/uni_modules/ua-timeline/static/vite.svg create mode 100644 src/uni_modules/ua-timeline/static/vue.svg create mode 100644 src/utils/is.ts create mode 100644 src/utils/time.ts diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 2cd2910..a7419e3 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -2,7 +2,7 @@ module.exports = { env: { browser: true, es2021: true, - node: true, + node: true }, extends: [ 'eslint:recommended', @@ -15,23 +15,23 @@ module.exports = { // 1. 接入 prettier 的规则 'prettier', 'plugin:prettier/recommended', - './.eslintrc-auto-import.json', + './.eslintrc-auto-import.json' ], overrides: [ { env: { - node: true, + node: true }, files: ['.eslintrc.{js,cjs}'], parserOptions: { - sourceType: 'script', - }, - }, + sourceType: 'script' + } + } ], parserOptions: { ecmaVersion: 'latest', parser: '@typescript-eslint/parser', - sourceType: 'module', + sourceType: 'module' }, plugins: [ '@typescript-eslint', @@ -39,18 +39,18 @@ module.exports = { // 2. 加入 prettier 的 eslint 插件 'prettier', // eslint-import-resolver-typescript 插件,@see https://www.npmjs.com/package/eslint-import-resolver-typescript - 'import', + 'import' ], rules: { // 3. 注意要加上这一句,开启 prettier 自动修复的功能 - 'prettier/prettier': 'error', + // 'prettier/prettier': 'error', // turn on errors for missing imports 'import/no-unresolved': 'off', // 对后缀的检测,否则 import 一个ts文件也会报错,需要手动添加'.ts', 增加了下面的配置后就不用了 'import/extensions': [ 'error', 'ignorePackages', - { js: 'never', jsx: 'never', ts: 'never', tsx: 'never' }, + { js: 'never', jsx: 'never', ts: 'never', tsx: 'never' } ], // 只允许1个默认导出,关闭,否则不能随意export xxx 'import/prefer-default-export': ['off'], @@ -69,19 +69,22 @@ module.exports = { 'no-undef': 'off', 'no-unused-vars': 'off', 'no-param-reassign': 'off', + // 禁止不必要的转义字符 + 'no-useless-escape': 'off', '@typescript-eslint/no-unused-vars': 'off', // 避免 `eslint` 对于 `typescript` 函数重载的误报 'no-redeclare': 'off', '@typescript-eslint/no-redeclare': 'error', + 'prettier/prettier': 'off' // Andy:默认关闭 prettier 的 ESLint 校验,因为我们使用的是 IDE 的 Prettier 插件 }, // eslint-import-resolver-typescript 插件,@see https://www.npmjs.com/package/eslint-import-resolver-typescript settings: { 'import/parsers': { - '@typescript-eslint/parser': ['.ts', '.tsx'], + '@typescript-eslint/parser': ['.ts', '.tsx'] }, 'import/resolver': { - typescript: {}, - }, + typescript: {} + } }, globals: { $t: true, @@ -93,6 +96,6 @@ module.exports = { UniHelper: true, Page: true, App: true, - NodeJS: true, - }, + NodeJS: true + } } diff --git a/pages.config.ts b/pages.config.ts index bd75c40..90cb184 100644 --- a/pages.config.ts +++ b/pages.config.ts @@ -6,7 +6,7 @@ export default defineUniPages({ navigationBarTitleText: 'unibest', navigationBarBackgroundColor: '#f8f8f8', navigationBarTextStyle: 'black', - backgroundColor: '#FFFFFF', + backgroundColor: '#FFFFFF' }, easycom: { autoscan: true, @@ -14,8 +14,8 @@ export default defineUniPages({ // '^fg-(.*)': '@/components/fg-$1.vue', '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue', '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)': - 'z-paging/components/z-paging$1/z-paging$1.vue', - }, + 'z-paging/components/z-paging$1/z-paging$1.vue' + } }, tabBar: { custom: true, @@ -33,32 +33,32 @@ export default defineUniPages({ pagePath: 'pages/message/index', text: '消息', icon: 'i-ic-outline-message', - iconType: 'unocss', + iconType: 'unocss' }, { pagePath: 'pages/colab/index', text: '协作', icon: 'i-ic-outline-handshake', - iconType: 'unocss', + iconType: 'unocss' }, { pagePath: 'pages/work/index', text: '工作台', icon: 'i-ic-baseline-apps', - iconType: 'unocss', + iconType: 'unocss' }, { pagePath: 'pages/contacts/index', text: '通讯录', icon: 'i-ic-baseline-contact-page', - iconType: 'unocss', + iconType: 'unocss' }, { pagePath: 'pages/my/index', text: '我的', icon: 'i-ic-baseline-person', - iconType: 'unocss', - }, - ], - }, + iconType: 'unocss' + } + ] + } }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 576f4d6..0b92832 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,9 @@ importers: '@dcloudio/uni-mp-weixin': specifier: 3.0.0-alpha-4010520240507001 version: 3.0.0-alpha-4010520240507001(postcss@8.4.38)(rollup@4.18.0)(vue@3.4.21(typescript@5.5.4)) + '@iconify/json': + specifier: ^2.2.260 + version: 2.2.261 dayjs: specifier: 1.11.10 version: 1.11.10 @@ -1191,6 +1194,9 @@ packages: '@iconify-json/ic@1.2.1': resolution: {integrity: sha512-UjL/bjJP/T5EV881+hTzcfTKVo0KEUjhnMiJcLtPzNgPtU2KZZmRx8BSKKR61H4CN/5FTEbyawGyG0aEt3SwGQ==} + '@iconify/json@2.2.261': + resolution: {integrity: sha512-uUm8Svulz5aRRF0X+r2/UG5P0xcUCGOGVmAFJ/ZANx29wqE79PvGCYXHuznNC0h8+UW1fnvprj7FmgJELvMYZw==} + '@iconify/types@2.0.0': resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} @@ -6897,6 +6903,11 @@ snapshots: dependencies: '@iconify/types': 2.0.0 + '@iconify/json@2.2.261': + dependencies: + '@iconify/types': 2.0.0 + pathe: 1.1.2 + '@iconify/types@2.0.0': {} '@iconify/utils@2.1.24': diff --git a/src/pages.json b/src/pages.json index 51c1986..e7cda40 100644 --- a/src/pages.json +++ b/src/pages.json @@ -105,6 +105,13 @@ "style": { "navigationBarTitleText": "我的" } + }, + { + "path": "pages/colab/detail/index", + "type": "page", + "style": { + "navigationBarTitleText": "审批详情" + } } ], "subPackages": [] diff --git a/src/pages/colab/detail/index.vue b/src/pages/colab/detail/index.vue new file mode 100644 index 0000000..e6d1247 --- /dev/null +++ b/src/pages/colab/detail/index.vue @@ -0,0 +1,450 @@ + +{ + style: { + navigationBarTitleText: '审批详情' + } +} + + + + + + + diff --git a/src/pages/colab/index.vue b/src/pages/colab/index.vue index 5645a48..787b885 100644 --- a/src/pages/colab/index.vue +++ b/src/pages/colab/index.vue @@ -3,21 +3,226 @@ { layout: 'tabbar', style: { - navigationBarTitleText: '协作', - }, + navigationBarTitleText: '协作' + } } diff --git a/src/pages/colab/mock.js b/src/pages/colab/mock.js new file mode 100644 index 0000000..5554f9f --- /dev/null +++ b/src/pages/colab/mock.js @@ -0,0 +1,1124 @@ +export const todoPage = { + list: [ + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: null, + reason: null, + ownerUser: null, + assigneeUser: null, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + } + ], + total: 20 +} + +export const myPage = { + list: [ + { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + category: 'FlowFormSimple', + categoryName: '基础人事流程', + status: 1, + startTime: 1729224510785, + endTime: null, + durationInMillis: null, + formVariables: null, + businessKey: null, + startUser: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + processDefinition: { + id: 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + version: 2, + name: '请假Simple流程', + key: 'flowformsimpletest1', + icon: null, + description: null, + category: 'FlowFormSimple', + categoryName: null, + formType: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formCustomCreatePath: null, + formCustomViewPath: null, + suspensionState: 1, + deploymentTime: null, + bpmnXml: null, + startUserSelectTasks: null + }, + tasks: [ + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '直接领导审批' + } + ] + }, + { + id: '54180a69-8d01-11ef-9c53-066c592c2315', + name: '请假BPMN流程', + category: 'FlowFormBPMN', + categoryName: '基础人事流程1', + status: 1, + startTime: 1729222231712, + endTime: null, + durationInMillis: null, + formVariables: null, + businessKey: null, + startUser: null, + processDefinitionId: + 'flowformBPMNtest1:2:1a6c8d48-8d01-11ef-9c53-066c592c2315', + processDefinition: { + id: 'flowformBPMNtest1:2:1a6c8d48-8d01-11ef-9c53-066c592c2315', + version: 2, + name: '请假BPMN流程', + key: 'flowformBPMNtest1', + icon: null, + description: null, + category: 'FlowFormBPMN', + categoryName: null, + formType: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formCustomCreatePath: null, + formCustomViewPath: null, + suspensionState: 1, + deploymentTime: null, + bpmnXml: null, + startUserSelectTasks: null + }, + tasks: [ + { + id: '076c8c9d-8d02-11ef-9c53-066c592c2315', + name: 'HR审批' + } + ] + }, + { + id: '8a6b3186-8cfd-11ef-9c53-066c592c2315', + name: '请假BPMN流程1', + category: 'FlowFormBPMN', + categoryName: '基础人事流程1', + status: 4, + startTime: 1729220604867, + endTime: null, + durationInMillis: null, + formVariables: null, + businessKey: null, + startUser: null, + processDefinitionId: + 'flowformBPMNtest1:1:4f93de95-8cfd-11ef-9c53-066c592c2315', + processDefinition: { + id: 'flowformBPMNtest1:1:4f93de95-8cfd-11ef-9c53-066c592c2315', + version: 1, + name: '请假BPMN流程1', + key: 'flowformBPMNtest1', + icon: null, + description: null, + category: 'FlowFormBPMN', + categoryName: null, + formType: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formCustomCreatePath: null, + formCustomViewPath: null, + suspensionState: 2, + deploymentTime: null, + bpmnXml: null, + startUserSelectTasks: null + }, + tasks: [ + { + id: '8a743241-8cfd-11ef-9c53-066c592c2315', + name: '部门领导审批' + } + ] + } + ], + total: 3 +} + +export const taskDonePage = { + list: [ + { + id: 'a286fba6-8d06-11ef-9c53-066c592c2315', + name: '发起人', + createTime: 1729224510785, + endTime: 1729224510845, + durationInMillis: 60, + status: 2, + reason: '审批人与提交人为同一人时,自动通过', + ownerUser: null, + assigneeUser: { + id: 1, + nickname: '张三丰', + avatar: '', + deptId: 103, + deptName: '研发部' + }, + taskDefinitionKey: 'StartUserNode', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 1, + nickname: '张三丰', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + }, + { + id: '54183184-8d01-11ef-9c53-066c592c2315', + name: '部门领导审批', + createTime: 1729222231713, + endTime: 1729222532575, + durationInMillis: 300862, + status: 2, + reason: '同意', + ownerUser: null, + assigneeUser: { + id: 1, + nickname: '张三丰', + avatar: '', + deptId: 103, + deptName: '研发部' + }, + taskDefinitionKey: 'Activity_0uep6n9', + processInstanceId: '54180a69-8d01-11ef-9c53-066c592c2315', + processInstance: { + id: '54180a69-8d01-11ef-9c53-066c592c2315', + name: '请假BPMN流程', + createTime: null, + processDefinitionId: + 'flowformBPMNtest1:2:1a6c8d48-8d01-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + } + ], + total: 2 +} + +export const copyPage = { + list: [], + total: 0 +} + +export const processInstance = { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + category: null, + categoryName: null, + status: 1, + startTime: 1729224510785, + endTime: null, + durationInMillis: null, + formVariables: { + Ftif1pan889lns: '请假休息', + Flky1pan884kk9: '3', + Fi8s1pan87niza: '2024-10-23', + 'Activity_74291af9-be17-42da-af10-2f90b1c11773_assignees': [1], + Fk4464nx7yf2d: '2024-10-22' + }, + businessKey: null, + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 103, + deptName: '研发部' + }, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + processDefinition: { + id: 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + version: 2, + name: '请假Simple流程', + key: 'flowformsimpletest1', + icon: '', + description: '', + category: 'http://www.omg.org/spec/BPMN/20100524/MODEL', + categoryName: null, + formType: 10, + formId: 27, + formName: null, + formConf: + '{"form":{"labelPosition":"right","size":"small","labelWidth":"125px","hideRequiredAsterisk":false,"showMessage":true,"inlineMessage":false},"submitBtn":{"show":true,"innerText":"提交"},"resetBtn":{"show":false,"innerText":"重置"}}', + formFields: [ + '{"type":"datePicker","field":"Fk4464nx7yf2d","title":"开始时间","info":"","$required":true,"_fc_drag_tag":"datePicker","hidden":false,"display":true}', + '{"type":"datePicker","field":"Fi8s1pan87niza","title":"结束时间","info":"","$required":true,"_fc_drag_tag":"datePicker","hidden":false,"display":true}', + '{"type":"select","field":"Flky1pan884kk9","title":"请假类型","info":"","effect":{"fetch":""},"$required":true,"props":{"filterable":false},"options":[{"label":"事假","value":1},{"label":"年假","value":2},{"label":"调休假","value":"3"}],"_fc_drag_tag":"select","hidden":false,"display":true}', + '{"type":"input","field":"Ftif1pan889lns","title":"请假事由","info":"","$required":true,"props":{"type":"textarea","showWordLimit":false},"_fc_drag_tag":"input","hidden":false,"display":true}' + ], + formCustomCreatePath: '', + formCustomViewPath: '', + suspensionState: 1, + deploymentTime: null, + startUserSelectTasks: null + }, + tasks: null +} + +export const tasksForInstance = [ + { + id: 'a29839c9-8d06-11ef-9c53-066c592c2315', + name: '间接领导审批', + createTime: 1729224510898, + endTime: null, + durationInMillis: null, + status: 1, + reason: null, + ownerUser: null, + assigneeUser: { + id: 1, + nickname: '张三丰', + avatar: '', + deptId: 103, + deptName: '研发部' + }, + taskDefinitionKey: 'Activity_74291af9-be17-42da-af10-2f90b1c11773', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 104, + deptName: '研发一部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: { + Ftif1pan889lns: '1', + Flky1pan884kk9: '1', + Fi8s1pan87niza: '1', + Fk4464nx7yf2d: '1' + }, + buttonsSetting: { + 1: { + displayName: '通过', + enable: true + }, + 2: { + displayName: '拒绝', + enable: true + }, + 3: { + displayName: '转办', + enable: true + }, + 4: { + displayName: '委派', + enable: true + }, + 5: { + displayName: '加签', + enable: true + }, + 6: { + displayName: '回退', + enable: true + } + } + }, + { + id: 'a286fba6-8d06-11ef-9c53-066c592c2315', + name: '发起人', + createTime: 1729224510785, + endTime: 1729224510845, + durationInMillis: 60, + status: 2, + reason: '审批人与提交人为同一人时,自动通过', + ownerUser: null, + assigneeUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 104, + deptName: '研发一部' + }, + taskDefinitionKey: 'StartUserNode', + processInstanceId: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + processInstance: { + id: 'a286fb9b-8d06-11ef-9c53-066c592c2315', + name: '请假Simple流程', + createTime: null, + processDefinitionId: + 'flowformsimpletest1:2:8e9abb8a-8d06-11ef-9c53-066c592c2315', + startUser: { + id: 4, + nickname: '李晓明', + avatar: '', + deptId: 104, + deptName: '研发一部' + } + }, + parentTaskId: null, + children: null, + formId: null, + formName: null, + formConf: null, + formFields: null, + formVariables: null, + fieldsPermission: null, + buttonsSetting: null + } +] diff --git a/src/pages/login/components/Copyright.vue b/src/pages/login/components/Copyright.vue index d9b9bd7..d97cda2 100644 --- a/src/pages/login/components/Copyright.vue +++ b/src/pages/login/components/Copyright.vue @@ -1,7 +1,11 @@