index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <template-page
  3. ref="pageRef"
  4. :getList="getList"
  5. :exportList="exportList"
  6. :columnParsing="columnParsing"
  7. :optionsEvensGroup="optionsEvensGroup"
  8. :morePlan="morePlan"
  9. :operationColumnWidth="160"
  10. :operation="operation()"
  11. >
  12. <Popu v-if="visible">
  13. <SentEmailRecordsForm :item="item" @handleClose="handleClose" />
  14. </Popu>
  15. </template-page>
  16. </template>
  17. <script>
  18. import TemplatePage from '@/components/template/template-page-1.vue'
  19. import import_mixin from '@/components/template/import_mixin.js'
  20. import add_callback_mixin from '@/components/template/add_callback_mixin.js'
  21. import Popu from '@/components/template/popu.vue'
  22. import SentEmailRecordsForm from './sentEmailRecordsForm.vue'
  23. import operation_mixin from '@/components/template/operation_mixin.js'
  24. import { insureListemail, insureListemailExport, insureResend } from '@/api/InsuranceManagement.js'
  25. export default {
  26. components: { TemplatePage, Popu, SentEmailRecordsForm },
  27. mixins: [import_mixin, add_callback_mixin, operation_mixin],
  28. data() {
  29. return {
  30. morePlan: [],
  31. // 事件组合
  32. optionsEvensGroup: [],
  33. // 表格属性
  34. tableAttributes: {},
  35. // 表格事件
  36. tableEvents: {},
  37. recordSelected: [],
  38. visible: false,
  39. item: null
  40. }
  41. },
  42. methods: {
  43. // 列表请求函数
  44. getList: insureListemail,
  45. // 导出
  46. exportList: insureListemailExport,
  47. // 表格列解析渲染数据更改
  48. columnParsing(item, defaultData) {
  49. return defaultData
  50. },
  51. operation() {
  52. return this.operationBtn({
  53. detail: {
  54. conditions: ({ row, index, column }) => {
  55. return true
  56. },
  57. click: ({ row, index, column }) => {
  58. this.item = row
  59. this.visible = true
  60. }
  61. },
  62. anew: {
  63. conditions: ({ row, index, column }) => {
  64. return true
  65. },
  66. prompt: '是否确定重新发送?',
  67. click: ({ row, index, column }) => {
  68. // insureResend({
  69. // emailBatchNo: row.emailBatchNo
  70. // })
  71. // .then(res => {
  72. // this.$refs.pageRef.refreshList()
  73. // this.$message({
  74. // type: 'success',
  75. // message: `发送成功!`
  76. // })
  77. // })
  78. // .catch(err => {
  79. // console.log(err)
  80. // })
  81. }
  82. }
  83. })
  84. },
  85. // 关闭新增弹窗
  86. handleClose() {
  87. this.visible = false
  88. this.item = null
  89. }
  90. }
  91. }
  92. </script>
  93. <style lang="scss" scoped></style>