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.
- package/index.js +108 -0
- package/package.json +21 -0
- package/router.js +13 -0
- package/src/assets/font/iconfont.css +1158 -0
- package/src/assets/font/iconfont.eot +0 -0
- package/src/assets/font/iconfont.js +1 -0
- package/src/assets/font/iconfont.svg +827 -0
- package/src/assets/font/iconfont.ttf +0 -0
- package/src/assets/font/iconfont.woff +0 -0
- package/src/assets/images/card_zwsj.png +0 -0
- package/src/assets/images/dataStore.png +0 -0
- package/src/assets/images/dataStore_icon.png +0 -0
- package/src/assets/images/draft.png +0 -0
- package/src/assets/images/edit_icon.png +0 -0
- package/src/assets/images/end.png +0 -0
- package/src/assets/images/end_icon.png +0 -0
- package/src/assets/images/gateway.png +0 -0
- package/src/assets/images/gateway_icon.png +0 -0
- package/src/assets/images/globalConnect_icon.png +0 -0
- package/src/assets/images/group_icon.png +0 -0
- package/src/assets/images/hander_icon.png +0 -0
- package/src/assets/images/icon_ quality.png +0 -0
- package/src/assets/images/lasso_icon.png +0 -0
- package/src/assets/images/mobile_preview.png +0 -0
- package/src/assets/images/participant_icon.png +0 -0
- package/src/assets/images/publicProcess_icon.png +0 -0
- package/src/assets/images/remind_example.png +0 -0
- package/src/assets/images/space_icon.png +0 -0
- package/src/assets/images/start.png +0 -0
- package/src/assets/images/start_icon.png +0 -0
- package/src/assets/images/subprocess_icon.png +0 -0
- package/src/assets/images/tab_set_example.png +0 -0
- package/src/assets/images/timer.png +0 -0
- package/src/assets/images/timer_icon.png +0 -0
- package/src/assets/images/userTask_icon.png +0 -0
- package/src/assets/images/user_task.png +0 -0
- package/src/assets/js/api/apiFlow.js +219 -0
- package/src/assets/js/flowInstall.js +25 -0
- package/src/assets/js/global/cacheGlobal.js +110 -0
- package/src/assets/js/global/flowGlobal.js +61 -0
- package/src/assets/js/global/flowUserGlobal.js +35 -0
- package/src/assets/js/global/interfaceCache.js +31 -0
- package/src/assets/js/storageIO.js +106 -0
- package/src/components/flowChart.vue +463 -0
- package/src/components/flowInst/css/flowInstList.scss +193 -0
- package/src/components/flowInst/flowInstList.vue +818 -0
- package/src/components/flowInst/flowInstTab.vue +2858 -0
- package/src/components/flowInst/popup/flowInstForm.vue +54 -0
- package/src/components/flowRoamRecords.vue +768 -0
- package/src/components/messageMould/messageMould.vue +547 -0
- package/src/components/roamRecord.vue +567 -0
- package/src/components/userSelect.vue +537 -0
- package/src/views/flowInstView.vue +178 -0
- package/src/views/menuRouter/flowMenuRouter.vue +260 -0
- package/src/views/menuRouter/flowResRouter.vue +223 -0
- package/src/views/popup/css/flowMain.scss +156 -0
- package/src/views/popup/event/compoment/diy/info.txt +1 -0
- package/src/views/popup/event/compoment/eventParentConfig.vue +45 -0
- package/src/views/popup/event/js/loadFlowEventPlugin.js +279 -0
- package/src/views/popup/js/controls/CustomContextPad.js +310 -0
- package/src/views/popup/js/controls/CustomPalette.js +303 -0
- package/src/views/popup/js/controls/CustomRenderer.js +219 -0
- package/src/views/popup/js/controls/index.js +11 -0
- package/src/views/popup/js/customModeler/CustomModeler.js +22 -0
- package/src/views/popup/js/translations/customTranslate.js +14 -0
- package/src/views/popup/js/translations/translations.js +234 -0
- package/src/views/popup/js/utils/utils.js +53 -0
- 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
|
+
};
|