Sfoglia il codice sorgente

Merge branch 'VERSIONS-menJin' into leb-web-dev

dedsudiyu 1 settimana fa
parent
commit
dec1051fd3

+ 19 - 3
src/layout/components/AppMain.vue

@@ -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;

+ 1 - 1
src/views/safetyCheck/inspectProject/inspectProjectTable/index.vue

@@ -12,7 +12,7 @@
             size="small"/>
         </el-form-item>
         <div class="num-data-box">
-          已更新至《高等学校实验室安全检查项目表(2024年)》
+          已更新至《高等学校实验室安全检查项目表(2025年)》
         </div>
         <el-form-item>
           <p class="page-inquire-common-style-button" @click="onSearch">查询</p>