|
@@ -1,132 +1,149 @@
|
|
|
<template>
|
|
|
- <ion-page class="list-page">
|
|
|
- <ion-header>
|
|
|
+ <ion-page class="list-page">
|
|
|
+ <ion-header class="header-theme2">
|
|
|
<ion-toolbar>
|
|
|
<ion-buttons slot="start">
|
|
|
<ion-icon :icon="arrowBackOutline" @click="onBack" style="padding-left:10px;width:24px;height:24px;"></ion-icon>
|
|
|
</ion-buttons>
|
|
|
- <ion-title>求职信息录入</ion-title>
|
|
|
+ <ion-title>求职人员信息登记</ion-title>
|
|
|
</ion-toolbar>
|
|
|
</ion-header>
|
|
|
- <div class="stepFlex">
|
|
|
- <div v-for="(record,key) in stepList" :key="key" class="stepFlex-item">
|
|
|
- <div :class="[(record.val < curStepData?.statusVal || curStepData?.statusVal == stepList.val) ? 'greenCircle' :record.val == curStepData?.statusVal ? 'now' : 'grayCircle']"></div>
|
|
|
- <div v-if="key !== stepList.length - 1" :class="[record.val < curStepData?.statusVal ? 'greenLine' : 'grayLine']"></div>
|
|
|
- <div class="stepFlex-item-label">
|
|
|
- <p class="stepFlex-item-label-title">{{ record.title }}</p>
|
|
|
-<!-- <p class="stepFlex-item-label-desc">{{ record.desc }}</p>-->
|
|
|
+ <ion-content>
|
|
|
+ <div class="stepFlex">
|
|
|
+ <div v-for="(record,key) in stepList" :key="key" class="stepFlex-item">
|
|
|
+ <div
|
|
|
+ :class="[(record.val < curStepData?.statusVal || curStepData?.statusVal == stepList.val) ? 'greenCircle' :record.val == curStepData?.statusVal ? 'now' : 'grayCircle']"></div>
|
|
|
+ <div v-if="key !== stepList.length - 1"
|
|
|
+ :class="[record.val < curStepData?.statusVal ? 'greenLine' : 'grayLine']"></div>
|
|
|
+ <div class="stepFlex-item-label">
|
|
|
+ <p class="stepFlex-item-label-title">{{ record.title }}</p>
|
|
|
+ <p class="stepFlex-item-label-desc">{{ record.desc }}</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <ion-content>
|
|
|
- <ion-list v-if="curStepData.statusVal==1">
|
|
|
- <ion-label class="title-item">姓名<span class="danger">*</span></ion-label>
|
|
|
- <ion-item mode="md" :class="[baseDataValid.baseData.name.$error?'ion-invalid':'ion-valid']">
|
|
|
- <ion-input name="name" id="name" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
- placeholder="请输入姓名" v-model="baseData.name" ></ion-input>
|
|
|
- <ion-note slot="error">姓名不能为空</ion-note>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">公民身份号码<span class="danger">*</span></ion-label>
|
|
|
- <ion-item mode="md" :class="[baseDataValid.baseData.identityNumber.$error?'ion-invalid':'ion-valid']">
|
|
|
- <ion-input name="identityNumber" id="identityNumber" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
+
|
|
|
+ <form autocomplete="off">
|
|
|
+ <div class="bw-vue-form">
|
|
|
+ <ion-list v-if="curStepData.statusVal==1">
|
|
|
+ <div class="form-title">基本信息</div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>姓名<span class="danger">*</span></ion-label>
|
|
|
+ <ion-input name="name" id="name" class="custom" :clear-input="true"
|
|
|
+ placeholder="请输入姓名" v-model="baseData.name" >
|
|
|
+ </ion-input>
|
|
|
+<!-- <ion-note slot="error">姓名不能为空</ion-note>-->
|
|
|
+ </div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>公民身份号码<span class="danger">*</span></ion-label>
|
|
|
+ <ion-input name="identityNumber" id="identityNumber" class="custom" :clear-input="true"
|
|
|
placeholder="请输入身份证号码" v-model="baseData.identityNumber" ></ion-input>
|
|
|
- <ion-note slot="error">公民身份号码不能为空</ion-note>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">性别<span class="danger">*</span></ion-label>
|
|
|
- <ion-item mode="md" :class="[baseDataValid.baseData.sex.$error?'ion-invalid':'ion-valid']">
|
|
|
- <ion-select name="sex" id="sex" okText="确定" cancelText="取消" v-model="baseData.sex"
|
|
|
- interface="action-sheet" placeholder="请选择性别" style="width:100%;text-align:left;" >
|
|
|
- <ion-select-option v-for=" (it,key) in genderList" :key="key" :value="it.value" >
|
|
|
- {{ it.name }}
|
|
|
- </ion-select-option>
|
|
|
- </ion-select>
|
|
|
- <ion-note slot="error">性别不能为空</ion-note>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">联系电话<span class="danger">*</span></ion-label>
|
|
|
- <ion-item mode="md" :class="[baseDataValid.baseData.userMobile.$error?'ion-invalid':'ion-valid']">
|
|
|
- <ion-input name="userMobile" id="userMobile" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
- placeholder="请输入联系电话" v-model="baseData.userMobile" ></ion-input>
|
|
|
- <ion-note slot="error">联系电话不能为空</ion-note>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">地址<span class="danger">*</span></ion-label>
|
|
|
- <ion-item mode="md" :class="[baseDataValid.baseData.address.$error?'ion-invalid':'ion-valid']">
|
|
|
- <ion-input name="address" id="address" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
- placeholder="请输入地址" v-model="baseData.address" ></ion-input>
|
|
|
- <ion-note slot="error">地址不能为空</ion-note>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">就业状态<span class="danger">*</span></ion-label>
|
|
|
- <ion-item mode="md" :class="[baseDataValid.baseData.jobStatusID.$error?'ion-invalid':'ion-valid']">
|
|
|
- <ion-select name="jobStatusID" id="jobStatusID" okText="确定" cancelText="取消" v-model="baseData.jobStatusID"
|
|
|
+<!-- <ion-note slot="error">公民身份号码不能为空</ion-note>-->
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>性别<span class="danger">*</span></ion-label>
|
|
|
+ <ion-select name="sex" id="sex" okText="确定" cancelText="取消" v-model="baseData.sex"
|
|
|
+ interface="action-sheet" placeholder="请选择性别" style="width:100%;text-align:left;" >
|
|
|
+ <ion-select-option v-for=" (it,key) in genderList" :key="key" :value="it.value" >{{ it.name }}</ion-select-option>
|
|
|
+ </ion-select>
|
|
|
+<!-- <ion-note slot="error">性别不能为空</ion-note>-->
|
|
|
+ </div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>联系电话<span class="danger">*</span></ion-label>
|
|
|
+ <ion-input name="userMobile" id="userMobile" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
+ placeholder="请输入联系电话" v-model="baseData.userMobile" ></ion-input>
|
|
|
+ <!-- <ion-note slot="error">联系电话不能为空</ion-note>-->
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>所属驿站<span class="danger">*</span></ion-label>
|
|
|
+ <ion-select name="siteID" id="siteID" okText="确定" cancelText="取消" v-model="baseData.siteID"
|
|
|
+ interface="action-sheet" placeholder="请选择所属驿站" style="width:100%;text-align:left;">
|
|
|
+ <ion-select-option v-for=" (it,key) in siteInfoList" :key="key" :value="it.value">
|
|
|
+ {{ it.text }}
|
|
|
+ </ion-select-option>
|
|
|
+ </ion-select>
|
|
|
+ <!-- <ion-note slot="error">所属驿站不能为空</ion-note>-->
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>市/县<span class="danger">*</span></ion-label>
|
|
|
+ <ion-select name="regionCode" id="regionCode" okText="确定" cancelText="取消" v-model="baseData.regionCode"
|
|
|
+ interface="action-sheet" placeholder="请选择市/县" style="width:100%;text-align:left;" @ionChange="regionChange()" >
|
|
|
+ <ion-select-option v-for=" (it,key) in regionList" :key="key" :value="it.code">
|
|
|
+ {{ it.name }}
|
|
|
+ </ion-select-option>
|
|
|
+ </ion-select>
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>所在街道<span class="danger">*</span></ion-label>
|
|
|
+ <ion-select name="streetCode" id="streetCode" okText="确定" cancelText="取消" v-model="baseData.streetCode"
|
|
|
+ interface="action-sheet" placeholder="请选择镇/街" style="width:100%;text-align:left;">
|
|
|
+ <ion-select-option v-for=" (it,key) in streetList" :key="key" :value="it.code">
|
|
|
+ {{ it.name }}
|
|
|
+ </ion-select-option>
|
|
|
+ </ion-select>
|
|
|
+ </div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>住址<span class="danger">*</span></ion-label>
|
|
|
+ <ion-input name="address" id="address" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
+ placeholder="请输入住址" v-model="baseData.address" ></ion-input>
|
|
|
+<!-- <ion-note slot="error">地址不能为空</ion-note>-->
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>就业状态<span class="danger">*</span></ion-label>
|
|
|
+ <ion-select name="jobStatusID" id="jobStatusID" okText="确定" cancelText="取消" v-model="baseData.jobStatusID"
|
|
|
interface="action-sheet" placeholder="请选择就业状态" style="width:100%;text-align:left;" >
|
|
|
- <ion-select-option v-for=" (it,key) in jobUserStatusList" :key="key" :value="it.value">
|
|
|
- {{ it.name }}
|
|
|
- </ion-select-option>
|
|
|
- </ion-select>
|
|
|
- <ion-note slot="error">就业状态不能为空</ion-note>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">所属驿站<span class="danger">*</span></ion-label>
|
|
|
- <ion-item mode="md" :class="[baseDataValid.baseData.siteID.$error?'ion-invalid':'ion-valid']" >
|
|
|
- <ion-select name="siteID" id="siteID" okText="确定" cancelText="取消" v-model="baseData.siteID"
|
|
|
- interface="action-sheet" placeholder="请选择所属驿站" style="width:100%;text-align:left;">
|
|
|
- <ion-select-option v-for=" (it,key) in siteInfoList" :key="key" :value="it.value">
|
|
|
- {{ it.text }}
|
|
|
- </ion-select-option>
|
|
|
- </ion-select>
|
|
|
- <ion-note slot="error">所属驿站不能为空</ion-note>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">重点人员类别<span class="danger">*</span></ion-label>
|
|
|
- <ion-item mode="md" :class="[baseDataValid.baseData.keyPersonTypeID.$error?'ion-invalid':'ion-valid']">
|
|
|
- <ion-select name="keyPersonTypeID" id="keyPersonTypeID" okText="确定" cancelText="取消" v-model="baseData.keyPersonTypeID"
|
|
|
- interface="action-sheet" placeholder="请选择重点人员类别" style="width:100%;text-align:left;" >
|
|
|
- <ion-select-option v-for=" (it,key) in keyPersonTypeList" :key="key" :value="it.value">
|
|
|
- {{ it.name }}
|
|
|
- </ion-select-option>
|
|
|
- </ion-select>
|
|
|
- <ion-note slot="error">重点人员类别不能为空</ion-note>
|
|
|
- </ion-item>
|
|
|
- <ion-item mode="md">
|
|
|
- <div class="panel-title2" style="width: 25%;">
|
|
|
- <div class="item-flag"></div>
|
|
|
- 其他信息
|
|
|
- </div>
|
|
|
- <div style="width: 75%;text-align: right;">
|
|
|
+ <ion-select-option v-for=" (it,key) in jobUserStatusList" :key="key" :value="it.value">{{ it.name }}</ion-select-option>
|
|
|
+ </ion-select>
|
|
|
+ <!-- <ion-note slot="error">就业状态不能为空</ion-note>-->
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>重点人员类别<span class="danger">*</span></ion-label>
|
|
|
+ <ion-select name="keyPersonTypeID" id="keyPersonTypeID" okText="确定" cancelText="取消" v-model="baseData.keyPersonTypeID"
|
|
|
+ interface="action-sheet" placeholder="请选择重点人员类别" style="width:100%;text-align:left;" >
|
|
|
+ <ion-select-option v-for=" (it,key) in keyPersonTypeList" :key="key" :value="it.value">
|
|
|
+ {{ it.name }}
|
|
|
+ </ion-select-option>
|
|
|
+ </ion-select>
|
|
|
+ <!-- <ion-note slot="error">重点人员类别不能为空</ion-note>-->
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-title">
|
|
|
+ 其他信息
|
|
|
+ <div style="float: right;">
|
|
|
<ion-icon :icon="chevronDownOutline" @click="expandChange" v-if="!expand"
|
|
|
style="font-size: 24px;"></ion-icon>
|
|
|
<ion-icon :icon="chevronUpOutline" @click="expandChange" v-if="expand"
|
|
|
style="font-size: 24px;"></ion-icon>
|
|
|
-<!-- <img alt="" src="@/assets/icon/arrow-down-bold.png" class="iconBtn" @click="expandChange" v-if="!expand"/>
|
|
|
- <img alt="" src="@/assets/icon/arrow-up-bold.png" class="iconBtn" @click="expandChange" v-if="expand"/>-->
|
|
|
</div>
|
|
|
- </ion-item>
|
|
|
- <ion-item-group v-if="expand">
|
|
|
- <ion-label class="title-item">民族</ion-label>
|
|
|
- <ion-item>
|
|
|
- <ion-input name="nation" id="nation" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
- v-model="baseData.nation" placeholder="请输入民族" ></ion-input>
|
|
|
- <!--<ion-select name="nation" id="nation" okText="确定" cancelText="取消" v-model="baseData.nation"
|
|
|
- interface="action-sheet" placeholder="请选择民族" style="width:100%;text-align:left;">
|
|
|
- <ion-select-option v-for=" (it,key) in nationList" :key="key" :value="it.code">
|
|
|
+ </div>
|
|
|
+ <div v-if="expand">
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>民族</ion-label>
|
|
|
+ <ion-select name="nationID" id="nationID" okText="确定" cancelText="取消" v-model="baseData.nation"
|
|
|
+ interface="action-sheet" placeholder="请选择民族" style="width:100%;text-align:left;" >
|
|
|
+ <ion-select-option v-for=" (it,key) in nationTypeList" :key="key" :value="it.name">
|
|
|
{{ it.name }}
|
|
|
</ion-select-option>
|
|
|
- </ion-select>-->
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">政治面貌</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </ion-select>
|
|
|
+<!-- <ion-input name="nation" id="nation" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
+ v-model="baseData.nation" placeholder="请输入民族" ></ion-input>-->
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>政治面貌</ion-label>
|
|
|
<ion-select name="politicsStatusID" id="politicsStatusID" okText="确定" cancelText="取消" v-model="baseData.politicsStatusID"
|
|
|
interface="action-sheet" placeholder="请选择政治面貌" style="width:100%;text-align:left;" >
|
|
|
<ion-select-option v-for=" (it,key) in politicsStatusList" :key="key" :value="it.value">
|
|
|
{{ it.name }}
|
|
|
</ion-select-option>
|
|
|
</ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">出生地</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>出生地</ion-label>
|
|
|
<ion-input name="birthPlace" id="birthPlace" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
v-model="baseData.birthPlace" placeholder="请输入出生地" ></ion-input>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">出生日期</ion-label>
|
|
|
- <ion-item>
|
|
|
- <ion-datetime-button datetime="birthDay" style="background-color: white;"></ion-datetime-button>
|
|
|
+ </div>
|
|
|
+<!-- <div class="form-input">
|
|
|
+ <ion-label>出生日期</ion-label>
|
|
|
+ <ion-datetime-button datetime="birthDay" style="position:relative;right:110px;"></ion-datetime-button>
|
|
|
<ion-modal :keep-contents-mounted="true">
|
|
|
<ion-datetime name="birthDay" id="birthDay" placeholder="日期"
|
|
|
v-model="baseData.birthDay" :prefer-wheel="true"
|
|
@@ -134,179 +151,180 @@
|
|
|
:show-default-buttons="true">
|
|
|
</ion-datetime>
|
|
|
</ion-modal>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">户口性质</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>-->
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>户口性质</ion-label>
|
|
|
<ion-select name="familyNatureID" id="familyNatureID" okText="确定" cancelText="取消" v-model="baseData.familyNatureID"
|
|
|
interface="action-sheet" placeholder="请选择户口性质" style="width:100%;text-align:left;">
|
|
|
<ion-select-option v-for=" (it,key) in familyNatureList" :key="key" :value="it.value">
|
|
|
{{ it.name }}
|
|
|
</ion-select-option>
|
|
|
</ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">文化程度</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>文化程度</ion-label>
|
|
|
<ion-select name="cultureRank" id="cultureRank" okText="确定" cancelText="取消" v-model="baseData.cultureRank"
|
|
|
interface="action-sheet" placeholder="请选择文化程度" style="width:100%;text-align:left;">
|
|
|
<ion-select-option v-for=" (it,key) in cultureRankList" :key="key" :value="it.value">
|
|
|
{{ it.name }}
|
|
|
</ion-select-option>
|
|
|
</ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">健康状况</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>健康状况</ion-label>
|
|
|
<ion-select name="healthID" id="healthID" okText="确定" cancelText="取消" v-model="baseData.healthID"
|
|
|
interface="action-sheet" placeholder="请选择健康状况" style="width:100%;text-align:left;">
|
|
|
<ion-select-option v-for=" (it,key) in userHealthList" :key="key" :value="it.value">
|
|
|
{{ it.name }}
|
|
|
</ion-select-option>
|
|
|
</ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">血型</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>血型</ion-label>
|
|
|
<ion-select name="bloodTypeID" id="bloodTypeID" okText="确定" cancelText="取消" v-model="baseData.bloodTypeID"
|
|
|
interface="action-sheet" placeholder="请选择血型" style="width:100%;text-align:left;">
|
|
|
<ion-select-option v-for=" (it,key) in bloodTypeList" :key="key" :value="it.value">
|
|
|
{{ it.name }}
|
|
|
</ion-select-option>
|
|
|
</ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">身高(cm)</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>身高(cm)</ion-label>
|
|
|
<ion-input name="height" id="height" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
placeholder="请输入身高" v-model="baseData.height" ></ion-input>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">视力</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>视力</ion-label>
|
|
|
<ion-input name="vision" id="vision" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
placeholder="如1.0" v-model="baseData.vision" ></ion-input>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">体重(kg)</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>体重(kg)</ion-label>
|
|
|
<ion-input name="weight" id="weight" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
placeholder="请输入体重" v-model="baseData.weight" ></ion-input>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">婚姻状况</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+ <div class="form-select">
|
|
|
+ <ion-label>婚姻状况</ion-label>
|
|
|
<ion-select name="maritalStatusID" id="maritalStatusID" okText="确定" cancelText="取消" v-model="baseData.maritalStatusID"
|
|
|
interface="action-sheet" placeholder="请选择婚姻状况" style="width:100%;text-align:left;">
|
|
|
<ion-select-option v-for=" (it,key) in maritalStatusList" :key="key" :value="it.value">
|
|
|
{{ it.name }}
|
|
|
</ion-select-option>
|
|
|
</ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">省份</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>
|
|
|
+<!-- <div class="form-select">
|
|
|
+ <ion-label>省份</ion-label>
|
|
|
<ion-select name="provinceCode" id="provinceCode" okText="确定" cancelText="取消" v-model="baseData.provinceCode"
|
|
|
interface="action-sheet" placeholder="请选择省份" style="width:100%;text-align:left;" @change="provinceChange()" >
|
|
|
<ion-select-option v-for=" (it,key) in provinceList" :key="key" :value="it.value">
|
|
|
{{ it.name }}
|
|
|
</ion-select-option>
|
|
|
</ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">市/县</ion-label>
|
|
|
- <ion-item>
|
|
|
- <ion-select name="regionCode" id="regionCode" okText="确定" cancelText="取消" v-model="baseData.regionCode"
|
|
|
- interface="action-sheet" placeholder="请选择市/县" style="width:100%;text-align:left;" @ionChange="regionChange()" >
|
|
|
- <ion-select-option v-for=" (it,key) in regionList" :key="key" :value="it.code">
|
|
|
- {{ it.name }}
|
|
|
- </ion-select-option>
|
|
|
- </ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">镇/街</ion-label>
|
|
|
- <ion-item>
|
|
|
- <ion-select name="streetCode" id="streetCode" okText="确定" cancelText="取消" v-model="baseData.streetCode"
|
|
|
- interface="action-sheet" placeholder="请选择镇/街" style="width:100%;text-align:left;">
|
|
|
- <ion-select-option v-for=" (it,key) in streetList" :key="key" :value="it.code">
|
|
|
- {{ it.name }}
|
|
|
- </ion-select-option>
|
|
|
- </ion-select>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">联系人</ion-label>
|
|
|
- <ion-item>
|
|
|
+ </div>-->
|
|
|
+
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>联系人员</ion-label>
|
|
|
<ion-input name="userName" id="userName" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
- placeholder="请输入联系人姓名" v-model="baseData.userName" ></ion-input>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">电子邮箱</ion-label>
|
|
|
- <ion-item>
|
|
|
+ placeholder="请输入联系人员" v-model="baseData.userName" ></ion-input>
|
|
|
+ </div>
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>电子邮箱</ion-label>
|
|
|
<ion-input name="email" id="email" style="text-align: left;" class="custom" :clear-input="true"
|
|
|
placeholder="请输入电子邮箱" v-model="baseData.email" ></ion-input>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">家庭住址</ion-label>
|
|
|
- <ion-item>
|
|
|
- <ion-textarea name="familyAddress" id="familyAddress" style="text-align: left;" class="custom" rows="4"
|
|
|
- placeholder="请输入家庭住址" v-model="baseData.familyAddress" ></ion-textarea>
|
|
|
- </ion-item>
|
|
|
- <ion-label class="title-item">兴趣爱好</ion-label>
|
|
|
- <ion-item>
|
|
|
- <ion-textarea name="hobby" id="hobby" style="text-align: left;" class="custom" rows="4"
|
|
|
- placeholder="请输入兴趣爱好" v-model="baseData.hobby" ></ion-textarea>
|
|
|
- </ion-item>
|
|
|
- </ion-item-group>
|
|
|
- </ion-list>
|
|
|
-
|
|
|
- <ion-list v-if="curStepData.statusVal==2" >
|
|
|
- <ion-item>
|
|
|
- <div class="panel-title2" slot="start">
|
|
|
- <div class="item-flag"></div>
|
|
|
- 教育经历
|
|
|
</div>
|
|
|
- <ion-buttons slot="end">
|
|
|
- <ion-icon :icon="addCircleOutline" class="iconBtn"
|
|
|
- @click="onPathForward('./educationEdit',null,null,null,2)"></ion-icon>
|
|
|
- </ion-buttons>
|
|
|
- </ion-item>
|
|
|
- <ion-item v-for="(record,key) in educationList" :key="key" detail
|
|
|
- @click="onPathForward('./educationEdit',record.educationID,null,null,2)">
|
|
|
- <ion-label>
|
|
|
- <h3>{{record.schoolName}}</h3>
|
|
|
- <p>{{dayjs(record.schoolTime).format("YYYY-MM-DD")}}至{{dayjs(record.overTime).format("YYYY-MM-DD")}}</p>
|
|
|
- </ion-label>
|
|
|
- </ion-item>
|
|
|
- <b-empty v-if="educationList.length==0" :loading="loading" />
|
|
|
- </ion-list>
|
|
|
-
|
|
|
- <ion-list v-if="curStepData.statusVal==3" >
|
|
|
- <ion-item>
|
|
|
- <div class="panel-title2" slot="start">
|
|
|
- <div class="item-flag"></div>
|
|
|
- 工作经验
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>家庭住址</ion-label>
|
|
|
+ <ion-textarea name="familyAddress" id="familyAddress" class="custom" rows="4"
|
|
|
+ placeholder="请输入家庭住址" v-model="baseData.familyAddress" style="border-bottom: 1px solid #fff2e8;"></ion-textarea>
|
|
|
</div>
|
|
|
- <ion-buttons slot="end">
|
|
|
- <ion-icon :icon="addCircleOutline" class="iconBtn"
|
|
|
- @click="onPathForward('./experienceEdit',null,null,null,3)"></ion-icon>
|
|
|
- </ion-buttons>
|
|
|
- </ion-item>
|
|
|
- <ion-item v-for="(record,key) in experienceList" :key="key" detail
|
|
|
- @click="onPathForward('./experienceEdit',null,record.experienceID,null,3)">
|
|
|
- <ion-label>
|
|
|
- <h3>{{record.workAddress}}</h3>
|
|
|
- <p>{{dayjs(record.startTime).format("YYYY-MM-DD")}}至{{dayjs(record.endTime).format("YYYY-MM-DD")}}</p>
|
|
|
- </ion-label>
|
|
|
- </ion-item>
|
|
|
- <b-empty v-if="experienceList.length==0" :loading="loading" />
|
|
|
- </ion-list>
|
|
|
-
|
|
|
- <ion-list v-if="curStepData.statusVal==4">
|
|
|
- <ion-item>
|
|
|
- <div class="panel-title2" slot="start">
|
|
|
- <div class="item-flag"></div>
|
|
|
- 求职意向
|
|
|
+ <div class="form-input">
|
|
|
+ <ion-label>兴趣爱好</ion-label>
|
|
|
+ <ion-textarea name="hobby" id="hobby" class="custom" rows="4"
|
|
|
+ placeholder="请输入兴趣爱好" v-model="baseData.hobby" style="border-bottom: 1px solid #fff2e8;" ></ion-textarea>
|
|
|
</div>
|
|
|
- <ion-buttons slot="end">
|
|
|
- <ion-icon :icon="addCircleOutline" class="iconBtn"
|
|
|
- @click="onPathForward('./jobHuntEdit',null,null,null,4)"></ion-icon>
|
|
|
- </ion-buttons>
|
|
|
- </ion-item>
|
|
|
- <ion-item v-for="(record,key) in jobHuntList" :key="key" detail
|
|
|
- @click="onPathForward( './jobHuntEdit',null,null,record.jobHuntID,4)">
|
|
|
- <ion-label>
|
|
|
- <h3>{{record.postName}}</h3>
|
|
|
- <p>期望薪资:{{record.minSalary}}-{{record.maxSalary}}</p>
|
|
|
- </ion-label>
|
|
|
- </ion-item>
|
|
|
- <b-empty v-if="jobHuntList.length==0" :loading="loading" />
|
|
|
+ </div>
|
|
|
</ion-list>
|
|
|
+
|
|
|
+ <ion-list v-if="curStepData.statusVal==2" >
|
|
|
+ <div class="form-title">
|
|
|
+ 教育经历
|
|
|
+ <ion-icon :icon="addCircleOutline" class="iconBtn" style="float:right;"
|
|
|
+ @click="onPathForward('./educationEdit',null,null,null,2)"></ion-icon>
|
|
|
+ </div>
|
|
|
+ <div class="bw-vue-list">
|
|
|
+ <div class="list-content" v-if="!loading">
|
|
|
+ <ion-list>
|
|
|
+ <div v-for="(record,key) in educationList" :key="key" >
|
|
|
+ <ion-item-sliding>
|
|
|
+ <ion-item detail @click="onPathForward('./educationEdit',record.educationID,null,null,2)">
|
|
|
+ <ion-label>
|
|
|
+ <h2>{{record.schoolName}}</h2>
|
|
|
+ <p>{{dayjs(record.schoolTime).format("YYYY-MM-DD")}}至{{dayjs(record.overTime).format("YYYY-MM-DD")}}</p>
|
|
|
+ </ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item-options>
|
|
|
+ <ion-item-option color="danger" @click="setDelAlertOpen(true, record.educationID)">
|
|
|
+ <ion-icon :icon="trashOutline"></ion-icon>
|
|
|
+ </ion-item-option>
|
|
|
+ </ion-item-options>
|
|
|
+ </ion-item-sliding>
|
|
|
+ </div>
|
|
|
+ </ion-list>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <b-empty v-if="educationList.length==0" :loading="loading" />
|
|
|
+ </ion-list>
|
|
|
+
|
|
|
+ <ion-list v-if="curStepData.statusVal==3" >
|
|
|
+ <div class="form-title">
|
|
|
+ 工作经验
|
|
|
+ <ion-icon :icon="addCircleOutline" class="iconBtn" style="float:right;"
|
|
|
+ @click="onPathForward('./experienceEdit',null,null,null,3)"></ion-icon>
|
|
|
+ </div>
|
|
|
+ <div class="bw-vue-list">
|
|
|
+ <div class="list-content" v-if="!loading">
|
|
|
+ <ion-list>
|
|
|
+ <div v-for="(record,key) in experienceList" :key="key">
|
|
|
+ <ion-item-sliding>
|
|
|
+ <ion-item detail @click="onPathForward('./experienceEdit',null,record.experienceID,null,3)">
|
|
|
+ <ion-label>
|
|
|
+ <h2>{{record.workAddress}}</h2>
|
|
|
+ <p>{{dayjs(record.startTime).format("YYYY-MM-DD")}}至{{dayjs(record.endTime).format("YYYY-MM-DD")}}</p>
|
|
|
+ </ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item-options>
|
|
|
+ <ion-item-option color="danger" @click="setDelAlertOpen(true, record.experienceID)">
|
|
|
+ <ion-icon :icon="trashOutline"></ion-icon>
|
|
|
+ </ion-item-option>
|
|
|
+ </ion-item-options>
|
|
|
+ </ion-item-sliding>
|
|
|
+ </div>
|
|
|
+ </ion-list>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <b-empty v-if="experienceList.length==0" :loading="loading" />
|
|
|
+ </ion-list>
|
|
|
+
|
|
|
+ <ion-list v-if="curStepData.statusVal==4">
|
|
|
+ <ion-item>
|
|
|
+ <div class="panel-title2" slot="start">
|
|
|
+ <div class="item-flag"></div>
|
|
|
+ 求职意向
|
|
|
+ </div>
|
|
|
+ <ion-buttons slot="end">
|
|
|
+ <ion-icon :icon="addCircleOutline" class="iconBtn"
|
|
|
+ @click="onPathForward('./jobHuntEdit',null,null,null,4)"></ion-icon>
|
|
|
+ </ion-buttons>
|
|
|
+ </ion-item>
|
|
|
+ <ion-item v-for="(record,key) in jobHuntList" :key="key" detail
|
|
|
+ @click="onPathForward( './jobHuntEdit',null,null,record.jobHuntID,4)">
|
|
|
+ <ion-label>
|
|
|
+ <h3>{{record.postName}}</h3>
|
|
|
+ <p>期望薪资:{{record.minSalary}}-{{record.maxSalary}}</p>
|
|
|
+ </ion-label>
|
|
|
+ </ion-item>
|
|
|
+ <b-empty v-if="jobHuntList.length==0" :loading="loading" />
|
|
|
+ </ion-list>
|
|
|
<!--<ion-refresher pulling-text="下拉刷新" @ionRefresh="onRefresh"></ion-refresher>-->
|
|
|
<ion-infinite-scroll v-if="curStepData.statusVal!=1" threshold="100px" @ionInfinite="onScroll($event)">
|
|
|
<ion-infinite-scroll-content
|
|
@@ -314,19 +332,45 @@
|
|
|
loadingSpinner="bubbles">
|
|
|
</ion-infinite-scroll-content>
|
|
|
</ion-infinite-scroll>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
</ion-content>
|
|
|
<ion-footer>
|
|
|
<ion-toolbar>
|
|
|
- <div slot="end">
|
|
|
- <ion-button shape="round" expand="block" @click="onSave" v-if="curStepData.statusVal!=4">下一步</ion-button>
|
|
|
- <ion-button shape="round" expand="block" @click="onFinish" v-if="curStepData.statusVal==4">完 成</ion-button>
|
|
|
+ <ion-button style="width: 100%;" @click="onSave" v-if="curStepData.statusVal==1">保存并下一步</ion-button>
|
|
|
+ <div v-if="curStepData.statusVal!=1" >
|
|
|
+ <ion-button style="width: 48%;float:left;margin-left: 1%;" @click="onBack" >上一步</ion-button>
|
|
|
+ <ion-button style="width: 48%;margin-right: 1%;" @click="onSave" v-if="curStepData.statusVal!=4">下一步</ion-button>
|
|
|
+ <ion-button style="width: 48%;margin-right: 1%;" @click="onFinish" v-if="curStepData.statusVal==4">完 成</ion-button>
|
|
|
</div>
|
|
|
+
|
|
|
</ion-toolbar>
|
|
|
</ion-footer>
|
|
|
+
|
|
|
+ <ion-alert
|
|
|
+ :is-open="delAlertOpen"
|
|
|
+ header="删除确认"
|
|
|
+ message="确定要删除该信息吗?"
|
|
|
+ :buttons="delAlertButtons"
|
|
|
+ @didDismiss="setDelAlertOpen(false, null)"
|
|
|
+ ></ion-alert>
|
|
|
+
|
|
|
+ <ion-alert
|
|
|
+ :is-open="infoAlertOpen"
|
|
|
+ :header="infoAlterData.title"
|
|
|
+ :message="infoAlterData.message"
|
|
|
+ :buttons="infoAlertButtons"
|
|
|
+ @didDismiss="setInfoAlertOpen(false)"
|
|
|
+ ></ion-alert>
|
|
|
+ <ion-loading
|
|
|
+ :is-open="delLoading"
|
|
|
+ message="删除中..."
|
|
|
+ @didDismiss="setDelLoadingOpen(false)" >
|
|
|
+ </ion-loading>
|
|
|
</ion-page>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
-import {chevronDownOutline, chevronUpOutline,arrowBackOutline,addCircleOutline} from 'ionicons/icons';
|
|
|
+import {chevronDownOutline, chevronUpOutline,arrowBackOutline,addCircleOutline,trashOutline} from 'ionicons/icons';
|
|
|
import {reactive,defineComponent, computed,watch,ref,toRefs} from "vue";
|
|
|
import {useRoute, useRouter} from "vue-router";
|
|
|
import {required} from "@vuelidate/validators";
|
|
@@ -340,6 +384,7 @@ import {getSiteDataList} from "@/api/siteInfo";
|
|
|
import {getSysDictionaryList} from '@/api/system/dictionary';
|
|
|
import {alertController, onIonViewDidEnter} from "@ionic/vue";
|
|
|
import dayjs from "dayjs";
|
|
|
+import {post} from "@/api/common";
|
|
|
|
|
|
interface SelectProps {
|
|
|
name: string,
|
|
@@ -376,7 +421,7 @@ export default defineComponent({
|
|
|
const bloodTypeList = ref<SelectProps[]>([]);
|
|
|
const maritalStatusList = ref<SelectProps[]>([]);
|
|
|
const provinceList = ref<SelectProps[]>([{name:'广东省',value:'440000000000000'}]);
|
|
|
- /*const nationList = ref([{code:'001',name:'汉族'}]);*/
|
|
|
+ const nationTypeList = ref<SelectProps[]>([]);
|
|
|
const familyNatureList = ref([]);
|
|
|
const politicsStatusList = ref([]);
|
|
|
const regionList = ref<SelectProps[]>([]);
|
|
@@ -440,7 +485,79 @@ export default defineComponent({
|
|
|
const expandChange= ()=>{
|
|
|
expand.value = !expand.value;
|
|
|
}
|
|
|
+ // 删除警告弹窗开关
|
|
|
+ const delAlertOpen = ref(false);
|
|
|
+
|
|
|
+ // 删除数据
|
|
|
+ const delID = ref("");
|
|
|
+ const postUrl = ref("jobUserService/education/deleteEducation");
|
|
|
+ const actionName = ref("删除教育经历信息");
|
|
|
+ // 删除加载
|
|
|
+ const delLoading = ref(false);
|
|
|
+ // 信息弹窗开关
|
|
|
+ const infoAlertOpen = ref(false);
|
|
|
+ // 删除警告弹窗按钮定义
|
|
|
+ const infoAlertButtons = [
|
|
|
+ {
|
|
|
+ text: '确定',
|
|
|
+ role: 'confirm',
|
|
|
+ handler: () => {
|
|
|
+ reload(baseInfoData.baseData.jobUserID,curStepData.value.statusVal);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ // 设置要删除的教育经历
|
|
|
+ function setDelAlertOpen(value: boolean, id: any) {
|
|
|
+ delAlertOpen.value = value;
|
|
|
+ if(id != null) {
|
|
|
+ delID.value = id;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 设置信息提示弹窗开关
|
|
|
+ function setInfoAlertOpen(value: boolean) {
|
|
|
+ infoAlertOpen.value = value;
|
|
|
+ }
|
|
|
+ // 设置删除弹窗开启关闭
|
|
|
+ function setDelLoadingOpen(value: boolean) {
|
|
|
+ delLoading.value = value;
|
|
|
+ }
|
|
|
+ // 信息弹窗内容
|
|
|
+ const infoAlterData = reactive({
|
|
|
+ title:"",
|
|
|
+ message:""
|
|
|
+ });
|
|
|
|
|
|
+ // 删除警告弹窗按钮定义
|
|
|
+ const delAlertButtons = [
|
|
|
+ {
|
|
|
+ text: '取消',
|
|
|
+ role: 'cancel',
|
|
|
+ handler: () => {
|
|
|
+ console.log("取消了删除");
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '确定',
|
|
|
+ role: 'confirm',
|
|
|
+ handler: () => {
|
|
|
+ delLoading.value = true;
|
|
|
+ postUrl.value = "jobUserService/education/deleteEducation";
|
|
|
+ actionName.value = "删除教育经历";
|
|
|
+ if(curStepData.value.statusVal!=2){
|
|
|
+ postUrl.value = curStepData.value.statusVal==3 ?"jobUserService/experience/deleteExperience":"jobUserService/jobHunt/deleteJobHunt";
|
|
|
+ actionName.value = curStepData.value.statusVal==3 ?"删除工作经验":"删除求职意向";
|
|
|
+ }
|
|
|
+ post(postUrl.value,[delID.value],actionName.value).then((res) => {
|
|
|
+ /*infoAlterData.title = "提示";
|
|
|
+ infoAlterData.message = "删除成功";
|
|
|
+ setInfoAlertOpen(true);*/
|
|
|
+ }).finally(()=>{
|
|
|
+ delLoading.value = false;
|
|
|
+ reload(baseInfoData.baseData.jobUserID,curStepData.value.statusVal);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ];
|
|
|
const presentAlert = async (message: string) => {
|
|
|
const alert = await alertController.create({
|
|
|
header: '错误!',
|
|
@@ -479,7 +596,7 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
const emailReg = /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/;
|
|
|
- if(baseInfoData.baseData.email!=""){
|
|
|
+ if(baseInfoData.baseData.email!=""&&baseInfoData.baseData.email!=null){
|
|
|
if(!emailReg.test(baseInfoData.baseData.email)){
|
|
|
presentAlert("输入的电子邮箱有误!");
|
|
|
isAllowCommit.value = false;
|
|
@@ -548,6 +665,8 @@ export default defineComponent({
|
|
|
politicsStatusList.value = politicsStatusResult;
|
|
|
const familyNatureResult :any = await getSysDictionaryList("FamilyNature");
|
|
|
familyNatureList.value = familyNatureResult;
|
|
|
+ const nationTypeListResult :any = await getSysDictionaryList("NationType");
|
|
|
+ nationTypeList.value = nationTypeListResult;
|
|
|
}
|
|
|
|
|
|
const getSiteInfoList = async function(){
|
|
@@ -630,6 +749,7 @@ export default defineComponent({
|
|
|
chevronUpOutline,
|
|
|
arrowBackOutline,
|
|
|
addCircleOutline,
|
|
|
+ trashOutline,
|
|
|
route,
|
|
|
router,
|
|
|
expand,
|
|
@@ -639,7 +759,7 @@ export default defineComponent({
|
|
|
baseDataValid,
|
|
|
siteInfoList,
|
|
|
genderList,
|
|
|
- /*nationList,*/
|
|
|
+ nationTypeList,
|
|
|
familyNatureList,
|
|
|
politicsStatusList,
|
|
|
pageParams,
|
|
@@ -655,6 +775,13 @@ export default defineComponent({
|
|
|
educationList,
|
|
|
experienceList,
|
|
|
jobHuntList,
|
|
|
+ delID,
|
|
|
+ delAlertButtons,
|
|
|
+ infoAlertButtons,
|
|
|
+ delAlertOpen,
|
|
|
+ infoAlertOpen,
|
|
|
+ delLoading,
|
|
|
+ infoAlterData,
|
|
|
expandChange,
|
|
|
provinceChange,
|
|
|
regionChange,
|
|
@@ -665,6 +792,9 @@ export default defineComponent({
|
|
|
onPathForward,
|
|
|
loadData,
|
|
|
reload,
|
|
|
+ setDelAlertOpen,
|
|
|
+ setInfoAlertOpen,
|
|
|
+ setDelLoadingOpen,
|
|
|
getSiteInfoList,
|
|
|
getSelectorDataList,
|
|
|
getRegionList,
|
|
@@ -683,8 +813,7 @@ export default defineComponent({
|
|
|
<style lang="less">
|
|
|
.custom{
|
|
|
--placeholder-color: gray;
|
|
|
- --placeholder-font-style:italic;
|
|
|
- --placeholder-opacity: 1;
|
|
|
+ --placeholder-opacity: 0.5;
|
|
|
}
|
|
|
|
|
|
.title-item{
|