index.js 4.29 KB
import filter from '@/utils/filter.js'
class data extends filter {
  constructor() {
    super()
  }
  columns () {
    return [
      {
        prop: "recType",
        label: "行政区",
        width: '90'
      },
      {
        label: '增量数据接入情况',
        children: [
          {
            prop: 'busniessCount',
            label: '本期接入业务量(笔)',
          },
          {
            prop: 'receiveCount',
            label: '本期接入业务量(次)',
          },
          {
            prop: 'recordTotal',
            label: '本期登簿日志反映出的登簿量(条)',
          },
          {
            label: '本期接入质量评价',
            children: [
              {
                prop: 'noReportLog',
                label: '未上报登簿日志县区数(个)',
              },
              {
                prop: 'noReportArea',
                label: '未上报数据县区数(个)',
              },
              {
                label: '本期未成功接入登簿量及在登簿日志量中的占比',
                width: '120',
                children: [
                  {
                    prop: 'failReportCount',
                    label: '未成功接入登簿量(条)',

                  },
                  {
                    prop: 'failReportRatio',
                    label: '占比',
                    render: (h, scope) => {
                      return (
                        <span>{(scope.row.failReportRatio * 100).toFixed(2)}%</span>
                      );
                    },
                  }
                ]
              },
              {
                label: '分时段接入登簿量及与本期接入登簿量的占比',
                children: [
                  {
                    label: '24小时内接入登簿量(占比%)',
                    width: '120',
                    children: [
                      {
                        prop: 'failReportCount24h',
                      },
                      {
                        prop: 'failReportRatio24h',
                        render: (h, scope) => {
                          return (
                            <span>{(scope.row.failReportRatio24h * 100).toFixed(2)}%</span>
                          );
                        },
                      }
                    ]
                  },
                  {
                    label: '48小时内接入登簿量(占比%)',
                    width: '120',
                    children: [
                      {
                        prop: 'failReportCount24To48h',
                      },
                      {
                        prop: 'failReportRatio24To48h',
                        render: (h, scope) => {
                          return (
                            <div>
                              <span>{(scope.row.failReportRatio24To48h * 100).toFixed(2)}</span>
                              %
                            </div>
                          );
                        },
                      }
                    ]
                  },
                  {
                    label: '超过48小时接入登簿量(占比%)',
                    width: '120',
                    children: [
                      {
                        prop: 'failReportCount48h',
                      },
                      {
                        prop: 'failReportRatio48h',
                        render: (h, scope) => {
                          return (
                            <span>{(scope.row.failReportRatio48h * 100).toFixed(2)}%</span>
                          );
                        },
                      }
                    ]
                  }
                ]
              },
              {
                prop: 'xxx',
                label: '网络环境异常情况',
              },
              {
                prop: 'xxx',
                label: '非登簿环节接入的区县数',
              },
              {
                prop: 'xxx',
                label: '非自动方式接入的区县数',
              },
              {
                prop: 'rate',
                label: '综合评分'
              }
            ]
          }
        ]
      }
    ]
  }
}
export default new data()