REVIEW OA 请假

This commit is contained in:
YunaiV 2023-04-09 18:49:54 +08:00
parent 47b5ce2f35
commit 7e3f6190a5
4 changed files with 13 additions and 13 deletions

View File

@ -25,6 +25,8 @@ declare module '@vue/runtime-core' {
Echart: typeof import('./../components/Echart/src/Echart.vue')['default']
Editor: typeof import('./../components/Editor/src/Editor.vue')['default']
ElAlert: typeof import('element-plus/es')['ElAlert']
ElAutoResizer: typeof import('element-plus/es')['ElAutoResizer']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElBadge: typeof import('element-plus/es')['ElBadge']
ElButton: typeof import('element-plus/es')['ElButton']
ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
@ -70,9 +72,11 @@ declare module '@vue/runtime-core' {
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
ElSpace: typeof import('element-plus/es')['ElSpace']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTableV2: typeof import('element-plus/es')['ElTableV2']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
ElTag: typeof import('element-plus/es')['ElTag']

View File

@ -1,5 +1,5 @@
<template>
<Dialog title="发起 OA 请假流程" v-model="modelVisible">
<Dialog title="发起 OA 请假流程" v-model="dialogVisible">
<el-form
ref="formRef"
:model="formData"
@ -41,7 +41,7 @@
</el-form>
<template #footer>
<el-button @click="submitForm" type="primary" :disabled="formLoading"> </el-button>
<el-button @click="modelVisible = false"> </el-button>
<el-button @click="dialogVisible = false"> </el-button>
</template>
</Dialog>
</template>
@ -50,7 +50,7 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import * as LeaveApi from '@/api/bpm/leave'
const message = useMessage() //
const modelVisible = ref(false) //
const dialogVisible = ref(false) //
const formLoading = ref(false) // 12
const formData = ref({
type: undefined,
@ -68,7 +68,7 @@ const formRef = ref() // 表单 Ref
/** 打开弹窗 */
const open = async () => {
modelVisible.value = true
dialogVisible.value = true
resetForm()
}
defineExpose({ open }) // open
@ -86,7 +86,7 @@ const submitForm = async () => {
const data = formData.value as unknown as LeaveApi.LeaveVO
await LeaveApi.createLeave(data)
message.success('新增成功')
modelVisible.value = false
dialogVisible.value = false
//
emit('success')
} finally {

View File

@ -174,10 +174,8 @@
</el-form-item>
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button @click="cancel"> </el-button>
<el-button type="primary" @click="handleSubmit"> </el-button>
</span>
<el-button @click="cancel"> </el-button>
<el-button type="primary" @click="handleSubmit"> </el-button>
</template>
</el-dialog>
</ContentWrap>

View File

@ -197,10 +197,8 @@
</el-row>
</el-form>
<template #footer>
<div class="dialog-footer">
<el-button @click="cancelVideo"> </el-button>
<el-button type="primary" @click="submitVideo"> </el-button>
</div>
<el-button @click="cancelVideo"> </el-button>
<el-button type="primary" @click="submitVideo"> </el-button>
</template>
</el-dialog>