sasp-flow-render 1.1.33 → 1.1.36-decoupling
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 +16 -0
- package/package.json +1 -1
- package/src/assets/js/api/apiFlow.js +2 -0
- package/src/components/flowInst/flowInstTab.vue +258 -2468
- package/src/components/flowInst/js/workflow.js +2405 -0
- package/src/components/flowInst/popup/flowDialog.vue +1089 -0
- package/src/components/flowInst/popup/renderForm.vue +19 -0
- package/src/views/popup/event/compoment/system/flowEditContentConfig.vue +2 -1
package/index.js
CHANGED
|
@@ -17,6 +17,9 @@ import axios from 'axios';
|
|
|
17
17
|
import qs from "qs";
|
|
18
18
|
import flowInstView from './src/views/flowInstView';
|
|
19
19
|
import {isAxiosFormData, SaspModuleUtil} from "sasp-base";
|
|
20
|
+
import flowDialog from "./src/components/flowInst/popup/flowDialog.vue";
|
|
21
|
+
import workflowEngine from "./src/components/flowInst/js/workflow.js";
|
|
22
|
+
|
|
20
23
|
/**
|
|
21
24
|
* 注册复合视图组件
|
|
22
25
|
* @param Vue
|
|
@@ -119,6 +122,18 @@ let initAxios = (Vue, props) => {
|
|
|
119
122
|
);
|
|
120
123
|
};
|
|
121
124
|
|
|
125
|
+
let loadFlowDialog = (Vue,opts) => {
|
|
126
|
+
// 创建 Dialog 实例并挂载到 body
|
|
127
|
+
const DialogConstructor = Vue.extend(flowDialog);
|
|
128
|
+
let router = opts.router;
|
|
129
|
+
const instance = new DialogConstructor({router}).$mount();
|
|
130
|
+
document.body.appendChild(instance.$el);
|
|
131
|
+
|
|
132
|
+
// 将实例挂载到 Vue 原型,方便全局调用
|
|
133
|
+
Vue.prototype.$flowDialog = instance;
|
|
134
|
+
Vue.prototype.WORK_FLOW_UTIL = workflowEngine.workflow;
|
|
135
|
+
}
|
|
136
|
+
|
|
122
137
|
const install = function (Vue, opts = {}) {
|
|
123
138
|
SaspModuleUtil.registerModuleName(Vue, "flow");
|
|
124
139
|
window.FLOW_RENDER_URL = opts.SERVICE_URL || window.JAVA_URL;
|
|
@@ -130,6 +145,7 @@ const install = function (Vue, opts = {}) {
|
|
|
130
145
|
|
|
131
146
|
initAxios(Vue, opts);
|
|
132
147
|
initViewData(Vue, opts);
|
|
148
|
+
loadFlowDialog(Vue,opts);
|
|
133
149
|
|
|
134
150
|
components.forEach(component => {
|
|
135
151
|
Vue.component(component.name, component);
|
package/package.json
CHANGED
|
@@ -165,6 +165,7 @@ let objResult = {
|
|
|
165
165
|
batchUpdateFlowStatus:"/plFlowInstController/batchUpdateFlowStatus", //新版流程批量处理的批量修改流程状态
|
|
166
166
|
batchExecuteNextStep:"/plFlowInstController/batchExecuteNextStep", //新版流程批量处理的批量执行下一步
|
|
167
167
|
recoverNode:"/plFlowInstController/recoverNode", //恢复指定节点
|
|
168
|
+
getFlowInstByFlowDataId:"/plFlowInstController/getFlowInstByFlowDataId", // 根据表单id及流程id获取流程实例
|
|
168
169
|
},
|
|
169
170
|
|
|
170
171
|
plFlowSetting:{
|
|
@@ -250,6 +251,7 @@ let objResult = {
|
|
|
250
251
|
saveDataFlowDrafts: "/flowEngine/saveDataFlowDrafts",
|
|
251
252
|
startFlow: "/flowEngine/startFlow",
|
|
252
253
|
completeTask: "/flowEngine/completeTask",
|
|
254
|
+
saveFlowDraft: "/flowEngine/saveFlowDraft",
|
|
253
255
|
}
|
|
254
256
|
};
|
|
255
257
|
|