|
@@ -423,7 +423,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-if="column.key === 'educationOperation'">
|
|
|
- <a-button type="link" size="small" @click="deleteEducation(index)">删除</a-button>
|
|
|
+ <a-button type="link" size="small" @click="delEducation(index)">删除</a-button>
|
|
|
</template>
|
|
|
</template>
|
|
|
</a-table>
|
|
@@ -504,11 +504,11 @@
|
|
|
|
|
|
<script lang="ts">
|
|
|
import {defineComponent, reactive, ref, toRefs} from 'vue';
|
|
|
-// import {useRouter} from 'vue-router';
|
|
|
import type {SelectProps, TableColumnsType} from 'ant-design-vue';
|
|
|
import {useTabsViewStore} from '@/store/modules/tabsView';
|
|
|
import BUploadFile from '@/components/file/uploadFile.vue';
|
|
|
import {get} from "@/api/common";
|
|
|
+import { getSysDictionaryList } from '@/api/system/dictionary';
|
|
|
import {save, getEducationList, getDataById, getExperienceList} from '@/api/jobUserManager/jobuser'
|
|
|
|
|
|
interface FormState {
|
|
@@ -539,73 +539,8 @@ export default defineComponent(
|
|
|
const regionList = ref<SelectProps['options']>();
|
|
|
const streetList = ref<SelectProps['options']>();
|
|
|
const familyNatureList = ref<SelectProps['options']>();
|
|
|
- // const fullpath = router.currentRoute.value.fullPath;
|
|
|
- const tabsViewStore = useTabsViewStore();
|
|
|
- const isEdit = true;
|
|
|
-
|
|
|
- const fileList = ref();
|
|
|
- const setFileList = (files) => {
|
|
|
- fileList.value = files;
|
|
|
- };
|
|
|
-
|
|
|
- get('/companyService/company/getSiteList', {}).then(data => {
|
|
|
- siteList.value = data;
|
|
|
- })
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'Gender'}).then(data => {
|
|
|
- genderList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'KeyPersonType'}).then(data => {
|
|
|
- keyPersonTypeList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'JobStatus'}).then(data => {
|
|
|
- jobStatusList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'MaritalStatus'}).then(data => {
|
|
|
- maritalStatusList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'BloodType'}).then(data => {
|
|
|
- bloodTypeList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'Health'}).then(data => {
|
|
|
- healthList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'CultureLevel'}).then(data => {
|
|
|
- cultureList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'PoliticsStatus'}).then(data => {
|
|
|
- politicsStatusList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/area/getCityList', {}).then(data => {
|
|
|
- regionList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- get('system/dictionary/getDictionaryItemByCodeList', {code: 'FamilyNature'}).then(data => {
|
|
|
- familyNatureList.value = data;
|
|
|
- });
|
|
|
-
|
|
|
- const changeCity = () => {
|
|
|
- if (formState.dataModel.regionCode) {
|
|
|
- get('system/area/getAreaList', {code: formState.dataModel.regionCode}).then(data => {
|
|
|
- streetList.value = data;
|
|
|
- // formState.dataModel.streetCode = "";
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- const regionChange = async function () {
|
|
|
- formState.dataModel.streetCode = null;
|
|
|
- changeCity();
|
|
|
- }
|
|
|
|
|
|
+ const educationData = ref([]);
|
|
|
const educationColumns: TableColumnsType = [
|
|
|
{
|
|
|
title: '序号',
|
|
@@ -650,9 +585,85 @@ export default defineComponent(
|
|
|
width: 120
|
|
|
},
|
|
|
{title: '操作', key: 'educationOperation', fixed: 'right', width: 120, align: "center"},
|
|
|
- ]
|
|
|
+ ];
|
|
|
+ // const fullpath = router.currentRoute.value.fullPath;
|
|
|
+ const tabsViewStore = useTabsViewStore();
|
|
|
+ const isEdit = true;
|
|
|
+
|
|
|
+ const fileList = ref();
|
|
|
+ const setFileList = (files) => {
|
|
|
+ fileList.value = files;
|
|
|
+ };
|
|
|
+
|
|
|
+ get('/companyService/company/getSiteList', {}).then(data => {
|
|
|
+ siteList.value = data;
|
|
|
+ })
|
|
|
+
|
|
|
+ const getHealthList = () => {
|
|
|
+ getSysDictionaryList('Health').then((data) => {
|
|
|
+ healthList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const getGenderList = () => {
|
|
|
+ getSysDictionaryList('Gender').then((data) => {
|
|
|
+ genderList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const getCultureList = () => {
|
|
|
+ getSysDictionaryList('CultureLevel').then((data) => {
|
|
|
+ cultureList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const getJobStatusList = () => {
|
|
|
+ getSysDictionaryList('JobStatus').then((data) => {
|
|
|
+ jobStatusList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const getBloodTypeList = () => {
|
|
|
+ getSysDictionaryList('BloodType').then((data) => {
|
|
|
+ bloodTypeList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const getFamilyNatureList = () => {
|
|
|
+ getSysDictionaryList('FamilyNature').then((data) => {
|
|
|
+ familyNatureList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const getKeyPersonTypeList = () => {
|
|
|
+ getSysDictionaryList('KeyPersonType').then((data) => {
|
|
|
+ keyPersonTypeList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const getMaritalStatusList = () => {
|
|
|
+ getSysDictionaryList('MaritalStatus').then((data) => {
|
|
|
+ maritalStatusList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const getPoliticsStatusList = () => {
|
|
|
+ getSysDictionaryList('PoliticsStatus').then((data) => {
|
|
|
+ politicsStatusList.value = data;
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ get('system/area/getCityList', {}).then(data => {
|
|
|
+ regionList.value = data;
|
|
|
+ });
|
|
|
+
|
|
|
+ const changeCity = () => {
|
|
|
+ if (formState.dataModel.regionCode) {
|
|
|
+ get('system/area/getAreaList', {code: formState.dataModel.regionCode}).then(data => {
|
|
|
+ streetList.value = data;
|
|
|
+ // formState.dataModel.streetCode = "";
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ const regionChange = async function () {
|
|
|
+ formState.dataModel.streetCode = null;
|
|
|
+ changeCity();
|
|
|
+ }
|
|
|
|
|
|
- const educationData = ref([]);
|
|
|
const loadEducation = (id: any) => {
|
|
|
getEducationList(id).then(data => {
|
|
|
if (data)
|
|
@@ -668,7 +679,7 @@ export default defineComponent(
|
|
|
major: ''
|
|
|
});
|
|
|
}
|
|
|
- const deleteEducation = (record) => {
|
|
|
+ const delEducation = (record) => {
|
|
|
(educationData.value as any[]).splice(record, 1);
|
|
|
}
|
|
|
|
|
@@ -721,6 +732,7 @@ export default defineComponent(
|
|
|
const deleteExperience = (record) => {
|
|
|
(experienceData.value as any[]).splice(record, 1);
|
|
|
}
|
|
|
+
|
|
|
const addExperience = () => {
|
|
|
(experienceData.value as any[]).push({
|
|
|
startTime: null,
|
|
@@ -730,7 +742,6 @@ export default defineComponent(
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
const onClose = (reload: any) => {
|
|
|
tabsViewStore.closeCurrentTabByPath('/jobusermgr/jobseeker/add');
|
|
|
tabsViewStore.closeCurrentTabByPath('/jobusermgr/jobseeker/edit');
|
|
@@ -749,6 +760,15 @@ export default defineComponent(
|
|
|
}
|
|
|
|
|
|
const loadData = (id: any) => {
|
|
|
+ getHealthList();
|
|
|
+ getGenderList();
|
|
|
+ getCultureList();
|
|
|
+ getJobStatusList();
|
|
|
+ getBloodTypeList();
|
|
|
+ getFamilyNatureList();
|
|
|
+ getKeyPersonTypeList();
|
|
|
+ getMaritalStatusList();
|
|
|
+ getPoliticsStatusList();
|
|
|
getDataById(id).then(data => {
|
|
|
formState.dataModel = data;
|
|
|
if (formState.dataModel.regionCode) {
|
|
@@ -765,9 +785,9 @@ export default defineComponent(
|
|
|
onFinish,
|
|
|
setFileList,
|
|
|
addEducation,
|
|
|
- deleteEducation,
|
|
|
+ delEducation,
|
|
|
loadEducation,
|
|
|
- educationColumns,
|
|
|
+ siteList,
|
|
|
maritalStatusList,
|
|
|
formState,
|
|
|
formTableState,
|
|
@@ -789,7 +809,8 @@ export default defineComponent(
|
|
|
loadExperienceData,
|
|
|
deleteExperience,
|
|
|
addExperience,
|
|
|
- experienceColumns
|
|
|
+ experienceColumns,
|
|
|
+ educationColumns,
|
|
|
}
|
|
|
},
|
|
|
created() {
|