File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/views/bpm/processInstance/create Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
<!-- 中间主要内容 tab 栏 -->
9
9
<el-tabs v-model =" activeTab" >
10
10
<!-- 表单信息 -->
11
- <el-tab-pane label =" 表单填写" name =" form" >
12
- <div class =" form-scroll-area" >
11
+ <el-tab-pane label =" 表单填写" name =" form" >
12
+ <div class =" form-scroll-area" v-loading = " processInstanceStartLoading " >
13
13
<el-scrollbar >
14
14
<el-row >
15
15
<el-col :span =" 17" >
@@ -90,7 +90,7 @@ const props = defineProps<{
90
90
selectProcessDefinition: any
91
91
}>()
92
92
const emit = defineEmits ([' cancel' ])
93
-
93
+ const processInstanceStartLoading = ref ( false ) // 流程实例发起中
94
94
const { push, currentRoute } = useRouter () // 路由
95
95
const message = useMessage () // 消息弹窗
96
96
const { delView } = useTagsViewStore () // 视图操作
@@ -193,7 +193,7 @@ const submitForm = async () => {
193
193
}
194
194
195
195
// 提交请求
196
- fApi .value . btn . loading ( true )
196
+ processInstanceStartLoading .value = true
197
197
try {
198
198
await ProcessInstanceApi .createProcessInstance ({
199
199
processDefinitionId: props .selectProcessDefinition .id ,
@@ -208,7 +208,7 @@ const submitForm = async () => {
208
208
name: ' BpmProcessInstanceMy'
209
209
})
210
210
} finally {
211
- fApi .value . btn . loading ( false )
211
+ processInstanceStartLoading .value = false
212
212
}
213
213
}
214
214
You can’t perform that action at this time.
0 commit comments