|
@@ -361,6 +361,7 @@ export default {
|
|
|
applyBusiness: '/actBusiness/apply',
|
|
|
cancelApply: '/actBusiness/cancel',
|
|
|
outformViewUrl:"/actBusiness/external/getViewUrl",
|
|
|
+ applyOuterBusiness: '/actBusiness/external/apply',
|
|
|
},
|
|
|
// 查询条件
|
|
|
queryParam: {
|
|
@@ -546,6 +547,7 @@ export default {
|
|
|
this.form.id = v.id
|
|
|
this.form.procDefId = v.procDefId
|
|
|
this.form.title = v.title
|
|
|
+ this.form.routeName = v.routeName;
|
|
|
// 加载审批人
|
|
|
this.getAction(this.url.getFirstNode, { procDefId: v.procDefId }).then(res => {
|
|
|
if (res.success) {
|
|
@@ -595,7 +597,11 @@ export default {
|
|
|
this.submitLoading = true
|
|
|
var params = Object.assign({}, this.form)
|
|
|
params.assignees = params.assignees.join(',')
|
|
|
- this.postFormAction(this.url.applyBusiness, params)
|
|
|
+ var requestUrl = this.url.applyBusiness;
|
|
|
+ if (this.form.routeName != null && this.form.routeName.indexOf("外部表单")>-1){
|
|
|
+ requestUrl = this.url.applyOuterBusiness;
|
|
|
+ }
|
|
|
+ this.postFormAction(requestUrl, params)
|
|
|
.then(res => {
|
|
|
if (res.success) {
|
|
|
this.$message.success('操作成功')
|