|
|
|
@ -5,70 +5,54 @@ |
|
|
|
|
<h6 class="l-title"><img src="@/assets/img/info1.png" alt=""> 用户信息</h6> |
|
|
|
|
<div class="page-content"> |
|
|
|
|
<ul class="list"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<div class="line info"> |
|
|
|
|
<li> |
|
|
|
|
<label>姓名:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input size="small" v-model="form.userName" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
<el-input size="small" v-model="form.userName" clearable></el-input> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>性别:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="form.sex"> |
|
|
|
|
<el-option v-for="item in sexList" :key="item.value" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="form.sex"> |
|
|
|
|
<el-option v-for="item in sexList" :key="item.value" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line info"> |
|
|
|
|
<li> |
|
|
|
|
<label>出生年月日:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-date-picker size="small" v-model="form.dateBirth" :clearable="false" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
</div> |
|
|
|
|
<el-date-picker size="small" v-model="form.dateBirth" :clearable="false" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<li> |
|
|
|
|
<li class="selects"> |
|
|
|
|
<label>所在地:</label> |
|
|
|
|
<div class="mul"> |
|
|
|
|
<div class="child"> |
|
|
|
|
<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> |
|
|
|
|
<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> |
|
|
|
|
<div class="child"> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="form.provinceId" placeholder @change="id => getCity(id,1)"> |
|
|
|
|
<el-option v-for="item in provinceList" :key="item.provinceId" :label="item.provinceName" :value="item.provinceId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="form.provinceId" placeholder @change="id => getCity(id,1)"> |
|
|
|
|
<el-option v-for="item in provinceList" :key="item.provinceId" :label="item.provinceName" :value="item.provinceId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<div class="child"> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="form.cityId" placeholder :disabled="form.provinceId ? false : true"> |
|
|
|
|
<el-option v-for="item in cityList" :key="item.cityId" :label="item.cityName" :value="item.cityId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="form.cityId" placeholder :disabled="form.provinceId ? false : true"> |
|
|
|
|
<el-option v-for="item in cityList" :key="item.cityId" :label="item.cityName" :value="item.cityId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<div class="line info"> |
|
|
|
|
<li> |
|
|
|
|
<label>身份证:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input size="small" v-model="form.idNumber" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
<el-input size="small" v-model="form.idNumber" clearable></el-input> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>教育程度:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-select size="small" v-model="form.educationDegree" placeholder="请选择教育程度"> |
|
|
|
|
<el-option v-for="(item,index) in educationDegreeList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-select size="small" v-model="form.educationDegree" placeholder="请选择教育程度"> |
|
|
|
|
<el-option v-for="(item,index) in educationDegreeList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
</ul> |
|
|
|
@ -135,36 +119,29 @@ |
|
|
|
|
<h6 class="l-title"><img src="@/assets/img/info3.png" alt=""> 账号信息</h6> |
|
|
|
|
<div class="page-content"> |
|
|
|
|
<ul class="list"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<li style="margin-right: 136px"> |
|
|
|
|
<div class="line info imp"> |
|
|
|
|
<li> |
|
|
|
|
<label>用户账号:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input size="small" v-model="form.account" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
<el-input class="m-r-10" size="small" v-model="form.account" clearable disabled></el-input> |
|
|
|
|
<el-button type="text" size="small" @click="openAccount">更换</el-button> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>手机号:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input class="m-r-10" type="text" size="small" v-model="form.phone" disabled></el-input> |
|
|
|
|
<el-button type="text" size="small" @click="bindPhone">更换</el-button> |
|
|
|
|
</div> |
|
|
|
|
<el-input class="m-r-10" type="text" size="small" v-model="form.phone" disabled></el-input> |
|
|
|
|
<el-button type="text" size="small" @click="bindPhone">更换</el-button> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<div class="line info imp"> |
|
|
|
|
<li> |
|
|
|
|
<label>邮箱:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input class="m-r-10" size="small" v-model="form.email" disabled></el-input> |
|
|
|
|
<el-button v-if="form.email" type="text" size="small" @click="bindEmail">更换</el-button> |
|
|
|
|
<el-button v-else type="text" size="small" @click="bindEmail">添加</el-button> |
|
|
|
|
</div> |
|
|
|
|
<el-input class="m-r-10" size="small" v-model="form.email" disabled></el-input> |
|
|
|
|
<el-button v-if="form.email" type="text" size="small" @click="bindEmail">更换</el-button> |
|
|
|
|
<el-button v-else type="text" size="small" @click="bindEmail">添加</el-button> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>密码:</label> |
|
|
|
|
<div> |
|
|
|
|
<el-input class="m-r-10" size="small" value="xxxxxxxx" disabled></el-input> |
|
|
|
|
<el-button type="text" size="small" @click="bindPassword">更换</el-button> |
|
|
|
|
</div> |
|
|
|
|
<el-input class="m-r-10" size="small" value="xxxxxxxx" disabled></el-input> |
|
|
|
|
<el-button type="text" size="small" @click="bindPassword">更换</el-button> |
|
|
|
|
</li> |
|
|
|
|
</div> |
|
|
|
|
</ul> |
|
|
|
@ -229,6 +206,18 @@ |
|
|
|
|
<el-button size="small" type="primary" @click="editPassword">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog title="修改用户账号" :visible.sync="accountVisible" :close-on-click-modal="false" width="30%"> |
|
|
|
|
<el-form label-width="82px"> |
|
|
|
|
<el-form-item label="用户账号"> |
|
|
|
|
<el-input v-model="account" placeholder="请输入用户账号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button size="small" @click="accountVisible = false">取 消</el-button> |
|
|
|
|
<el-button size="small" type="primary" @click="confirmAccount">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -337,7 +326,9 @@ export default { |
|
|
|
|
phoneCode: '', |
|
|
|
|
phoneDisabled: false, |
|
|
|
|
phoneTimer: null, |
|
|
|
|
updateTime: 0 |
|
|
|
|
updateTime: 0, |
|
|
|
|
account: '', |
|
|
|
|
accountVisible: false |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
@ -526,10 +517,13 @@ export default { |
|
|
|
|
this.concatArch() |
|
|
|
|
}, |
|
|
|
|
delArchive(i) { |
|
|
|
|
const id = this.archivesList[i].personalFileId |
|
|
|
|
id && this.$post(`${this.api.deleteProfile}?personalFileIds=${id}`).then(res => { |
|
|
|
|
this.$confirm(`此操作不可逆,是否确认删除?`, '提示', { |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(() => { |
|
|
|
|
const id = this.archivesList[i].personalFileId |
|
|
|
|
this.archivesList.splice(i, 1) |
|
|
|
|
}).catch(err => {}) |
|
|
|
|
id && this.$post(`${this.api.deleteProfile}?personalFileIds=${id}`).then(res => {}).catch(err => {}) |
|
|
|
|
}).catch(() => {}) |
|
|
|
|
}, |
|
|
|
|
bindEmail() { |
|
|
|
|
this.email = this.form.email |
|
|
|
@ -598,14 +592,6 @@ export default { |
|
|
|
|
this.archivesList[index].professionalClassName = '' |
|
|
|
|
this.archivesList[index].professionalId = '' |
|
|
|
|
this.archivesList[index].professionalName = '' |
|
|
|
|
// this.archivesList.map(e =>{ |
|
|
|
|
// if(e.disciplineId == item){ |
|
|
|
|
// e.professionalClassId = '', |
|
|
|
|
// e.professionalClassName = '', |
|
|
|
|
// e.professionalId = '', |
|
|
|
|
// e.professionalName = '' |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
}, |
|
|
|
|
getItemProfessionalClass(item,index){ |
|
|
|
|
this.clearItemClass(index) |
|
|
|
@ -811,6 +797,18 @@ export default { |
|
|
|
|
this.phoneVisible = false |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
|
openAccount() { |
|
|
|
|
this.account = this.form.account |
|
|
|
|
this.accountVisible = true |
|
|
|
|
}, |
|
|
|
|
confirmAccount() { |
|
|
|
|
if (this.account) { |
|
|
|
|
this.form.account = this.account |
|
|
|
|
this.accountVisible = false |
|
|
|
|
} else { |
|
|
|
|
util.errorMsg('请输入账号') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
@ -829,8 +827,17 @@ export default { |
|
|
|
|
.line{ |
|
|
|
|
display: flex; |
|
|
|
|
margin-bottom: 24px; |
|
|
|
|
li{ |
|
|
|
|
margin-right: 100px; |
|
|
|
|
&.info li:not(.selects){ |
|
|
|
|
width: 30%; |
|
|
|
|
.el-input{ |
|
|
|
|
flex: 1; |
|
|
|
|
} |
|
|
|
|
&:first-child{ |
|
|
|
|
margin-right: 16%; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
&.imp li{ |
|
|
|
|
width: calc(30% + 36px) !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
li{ |
|
|
|
@ -874,14 +881,14 @@ export default { |
|
|
|
|
} |
|
|
|
|
.archives{ |
|
|
|
|
position: relative; |
|
|
|
|
padding: 16px 30px; |
|
|
|
|
padding: 16px 0; |
|
|
|
|
margin-bottom: 6px; |
|
|
|
|
border-radius: 4px; |
|
|
|
|
background-color: #FAFAFA; |
|
|
|
|
.del{ |
|
|
|
|
position: absolute; |
|
|
|
|
top: 48px; |
|
|
|
|
right: 55px; |
|
|
|
|
right: 16px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
li{ |
|
|
|
|