sasp-flow-render 1.0.1

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 (68) hide show
  1. package/index.js +108 -0
  2. package/package.json +21 -0
  3. package/router.js +13 -0
  4. package/src/assets/font/iconfont.css +1158 -0
  5. package/src/assets/font/iconfont.eot +0 -0
  6. package/src/assets/font/iconfont.js +1 -0
  7. package/src/assets/font/iconfont.svg +827 -0
  8. package/src/assets/font/iconfont.ttf +0 -0
  9. package/src/assets/font/iconfont.woff +0 -0
  10. package/src/assets/images/card_zwsj.png +0 -0
  11. package/src/assets/images/dataStore.png +0 -0
  12. package/src/assets/images/dataStore_icon.png +0 -0
  13. package/src/assets/images/draft.png +0 -0
  14. package/src/assets/images/edit_icon.png +0 -0
  15. package/src/assets/images/end.png +0 -0
  16. package/src/assets/images/end_icon.png +0 -0
  17. package/src/assets/images/gateway.png +0 -0
  18. package/src/assets/images/gateway_icon.png +0 -0
  19. package/src/assets/images/globalConnect_icon.png +0 -0
  20. package/src/assets/images/group_icon.png +0 -0
  21. package/src/assets/images/hander_icon.png +0 -0
  22. package/src/assets/images/icon_ quality.png +0 -0
  23. package/src/assets/images/lasso_icon.png +0 -0
  24. package/src/assets/images/mobile_preview.png +0 -0
  25. package/src/assets/images/participant_icon.png +0 -0
  26. package/src/assets/images/publicProcess_icon.png +0 -0
  27. package/src/assets/images/remind_example.png +0 -0
  28. package/src/assets/images/space_icon.png +0 -0
  29. package/src/assets/images/start.png +0 -0
  30. package/src/assets/images/start_icon.png +0 -0
  31. package/src/assets/images/subprocess_icon.png +0 -0
  32. package/src/assets/images/tab_set_example.png +0 -0
  33. package/src/assets/images/timer.png +0 -0
  34. package/src/assets/images/timer_icon.png +0 -0
  35. package/src/assets/images/userTask_icon.png +0 -0
  36. package/src/assets/images/user_task.png +0 -0
  37. package/src/assets/js/api/apiFlow.js +219 -0
  38. package/src/assets/js/flowInstall.js +25 -0
  39. package/src/assets/js/global/cacheGlobal.js +110 -0
  40. package/src/assets/js/global/flowGlobal.js +61 -0
  41. package/src/assets/js/global/flowUserGlobal.js +35 -0
  42. package/src/assets/js/global/interfaceCache.js +31 -0
  43. package/src/assets/js/storageIO.js +106 -0
  44. package/src/components/flowChart.vue +463 -0
  45. package/src/components/flowInst/css/flowInstList.scss +193 -0
  46. package/src/components/flowInst/flowInstList.vue +818 -0
  47. package/src/components/flowInst/flowInstTab.vue +2858 -0
  48. package/src/components/flowInst/popup/flowInstForm.vue +54 -0
  49. package/src/components/flowRoamRecords.vue +768 -0
  50. package/src/components/messageMould/messageMould.vue +547 -0
  51. package/src/components/roamRecord.vue +567 -0
  52. package/src/components/userSelect.vue +537 -0
  53. package/src/views/flowInstView.vue +178 -0
  54. package/src/views/menuRouter/flowMenuRouter.vue +260 -0
  55. package/src/views/menuRouter/flowResRouter.vue +223 -0
  56. package/src/views/popup/css/flowMain.scss +156 -0
  57. package/src/views/popup/event/compoment/diy/info.txt +1 -0
  58. package/src/views/popup/event/compoment/eventParentConfig.vue +45 -0
  59. package/src/views/popup/event/js/loadFlowEventPlugin.js +279 -0
  60. package/src/views/popup/js/controls/CustomContextPad.js +310 -0
  61. package/src/views/popup/js/controls/CustomPalette.js +303 -0
  62. package/src/views/popup/js/controls/CustomRenderer.js +219 -0
  63. package/src/views/popup/js/controls/index.js +11 -0
  64. package/src/views/popup/js/customModeler/CustomModeler.js +22 -0
  65. package/src/views/popup/js/translations/customTranslate.js +14 -0
  66. package/src/views/popup/js/translations/translations.js +234 -0
  67. package/src/views/popup/js/utils/utils.js +53 -0
  68. package/src/views/test.vue +79 -0
