File tree 2 files changed +29
-2
lines changed
2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <el-form ref =" formRef" :model =" modelData" label-width =" 120px" class =" mt-20px" >
3
+ <el-form-item class =" mb-20px" >
4
+ <template #label >
5
+ <el-text size =" large" tag =" b" >提交人权限</el-text >
6
+ </template >
7
+ <el-checkbox v-model =" modelData.allowCancelRunningProcess" label =" 允许撤销审批中的申请" />
8
+ <div class =" ml-22px" >
9
+ <el-text type =" info" >
10
+ 第一个审批节点通过后,提交人仍可撤销申请(配置前已发起的申请不生效)
11
+ </el-text >
12
+ </div >
13
+ </el-form-item >
14
+ </el-form >
15
+ </template >
16
+
17
+ <script setup lang="ts">
18
+ const modelData = defineModel <any >()
19
+ </script >
Original file line number Diff line number Diff line change 68
68
69
69
<!-- 第三步:流程设计 -->
70
70
<ProcessDesign v-if =" currentStep === 2" v-model =" formData" ref =" processDesignRef" />
71
+
72
+ <!-- 第四步:更多设置 -->
73
+ <div v-if =" currentStep === 3" class =" mx-auto w-700px" >
74
+ <ExtraSettings v-model =" formData" ref =" extraSettingsRef" />
75
+ </div >
71
76
</div >
72
77
</div >
73
78
</ContentWrap >
@@ -86,6 +91,7 @@ import BasicInfo from './BasicInfo.vue'
86
91
import FormDesign from ' ./FormDesign.vue'
87
92
import ProcessDesign from ' ./ProcessDesign.vue'
88
93
import { useTagsViewStore } from ' @/store/modules/tagsView'
94
+ import ExtraSettings from ' ./ExtraSettings.vue'
89
95
90
96
const router = useRouter ()
91
97
const { delView } = useTagsViewStore () // 视图操作
@@ -118,7 +124,8 @@ const currentStep = ref(-1) // 步骤控制。-1 用于,一开始全部不展
118
124
const steps = [
119
125
{ title: ' 基本信息' , validator: validateBasic },
120
126
{ title: ' 表单设计' , validator: validateForm },
121
- { title: ' 流程设计' , validator: validateProcess }
127
+ { title: ' 流程设计' , validator: validateProcess },
128
+ { title: ' 更多设置' , validator: null }
122
129
]
123
130
124
131
// 表单数据
@@ -137,7 +144,8 @@ const formData: any = ref({
137
144
visible: true ,
138
145
startUserType: undefined ,
139
146
startUserIds: [],
140
- managerUserIds: []
147
+ managerUserIds: [],
148
+ allowCancelRunningProcess: true
141
149
})
142
150
143
151
// 流程数据
You can’t perform that action at this time.
0 commit comments