cloud-module-bpm 6.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +20 -0
  2. package/babel.config.js +3 -0
  3. package/dist/cloud-module-bpm.common.js +96842 -0
  4. package/dist/cloud-module-bpm.common.js.map +1 -0
  5. package/dist/cloud-module-bpm.css +1 -0
  6. package/dist/cloud-module-bpm.umd.js +96852 -0
  7. package/dist/cloud-module-bpm.umd.js.map +1 -0
  8. package/dist/cloud-module-bpm.umd.min.js +41 -0
  9. package/dist/cloud-module-bpm.umd.min.js.map +1 -0
  10. package/dist/demo.html +10 -0
  11. package/dist/fonts/element-icons.535877f5.woff +0 -0
  12. package/dist/fonts/element-icons.732389de.ttf +0 -0
  13. package/examples/App.vue +221 -0
  14. package/examples/main.js +17 -0
  15. package/node_modules.zip +0 -0
  16. package/package.json +66 -0
  17. package/packages/bpm-back-anylink-dialog/bpm-back-anylink-dialog.vue +428 -0
  18. package/packages/bpm-back-anylink-dialog/index.js +7 -0
  19. package/packages/bpm-back-anylink-dialog/readme.md +1 -0
  20. package/packages/bpm-form-tools/bpm-form-tools.vue +238 -0
  21. package/packages/bpm-form-tools/index.js +7 -0
  22. package/packages/bpm-form-tools/readme.md +5 -0
  23. package/packages/bpm-grid-buttons/bpm-grid-buttons.vue +150 -0
  24. package/packages/bpm-grid-buttons/index.js +7 -0
  25. package/packages/bpm-grid-buttons/readme.md +5 -0
  26. package/packages/bpm-grid-buttons-new/bpm-grid-buttons-new.vue +199 -0
  27. package/packages/bpm-grid-buttons-new/index.js +7 -0
  28. package/packages/bpm-grid-buttons-new/readme.md +8 -0
  29. package/packages/bpm-jump-dialog/bpm-jump-dialog.vue +378 -0
  30. package/packages/bpm-jump-dialog/index.js +7 -0
  31. package/packages/bpm-jump-dialog/readme.md +1 -0
  32. package/packages/bpm-jump-latest-dialog/Tree.vue +91 -0
  33. package/packages/bpm-jump-latest-dialog/bpm-jump-latest-dialog.vue +532 -0
  34. package/packages/bpm-jump-latest-dialog/index.js +7 -0
  35. package/packages/bpm-jump-latest-dialog/readme.md +1 -0
  36. package/packages/bpm-opinion-dialog/bpm-opinion.vue +312 -0
  37. package/packages/bpm-opinion-dialog/index.js +7 -0
  38. package/packages/bpm-proctrack-dialog/bpm-proctrack.vue +102 -0
  39. package/packages/bpm-proctrack-dialog/index.js +7 -0
  40. package/packages/bpm-send-read-dialog/SelectedGrid.vue +99 -0
  41. package/packages/bpm-send-read-dialog/SourceGrid.vue +396 -0
  42. package/packages/bpm-send-read-dialog/Tree.vue +74 -0
  43. package/packages/bpm-send-read-dialog/bpm-next-node.vue +51 -0
  44. package/packages/bpm-send-read-dialog/bpm-send-read.vue +100 -0
  45. package/packages/bpm-send-read-dialog/index.js +7 -0
  46. package/packages/bpm-send-read-opinion-dialog/bpm-send-read-opinion.vue +261 -0
  47. package/packages/bpm-send-read-opinion-dialog/index.js +7 -0
  48. package/packages/bpm-sign-dialog/SelectedGrid.vue +102 -0
  49. package/packages/bpm-sign-dialog/SourceGrid.vue +413 -0
  50. package/packages/bpm-sign-dialog/Tree.vue +194 -0
  51. package/packages/bpm-sign-dialog/bpm-next-node.vue +57 -0
  52. package/packages/bpm-sign-dialog/bpm-sign-select.vue +116 -0
  53. package/packages/bpm-sign-dialog/index.js +7 -0
  54. package/packages/bpm-sign-opinion-dialog/bpm-sign-opinion.vue +259 -0
  55. package/packages/bpm-sign-opinion-dialog/index.js +7 -0
  56. package/packages/bpm-user-select-dialog/SelectedGrid.vue +155 -0
  57. package/packages/bpm-user-select-dialog/SourceGrid.vue +419 -0
  58. package/packages/bpm-user-select-dialog/Tree.vue +96 -0
  59. package/packages/bpm-user-select-dialog/bpm-next-node.vue +51 -0
  60. package/packages/bpm-user-select-dialog/bpm-user-select.vue +103 -0
  61. package/packages/bpm-user-select-dialog/index.js +7 -0
  62. package/packages/i18n/i18n.js +15 -0
  63. package/packages/i18n/langs/en_US.js +42 -0
  64. package/packages/i18n/langs/index.js +6 -0
  65. package/packages/i18n/langs/zh_CN.js +87 -0
  66. package/packages/index.js +48 -0
  67. package/packages/utils/merit-bpm.js +975 -0
  68. package/public/favicon.ico +0 -0
  69. package/vue.config.js +55 -0
