Commit 6b43d22e authored by youjie's avatar youjie

no message

parent 145b78d4
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
newObj:{ newObj:{
handler(val, oldVal) { handler(val, oldVal) {
if(val.EmpList.length>15){ if(val.EmpList.length>15){
this.numList = []
val.EmpList.forEach((item,x)=>{ val.EmpList.forEach((item,x)=>{
if(x<15){ if(x<15){
this.numList.push(item) this.numList.push(item)
......
...@@ -148,6 +148,7 @@ ...@@ -148,6 +148,7 @@
newObj:{ newObj:{
handler(val, oldVal) { handler(val, oldVal) {
if(val.EmpList.length>15){ if(val.EmpList.length>15){
this.numList = []
val.EmpList.forEach((item,x)=>{ val.EmpList.forEach((item,x)=>{
if(x<15){ if(x<15){
this.numList.push(item) this.numList.push(item)
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
</el-tag> </el-tag>
</template> </template>
</div> </div>
<div class="dataText-right" v-if="msg.FlowList.length>15"> <div class="dataText-right" v-if="msg.FlowList.length>23">
<i class="icon moreText" <i class="icon moreText"
:class="!moreSalesShow?'el-icon-arrow-down':'el-icon-arrow-up'" :class="!moreSalesShow?'el-icon-arrow-down':'el-icon-arrow-up'"
@click="moreSalesShow=!moreSalesShow"> @click="moreSalesShow=!moreSalesShow">
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
</el-tag> </el-tag>
</template> </template>
</div> </div>
<div class="dataText-right" v-if="msg.SaleList.length>15"> <div class="dataText-right" v-if="msg.SaleList.length>23">
<i class="icon moreText" <i class="icon moreText"
:class="!moreDrainageShow?'el-icon-arrow-down':'el-icon-arrow-up'" :class="!moreDrainageShow?'el-icon-arrow-down':'el-icon-arrow-up'"
@click="moreDrainageShow=!moreDrainageShow">{{!moreDrainageShow?'更多':'收起'}}</i> @click="moreDrainageShow=!moreDrainageShow">{{!moreDrainageShow?'更多':'收起'}}</i>
...@@ -161,10 +161,11 @@ ...@@ -161,10 +161,11 @@
watch:{ watch:{
chooseObj:{ chooseObj:{
handler(val, oldVal) { handler(val, oldVal) {
if(val.chooseType==1){ if(this.chooseObj.chooseType==1){
if(val.EmpList.length>15){ if(val.EmpList.length>23){
this.FlowList = []
val.EmpList.forEach((item,x)=>{ val.EmpList.forEach((item,x)=>{
if(x<15){ if(x<23){
this.FlowList.push(item) this.FlowList.push(item)
} }
}) })
...@@ -172,9 +173,10 @@ ...@@ -172,9 +173,10 @@
this.moreSalesShow = true this.moreSalesShow = true
} }
}else{ }else{
if(val.EmpList.length>15){ if(val.EmpList.length>23){
this.SaleList = []
val.EmpList.forEach((item,x)=>{ val.EmpList.forEach((item,x)=>{
if(x<15){ if(x<23){
this.SaleList.push(item) this.SaleList.push(item)
} }
}) })
...@@ -240,9 +242,9 @@ ...@@ -240,9 +242,9 @@
this.msg.Content = tempData.Content; this.msg.Content = tempData.Content;
this.msg.Mask = tempData.Mask; this.msg.Mask = tempData.Mask;
this.msg.FlowList = tempData.FlowList; this.msg.FlowList = tempData.FlowList;
if(tempData.FlowList.length>15){ if(tempData.FlowList.length>23){
tempData.FlowList.forEach((item,x)=>{ tempData.FlowList.forEach((item,x)=>{
if(x<15){ if(x<23){
this.FlowList.push(item) this.FlowList.push(item)
} }
}) })
...@@ -250,9 +252,9 @@ ...@@ -250,9 +252,9 @@
this.moreSalesShow = true this.moreSalesShow = true
} }
this.msg.SaleList = tempData.SaleList; this.msg.SaleList = tempData.SaleList;
if(tempData.SaleList.length>15){ if(tempData.SaleList.length>23){
tempData.SaleList.forEach((item,x)=>{ tempData.SaleList.forEach((item,x)=>{
if(x<15){ if(x<23){
this.SaleList.push(item) this.SaleList.push(item)
} }
}) })
......
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