|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<!-- 加签审批弹窗 -->
|
|
|
- <el-dialog v-model="reviewVisibleDialog" class="le-dialog" title="审批加签" width="700" destroy-on-close>
|
|
|
+ <el-dialog v-model="reviewVisibleDialog" class="le-dialog" title="审批加签" width="700" destroy-on-close :close-on-click-modal="false">
|
|
|
<el-form ref="formRef" v-loading="uploadLoading" label-position="top" element-loading-text="图片上传中..." :model="form" label-width="80px">
|
|
|
<el-form-item label="加签方式" prop="type">
|
|
|
<el-radio-group v-model="form.type">
|
|
@@ -41,8 +41,8 @@
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
|
- <el-button :loading="btnDisabled" @click="closeDialog">取 消</el-button>
|
|
|
- <el-button type="primary" :loading="btnDisabled" :disabled="uploadLoading" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button :loading="btnDisabled" class="dialog-btn" @click="closeDialog">取 消</el-button>
|
|
|
+ <el-button type="primary" :loading="btnDisabled" class="dialog-btn" @click="submitForm">确 定</el-button>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
@@ -53,8 +53,8 @@ import { computed, onMounted, reactive, ref } from 'vue'
|
|
|
import FileUpload from '@/components/FileUpload.vue'
|
|
|
import { QuestionFilled } from '@element-plus/icons-vue'
|
|
|
import user from '@/api/system/user'
|
|
|
-import { processAppendNodeApi } from '@/api/flow/processTask'
|
|
|
-import {ElMessage} from "element-plus";
|
|
|
+import { processAppendNodeApi, processTaskJumpApi } from '@/api/flow/processTask'
|
|
|
+import { ElMessage } from 'element-plus'
|
|
|
|
|
|
const props = defineProps({
|
|
|
modelValue: {
|
|
@@ -110,7 +110,14 @@ const submitForm = () => {
|
|
|
formData.username = item.label
|
|
|
}
|
|
|
})
|
|
|
- await processAppendNodeApi(formData)
|
|
|
+ const data = await processAppendNodeApi(formData)
|
|
|
+ if (!data) {
|
|
|
+ ElMessage({
|
|
|
+ message: '执行失败',
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
$myEmit('successCb')
|
|
|
closeDialog()
|
|
|
btnDisabled.value = false
|
|
@@ -141,7 +148,7 @@ const reviewVisibleDialog = computed({
|
|
|
const clearValidate = () => {}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
+<style scoped lang="scss">
|
|
|
.example-img-box {
|
|
|
width: 100% !important;
|
|
|
}
|
|
@@ -149,4 +156,22 @@ const clearValidate = () => {}
|
|
|
.example-img-box .el-form-item__content {
|
|
|
display: block;
|
|
|
}
|
|
|
+
|
|
|
+.dialog-footer {
|
|
|
+ .dialog-btn {
|
|
|
+ animation: throttle 2s step-end forwards;
|
|
|
+ }
|
|
|
+ .dialog-btn:active {
|
|
|
+ animation: none;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes throttle {
|
|
|
+ from {
|
|
|
+ pointer-events: none;
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ pointer-events: all;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|