招聘网页
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <a-form :model="createForm" :label-col="{span: 4}" labelAlign="right">
  3. <a-row gutter="20">
  4. <a-col span="12">
  5. <a-row>
  6. <a-col span="24">
  7. <a-form-item required label="邮箱" name="email">
  8. <a-input v-model:value="createForm.email" placeholder="请输入邮箱" />
  9. </a-form-item>
  10. </a-col>
  11. <a-col span="24">
  12. <a-form-item label="保存">
  13. <a-button type="primary" block @click="saveForm">保存</a-button>
  14. </a-form-item>
  15. </a-col>
  16. </a-row>
  17. </a-col>
  18. </a-row>
  19. </a-form>
  20. </template>
  21. <script setup lang="ts">
  22. import { ref, onMounted, computed } from 'vue';
  23. import { PostCompanyEmailEdit } from '@/apis/models';
  24. import { warnToast, successToast } from '@/utils/toastHelper';
  25. let createForm : companyListType.addrFormType = ref({
  26. email: ''
  27. })
  28. const saveForm = () => {
  29. PostCompanyEmailEdit(createForm.value).then(res => {
  30. successToast('修改成功')
  31. resetForm()
  32. })
  33. }
  34. const resetForm = () => {
  35. createForm.value = {
  36. email: ''
  37. }
  38. }
  39. </script>
  40. <style scoped lang="less">
  41. </style>