Commit 6494797e authored by youjie's avatar youjie

no message

parent 8c255ab0
......@@ -31,9 +31,18 @@
}
.dataText {
display: flex;
justify-content: space-between;
padding: 10px 0;
}
.dataText-left{
display: flex;
flex-wrap: wrap;
padding: 10px 0;
align-items: center;
}
.dataText-right{
flex-shrink: 0;
}
.dataText_text {
......@@ -48,6 +57,13 @@
/deep/.el-radio-group{
margin-bottom: 0 !important;
}
.moreText{
display: block;
color: #409EFF;
font-size: 14px;
cursor: pointer;
margin-top: 20px;
}
</style>
<template>
<div class="customerManage">
......@@ -64,8 +80,22 @@
<div><span>已选择:{{list.length}}</span></div>
</div>
<div class="dataText">
<el-tag v-for="(item,index) in list" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
<div class="dataText-left">
<template v-if="moreShow">
<el-tag v-for="(item,index) in list" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<template v-else>
<el-tag v-for="(item,index) in numList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
</div>
<div class="dataText-right" v-if="list.length>15">
<i class="icon moreText"
:class="!moreShow?'el-icon-arrow-down':'el-icon-arrow-up'"
@click="moreShow=!moreShow">
{{!moreSalesShow?'更多':'收起'}}</i>
</div>
</div>
<br /><br />
<el-button class="add-box-btn add-box-cancel" @click="saveNow" :disabled="disabledOff">立即保存</el-button>
......@@ -84,8 +114,10 @@
},
data() {
return {
moreShow:false,
disabledOff: false,
newObj: {},
numList:[],
list: [],
addDistributionRulesShow: false,
tableData: [],
......@@ -137,6 +169,15 @@
Content: res.data.data.Content
};
this.list = res.data.data.EmpList
if(res.data.data.EmpList.length>15){
res.data.data.EmpList.forEach((item,x)=>{
if(x<15){
this.numList.push(item)
}
})
}else{
this.moreShow = true
}
this.newObj = res.data.data
}
})
......
......@@ -31,9 +31,18 @@
}
.dataText {
display: flex;
justify-content: space-between;
padding: 10px 0;
}
.dataText-left{
display: flex;
flex-wrap: wrap;
padding: 10px 0;
align-items: center;
}
.dataText-right{
flex-shrink: 0;
}
.dataText_text {
......@@ -71,17 +80,17 @@
<div><span>已选择:{{list.length}}</span></div>
</div>
<div class="dataText">
<!-- <el-tag v-for="(item,index) in list" :key="index" class="dataText_text">{{item.EmName}}
</el-tag> -->
<template v-if="moreShow">
<el-tag v-for="(item,index) in list" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<template v-else>
<el-tag v-for="(item,index) in numList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<div v-if="list.length>15">
<div class="dataText-left">
<template v-if="moreShow">
<el-tag v-for="(item,index) in list" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<template v-else>
<el-tag v-for="(item,index) in numList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
</div>
<div class="dataText-right" v-if="list.length>15">
<i class="icon moreText"
:class="!moreShow?'el-icon-arrow-down':'el-icon-arrow-up'"
@click="moreShow=!moreShow">
......
......@@ -31,12 +31,19 @@
}
.dataText {
display: flex;
justify-content: space-between;
padding: 10px 0;
}
.dataText-left{
display: flex;
flex-wrap: wrap;
padding: 10px 0;
align-items: center;
}
.dataText-right{
flex-shrink: 0;
}
.dataText_text {
margin-right: 10px;
margin-bottom: 10px;
......@@ -51,7 +58,7 @@
color: #409EFF;
font-size: 14px;
cursor: pointer;
margin-top: 10px;
margin-top: 20px;
}
</style>
<template>
......@@ -69,15 +76,17 @@
<div><span>已选择:{{msg.FlowList.length}}</span></div>
</div>
<div class="dataText">
<template v-if="moreSalesShow">
<el-tag v-for="(item,index) in msg.FlowList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<template v-else>
<el-tag v-for="(item,index) in FlowList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<div v-if="msg.FlowList.length>15">
<div class="dataText-left">
<template v-if="moreSalesShow">
<el-tag v-for="(item,index) in msg.FlowList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<template v-else>
<el-tag v-for="(item,index) in FlowList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
</div>
<div class="dataText-right" v-if="msg.FlowList.length>15">
<i class="icon moreText"
:class="!moreSalesShow?'el-icon-arrow-down':'el-icon-arrow-up'"
@click="moreSalesShow=!moreSalesShow">
......@@ -96,15 +105,17 @@
<div><span>已选择:{{msg.SaleList.length}}人</span></div>
</div>
<div class="dataText">
<template v-if="moreDrainageShow">
<el-tag v-for="(item,index) in msg.SaleList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<template v-else>
<el-tag v-for="(item,index) in SaleList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<div v-if="msg.SaleList.length>15">
<div class="dataText-left">
<template v-if="moreDrainageShow">
<el-tag v-for="(item,index) in msg.SaleList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
<template v-else>
<el-tag v-for="(item,index) in SaleList" :key="index" class="dataText_text">{{item.EmName}}
</el-tag>
</template>
</div>
<div class="dataText-right" v-if="msg.SaleList.length>15">
<i class="icon moreText"
:class="!moreDrainageShow?'el-icon-arrow-down':'el-icon-arrow-up'"
@click="moreDrainageShow=!moreDrainageShow">{{!moreDrainageShow?'更多':'收起'}}</i>
......
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