wyf 5 месяцев назад
Родитель
Сommit
cb7c6e1ddb

+ 1 - 1
src/components/custom-notivue/notification.vue

@@ -2,7 +2,7 @@
   <div class="custom-notification">
     <div class="titleWrapper">
       <img class="alarmIcon" :src="alarmIcon" />
-      <div class="title"> 告警通知 </div>
+      <div class="title"> 告警提醒 </div>
       <div class="close">
         <img :src="closeIcon" alt="close" @click.stop="item.clear" />
       </div>

+ 1 - 4
src/views/institute-safety/modules/safety-company-home/apis/index.ts

@@ -39,10 +39,7 @@ export function getNewIssueList() {
 // 更新已读问题id
 export function updateReadIssueId(issueId: number) {
   return http.request({
-    url: '/issue/updateLastReadIssueId',
+    url: `/issue/updateLastReadIssueId?issueId=${issueId}`,
     method: 'post',
-    params: {
-      issueId,
-    },
   });
 }

+ 1 - 1
src/views/institute-safety/modules/safety-company-home/hooks/use-violation-notice-company.ts

@@ -23,7 +23,7 @@ const useViolationRealtimeCompany = () => {
 
     if (!showItem) return;
 
-    const renderTime = dayjs(showItem.createdAt).format('yyyy-MM-dd HH:mm:ss');
+    const renderTime = dayjs(showItem.createdAt).format('YYYY-MM-DD HH:mm:ss');
     const renderPlace = getPlace([showItem.workshopName, showItem.workspaceName]);
     push.success({
       props: {