package/dist/demo.html ADDED
@@ -0,0 +1,10 @@
1
+ <meta charset="utf-8">
2
+ <title>cloud-module-bpm demo</title>
3
+ <script src="./cloud-module-bpm.umd.js"></script>
4
+
5
+ <link rel="stylesheet" href="./cloud-module-bpm.css">
6
+
7
+
8
+ <script>
9
+ console.log(cloud-module-bpm)
10
+ </script>
@@ -0,0 +1,221 @@
1
+ <template>
2
+ <div id="app">
3
+ <el-button type="text" @click="buttonClick">点击打开 Dialog</el-button>
4
+ <!-- <bpm-user-select
5
+ :dialogVisible="dialogVisible"
6
+ :ruleEngine="ruleEngine"
7
+ @dialog-close="dialogClose"
8
+ @dialog-save="dialogSave"
9
+ ></bpm-user-select> -->
10
+ <!-- <bpm-opinion :dialogVisible="dialogVisible" :ruleEngine="ruleEngine" @dialog-close="dialogClose" @dialog-save="dialogSave">
11
+ </bpm-opinion> -->
12
+ <!-- <bpm-proctrack dialogVisible="false" :ruleEngine="ruleEngine"></bpm-proctrack> -->
13
+ <bpm-form-tools :procDefKey="procDefKey" @init="init" @save="save"></bpm-form-tools>
14
+
15
+ <!-- <bpm-jump :dialogVisible="dialogVisible" :ruleEngine="ruleEngine" @dialog-close="dialogClose" @dialog-save="dialogSave"></bpm-jump> -->
16
+ <!-- <bpm-jump-latest :dialogVisible="dialogVisible" :ruleEngine="ruleEngine" @dialog-close="dialogClose" @dialog-save="dialogSave"> </bpm-jump-latest> -->
17
+ <!-- <bpm-back-anylink :dialogVisible="dialogVisible" :ruleEngine="ruleEngine" @dialog-close="dialogClose" @dialog-save="dialogSave"></bpm-back-anylink> -->
18
+ <!-- <bpm-send-read :dialogVisible="dialogVisible" :ruleEngine="ruleEngine" @dialog-close="dialogClose" @dialog-save="dialogSave"></bpm-send-read> -->
19
+
20
+ <!-- <bpm-sign-select :dialogVisible="dialogVisible" :ruleEngine="ruleEngine" @dialog-close="dialogClose" @dialog-save="dialogSave"></bpm-sign-select> -->
21
+
22
+ </div>
23
+ </template>
24
+ <script>
25
+ import axios from "cloud-module-base/packages/httpConfig/http";
26
+ export default {
27
+ name: "app",
28
+ data() {
29
+ return {
30
+ dialogVisible: false,
31
+ procDefKey: "Process_Demo1",
32
+ data: {},
33
+ ruleEngine: {}
34
+ };
35
+ },
36
+ methods: {
37
+ dialogClose() {
38
+ this.dialogVisible = false;
39
+ },
40
+ dialogSave(ruleEngine) {
41
+ this.dialogVisible = false;
42
+ },
43
+ queryBpm(bpmStatus) {
44
+ console.log("queryBpm:" + queryBpm);
45
+ },
46
+ deleteBpm() {
47
+ console.log("deleteBpm:");
48
+ },
49
+ init(params) {
50
+ // params.id='3f2882c972db71640172db838d8a0005';
51
+ console.log("init" + params);
52
+ let _this = this;
53
+ //初始化数据对象
54
+ axios.default
55
+ .post("/cloud-system-bpm-demo/api/bpm/example/get", {
56
+ id: params.id
57
+ })
58
+ .then(function(res) {
59
+ if (res) {
60
+ _this.data = res.data;
61
+ params.callback(res.data);
62
+ }
63
+ });
64
+ },
65
+ save(saveAfter) {
66
+ let _this = this;
67
+ axios.default
68
+ .post("/cloud-system-bpm-demo/api/bpm/example/update", _this.data)
69
+ .then(function(res) {
70
+ if (res) {
71
+ _this.data = res.data;
72
+ saveAfter(res.data);
73
+ }
74
+ });
75
+ },
76
+ buttonClick() {
77
+ this.ruleEngine = {
78
+ procInstId: "dcf5437d-32e6-11eb-9c93-00d861edd189",
79
+ runtime: {
80
+ businessId: "3f28824f7616ac3b01761849f78e000f",
81
+ procDefKey: "Process_Demo1",
82
+ procDefId: "Process_Demo1:15:c8f07205-32e6-11eb-9c93-00d861edd189",
83
+ procInstId: "dcf5437d-32e6-11eb-9c93-00d861edd189",
84
+ taskId: "21d275a8-a4c3-11ea-8536-00d861edd236",
85
+ taskDefKey: "Activity_034b2j9",
86
+ taskName: "提交审批",
87
+ selUserWin: "no",
88
+ bpmBtns: null,
89
+ mainForm: {
90
+ appModuleId: "Demo",
91
+ appModuleName: "测试流程",
92
+ appSystemId: "OA",
93
+ appSystemName: "OA系统",
94
+ businessId: "3f28824f7616ac3b01761849f78e000f",
95
+ createTime: 1595293841000,
96
+ procInstId: "dcf5437d-32e6-11eb-9c93-00d861edd189"
97
+ },
98
+ nextNodes: [
99
+ {
100
+ taskDeKey: "Task_1k4pgnf",
101
+ taskName: "act_020领导审批",
102
+ approve: { type: "anyApprove" },
103
+ bpmUsers: [
104
+ {
105
+ code: "wujx",
106
+ name: "wujx",
107
+ sex: null,
108
+ email: null,
109
+ telPhone: null,
110
+ deptCode: "bigdata",
111
+ deptName: null,
112
+ dLevel: 0,
113
+ hSort: 0,
114
+ mSort: 0,
115
+ lSort: 0,
116
+ isMainDept: 0,
117
+ workGroupId: null,
118
+ workGroupName: null,
119
+ roleId: null,
120
+ roleName: null
121
+ },
122
+ {
123
+ code: "tt1",
124
+ name: "测试2",
125
+ sex: null,
126
+ email: null,
127
+ telPhone: null,
128
+ deptCode: "zg",
129
+ deptName: null,
130
+ dLevel: 1,
131
+ hSort: 0,
132
+ mSort: 0,
133
+ lSort: 0,
134
+ isMainDept: 0,
135
+ workGroupId: null,
136
+ workGroupName: null,
137
+ roleId: null,
138
+ roleName: null
139
+ }
140
+ ]
141
+ }
142
+ ]
143
+ },
144
+ sendRead: {
145
+ isSendRead: {
146
+ type: "1"
147
+ },
148
+ actor: [
149
+ {
150
+ codes: null,
151
+ condition: null,
152
+ customControllerName: null,
153
+ customMethodsName: null,
154
+ duty: null,
155
+ dutyCode: null,
156
+ dutyName: null,
157
+ ids: "drafterCode",
158
+ level: null,
159
+ names: null,
160
+ type: "1"
161
+ },
162
+ {
163
+ codes: "test",
164
+ condition: null,
165
+ customControllerName: null,
166
+ customMethodsName: null,
167
+ duty: null,
168
+ dutyCode: null,
169
+ dutyName: null,
170
+ ids: "3f28824f753e5d910175400209ef000b",
171
+ level: null,
172
+ names: "test",
173
+ type: "2"
174
+ }
175
+ ]
176
+ },
177
+ formLink: {
178
+ sort: "1",
179
+ name: "act_010提交流程",
180
+ link: "/bpm/example/index.html#/form?id=businessId"
181
+ },
182
+ actors: [
183
+ {
184
+ type: "1",
185
+ ids: "drafterCode",
186
+ names: "起草人",
187
+ level: null,
188
+ duty: null,
189
+ dutyname: null,
190
+ condition: null
191
+ }
192
+ ],
193
+ approve: { type: "onlyApprove" },
194
+ route: {
195
+ type: "1",
196
+ name: null,
197
+ value: null,
198
+ returnName: null,
199
+ returnValue: null,
200
+ operName: "送审",
201
+ operImgPath: null
202
+ },
203
+ opinion: null,
204
+ seluserwin: {
205
+ display: "yes@@@@@【本环节需要选人】",
206
+ noseluser: "no@@@@@【本环节不需要自动选人】"
207
+ },
208
+ editStatus: null,
209
+ activity: { id: "Task_1m76ylv", name: "act_010提交流程" }
210
+ };
211
+ this.dialogVisible = true;
212
+ }
213
+ }
214
+ };
215
+ </script>
216
+
217
+ <style>
218
+ .cloud-bpm-grid-button {
219
+ margin-right: 10px;
220
+ }
221
+ </style>
@@ -0,0 +1,17 @@
1
+ import Vue from 'vue';
2
+ import App from './App.vue';
3
+ import MenuAuth from '../packages/index';
4
+ import i18n from '../packages/i18n/i18n';
5
+ import ElementUI from 'element-ui';
6
+ import 'element-ui/lib/theme-chalk/index.css';
7
+ import 'cloud-module-base/static/css/ui-index.css';
8
+ import 'cloud-module-base/static/theme/default/index.css';
9
+ import 'cloud-module-base/static/theme/default/tempo.css';
10
+ Vue.use(MenuAuth);
11
+ Vue.use(ElementUI);
12
+ Vue.use(i18n);
13
+ new Vue({
14
+ el: '#app',
15
+ i18n,
16
+ render: h => h(App)
17
+ });
Binary file
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "cloud-module-bpm",
3
+ "version": "6.2.6",
4
+ "description": " bpm base lib",
5
+ "main": "dist/cloud-module-bpm.umd.min.js",
6
+ "author": "wujx",
7
+ "private": false,
8
+ "license": "MIT",
9
+ "scripts": {
10
+ "serve": "vue-cli-service serve",
11
+ "build": "vue-cli-service build",
12
+ "lint": "vue-cli-service lint",
13
+ "package": "vue-cli-service build --target lib --name cloud-module-bpm packages/index.js"
14
+ },
15
+ "dependencies": {
16
+ "axios": "0.19.0",
17
+ "babel-loader": "^8.0.6",
18
+ "babel-polyfill": "^6.26.0",
19
+ "cloud-module-base": "6.12.2",
20
+ "core-js": "^3.4.4",
21
+ "css-loader": "^3.4.1",
22
+ "element-ui": "^2.15.7",
23
+ "less": "3.10.3",
24
+ "less-loader": "^5.0.0",
25
+ "moment": "^2.24.0",
26
+ "qs": "^6.9.1",
27
+ "vue": "^2.6.10",
28
+ "vue-axios": "^2.1.5",
29
+ "vue-i18n": "8.15.3",
30
+ "vue-router": "3.1.3",
31
+ "vuex": "3.1.2",
32
+ "webpack": "^4.41.5",
33
+ "webpack-chain": "^6.3.0"
34
+ },
35
+ "devDependencies": {
36
+ "@vue/cli-plugin-babel": "^4.1.0",
37
+ "@vue/cli-plugin-eslint": "^4.1.0",
38
+ "@vue/cli-service": "^4.1.0",
39
+ "babel-eslint": "^10.0.3",
40
+ "eslint": "^5.16.0",
41
+ "eslint-plugin-vue": "^5.0.0",
42
+ "vue-template-compiler": "^2.6.10"
43
+ },
44
+ "eslintConfig": {
45
+ "root": true,
46
+ "env": {
47
+ "node": true
48
+ },
49
+ "extends": [
50
+ "plugin:vue/essential",
51
+ "eslint:recommended"
52
+ ],
53
+ "rules": {
54
+ "no-console": "off",
55
+ "no-": "off",
56
+ "no-undef": "off"
57
+ },
58
+ "parserOptions": {
59
+ "parser": "babel-eslint"
60
+ }
61
+ },
62
+ "browserslist": [
63
+ "> 1%",
64
+ "last 2 versions"
65
+ ]
66
+ }