|
@@ -17,6 +17,7 @@
|
|
|
>未读</t-tag
|
|
|
>
|
|
|
</div>
|
|
|
+ <div class="m-time">{{ timestampFilter(item.sendTime, 'mm') }}</div>
|
|
|
</div>
|
|
|
<div class="m-body m-t-10px">
|
|
|
<div class="m-content">{{ item.content }}</div>
|
|
@@ -124,6 +125,8 @@ import { MessagePlugin } from 'tdesign-vue-next';
|
|
|
import ViolationFlowDialog from '@/views/sop/sop-monitor/violation-registration/flow-dialog.vue';
|
|
|
import { getViolationBy, setMyMessagesRead } from '@/api/my-workbenches';
|
|
|
import { sopListApi } from '@/api/sop';
|
|
|
+import { useWorkStore } from '@/store';
|
|
|
+const workStore = useWorkStore();
|
|
|
|
|
|
const IS_CYTX = (item) => {
|
|
|
return ['OFFICE_SOP', 'CLOUD_MARK_SOP'].includes(item.messageType);
|
|
@@ -168,6 +171,10 @@ const editSopFlowHandle = (row, is_cytx) => {
|
|
|
showSopStepDialog.value = true;
|
|
|
if (is_cytx && curSopData.value) {
|
|
|
sessionStorage.setItem('switchSetup', row.setup);
|
|
|
+ setMyMessagesRead(row.id).then(() => {
|
|
|
+ workStore.updateWorkCounts();
|
|
|
+ row.readStatus = true;
|
|
|
+ });
|
|
|
}
|
|
|
} else {
|
|
|
MessagePlugin.error('未找到对应的SOP');
|