|
|
|
@ -1,19 +1,25 @@ |
|
|
|
|
<template> |
|
|
|
|
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭"> |
|
|
|
|
<AwardPersionForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></AwardPersionForm> |
|
|
|
|
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" |
|
|
|
|
:okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭"> |
|
|
|
|
<AwardPersionForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"> |
|
|
|
|
</AwardPersionForm> |
|
|
|
|
</a-modal> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import { ref, nextTick, defineExpose } from 'vue'; |
|
|
|
|
import { ref, nextTick, defineExpose, watch } from 'vue'; |
|
|
|
|
import AwardPersionForm from './AwardPersionForm.vue' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const title = ref<string>(''); |
|
|
|
|
const width = ref<number>(800); |
|
|
|
|
const visible = ref<boolean>(false); |
|
|
|
|
const disableSubmit = ref<boolean>(false); |
|
|
|
|
const registerForm = ref(); |
|
|
|
|
const emit = defineEmits(['register', 'success']); |
|
|
|
|
watch(() => visible.value, newVal => { |
|
|
|
|
if (!newVal) registerForm.value.setIsT(false); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 新增 |
|
|
|
@ -23,7 +29,6 @@ |
|
|
|
|
visible.value = true; |
|
|
|
|
nextTick(() => { |
|
|
|
|
registerForm.value.add(); |
|
|
|
|
registerForm.value.setIsT(false); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|