sasp-flow-render 1.1.23 → 1.1.25-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 +15 -0
- package/package.json +1 -1
- package/src/assets/js/api/apiFlow.js +1 -0
- package/src/components/flowInst/flowInstTab.vue +255 -2466
- package/src/components/flowInst/js/workflow.js +2269 -0
- package/src/components/flowInst/popup/flowDialog.vue +1088 -0
- package/src/components/flowInst/popup/renderForm.vue +19 -0
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,17 @@ 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
|
+
const instance = new DialogConstructor().$mount();
|
|
129
|
+
document.body.appendChild(instance.$el);
|
|
130
|
+
|
|
131
|
+
// 将实例挂载到 Vue 原型,方便全局调用
|
|
132
|
+
Vue.prototype.$flowDialog = instance;
|
|
133
|
+
Vue.prototype.WORK_FLOW_UTIL = workflowEngine.workflow;
|
|
134
|
+
}
|
|
135
|
+
|
|
122
136
|
const install = function (Vue, opts = {}) {
|
|
123
137
|
SaspModuleUtil.registerModuleName(Vue, "flow");
|
|
124
138
|
window.FLOW_RENDER_URL = opts.SERVICE_URL || window.JAVA_URL;
|
|
@@ -130,6 +144,7 @@ const install = function (Vue, opts = {}) {
|
|
|
130
144
|
|
|
131
145
|
initAxios(Vue, opts);
|
|
132
146
|
initViewData(Vue, opts);
|
|
147
|
+
loadFlowDialog(Vue,opts);
|
|
133
148
|
|
|
134
149
|
components.forEach(component => {
|
|
135
150
|
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:{
|