diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 2cd2910e14f8bdb2cde8c2092a1f06ced60aa03d..a7419e37827f20c94a15129b8d308bac6426f151 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 bd75c40b1b21e06e96c62304dd8f6869608a1815..90cb1843735391a02f35d402d28359de01d71802 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 576f4d6cbf6fd0eb2315e6884c37e0e7bdd1d569..0b92832cee25e4641656a005b365665b6d3eda12 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 51c19862a1867b6bfad93c189845fc4e231aaa6f..e7cda40b816ce060457bf8251e394e316f6415bb 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 0000000000000000000000000000000000000000..e6d12470a1566cb5ace3ec736a6f00e3d37aafee --- /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 5645a484f5417364a3776c6d57b798a28a542072..787b885efe8bca5d553c54d38c38b3a196172d29 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 0000000000000000000000000000000000000000..5554f9fc0c793a94f5c942da94708ce1c50b1191 --- /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 d9b9bd73e7401c5f0c7c8b02858224d02dfac93b..d97cda2233005fe1a0935435ca00cd064ca1ee37 100644 --- a/src/pages/login/components/Copyright.vue +++ b/src/pages/login/components/Copyright.vue @@ -1,7 +1,11 @@