sasp-flow-render 1.1.31-decoupling → 1.1.33
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 +0 -16
- package/package.json +1 -1
- package/src/assets/js/api/apiFlow.js +0 -2
- package/src/components/flowInst/flowInstTab.vue +2471 -261
- package/src/views/popup/event/compoment/system/flowEditContentConfig.vue +1 -2
- package/src/views/popup/event/js/loadFlowEventPlugin.js +14 -15
- package/src/components/flowInst/js/workflow.js +0 -2396
- package/src/components/flowInst/popup/flowDialog.vue +0 -1085
- package/src/components/flowInst/popup/renderForm.vue +0 -19
|
@@ -167,23 +167,22 @@ let eventObj = {}; //事件对象
|
|
|
167
167
|
export default {
|
|
168
168
|
name: "loadEventPlugin",
|
|
169
169
|
installAll(Vue,opts){
|
|
170
|
+
let eventPlugin = Vue.prototype.EVENT_PLUGIN || {};
|
|
171
|
+
Object.keys(diyEventObjs).forEach(key =>{
|
|
172
|
+
//加载列格式化
|
|
173
|
+
diyEventObjs[key].forEach(item =>{
|
|
174
|
+
eventPlugin.preActiveEventRule(item);
|
|
175
|
+
})
|
|
176
|
+
});
|
|
177
|
+
//加载系统事件规则
|
|
178
|
+
Object.keys(sysEventObjs).forEach(key =>{
|
|
179
|
+
//加载列格式化
|
|
180
|
+
sysEventObjs[key].forEach(item =>{
|
|
181
|
+
eventPlugin.installEventRule(item);
|
|
182
|
+
})
|
|
183
|
+
});
|
|
170
184
|
opts.saspFlowAxios.post(apiFlow.apis.eventRule.findByVersion,{"eventTypes":"flow"}).then(res =>{ //查询流程相关事件规则
|
|
171
|
-
let eventPlugin = Vue.prototype.EVENT_PLUGIN || {};
|
|
172
185
|
if(res){
|
|
173
|
-
Object.keys(diyEventObjs).forEach(key =>{
|
|
174
|
-
//加载列格式化
|
|
175
|
-
diyEventObjs[key].forEach(item =>{
|
|
176
|
-
eventPlugin.preActiveEventRule(item);
|
|
177
|
-
})
|
|
178
|
-
});
|
|
179
|
-
//加载系统事件规则
|
|
180
|
-
Object.keys(sysEventObjs).forEach(key =>{
|
|
181
|
-
//加载列格式化
|
|
182
|
-
sysEventObjs[key].forEach(item =>{
|
|
183
|
-
eventPlugin.installEventRule(item);
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
|
|
187
186
|
if(!Array.isArray(res.data)){
|
|
188
187
|
res.data = [];
|
|
189
188
|
}
|