linwenxin 5 bulan lalu
induk
melakukan
0acaa3e18c

+ 7 - 7
src/api/InsuranceManagement.js

@@ -172,13 +172,13 @@ export function insureDetailemail(params) {
   })
 }
 
-// export function insureResend(params) {
-//   return request({
-//     url: `/insure/resend`,
-//     method: 'post',
-//     params
-//   })
-// }
+export function insureResend(params) {
+  return request({
+    url: `/mailbox/resend`,
+    method: 'post',
+    params
+  })
+}
 
 // --------------------------------------------------------
 

+ 14 - 14
src/views/setting/insuranceAdministration/sentEmailRecords/index.vue

@@ -63,23 +63,23 @@ export default {
         },
         anew: {
           conditions: ({ row, index, column }) => {
-            return true
+            return row.sendStatus == 'NO'
           },
           prompt: '是否确定重新发送?',
           click: ({ row, index, column }) => {
-            // insureResend({
-            //   emailBatchNo: row.emailBatchNo
-            // })
-            //   .then(res => {
-            //     this.$refs.pageRef.refreshList()
-            //     this.$message({
-            //       type: 'success',
-            //       message: `发送成!`
-            //     })
-            //   })
-            //   .catch(err => {
-            //     console.log(err)
-            //   })
+            insureResend({
+              sendBatch: row.sendBatch
+            })
+              .then(res => {
+                this.$refs.pageRef.refreshList()
+                this.$message({
+                  type: 'success',
+                  message: `发送成!`
+                })
+              })
+              .catch(err => {
+                console.log(err)
+              })
           }
         }
       })