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