mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-21 00:36:44 +08:00
组织机构名称截断问题
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import {cutOrgNamePath} from "@/utils/tools.js";
|
||||||
export default {
|
export default {
|
||||||
props:{
|
props:{
|
||||||
avatar:{
|
avatar:{
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
if(this.avatar && this.avatar!=''){
|
if(this.avatar && this.avatar!=''){
|
||||||
this.userAvatar=this.avatar;
|
this.userAvatar=this.avatar;
|
||||||
}
|
}
|
||||||
this.userInfo=this.info;
|
this.userInfo=cutOrgNamePath(this.info);
|
||||||
this.usersex = this.sex;
|
this.usersex = this.sex;
|
||||||
this.usersign = this.sign;
|
this.usersign = this.sign;
|
||||||
},
|
},
|
||||||
@@ -112,7 +112,10 @@
|
|||||||
this.usersex=newVal;
|
this.usersex=newVal;
|
||||||
},
|
},
|
||||||
info(newVal,oldVal){
|
info(newVal,oldVal){
|
||||||
this.userInfo=newVal;
|
if(newVal){
|
||||||
|
this.userInfo=cutOrgNamePath(newVal);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import {cutOrgNamePath} from "@/utils/tools.js";
|
||||||
export default {
|
export default {
|
||||||
props:{
|
props:{
|
||||||
data:{
|
data:{
|
||||||
@@ -63,7 +64,7 @@
|
|||||||
if(this.data.avatar && this.data.avatar!=''){
|
if(this.data.avatar && this.data.avatar!=''){
|
||||||
this.userAvatar=this.data.avatar;
|
this.userAvatar=this.data.avatar;
|
||||||
}
|
}
|
||||||
this.userInfo=this.data.info;
|
this.userInfo=cutOrgNamePath(this.data.info);
|
||||||
this.usersex=this.data.sex
|
this.usersex=this.data.sex
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user