会话存档

This commit is contained in:
liuye
2023-06-20 09:30:57 +08:00
parent 295ff657e8
commit 852fa0346f
2 changed files with 19 additions and 7 deletions

View File

@@ -42,7 +42,7 @@
<el-form-item label="生效部门" prop="deptList"> <el-form-item label="生效部门" prop="deptList">
<ai-picker :instance="instance" v-model="form.deptList" @pick="e => onUserChange(e)" :multiple="true" dialogTitle="选择部门" action="/app/wxcp/wxdepartment/departList"> <ai-picker :instance="instance" v-model="form.deptList" @pick="e => onUserChange(e)" :multiple="true" dialogTitle="选择部门" action="/app/wxcp/wxdepartment/departList">
<div class="time-select"> <div class="time-select">
<span class="dept-name" v-if="form.deptList && form.deptList.length">已选择{{form.deptList.length}}个部门</span> <span class="dept-name" v-if="6666 && form.deptList.length">已选择{{form.deptList.length}}个部门</span>
<span class="dept-name" style="color:#999;" v-else>请选择</span> <span class="dept-name" style="color:#999;" v-else>请选择</span>
<i class="el-icon-arrow-down"></i> <i class="el-icon-arrow-down"></i>
</div> </div>
@@ -115,7 +115,8 @@ export default {
...this.search, ...this.search,
current: this.current, current: this.current,
size: this.size, size: this.size,
total: this.total total: this.total,
wordName: this.search.name
} }
}).then(res => { }).then(res => {
if(res?.data) { if(res?.data) {
@@ -152,6 +153,7 @@ export default {
this.dialog = true this.dialog = true
}, },
add() { add() {
this.form.deptList = []
this.dialog = true this.dialog = true
}, },
onUserChange (e) { onUserChange (e) {

View File

@@ -23,10 +23,12 @@
<div class="addressBook-left__list--wrapper"> <div class="addressBook-left__list--wrapper">
<div class="addressBook-left__list--item" v-for="(item, index) in list" :key="index" :class="leftActiveIndex == index ? 'active' : ''" @click="leftClick(index)"> <div class="addressBook-left__list--item" v-for="(item, index) in list" :key="index" :class="leftActiveIndex == index ? 'active' : ''" @click="leftClick(index)">
<div v-if="tabIndex == 1" class="flex-left"> <div v-if="tabIndex == 1" class="flex-left">
<img src="./img/group-img.png" alt="">{{item.roomName}} <img src="./img/group-img.png" alt="">
<p>{{item.roomName}}啦啦啦啦啦啦啦</p>
</div> </div>
<div v-else> <div v-else class="flex-left">
<img :src="item.toUserAvatar" alt="">{{item.toUserName}} <img :src="item.toUserAvatar" alt="">
<p>{{item.toUserName}}啦啦啦啦啦啦啦啦啦啦啦啦啦啦</p>
</div> </div>
<div class="flex-right" :class="`type`+item.roomType" v-if="tabIndex == 1 && item.roomType > 0">{{item.roomType == 1 ? '内部' : '外部'}}</div> <div class="flex-right" :class="`type`+item.roomType" v-if="tabIndex == 1 && item.roomType > 0">{{item.roomType == 1 ? '内部' : '外部'}}</div>
<div class="flex-right" :class="`type`+item.toUserType" v-if="tabIndex != 1 && item.toUserType > 0">{{item.toUserType == 1 ? '内部' : '外部'}}</div> <div class="flex-right" :class="`type`+item.toUserType" v-if="tabIndex != 1 && item.toUserType > 0">{{item.toUserType == 1 ? '内部' : '外部'}}</div>
@@ -355,7 +357,7 @@
<style scoped lang="scss"> <style scoped lang="scss">
.detail { .detail {
.addressBook-left { .addressBook-left {
width: 100%; width: 300px;
height: auto; height: auto;
background: #FAFAFB; background: #FAFAFB;
position: relative; position: relative;
@@ -405,11 +407,19 @@
height: 44px; height: 44px;
border-radius: 50%; border-radius: 50%;
margin-right: 8px; margin-right: 8px;
vertical-align: middle; vertical-align: top;
} }
.flex-left { .flex-left {
padding-right: 8px; padding-right: 8px;
box-sizing: border-box; box-sizing: border-box;
width: calc(100% - 56px);
p {
display: inline-block;
width: calc(100% - 52px);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
} }
.flex-right { .flex-right {
font-size: 12px; font-size: 12px;