shudonghui 1 年之前
父节点
当前提交
04886e7f41
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/views/my-workbenches/workbenches/message-reminder/message-list.vue

+ 7 - 2
src/views/my-workbenches/workbenches/message-reminder/message-list.vue

@@ -95,7 +95,7 @@ import PlanChangeDialog from "@/views/sop/sop-manage/plan-change/plan-change-dia
 import {reactive, ref} from "vue";
 import {MessagePlugin} from "tdesign-vue-next";
 import ViolationFlowDialog from "@/views/sop/sop-monitor/violation-registration/flow-dialog.vue";
-import {getViolationBy} from "@/api/my-workbenches";
+import {getViolationBy, setMyMessagesRead} from "@/api/my-workbenches";
 import {sopListApi} from "@/api/sop";
 
 const { tableData, pagination, onChange } = defineProps([
@@ -112,13 +112,14 @@ const showPlanChangeDialog = ref(false);
 const showQualityIssueDialog = ref(false);
 const showViolationFlowDialog = ref(false);
 const curSopData = ref({});
+const curRow = ref({});
 
 
 
 
 
 const editSopFlowHandle = (row) => {
-
+  curRow.value = row;
   if (row.messageType === 'AFTER' || row.messageType === 'BEFORE') {
     const params = reactive({
       pageNumber: 1,
@@ -161,6 +162,10 @@ const editSopFlowHandle = (row) => {
   MessagePlugin.error('未知类型待办');
 };
 const sopStepConfirm = () => {
+  setMyMessagesRead(curRow.id).then(() => {
+    // search()
+    workStore.updateWorkCounts();
+  });
   emit('success');
 };
 </script>