liyongli 2 years ago
parent
commit
0238c46751
2 changed files with 5 additions and 3 deletions
  1. 1 1
      src/api/index.js
  2. 4 2
      src/view/allMedia/components/reporting_list.vue

+ 1 - 1
src/api/index.js

@@ -161,7 +161,7 @@ export function reportingShenhe(ori) {
     api: '/clue/verify',
     data: ori.data,
     type: 'ajax',
-    method: 'GET',
+    method: 'POST',
     headers: {
       Authorization: localStorage.getItem('token'),
     },

+ 4 - 2
src/view/allMedia/components/reporting_list.vue

@@ -204,7 +204,7 @@ const replySave = () => {
       userName: reportingReplyStatus.value.author || '',
     },
   }).then(() => {
-
+    listTable.value[reportingDetailData.value.$index].replyFlag = 1;
   });
 };
 
@@ -214,15 +214,17 @@ const confirm = item => {
       type: 'success',
       message: '审核通过',
     });
+    listTable.value[item.$index].status = 1;
   });
 };
 
 const cancel = item => {
-  reportingShenhe({ data: { id: item.row.id, status: 2 } }).then(() => {
+  reportingShenhe({ data: { id: item.row.id, status: -1 } }).then(() => {
     ElMessage({
       type: 'success',
       message: '拒绝通过',
     });
+    listTable.value[item.$index].status = -1;
   });
 };