list.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <a-card size="small" :bordered="false" class="rebateSettingsList-wrap" :style="{height:windowHeight +'px'}">
  3. <a-spin :spinning="spinning" tip="Loading...">
  4. <!-- 搜索条件 -->
  5. <div ref="tableSearch" class="table-page-search-wrapper">
  6. <a-button type="primary" @click="updateFun">钉钉审批查询</a-button>
  7. </div>
  8. </a-spin>
  9. </a-card>
  10. </template>
  11. <script>
  12. import { commonMixin } from '@/utils/mixin'
  13. import { checkOptionTask } from '@/api/mqmsg'
  14. export default {
  15. name: 'CheckDingTaskList',
  16. mixins: [commonMixin],
  17. data () {
  18. return {
  19. spinning: false,
  20. windowHeight: 0
  21. }
  22. },
  23. methods: {
  24. // 重新同步
  25. updateFun (row) {
  26. const _this = this
  27. _this.spinning = true
  28. checkOptionTask().then(res => {
  29. _this.$message.success(res)
  30. _this.spinning = false
  31. })
  32. },
  33. setTableH () {
  34. this.windowHeight = window.innerHeight - 90
  35. }
  36. },
  37. created () {
  38. this.setTableH()
  39. }
  40. }
  41. </script>
  42. <style lang="less" scope>
  43. .ant-table-tbody .ant-table-row{
  44. height:42px !important;
  45. }
  46. </style>