修改
This commit is contained in:
parent
333144c823
commit
54d0ee1640
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="create-container">
|
<view class="create-container">
|
||||||
<u--form labelPosition="left" :model="userForm" :rules="rules" ref="form">
|
<u--form labelPosition="left" :model="userForm" :rules="rules" ref="form">
|
||||||
<u--image class="avatar" @click="onAvatarClick" :src="userForm.avatar" width="80px" height="80px"
|
<u--image class="avatar" @click="onAvatarClick" :src="userForm.avatar?userForm.avatar:avatar" width="80px" height="80px"
|
||||||
shape="circle" />
|
shape="circle" />
|
||||||
<u-line color="#D2D2D2"></u-line>
|
<u-line color="#D2D2D2"></u-line>
|
||||||
<u-form-item class="form-item" label="所属公司" prop="companyShortName" labelWidth="100px" required>
|
<u-form-item class="form-item" label="所属公司" prop="companyShortName" labelWidth="100px" required>
|
||||||
@ -80,6 +80,7 @@
|
|||||||
rolesActions: [],
|
rolesActions: [],
|
||||||
userForm: {},
|
userForm: {},
|
||||||
companyObj:{},
|
companyObj:{},
|
||||||
|
avatar:"",
|
||||||
rules: {
|
rules: {
|
||||||
avatar: {
|
avatar: {
|
||||||
type: "string",
|
type: "string",
|
||||||
@ -153,6 +154,7 @@
|
|||||||
this.getRolesList();
|
this.getRolesList();
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
this.avatar = avatar;
|
||||||
uni.$on("setAvatar", function(options) {
|
uni.$on("setAvatar", function(options) {
|
||||||
user.value.avatar = options
|
user.value.avatar = options
|
||||||
})
|
})
|
||||||
|
@ -207,13 +207,6 @@ export default {
|
|||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.list {
|
|
||||||
height: calc(100vh - 150px - env(safe-area-inset-bottom));
|
|
||||||
margin: 0px 10px;
|
|
||||||
work-user-index-item {
|
|
||||||
background-color: #f6f3f3;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.button {
|
.button {
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Loading…
Reference in New Issue
Block a user