|
@@ -95,7 +95,8 @@ export default {
|
|
|
if(response.data[0]){
|
|
|
let list1 = [];
|
|
|
let list2 = [];
|
|
|
- response.data.forEach((item)=>{
|
|
|
+ let text = '';
|
|
|
+ response.data.forEach((item,index)=>{
|
|
|
if(itoOrVideoLimits(item.adminId)){
|
|
|
list1.push(item);
|
|
|
}else{
|
|
@@ -105,7 +106,12 @@ export default {
|
|
|
if(list1[0]){
|
|
|
this.$set(this,'buttonType',true);
|
|
|
this.$set(this,'planData',list1);
|
|
|
- this.$set(this,'text',list1[1]?'有多个实验室发生预案':'有实验室发生预案');
|
|
|
+ list1.forEach((item,index)=>{
|
|
|
+ text = text +(index==0?'':',')+ item.buildName+'-'+item.subName
|
|
|
+ })
|
|
|
+ text = text + ' 发生预案';
|
|
|
+ this.$set(this,'text',text);
|
|
|
+ // this.$set(this,'text',list1[1]?'有多个实验室发生预案':'有实验室发生预案');
|
|
|
this.$set(this,'planType',true);
|
|
|
//传感器
|
|
|
let planSensorList = [];
|
|
@@ -119,7 +125,12 @@ export default {
|
|
|
}else{
|
|
|
this.$set(this,'buttonType',false);
|
|
|
this.$set(this,'planData',list2);
|
|
|
- this.$set(this,'text',list2[1]?'有多个实验室发生预案':'有实验室发生预案');
|
|
|
+ list2.forEach((item,index)=>{
|
|
|
+ text = text +(index==0?'':',')+ item.buildName+'-'+item.subName
|
|
|
+ })
|
|
|
+ text = text + ' 发生预案';
|
|
|
+ this.$set(this,'text',text);
|
|
|
+ // this.$set(this,'text',list2[1]?'有多个实验室发生预案':'有实验室发生预案');
|
|
|
this.$set(this,'planType',true);
|
|
|
//传感器
|
|
|
let planSensorList = [];
|
|
@@ -207,6 +218,11 @@ export default {
|
|
|
flex:1;
|
|
|
line-height:40px;
|
|
|
color:red;
|
|
|
+ /*单行省略号*/
|
|
|
+ display:block;
|
|
|
+ overflow:hidden;
|
|
|
+ text-overflow:ellipsis;
|
|
|
+ white-space:nowrap;
|
|
|
}
|
|
|
p:nth-child(2){
|
|
|
line-height:40px;
|