Commit 5e25a160 authored by daywrite's avatar daywrite

个人信息联调

parent e72febe0
......@@ -51,16 +51,19 @@
<el-input
class="ec-input-normal"
size="small"
style="width: 60px;"
v-model="model.telephone_area_code">
</el-input>
<el-input
class="ec-input-normal"
size="small"
style="width: 200px;"
v-model="model.telephone">
</el-input>
<el-input
class="ec-input-normal"
size="small"
style="width: 60px;"
v-model="model.telephone_extension_number">
</el-input>
</el-form-item>
......@@ -125,7 +128,7 @@ export default {
handleSave () {
let _params = Object.assign({}, setModule(this.model, 'Users'))
requestAPI(api.saveuserEdit, _params)
requestAPI(Object.assign(api.saveuserEdit, { method: 'POST' }), _params)
.then((res) => {
this.$message.success('操作成功')
})
......
......@@ -7,7 +7,7 @@
<tbody>
<tr><td>姓名</td><td>{{ model.name }}</td></tr>
<tr><td>电子邮箱</td><td>{{ model.email }}</td></tr>
<tr><td>头像</td><td><img :src="model.avatar.avatar"/></td></tr>
<tr><td>头像</td><td><img :src="model.avatar && model.avatar.avatar"/></td></tr>
<tr><td>性别</td><td>{{ model.sex_display }}</td></tr>
<tr><td>生日</td><td>{{ model.birth_date }}</td></tr>
<tr><td>入职日期</td><td>{{ model.entry_date }}</td></tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment