<template>
  <div v-loading="loading" class="app-container">
    <el-button type="success" @click="sendEmail">发送问题件邮件</el-button>
  </div>
</template>

<script>
import request from '@/utils/request'

export default {
  name: 'ProblemOrderEmail',
  data() {
    return {
      loading: false
    }
  },
  methods: {

    sendEmail() {
      const that = this
      that.loading = true
      request({
        url: 'http://120.24.149.148/api/TrackingMore/SendEmails',
        method: 'get'
      })
        .then((resp) => {
          const ok = resp.success
          if (ok === true) {
            that.$alert('发送成功')
          } else {
            const msg = res.message || res.Message || '发送失败'
            that.$alert(msg)
          }
        })
        .finally(() => {
          that.loading = false
        })
    }
  }
}
</script>

<style></style>