package/index.js ADDED
@@ -0,0 +1,108 @@
1
+ import flowInstTab from "./src/components/flowInst/flowInstTab";
2
+ import flowRenderRouter from "./router";
3
+ import flowInstall from "./src/assets/js/flowInstall";
4
+ import loadFlowEventPlugin from "./src/views/popup/event/js/loadFlowEventPlugin"; //加载流程事件规则
5
+ import userSelect from "./src/components/userSelect";
6
+ import cacheGlobal from "./src/assets/js/global/cacheGlobal";
7
+ import flowRoamRecords from "./src/components/flowRoamRecords";
8
+ import roamRecord from "./src/components/roamRecord";
9
+ import flowChart from "./src/components/flowChart";
10
+ import CustomPalette from './src/views/popup/js/controls/CustomPalette';
11
+ import CustomContextPad from './src/views/popup/js/controls/CustomContextPad';
12
+ import CustomRenderer from './src/views/popup/js/controls/CustomRenderer';
13
+ import translations from './src/views/popup/js/translations/translations';
14
+ import apiFlow from './src/assets/js/api/apiFlow';
15
+ import flowGlobal from './src/assets/js/global/flowGlobal';
16
+ import {isAxiosFormData, SaspModuleUtil} from "sasp-base";
17
+ /**
18
+ * 注册复合视图组件
19
+ * @param Vue
20
+ * @param opts
21
+ */
22
+ let initViewData = (Vue, opts) => {
23
+ if (!Vue.prototype.VIEW_COMPONENTS) {
24
+ Vue.prototype.VIEW_COMPONENTS = {};
25
+ }
26
+
27
+ Vue.prototype.VIEW_COMPONENTS.flow = {
28
+ complex: flowInstTab,
29
+ menu:"flowMenuRouter",
30
+ res:flowResRouter
31
+ };
32
+ };
33
+
34
+ import flowMenuRouter from "./src/views/menuRouter/flowMenuRouter";
35
+ import flowResRouter from "./src/views/menuRouter/flowResRouter.vue";
36
+
37
+ let components = [
38
+ flowInstTab,
39
+ flowMenuRouter,
40
+ userSelect
41
+ ];
42
+
43
+ /**
44
+ * 初始化axios设置
45
+ * @param Vue
46
+ * @param props
47
+ */
48
+ let initAxios = (Vue, props) => {
49
+ let axios = (props || {}).axios;
50
+ if (!axios) {
51
+ return;
52
+ }
53
+
54
+ // 添加请求拦截器
55
+ axios.interceptors.request.use(function (config) {
56
+ if ((config.headers["Content-Type"] != 'multipart/form-data') && isAxiosFormData((config.url))) {
57
+ config = Object.assign({}, config);
58
+ config.headers = Object.assign({}, config.headers || {}, {
59
+ "Is-Sasp-Qs": true,
60
+ "Content-Type": "application/x-www-form-urlencoded"
61
+ });
62
+ }
63
+ //传递的参数都进行加密
64
+ if (config.data) {
65
+ let data = config.data;
66
+ let result = Object.assign({},data);
67
+ let user = cacheGlobal.getLoginUser();
68
+ if(user){
69
+ result["loginUserJson"] = JSON.stringify(user);
70
+ }
71
+ config.data = result;
72
+ }
73
+ return config;
74
+ });
75
+ };
76
+
77
+ const install = function (Vue, opts = {}) {
78
+ SaspModuleUtil.registerModuleName(Vue, "flow");
79
+
80
+ Vue.use(flowInstall, opts);
81
+
82
+ initAxios(Vue, opts);
83
+ initViewData(Vue, opts);
84
+
85
+ components.forEach(component => {
86
+ Vue.component(component.name, component);
87
+ });
88
+ loadFlowEventPlugin.installAll();
89
+ };
90
+
91
+ export default {
92
+ install
93
+ }
94
+
95
+ export {
96
+ flowRenderRouter,
97
+ flowMenuRouter,
98
+ flowInstTab,
99
+ flowRoamRecords,
100
+ roamRecord,
101
+ flowChart,
102
+ CustomPalette,
103
+ CustomContextPad,
104
+ CustomRenderer,
105
+ translations,
106
+ apiFlow,
107
+ flowGlobal
108
+ }
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "sasp-flow-render",
3
+ "version": "1.0.1",
4
+ "description": "业务应用支撑平台-智慧流程渲染组件",
5
+ "scripts": {
6
+ "build": "vue-cli-service build"
7
+ },
8
+ "dependencies": {
9
+ "bpmn-js": "^7.3.0",
10
+ "bpmn-js-cli": "^2.0.0",
11
+ "bpmn-js-properties-panel": "^0.33.2",
12
+ "camunda-bpmn-moddle": "^4.4.0",
13
+ "diagram-js": "^6.6.1",
14
+ "diagram-js-minimap": "^2.0.3"
15
+ },
16
+ "browserslist": [
17
+ "> 1%",
18
+ "last 2 versions",
19
+ "not ie <= 8"
20
+ ]
21
+ }
package/router.js ADDED
@@ -0,0 +1,13 @@
1
+ export default {
2
+ menus: [
3
+ {path: 'flowInstTab', component: () => import("./src/components/flowInst/flowInstTab.vue")},
4
+ {path: 'messageMould', component: () => import("./src/components/messageMould/messageMould.vue")},
5
+ {path: 'flowInstTab', component: () => import("./src/components/flowInst/flowInstTab.vue")},
6
+ {path: 'flowMenuRouter/:resourceId', component: () => import("./src/views/menuRouter/flowMenuRouter.vue")},
7
+ ],
8
+ pages: [
9
+ // {path: '/flowMenuRouter/:resourceId', component: () => import("./src/views/menuRouter/flowMenuRouter.vue")},
10
+ {path: '/flowInstView', component: () => import("./src/views/flowInstView.vue")},
11
+ {path: '/test', component: () => import("./src/views/test.vue")},
12
+ ]
13
+ };