|
@@ -17,7 +17,7 @@
|
17
|
17
|
</el-col>
|
18
|
18
|
</el-tab-pane> -->
|
19
|
19
|
<el-tab-pane label="表单信息" name="1">
|
20
|
|
- <scform @submit="submits"></scform>
|
|
20
|
+ <scform @submit="submitForm"></scform>
|
21
|
21
|
</el-tab-pane>
|
22
|
22
|
<!--流程图-->
|
23
|
23
|
<el-tab-pane label="流程图" name="2">
|
|
@@ -56,7 +56,7 @@ export default {
|
56
|
56
|
FlowUser,
|
57
|
57
|
FlowRole,
|
58
|
58
|
scform
|
59
|
|
-},
|
|
59
|
+ },
|
60
|
60
|
props: {},
|
61
|
61
|
data() {
|
62
|
62
|
return {
|
|
@@ -98,6 +98,8 @@ export default {
|
98
|
98
|
submits(form) {
|
99
|
99
|
getNextFlowNodeByStart({ deploymentId: this.deployId, variables: {} }).then(res => {
|
100
|
100
|
let data = res.data
|
|
101
|
+ debugger
|
|
102
|
+ console.log(form);
|
101
|
103
|
if (data.dataType === 'dynamic') {
|
102
|
104
|
if (data.type === 'assignee') { // 指定人员
|
103
|
105
|
this.checkSendUser = true;
|
|
@@ -229,16 +231,14 @@ export default {
|
229
|
231
|
this.$modal.msgError("请选择流程接收角色组!");
|
230
|
232
|
return;
|
231
|
233
|
}
|
232
|
|
- if (this.formData.aaa) {
|
|
234
|
+ if (this.formData.formData == undefined) {
|
233
|
235
|
definitionStart(this.procDefId, { approval: this.checkValues }).then(res => {
|
234
|
236
|
this.$modal.msgSuccess(res.msg);
|
235
|
237
|
this.goBack();
|
236
|
238
|
})
|
237
|
|
-
|
238
|
|
- }
|
239
|
|
- if (this.formData) {
|
|
239
|
+ }else if (this.formData) {
|
240
|
240
|
const variables = this.formData.valData;
|
241
|
|
- const formData = this.formData.formData;
|
|
241
|
+ let formData = this.formData.formData;
|
242
|
242
|
// 表单是否禁用
|
243
|
243
|
formData.disabled = true;
|
244
|
244
|
// 是否显示按钮
|