|
@@ -25,8 +25,8 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
import formItem from './components/form.vue'
|
|
import formItem from './components/form.vue'
|
|
-// import Snackbar from '@/plugins/snackbar'
|
|
|
|
import Curtain from '@/plugins/curtain'
|
|
import Curtain from '@/plugins/curtain'
|
|
|
|
+import { huntSubmit } from '@/api/headhunting'
|
|
import { useI18n } from '@/hooks/web/useI18n'; const { t } = useI18n()
|
|
import { useI18n } from '@/hooks/web/useI18n'; const { t } = useI18n()
|
|
defineOptions({ name: 'headhunting-index'})
|
|
defineOptions({ name: 'headhunting-index'})
|
|
|
|
|
|
@@ -37,15 +37,13 @@ const formRef = ref()
|
|
const handleSubmit = async () => {
|
|
const handleSubmit = async () => {
|
|
try {
|
|
try {
|
|
const obj = await formRef.value.getQuery()
|
|
const obj = await formRef.value.getQuery()
|
|
- console.log('1', obj)
|
|
|
|
- // if (!obj) return
|
|
|
|
- // await savePersonSimpleInfo(obj)
|
|
|
|
- // Snackbar.success(t('headhunting.submitSuccess'))
|
|
|
|
|
|
+ if (!obj) return
|
|
|
|
+ const params = JSON.parse(JSON.stringify(obj))
|
|
|
|
+ await huntSubmit(params)
|
|
|
|
+ showDialog.value = false
|
|
Curtain('message', { message: t('headhunting.submitSuccess') })
|
|
Curtain('message', { message: t('headhunting.submitSuccess') })
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.error('error', error)
|
|
console.error('error', error)
|
|
- } finally {
|
|
|
|
- showDialog.value = false
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|