|
|
|
@ -7,167 +7,7 @@ |
|
|
|
|
<div class="per_title" @click="goback()"> |
|
|
|
|
<i class="el-icon-arrow-left"></i> |
|
|
|
|
<span class="per_back">返回</span> |
|
|
|
|
<span class="per_school">查看用户信息</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<!-- 个人信息 --> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-between mgb20 user_header"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>个人信息</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<el-form |
|
|
|
|
ref="form" |
|
|
|
|
:model="form" |
|
|
|
|
:rules="rules" |
|
|
|
|
label-width="120px" |
|
|
|
|
:disabled="isDetail" |
|
|
|
|
> |
|
|
|
|
<el-col :span="6" :offset="5"> |
|
|
|
|
<el-form-item prop="userName" label="用户姓名"> |
|
|
|
|
<el-input v-model="form.userName" placeholder="请输入"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="证件类型" prop="documentType"> |
|
|
|
|
<el-input v-model="form.documentType" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select--> |
|
|
|
|
<!-- v-model="form.documentType"--> |
|
|
|
|
<!-- clearable--> |
|
|
|
|
<!-- placeholder="请选择证件类型"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-option--> |
|
|
|
|
<!-- v-for="(item,index) in documentTypeList"--> |
|
|
|
|
<!-- :key="index"--> |
|
|
|
|
<!-- :label="item.name"--> |
|
|
|
|
<!-- :value="item.value"--> |
|
|
|
|
<!-- ></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="国家"> |
|
|
|
|
<el-input v-model="form.countries" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select--> |
|
|
|
|
<!-- v-model="form.countries"--> |
|
|
|
|
<!-- clearable--> |
|
|
|
|
<!-- placeholder="请选择国家"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-option--> |
|
|
|
|
<!-- v-for="(item,index) in countryList"--> |
|
|
|
|
<!-- :key="index"--> |
|
|
|
|
<!-- :label="item.name"--> |
|
|
|
|
<!-- :value="item.value"--> |
|
|
|
|
<!-- ></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="城市"> |
|
|
|
|
<el-input v-model="form.cityName" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select--> |
|
|
|
|
<!-- v-model="form.cityId"--> |
|
|
|
|
<!-- clearable--> |
|
|
|
|
<!-- placeholder="请选择城市"--> |
|
|
|
|
<!-- :disabled="form.cityId ? false : true"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-option--> |
|
|
|
|
<!-- v-for="(item,index) in cityList"--> |
|
|
|
|
<!-- :key="index"--> |
|
|
|
|
<!-- :label="item.cityName"--> |
|
|
|
|
<!-- :value="item.cityId"--> |
|
|
|
|
<!-- ></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="教育程度"> |
|
|
|
|
<!-- <el-input v-model="form.educationDegree" placeholder="请输入"></el-input>--> |
|
|
|
|
<el-select |
|
|
|
|
v-model="form.educationDegree" |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择教育程度" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in educationDegreeList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.name" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="当前院校"> |
|
|
|
|
<el-input v-model="form.schoolName" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select v-model="form.schoolId" filterable clearable placeholder="请选择学校">--> |
|
|
|
|
<!-- <el-option v-for="(item,index) in schoolList" :key="index" :label="item.schoolName" :value="item.schoolId"></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="6" :offset="2"> |
|
|
|
|
<el-form-item label="唯一识别码"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="form.uniqueIdentification" |
|
|
|
|
placeholder="请输入" |
|
|
|
|
:disabled="true" |
|
|
|
|
></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item prop="idNumber" label="证件号码"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="form.idNumber" |
|
|
|
|
placeholder="请输入证件号码" |
|
|
|
|
maxlength="18" |
|
|
|
|
></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="省份"> |
|
|
|
|
<el-input v-model="form.provinceName" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select--> |
|
|
|
|
<!-- v-model="form.provinceId"--> |
|
|
|
|
<!-- clearable--> |
|
|
|
|
<!-- placeholder="请选择省份"--> |
|
|
|
|
<!-- @change="getCity"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-option--> |
|
|
|
|
<!-- v-for="(item,index) in provinceList"--> |
|
|
|
|
<!-- :key="index"--> |
|
|
|
|
<!-- :label="item.provinceName"--> |
|
|
|
|
<!-- :value="item.provinceId"--> |
|
|
|
|
<!-- ></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="出生日期"> |
|
|
|
|
<el-date-picker |
|
|
|
|
type="date" |
|
|
|
|
placeholder="选择出生日期" |
|
|
|
|
v-model="form.dateBirth" |
|
|
|
|
style="width: 100%;" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="性别"> |
|
|
|
|
<el-select clearable |
|
|
|
|
v-model="form.sex" |
|
|
|
|
:disabled="IDdisabled" |
|
|
|
|
placeholder="请选择性别" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in sexList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.name" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
<span class="per_school">{{ isDetail ? '查看' : '编辑' }}用户信息</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
@ -209,8 +49,8 @@ |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="6" :offset="2"> |
|
|
|
|
<el-form-item label="微信号"> |
|
|
|
|
<el-input v-model="form.WeChatID" placeholder="请输入微信号"></el-input> |
|
|
|
|
<el-form-item label="唯一识别码"> |
|
|
|
|
<el-input v-model="form.uniqueIdentification" disabled></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-col> |
|
|
|
@ -219,116 +59,65 @@ |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<!-- 个人档案 --> |
|
|
|
|
<!-- 个人信息 --> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-between mgb20 user_header"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>个人档案</span> |
|
|
|
|
<span>实名认证信息(未实名认证)</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<div class="flex-center" v-for="(item,index) in archivesList" :key="index" v-show="index == 0 || index == 1 || index == 2 || showArch"> |
|
|
|
|
<el-col :span="16" :offset="4"> |
|
|
|
|
<el-card shadow="hover" class="from_card"> |
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px" :disabled="isDetail"> |
|
|
|
|
<div> |
|
|
|
|
<el-col :span="10"> |
|
|
|
|
<el-form-item label="职业"> |
|
|
|
|
<el-input v-model="item.professionalName" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select--> |
|
|
|
|
<!-- v-model="item.personalCareerId"--> |
|
|
|
|
<!-- placeholder="请选择职业"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-option--> |
|
|
|
|
<!-- v-for="item1 in occupationList"--> |
|
|
|
|
<!-- :key="item1.value"--> |
|
|
|
|
<!-- :label="item1.label"--> |
|
|
|
|
<!-- :value="item1.value"--> |
|
|
|
|
<!-- ></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="院校"> |
|
|
|
|
<el-input v-model="item.schoolName" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select v-model="item.schoolId" filterable clearable placeholder="请选择院校" @change="id => getSchoolName(id,index)">--> |
|
|
|
|
<!-- <el-option v-for="(item,index) in schoolList" :key="index" :label="item.schoolName" :value="item.schoolId"></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="专业类"> |
|
|
|
|
<el-input v-model="item.professionalClassName" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select--> |
|
|
|
|
<!-- v-model="item.professionalClassId"--> |
|
|
|
|
<!-- :disabled="item.disciplineId ? false : true"--> |
|
|
|
|
<!-- clearable--> |
|
|
|
|
<!-- placeholder="请选择专业类"--> |
|
|
|
|
<!-- @change="id => getItemProfessional(id,index)"--> |
|
|
|
|
<!-- @clear="() => clearItemProfess(index)"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-option--> |
|
|
|
|
<!-- v-for="(item2,index) in item.ProfessionalClassList"--> |
|
|
|
|
<!-- :key="index"--> |
|
|
|
|
<!-- :label="item2.professionalClassName"--> |
|
|
|
|
<!-- :value="item2.professionalClassId"--> |
|
|
|
|
<!-- ></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</div> |
|
|
|
|
<el-form |
|
|
|
|
ref="form" |
|
|
|
|
:model="form" |
|
|
|
|
:rules="rules" |
|
|
|
|
label-width="120px" |
|
|
|
|
:disabled="isDetail" |
|
|
|
|
> |
|
|
|
|
<el-col :span="6" :offset="5"> |
|
|
|
|
<el-form-item prop="userName" label="用户姓名"> |
|
|
|
|
<el-input v-model="form.userName" placeholder="请输入"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<el-col :span="10" :offset="3"> |
|
|
|
|
<el-form-item> |
|
|
|
|
<br /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="专业学科"> |
|
|
|
|
<el-input v-model="item.disciplineName" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select--> |
|
|
|
|
<!-- v-model="item.disciplineId"--> |
|
|
|
|
<!-- clearable--> |
|
|
|
|
<!-- placeholder="请选择专业学科"--> |
|
|
|
|
<!-- @change="id => getItemProfessionalClass(id,index)"--> |
|
|
|
|
<!-- @clear="() => clearItemClass(index)"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-option--> |
|
|
|
|
<!-- v-for="(item3,index) in item.subjectList"--> |
|
|
|
|
<!-- :key="index"--> |
|
|
|
|
<!-- :label="item3.disciplineName"--> |
|
|
|
|
<!-- :value="item3.disciplineId"--> |
|
|
|
|
<!-- ></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="专业"> |
|
|
|
|
<el-input v-model="item.professionalName" placeholder="请输入"></el-input> |
|
|
|
|
<!-- <el-select--> |
|
|
|
|
<!-- v-model="item.professionalId"--> |
|
|
|
|
<!-- :disabled="item.professionalClassId ? false : true"--> |
|
|
|
|
<!-- clearable--> |
|
|
|
|
<!-- placeholder="请选择专业"--> |
|
|
|
|
<!-- @change="getItemStuGrade"--> |
|
|
|
|
<!-- >--> |
|
|
|
|
<!-- <el-option--> |
|
|
|
|
<!-- v-for="(item4,index) in item.ProfessionalList"--> |
|
|
|
|
<!-- :key="index"--> |
|
|
|
|
<!-- :label="item4.professionalName"--> |
|
|
|
|
<!-- :value="item4.professionalId"--> |
|
|
|
|
<!-- ></el-option>--> |
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</div> |
|
|
|
|
</el-form> |
|
|
|
|
</el-card> |
|
|
|
|
<el-form-item label="证件类型" prop="documentType"> |
|
|
|
|
<!-- <el-input v-model="form.documentType" placeholder="请输入"></el-input> --> |
|
|
|
|
<el-select |
|
|
|
|
v-model="form.documentType" |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择证件类型" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item,index) in documentTypeList" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.name" |
|
|
|
|
:value="item.value" |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="fold" v-if="archivesList.length > 3"> |
|
|
|
|
<img :class="{ 'arrowTransform': showArch, 'arrowTransformReturn': !showArch}" style="width: 21px;height: 17px;" src="../../assets/img/person/open.png" alt="" @click="foldArch"> |
|
|
|
|
</div> |
|
|
|
|
<el-col :span="6" :offset="2"> |
|
|
|
|
<el-form-item prop="phone" label="手机号"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="form.phone" |
|
|
|
|
placeholder="请输入手机号" |
|
|
|
|
maxlength="11" |
|
|
|
|
></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<div v-if="!archivesList.length" style="line-height: 60px; color: #909399; text-align: center;">暂无数据</div> |
|
|
|
|
<el-form-item prop="idNumber" label="证件号码"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="form.idNumber" |
|
|
|
|
placeholder="请输入证件号码" |
|
|
|
|
maxlength="18" |
|
|
|
|
></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
@ -337,7 +126,7 @@ |
|
|
|
|
<div class="flex-between mgb20"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>已绑定系统</span> |
|
|
|
|
<span>已绑定的平台和用户信息</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-dialog :title="isShow ? '查看系统' : '编辑系统'" :visible.sync="dialogFormVisible" :center="!isIE()" :close-on-click-modal="false"> |
|
|
|
@ -415,13 +204,18 @@ |
|
|
|
|
row-key="platformId" |
|
|
|
|
> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="platformName" label="系统名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="domainName" label="域名" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="platformName" label="平台名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="platformName" label="绑定组织名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="platformName" label="姓名" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="platformName" label="工号/学号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="platformName" label="角色" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="platformName" label="绑定时间" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="domainName" label="登录次数" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="createTime" label="上一次的登录时间" align="center"></el-table-column> |
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="show(scope.row,true)">查看</el-button> |
|
|
|
|
<el-button type="text" @click="show(scope.row,false)">编辑</el-button> |
|
|
|
|
<el-switch v-if="scope.row.userId!==1" v-model="scope.row.isEnable" :active-value="1" :inactive-value="0" style="margin: 0 10px 0 5px" :active-text="scope.row.isEnable ? '启用' : '禁用'" @change="switchUser($event,scope.row,scope.$index)" v-auth="'/user:启用'"></el-switch> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -436,8 +230,8 @@ export default { |
|
|
|
|
name: 'baseform', |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
isDetail: true, |
|
|
|
|
|
|
|
|
|
userId: this.$route.query.userId, |
|
|
|
|
isDetail: this.$route.query.show, // 是否是详情 |
|
|
|
|
typeList: [ |
|
|
|
|
{ |
|
|
|
|
id: 0, |
|
|
|
@ -465,7 +259,7 @@ export default { |
|
|
|
|
dialogFormVisible: false, |
|
|
|
|
form: { |
|
|
|
|
//个人信息 |
|
|
|
|
userId: this.$store.state.userId, |
|
|
|
|
userId: '', |
|
|
|
|
userName: '', //用户姓名 |
|
|
|
|
uniqueIdentification: '', //唯一识别码 |
|
|
|
|
documentType: '居民身份证', //证件类型 |
|
|
|
@ -503,7 +297,7 @@ export default { |
|
|
|
|
disciplineName: '', //专业学科名称 |
|
|
|
|
professionalId: '', //专业 |
|
|
|
|
professionalName: '', //专业名称 |
|
|
|
|
userId: this.$store.state.userId |
|
|
|
|
userId: this.$route.query.userId |
|
|
|
|
}, |
|
|
|
|
archivesList: [], |
|
|
|
|
rules: { |
|
|
|
@ -585,7 +379,6 @@ export default { |
|
|
|
|
schoolList: [], |
|
|
|
|
cityList: [], //城市 |
|
|
|
|
provinceList: this.$store.state.provinceList, //省份 |
|
|
|
|
userId: this.$store.state.userId, |
|
|
|
|
IDdisabled: false, |
|
|
|
|
regionOption: [{ |
|
|
|
|
regionName: '职站', |
|
|
|
@ -864,6 +657,18 @@ export default { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
switchUser(val,row,index) { |
|
|
|
|
this.$get(this.api.updateAccountAllEnable,{ |
|
|
|
|
id: row.userId, |
|
|
|
|
isEnable: val |
|
|
|
|
}).then(res => { |
|
|
|
|
if(res.code == '200') { |
|
|
|
|
this.$message.success(val ? '启用成功' : '禁用成功') |
|
|
|
|
}else{ |
|
|
|
|
this.$message.success(res.message) |
|
|
|
|
} |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
|
show(row,isShow){ |
|
|
|
|
let obj = {} |
|
|
|
|
Object.assign(obj,{ |
|
|
|
|