no message

This commit is contained in:
kuaifan 2023-04-18 11:45:54 +08:00
parent 1c3ce47dcc
commit ee12cc21c1
7 changed files with 27 additions and 5 deletions

View File

@ -83,7 +83,7 @@ export default {
{icon: '', name: 'joinMeeting', label: '加入会议'},
],
[
{icon: '', name: 'workReport', label: '工作报告'},
{icon: '', name: 'workReport', label: '工作报告'},
]
],

View File

@ -60,7 +60,7 @@
<Button type="primary" icon="md-add" @click="onShowDepartment(null)">{{$L('新建部门')}}</Button>
</div>
</div>
<div class="management-user">
<div class="management-user" :style="userStyle">
<div class="search-container lr">
<ul>
<li>
@ -313,6 +313,7 @@ export default {
return {
loadIng: 0,
minBox: false,
minWidth: 0,
keys: {},
keyIs: false,
@ -773,12 +774,29 @@ export default {
this.minBox = v
},
immediate: true
},
minBox: {
handler() {
this.$nextTick(_=> {
if (this.$el && this.$el.clientWidth > 0) {
this.minWidth = this.$el.clientWidth
}
});
},
immediate: true
}
},
computed: {
departmentParentDisabled() {
return !!(this.departmentData.id > 0 && this.departmentList.find(({parent_id}) => parent_id == this.departmentData.id));
},
userStyle({minWidth}) {
const style = {}
if (minWidth > 0) {
style.minWidth = (minWidth - 40) + 'px'
}
return style
}
},
methods: {
onSearch() {
@ -1064,6 +1082,10 @@ export default {
},
onSelectDepartment(id) {
if (this.windowSmall) {
this.minBox = true
}
//
if (this.departmentSelect === id) {
this.departmentSelect = -1
return

View File

@ -149,8 +149,9 @@
.tabbar-badge {
position: absolute;
top: -4px;
right: 12px;
top: -6px;
right: 50%;
transform: translateX(36px);
}
}
}

View File

@ -48,7 +48,6 @@
.management-box {
flex: 1;
display: flex;
min-width: 500px;
height: 0;
&.min-box {
.management-department {