EquipmentTimeErrorVerification.vue 1.96 KB
<template>
    <a-table :dataSource="dataList" v-loading="isLoading" :columns="[
          {
                title: '集团名称',
                dataIndex: 'accountname',
                align:'center',
                slots: {
                    customRender: 'accountname',
                },
          },
          {
                title: '商场名称',
                dataIndex: 'mallname',
                align:'center',
          },
          {
                title: '监控点名称',
                dataIndex: 'gatename',
                align:'center',
          },
           {
                title: '设备号',
                dataIndex: 'serialnum',
                align:'center',
          },
           {
                title: 'IP',
                dataIndex: 'local_ip',
                align:'center',
          },
          {
                title: 'mac地址',
                dataIndex: 'mac',
                align:'center',
          },
           {
                title: '发送的错误的数据日期',
                dataIndex: 'errordate',
                align:'center',
          },
          {
                title: '统计日期',
                dataIndex: 'countdate',
                align:'center',
          }
        ]" :pagination="false">

    </a-table>
</template>
<script>
import {defineComponent, ref} from 'vue'
import equipmentTimeErrorVerificationApi from '@/views/EquipmentTimeErrorVerification/EquipmentTimeErrorVerificationApi'

export default defineComponent({
    setup() {
        const dataList = ref([])
        const isLoading = ref(false)

        const __main = function() {
            isLoading.value = true
            equipmentTimeErrorVerificationApi.getList().then(
                (r) => {
                    isLoading.value = false
                    dataList.value = r.data
                }
            )
        }

        __main()
        return {
            isLoading,
            dataList,
        }
    },
})
</script>