文件名称:
Vue结合JFinal调用activiti工作流
开发工具:
文件大小: 436kb
下载次数: 0
上传时间: 2020-06-19
详细说明:作为没用过工作流的一员,之前看过vue引入activiti工作流的案例,但是组件中存在很多问题,这个是我修改过并且成功调用,大家可以供参考,富含Java代码(Jfinal),后续出spring版本的, 前台版本vue4.0版本,
抱歉在Modeler.vue中saveXML方法有bug改正后版本
saveXML(){
const that = this;
that.bpmnModeler.saveXML({format:true},function(err,xml){
if(err){
console.error('流程数据生成失败');
console.log(err);
return;
}
const modelId = '123';
that.bpmnModeler.saveSVG(function(err, svg) {
if(err){
console.error('流程数据生成失败!');
return;
}
let modelId = that.vals.row.id;
// alert(modelId)
if(modelId){
modelId = that.vals.row.id;
}else{
modelId = that.params.row.id;
}
request({
url: config.SERVER_URL +`/activiti/saveModelXml`,
method: 'post',
data: {
modelId: modelId,
bpmn_xml: xml,
svg_xml: svg
}
})
.then(function (response) {
console.log('this is rews : ',response);
})
.catch(function (error) {
console.log(error);
});
})
});
},
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.