statDialog.vue 1.52 KB
<template>
  <GLDialog title="SOP执行统计" :visible.sync="statVisible" width="70%" :before-close="handleClose" :hasFooter="false">
    <div class="dialog-body">
      <GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="leadManage" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams"></GLTable>
    </div>
  </GLDialog>
</template>
<script>
import { getTableList } from '@/api/modules/leadManage'
export default {
  props: {
    statVisible: Boolean
  },
  data() {
    return {
      getListApi: getTableList,
      pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
      tableParams: {
        listName: 'list',
        tableColumns: [
          {
            label: '营销计划',
            prop: 'orderNo'
          },
          {
            label: '触达方式',
            prop: 'name'
          },
          {
            label: '今日营销客户数',
            prop: 'phone'
          },
          {
            label: '今日下发任务数',
            prop: 'type',
            addHtml: 'type'
          },
          {
            label: '累计营销客户数',
            prop: 'status'
          },
          {
            label: '累计下发任务数',
            prop: 'userName'
          }
        ]
      }
    }
  },
  methods: {
    handleClose() {
      this.$parent.statVisible = false
    }
  }
}
</script>
<style scoped lang="scss"></style>