|
|
|
@ -57,7 +57,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<li> |
|
|
|
|
<label>证件:</label> |
|
|
|
|
<label>身份证:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input size="small" v-model="form.idNumber" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
@ -75,7 +75,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="flex j-between a-center m-r-20"> |
|
|
|
|
<h6 class="l-title"><img src="@/assets/img/info2.png" alt=""> 个人档案</h6> |
|
|
|
|
<el-button type="text" icon="el-icon-plus" @click="addArch">新增</el-button> |
|
|
|
|
<el-button type="text" icon="el-icon-plus" style="margin-left: 16px" @click="addArch">新增</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div class="page-content"> |
|
|
|
|
<div class="archives" v-for="(archive,index) in archivesList" :key="index" v-show="index == 0 || showArch"> |
|
|
|
@ -83,56 +83,45 @@ |
|
|
|
|
<div class="line"> |
|
|
|
|
<li> |
|
|
|
|
<label>职业:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="archive.personalCareerId" placeholder="选择职业"> |
|
|
|
|
<el-option v-for="item in occupationList" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="archive.personalCareerId" placeholder="选择职业"> |
|
|
|
|
<el-option v-for="item in occupationList" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>国家:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="form.countries" placeholder> |
|
|
|
|
<el-option v-for="item in countryList" :key="item.value" :label="item.label" :value="item.label" ></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<label>所属国家:</label> |
|
|
|
|
<el-select size="small" v-model="form.countries" placeholder> |
|
|
|
|
<el-option v-for="item in countryList" :key="item.value" :label="item.label" :value="item.label" ></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>学校名称:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="archive.schoolId" filterable placeholder="选择学校" @change="id => getSchoolName(id,index)"> |
|
|
|
|
<el-option v-for="item in schoolList" :key="item.value" :label="item.schoolName" :value="item.schoolId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="archive.schoolId" filterable placeholder="选择学校" @change="id => getSchoolName(id,index)"> |
|
|
|
|
<el-option v-for="item in schoolList" :key="item.value" :label="item.schoolName" :value="item.schoolId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line" style="margin-bottom: 0"> |
|
|
|
|
<li> |
|
|
|
|
<label>专业学科:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="archive.disciplineId" placeholder="选择专业学科" @change="id => getItemProfessionalClass(id,index)" @clear="() => clearItemClass(index)"> |
|
|
|
|
<el-option v-for="item in subjectList" :key="item.value" :label="item.disciplineName" :value="item.disciplineId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="archive.disciplineId" placeholder="选择专业学科" @change="id => getItemProfessionalClass(id,index)" @clear="() => clearItemClass(index)"> |
|
|
|
|
<el-option v-for="item in subjectList" :key="item.value" :label="item.disciplineName" :value="item.disciplineId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>专业类:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="archive.professionalClassId" placeholder="选择专业类" :disabled="archive.disciplineId ? false : true" @change="id => getItemProfessional(id,index)" @clear="() => clearItemProfess(index)"> |
|
|
|
|
<el-option v-for="item in archive.ProfessionalClassList" :key="item.professionalClassId" :label="item.professionalClassName" :value="item.professionalClassId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="archive.professionalClassId" placeholder="选择专业类" :disabled="archive.disciplineId ? false : true" @change="id => getItemProfessional(id,index)" @clear="() => clearItemProfess(index)"> |
|
|
|
|
<el-option v-for="item in archive.ProfessionalClassList" :key="item.professionalClassId" :label="item.professionalClassName" :value="item.professionalClassId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>专业:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="archive.professionalId" placeholder="选择专业" :disabled="archive.professionalClassId ? false : true" @change="getItemStuGrade"> |
|
|
|
|
<el-option v-for="item in archive.ProfessionalList" :key="item.professionalId" :label="item.professionalName" :value="item.professionalId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="archive.professionalId" placeholder="选择专业" :disabled="archive.professionalClassId ? false : true" @change="getItemStuGrade"> |
|
|
|
|
<el-option v-for="item in archive.ProfessionalList" :key="item.professionalId" :label="item.professionalName" :value="item.professionalId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
</ul> |
|
|
|
|
<img class="del" src="@/assets/img/trash.png" alt="" v-if="index" @click="delArchive(index)"> |
|
|
|
|
</div> |
|
|
|
|
<div class="fold" v-if="archivesList.length > 1"> |
|
|
|
|
<span :class="{active: showArch}" @click="showArch = !showArch"> |
|
|
|
@ -183,7 +172,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="btns"> |
|
|
|
|
<el-button size="small" v-throttle @click="save">取消</el-button> |
|
|
|
|
<el-button size="small" v-throttle @click="$router.back()">取消</el-button> |
|
|
|
|
<el-button type="primary" size="small" v-throttle @click="save">更新</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -366,6 +355,7 @@ export default { |
|
|
|
|
this.getProvince() |
|
|
|
|
this.getSchoolData() |
|
|
|
|
this.getSubject() |
|
|
|
|
if (!this.archivesList.length) this.archivesList = [JSON.parse(JSON.stringify(this.archivesForm))] |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
...mapActions('user', [ |
|
|
|
@ -534,6 +524,9 @@ export default { |
|
|
|
|
this.showArch = true |
|
|
|
|
this.concatArch() |
|
|
|
|
}, |
|
|
|
|
delArchive(i) { |
|
|
|
|
this.archivesList.splice(i, 1) |
|
|
|
|
}, |
|
|
|
|
bindEmail() { |
|
|
|
|
this.email = this.form.email |
|
|
|
|
this.emailVisible = true |
|
|
|
@ -817,8 +810,15 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.scroll{ |
|
|
|
|
height: calc(100vh - 202px); |
|
|
|
|
overflow: auto; |
|
|
|
|
} |
|
|
|
|
.page{ |
|
|
|
|
margin-bottom: 12px; |
|
|
|
|
/deep/.el-input__inner{ |
|
|
|
|
border-color: #CACFDB; |
|
|
|
|
} |
|
|
|
|
.list{ |
|
|
|
|
.line{ |
|
|
|
|
display: flex; |
|
|
|
@ -865,15 +865,29 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
.archives{ |
|
|
|
|
position: relative; |
|
|
|
|
padding: 16px 30px; |
|
|
|
|
margin-bottom: 6px; |
|
|
|
|
border-radius: 4px; |
|
|
|
|
background-color: #FAFAFA; |
|
|
|
|
.del{ |
|
|
|
|
position: absolute; |
|
|
|
|
top: 48px; |
|
|
|
|
right: 55px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
li{ |
|
|
|
|
width: 30%; |
|
|
|
|
margin-right: 32px; |
|
|
|
|
} |
|
|
|
|
.el-select{ |
|
|
|
|
flex: 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.fold{ |
|
|
|
|
margin-top: 20px; |
|
|
|
|
text-align: center; |
|
|
|
|
font-size: 12px; |
|
|
|
|
color: #006EFF; |
|
|
|
@ -889,9 +903,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.btns{ |
|
|
|
|
width: 100%; |
|
|
|
|
padding: 12px 0; |
|
|
|
|
text-align: center; |
|
|
|
|
background-color: #fff; |
|
|
|
|
box-shadow: 0px 0px 10px 0px rgba(188, 201, 218, 0.4); |
|
|
|
|
.el-button{ |
|
|
|
|
width: 80px; |
|
|
|
|
} |
|
|
|
|