ly 3 år sedan
förälder
incheckning
ab7571e141

+ 5 - 2
ui/src/views/sems/specanalysis/centerChart.vue

@@ -16,6 +16,7 @@
 
 <script>
 import {devApproveData} from "@/api/sems/home";
+import {listUnNotice} from "@/api/system/notice";
   const totalDuration = 2000;
 
   export default {
@@ -59,8 +60,10 @@ import {devApproveData} from "@/api/sems/home";
           'plantIds': plantIds,
           'unitIds': unitIds
         }
-        devApproveData(params).then(response => {
-          this.arr = response.data;
+        listUnNotice().then(response => {
+          for (let i = 0; i < response.length; i++) {
+            this.arr.push(response[i].noticeTitle)
+          }
           //设置文字滚动一轮时间
           let elem = document.querySelector('.inner-container');
           let state = elem.style['animation'];

+ 3 - 3
ui/src/views/sems/specanalysis/index.vue

@@ -238,11 +238,11 @@
                       <icon name="chart-bar"></icon>
                     </span>
                     <div class="d-flex">
-                      <span class="fs-xl text mx-2">{{ $t('当前正在审批') }}</span>
+                      <span class="fs-xl text mx-2">{{ $t('未读消息') }}</span>
                     </div>
                   </div>
                   <div>
-                    <approve-chart ref="approveChart"/>
+                    <center-chart ref="centerChart"/>
                   </div>
                 </div>
               </div>
@@ -261,7 +261,7 @@
                     </div>
                   </div>
                   <div>
-                    <approve-chart ref="centerChart"/>
+                    <approve-chart ref="approveChart"/>
                   </div>
                 </div>
               </div>