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