import type { Config } from '@/components/Configurable/types';

export const testConfigSealedGoaf: Config[] = [
  // 1. 矿井状况
  {
    deviceType: 'spray_auto',
    moduleName: '矿井状况',
    pageType: 'sealed_goaf',
    moduleData: {
      header: {
        show: true,
        readFrom: '',
        selector: { show: false, value: '' },
        slot: { show: true, value: '(总计:${totalNum.productionNum})' },
      },
      background: { show: false, type: 'video', link: '' },
      layout: {
        direction: 'row',
        items: [{ name: 'simple_board', basis: '100%' }],
      },
      list: [],
      board: [],
      chart: [],
      gallery: [],
      gallery_list: [],
      table: [],
      complex_list: [],
      preset: [
        {
          readFrom: '',
          items: [
            {
              label: '${productionStatusData[5].name}',
              value: '${productionStatusData[5].num}',
              to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[5].name}',
            },
            {
              label: '${productionStatusData[4].name}',
              value: '${productionStatusData[4].num}',
              to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[4].name}',
            },
            {
              label: '${productionStatusData[13].name}',
              value: '${productionStatusData[13].num}',
              // to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[0].name}',
              tooltips: [
                {
                  label: '${productionStatusData[1].name}',
                  value: '${productionStatusData[1].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[1].name}',
                },
                {
                  label: '${productionStatusData[7].name}',
                  value: '${productionStatusData[7].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[7].name}',
                },
                {
                  label: '${productionStatusData[2].name}',
                  value: '${productionStatusData[2].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[2].name}',
                },
                {
                  label: '${productionStatusData[0].name}',
                  value: '${productionStatusData[0].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[0].name}',
                },
                {
                  label: '${productionStatusData[6].name}',
                  value: '${productionStatusData[6].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[6].name}',
                },
                {
                  label: '${productionStatusData[8].name}',
                  value: '${productionStatusData[8].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[8].name}',
                },
                {
                  label: '${productionStatusData[9].name}',
                  value: '${productionStatusData[9].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[9].name}',
                },
              ],
            },
            {
              label: '${productionStatusData[14].name}',
              value: '${productionStatusData[14].num}',
              // to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[1].name}',
              tooltips: [
                {
                  label: '${productionStatusData[10].name}',
                  value: '${productionStatusData[10].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[10].name}',
                },
                {
                  label: '${productionStatusData[11].name}',
                  value: '${productionStatusData[11].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[11].name}',
                },
                {
                  label: '${productionStatusData[12].name}',
                  value: '${productionStatusData[12].num}',
                  to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[12].name}',
                },
              ],
            },
            {
              label: '${productionStatusData[3].name}',
              value: '${productionStatusData[3].num}',
              to: '/basicinfo/mines-info?gjMineStatus=${productionStatusData[3].name}',
            },
          ],
        },
      ],
    },
    showStyle: {
      size: 'width:400px;height:190px;',
      version: '原版',
      position: 'top:90px;left:25px;',
    },
  },
  // 2. 当日生产状态
  // {
  //   deviceType: 'spray_auto',
  //   moduleName: '当日生产状态',
  //   pageType: 'sealed_goaf',
  //   moduleData: {
  //     header: {
  //       show: true,
  //       readFrom: '',
  //       selector: { show: false, value: '' },
  //       slot: { show: true, value: '(总计:${totalNum.productionNum})' },
  //     },
  //     background: { show: false, type: 'video', link: '' },
  //     layout: {
  //       direction: 'row',
  //       items: [{ name: 'board', basis: '100%' }],
  //     },
  //     list: [],
  //     board: [
  //       {
  //         type: 'A',
  //         readFrom: '',
  //         layout: 'label-top',
  //         items: [
  //           {
  //             label: '${productionStatusData[0].name}',
  //             value: '${productionStatusData[0].num}',
  //           },
  //           {
  //             label: '${productionStatusData[1].name}',
  //             value: '${productionStatusData[1].num}',
  //           },
  //           {
  //             label: '${productionStatusData[2].name}',
  //             value: '${productionStatusData[2].num}',
  //           },
  //           {
  //             label: '${productionStatusData[3].name}',
  //             value: '${productionStatusData[3].num}',
  //           },
  //         ],
  //       },
  //     ],
  //     chart: [],
  //     gallery: [],
  //     gallery_list: [],
  //     table: [],
  //     complex_list: [],
  //     preset: [],
  //   },
  //   showStyle: {
  //     size: 'width:400px;height:140px;',
  //     version: '原版',
  //     position: 'top:250px;left:25px;',
  //   },
  // },
  // 3. 煤层自燃倾向性
  {
    deviceType: 'coalSeam_fire',
    moduleName: '煤层自燃倾向性',
    pageType: 'sealed_goaf',
    moduleData: {
      header: {
        show: false,
        readFrom: '',
        selector: {
          show: false,
          value: '',
        },
        slot: {
          show: false,
          value: '',
        },
      },
      background: {
        show: false,
        type: 'video',
        link: '',
      },
      layout: {
        direction: 'column',
        items: [
          {
            name: 'chart',
            basis: '100%',
          },
        ],
      },
      chart: [
        {
          type: 'pie_drag',
          readFrom: '',
          legend: { show: false, formatter: '{b}:{c}\n{d}%' },
          xAxis: [{ show: false }],
          yAxis: [{ show: false, name: '风量', position: 'left' }],
          series: [{ readFrom: 'coalSeamFireData', xprop: 'coalSeamLevel', yprop: 'num', label: '${coalSeamFireData.desc}' }],
        },
      ],
      gallery: [],
      gallery_list: [],
      table: [],
      list: [],
      complex_list: [],
      preset: [],
      to: '/basicinfo/mines-info',
    },
    showStyle: {
      size: 'width:400px;height:210px;',
      version: '原版',
      position: 'top:280px;left:25px;',
    },
  },
  // 4. 联网状态
  {
    deviceType: 'isOnline',
    moduleName: '联网状态',
    pageType: 'sealed_goaf',
    moduleData: {
      header: {
        show: false,
        readFrom: '',
        selector: {
          show: true,
          value: '${pos}',
        },
        slot: {
          show: false,
          value: '',
        },
      },
      background: {
        show: false,
        type: 'video',
        link: '',
      },
      layout: {
        direction: 'column',
        items: [
          {
            name: 'board',
            basis: '36%',
            overflow: true,
          },
          {
            name: 'table',
            basis: '64%',
            overflow: true,
          },
        ],
      },
      board: [
        {
          type: 'B',
          readFrom: 'goafAccessCount.totalNum',
          layout: 'val-top',
          items: [
            {
              label: '应接入',
              value: '${yjTotal}',
              to: '/basicinfo/mines-info?accessStatus=1',
            },
            {
              label: '在线',
              value: '${zxTotal}',
              to: '/basicinfo/mines-info?status=1',
            },
            {
              label: '中断',
              value: '${zdTotal}',
              to: '/basicinfo/mines-info?status=0',
            },
            {
              label: '未接入',
              value: '${wjTotal}',
              to: '/basicinfo/mines-info?accessStatus=0',
            },
          ],
        },
      ],
      chart: [],
      gallery: [],
      gallery_list: [],
      table: [
        {
          type: 'B',
          // parser: 'json',
          readFrom: 'goafAccessCount.accessDetails',
          columns: [
            {
              name: ' ',
              prop: 'name',
              path: '/basicinfo/mines-info?deptId=${deptId}',
            },
            {
              name: '应接入',
              prop: 'yjNum',
            },
            {
              name: '在线',
              prop: 'zxNum',
            },
            {
              name: '中断',
              prop: 'zdNum',
            },
            {
              name: '未接入',
              prop: 'wjNum',
            },
          ],
        },
      ],
      list: [],
      complex_list: [],
      preset: [],
      // mock: {
      //   isOnline: [
      //     {
      //       pos: '生成矿井',
      //       boardArray: [
      //         {
      //           label: '低风险',
      //           value: '243',
      //         },
      //         {
      //           label: '一般风险',
      //           value: '242',
      //         },
      //         {
      //           label: '较高风险',
      //           value: '1',
      //         },
      //         {
      //           label: '高风险',
      //           value: '0',
      //         },
      //       ],
      //       tableArray: [
      //         {
      //           name: '执法一处',
      //           yjNum: '84',
      //           zxNum: '84',
      //           lxNum: '0',
      //           wjNum: '0',
      //         },
      //       ],
      //     },
      //   ],
      // },
    },
    showStyle: {
      size: 'width:400px;height:400px;',
      version: '原版',
      position: 'top:490px;left:25px;',
    },
  },
  // 4. 当日报警情况统计
  {
    deviceType: 'realtime_monitor',
    moduleName: '当日报警情况统计',
    pageType: 'sealed_goaf',
    moduleData: {
      header: {
        show: false,
        readFrom: '',
        selector: {
          show: false,
          value: '',
        },
        slot: {
          show: false,
          value: '',
        },
      },
      background: {
        show: false,
        type: 'video',
        link: '',
      },
      layout: {
        direction: 'row',
        items: [
          {
            name: 'board',
            basis: '100%',
          },
        ],
      },
      board: [
        {
          type: 'D',
          readFrom: '',
          layout: 'val-top',
          items: [
            {
              label: '${overLimitData[0].alarmDesc}',
              value: '${overLimitData[0].num}',
              to: '/warningAnalysis/overlimit-alarm?alarmFiled=${overLimitData[0].alarmFiled}',
            },
            {
              label: '${overLimitData[1].alarmDesc}',
              value: '${overLimitData[1].num}',
              to: '/warningAnalysis/overlimit-alarm?alarmFiled=${overLimitData[1].alarmFiled}',
            },
            {
              label: '${overLimitData[2].alarmDesc}',
              value: '${overLimitData[2].num}',
              to: '/warningAnalysis/overlimit-alarm?alarmFiled=${overLimitData[2].alarmFiled}',
            },
            {
              label: '${overLimitData[3].alarmDesc}',
              value: '${overLimitData[3].num}',
              to: '/warningAnalysis/overlimit-alarm?alarmFiled=${overLimitData[3].alarmFiled}',
            },
            {
              label: '${overLimitData[4].alarmDesc}',
              value: '${overLimitData[4].num}',
              to: '/warningAnalysis/overlimit-alarm?alarmFiled=${overLimitData[4].alarmFiled}',
            },
            {
              label: '${overLimitData[5].alarmDesc}',
              value: '${overLimitData[5].num}',
              to: '/warningAnalysis/overlimit-alarm?alarmFiled=${overLimitData[5].alarmFiled}',
            },
            {
              label: '${overLimitData[6].alarmDesc}',
              value: '${overLimitData[6].num}',
              to: '/warningAnalysis/overlimit-alarm?alarmFiled=${overLimitData[6].alarmFiled}',
            },
            {
              label: '${overLimitData[7].alarmDesc}',
              value: '${overLimitData[7].num}',
              to: '/warningAnalysis/overlimit-alarm?alarmFiled=${overLimitData[7].alarmFiled}',
            },
          ],
        },
      ],
      chart: [],
      gallery: [],
      gallery_list: [],
      table: [],
      list: [],
      complex_list: [],
      preset: [],
      to: '/warningAnalysis/overlimit-alarm',
    },
    showStyle: {
      size: 'width:400px;height:250px;',
      version: '原版',
      position: 'top:30px;right:25px;',
    },
  },
  // 6. 密闭情况总览 更名为 矿井情况总览
  {
    deviceType: 'sealed_info',
    moduleName: '矿井密闭风险统计',
    pageType: 'sealed_goaf',
    moduleData: {
      header: {
        show: true,
        readFrom: '',
        selector: {
          show: false,
          value: '',
        },
        slot: {
          show: true,
          value: '(总计:${totalNum.alarmNum.alarmTotal})',
        },
      },
      background: {
        show: false,
        type: 'video',
        link: '',
      },
      layout: {
        direction: 'column',
        items: [
          {
            name: 'board',
            basis: '30%',
            overflow: true,
          },
          {
            name: 'table',
            basis: '70%',
            overflow: true,
          },
        ],
      },
      board: [
        {
          type: 'C',
          readFrom: '',
          layout: 'val-top',
          items: [
            {
              label: '低风险',
              value: '${totalNum.alarmNum.alarm1Total}',
              to: '/sealed?alarmLevel=1',
            },
            {
              label: '一般风险',
              value: '${totalNum.alarmNum.alarm2Total}',
              to: '/sealed?alarmLevel=2',
            },
            {
              label: '较高风险',
              value: '${totalNum.alarmNum.alarm3Total}',
              to: '/sealed?alarmLevel=3',
            },
            {
              label: '高风险',
              value: '${totalNum.alarmNum.alarm4Total}',
              to: '/sealed?alarmLevel=4',
            },
          ],
        },
      ],
      chart: [],
      gallery: [],
      gallery_list: [],
      table: [
        {
          type: 'A',
          // parser: 'json',
          readFrom: 'goafAlarmData',
          columns: [
            {
              name: ' ',
              prop: 'managementName',
              path: '/sealed?deptId=${deptId}',
            },
            {
              name: '低风险',
              prop: 'alarm1',
            },
            {
              name: '一般风险',
              prop: 'alarm2',
            },
            {
              name: '较高风险',
              prop: 'alarm3',
            },
            {
              name: '高风险',
              prop: 'alarm4',
            },
          ],
        },
      ],
      list: [],
      complex_list: [],
      preset: [],
    },
    showStyle: {
      size: 'width:400px;height:560px;',
      version: '原版',
      position: 'top:390px;right:25px;',
    },
  },
  // 6. 采空区密闭预警分析
  // {
  //   deviceType: 'goafmonitoring',
  //   moduleName: '采空区密闭预警分析',
  //   pageType: 'sealed_goaf',
  //   moduleData: {
  //     header: {
  //       show: true,
  //       readFrom: '',
  //       selector: {
  //         show: false,
  //         value: '${pos}',
  //       },
  //       slot: {
  //         show: true,
  //         value: '(总计:200)',
  //       },
  //     },
  //     background: {
  //       show: false,
  //       type: 'video',
  //       link: '',
  //     },
  //     layout: {
  //       direction: 'column',
  //       items: [
  //         {
  //           name: 'board',
  //           basis: '42%',
  //           overflow: true,
  //         },
  //         {
  //           name: 'table',
  //           basis: '58%',
  //           overflow: true,
  //         },
  //       ],
  //     },
  //     board: [
  //       {
  //         type: 'C',
  //         readFrom: '',
  //         layout: 'val-top',
  //         items: [
  //           {
  //             label: '低风险',
  //             value: '210',
  //           },
  //           {
  //             label: '一般风险',
  //             value: '27',
  //           },
  //           {
  //             label: '较高风险',
  //             value: '17',
  //           },
  //           {
  //             label: '高风险',
  //             value: '1',
  //           },
  //         ],
  //       },
  //     ],
  //     chart: [],
  //     gallery: [],
  //     gallery_list: [],
  //     table: [
  //       {
  //         type: 'A',
  //         // parser: 'json',
  //         readFrom: 'goafAlarmData',
  //         columns: [
  //           {
  //             name: ' ',
  //             prop: 'managementName',
  //           },
  //           {
  //             name: '低风险',
  //             prop: 'alarm1',
  //           },
  //           {
  //             name: '一般风险',
  //             prop: 'alarm2',
  //           },
  //           {
  //             name: '较高风险',
  //             prop: 'alarm3',
  //           },
  //           {
  //             name: '高风险',
  //             prop: 'alarm4',
  //           },
  //         ],
  //       },
  //     ],
  //     list: [],
  //     complex_list: [],
  //     preset: [],
  //     // mock: {
  //     //   goafMonitoring: [
  //     //     {
  //     //       pos: '自燃',
  //     //       boardArray: [
  //     //         {
  //     //           label: '低风险',
  //     //           value: '210',
  //     //         },
  //     //         {
  //     //           label: '一般风险',
  //     //           value: '27',
  //     //         },
  //     //         {
  //     //           label: '较高风险',
  //     //           value: '17',
  //     //         },
  //     //         {
  //     //           label: '高风险',
  //     //           value: '1',
  //     //         },
  //     //       ],
  //     //       tableArray: [
  //     //         {
  //     //           managementName: '执法一处',
  //     //           dfx: '50',
  //     //           ybfx: '20',
  //     //           jgfx: '0',
  //     //           gfx: '0',
  //     //         },
  //     //         {
  //     //           managementName: '执法二处',
  //     //           dfx: '50',
  //     //           ybfx: '20',
  //     //           jgfx: '0',
  //     //           gfx: '0',
  //     //         },
  //     //         {
  //     //           managementName: '执法三处',
  //     //           dfx: '50',
  //     //           ybfx: '20',
  //     //           jgfx: '0',
  //     //           gfx: '0',
  //     //         },
  //     //         {
  //     //           managementName: '执法四处',
  //     //           dfx: '50',
  //     //           ybfx: '20',
  //     //           jgfx: '0',
  //     //           gfx: '0',
  //     //         },
  //     //         {
  //     //           managementName: '执法五处',
  //     //           dfx: '50',
  //     //           ybfx: '20',
  //     //           jgfx: '0',
  //     //           gfx: '0',
  //     //         },
  //     //       ],
  //     //     },
  //     //   ],
  //     // },
  //   },
  //   showStyle: {
  //     size: 'width:400px;height:300px;',
  //     version: '原版',
  //     position: 'top:920px;right:25px;',
  //   },
  // },
];

export const testConfigSealedMine: Config[] = [
  // 1. 密闭统计
  {
    deviceType: 'goaf_statistics',
    moduleName: '老空区永久密闭统计',
    pageType: 'sealed_goaf_mine',
    moduleData: {
      header: {
        show: false,
        readFrom: '',
        selector: { show: false, value: '' },
        slot: { show: false, value: '' },
      },
      background: { show: false, type: 'video', link: '' },
      layout: {
        direction: 'row',
        items: [{ name: 'gallery', basis: '100%' }],
      },
      list: [],
      board: [
        {
          type: 'F',
          readFrom: 'goafStatusNum',
          layout: 'label-top',
          items: [
            {
              label: '设备总数',
              value: '${total}',
            },
            {
              label: '正常',
              value: '${status1}',
            },
            {
              label: '未知',
              value: '${unknown}',
            },
            {
              label: '断线',
              value: '${status0}',
            },
            {
              label: '报警',
              value: '${alarm}',
            },
          ],
        },
      ],
      chart: [],
      gallery: [
        {
          type: 'A',
          readFrom: 'goafStatusNum',
          items: [
            {
              label: '设备总数',
              value: '${total}',
              // color: '',
            },
            {
              label: '正常',
              value: '${status1}',
              // color: 'lightblue',
            },
            {
              label: '未知',
              value: '${unknown}',
              // color: 'lightblue',
            },
            {
              label: '断线',
              value: '${status0}',
              // color: 'lightblue',
            },
            {
              label: '报警',
              value: '${alarm}',
              // color: 'lightblue',
            },
          ],
        },
      ],
      gallery_list: [],
      table: [],
      complex_list: [],
      preset: [],
    },
    showStyle: {
      size: 'width:400px;height:230px;',
      version: '原版',
      position: 'top:140px;left:25px;',
    },
  },

  // 2. 密闭预警统计
  {
    deviceType: 'warning_statistics',
    moduleName: '密闭预警统计',
    pageType: 'sealed_goaf_mine',
    moduleData: {
      header: {
        show: false,
        readFrom: '',
        selector: {
          show: false,
          value: '',
        },
        slot: {
          show: false,
          value: '',
        },
      },
      background: {
        show: false,
        type: 'video',
        link: '',
      },
      layout: {
        direction: 'column',
        items: [
          {
            name: 'gallery',
            basis: '100%',
          },
        ],
      },
      board: [
        {
          type: 'C',
          readFrom: 'goafAlarmNum[0]',
          layout: 'val-top',
          items: [
            {
              label: '低风险',
              value: '${alarm1}',
            },
            {
              label: '一般风险',
              value: '${alarm2}',
            },
            {
              label: '较高风险',
              value: '${alarm3}',
            },
            {
              label: '高风险',
              value: '${alarm4}',
            },
          ],
        },
      ],
      chart: [],
      gallery: [
        {
          type: 'B',
          readFrom: 'goafAlarmNum[0]',
          items: [
            {
              label: '低风险',
              value: '${alarm1}',
              // color: '',
            },
            {
              label: '一般风险',
              value: '${alarm2}',
              // color: 'lightblue',
            },
            {
              label: '较高风险',
              value: '${alarm3}',
              // color: 'lightblue',
            },
            {
              label: '高风险',
              value: '${alarm4}',
              // color: 'lightblue',
            },
          ],
        },
      ],
      gallery_list: [],
      table: [],
      list: [],
      complex_list: [],
      preset: [],
    },
    showStyle: {
      size: 'width:400px;height:270px;',
      version: '原版',
      position: 'top:350px;left:25px;',
    },
  },
  // 3.预警信息列表
  {
    deviceType: 'warning_list',
    moduleName: '预警信息列表',
    pageType: 'sealed_goaf_mine',
    moduleData: {
      header: {
        show: true,
        readFrom: '',
        selector: {
          show: false,
          value: '',
        },
        slot: {
          show: false,
          value: '',
        },
      },
      background: {
        show: false,
        type: 'video',
        link: '',
      },
      layout: {
        direction: 'column',
        items: [
          {
            name: 'table',
            basis: '100%',
            overflow: true,
          },
        ],
      },
      board: [],
      chart: [],
      gallery: [],
      gallery_list: [],
      table: [
        {
          type: 'C',
          // parser: 'json',
          readFrom: 'provinceAlarm.records',
          columns: [
            {
              name: '告警类型',
              prop: 'alarmTypeCont',
            },
            {
              name: '安装位置',
              prop: 'devicePos',
            },
            {
              name: '告警描述',
              prop: 'alarmName',
            },
          ],
        },
      ],
      list: [],
      complex_list: [],
      preset: [],
    },
    showStyle: {
      size: 'width:400px;height:260px;',
      version: '原版',
      position: 'top:600px;left:25px;',
    },
  },
  // 4.  密闭墙内墙详情展示
  {
    deviceType: 'detail_inner_display',
    moduleName: '密闭详情展示',
    pageType: 'sealed_goaf_mine',
    moduleData: {
      header: {
        show: false,
        readFrom: '',
        selector: {
          show: false,
          value: '',
        },
        slot: {
          show: false,
          value: '',
        },
      },
      background: {
        show: false,
        type: 'video',
        link: '',
      },
      layout: {
        direction: 'column',
        items: [
          {
            name: 'board_table',
            basis: '100%',
            overflow: true,
          },
        ],
      },
      board: [],
      chart: [],
      gallery: [],
      gallery_list: [],
      table: [],
      list: [],
      complex_list: [],
      preset: [
        {
          readFrom: 'monitorData.records',
          boardConfigs: [
            {
              type: 'H',
              layout: 'label-top',
              title: '密闭墙内',
              items: [
                { label: '甲烷(%)', value: '${ch4Val}' },
                { label: '一氧化碳(ppm)', value: '${coVal}' },
                { label: '二氧化碳(%)', value: '${co2Val}' },
                { label: '氧气(%)', value: '${o2Val}' },
                { label: '乙烯(ppm)', value: '${c2h2Val}' },
                { label: '乙炔(ppm)', value: '${c2h4Val}' },
                { label: '压差(Pa)', value: '${sourcePressure}' },
                { label: '温度(℃)', value: '${temperature}' },
              ],
            },
            {
              type: 'H',
              layout: 'label-top',
              title: '密闭墙外',
              items: [
                { label: '甲烷(%)', value: '${ch4ValOut}' },
                { label: '一氧化碳(ppm)', value: '${coValOut}' },
                { label: '二氧化碳(%)', value: '${co2ValOut}' },
                { label: '氧气(%)', value: '${o2ValOut}' },
                { label: '乙烯(ppm)', value: '${c2h2ValOut}' },
                { label: '乙炔(ppm)', value: '${c2h4ValOut}' },
                { label: '压差(Pa)', value: '${sourcePressure}' },
                { label: '温度(℃)', value: '${temperatureOut}' },
              ],
            },
            {
              type: 'I',
              layout: 'val-top',
              title: '预警',
              items: [
                { label: '密闭墙内自燃发火隐患等级', value: '${fireAlarm.alarmName}', tooltip: '${fireAlarmReason}' },
                { label: '密闭墙外自燃发火隐患等级', value: '${fireAlarmOut.alarmName}', tooltip: '${fireAlarmOutReason}' },
                { label: '爆炸预警等级', value: '${explosionAlarm.alarmName}' },
                { label: '压差隐患等级', value: '${sourcePressureAlarm.alarmName}', tooltip: '${sourcePressureReason}' },
                { label: '是否漏风', value: '${leakageAlarm.alarmName}' },
                { label: '密闭启封判定', value: '${unsealAlarm.alarmName}' },
              ],
            },
          ],
          table: {
            type: 'D',
            readFrom: '',
            columns: [
              { name: '安装位置', prop: 'devicePos' },
              { name: '预警等级', prop: 'alarmLevel' },
              { name: '状态', prop: 'gjMineStatus' },
            ],
          },
        },
      ],
    },
    showStyle: {
      size: 'width:400px;height:650px;',
      version: '原版',
      position: 'top:30px;right:25px;',
    },
  },

  // 6. 煤层自燃倾向性
  {
    deviceType: 'coalSeam_fire_mine',
    moduleName: '煤层自燃倾向性',
    pageType: 'sealed_goaf_mine',
    moduleData: {
      header: {
        show: false,
        readFrom: '',
        selector: {
          show: false,
          value: '',
        },
        slot: {
          show: false,
          value: '',
        },
      },
      background: {
        show: false,
        type: 'image',
        link: '/src/assets/images/sealedGoaf/configurable/gallery/bg-C-3.png',
      },
      layout: {
        direction: 'row',
        items: [
          {
            name: 'table',
            basis: '100%',
          },
        ],
      },
      chart: [
        {
          type: 'pie_drag',
          readFrom: '',
          legend: { show: false, formatter: '{b}:{c}\n{d}%' },
          xAxis: [{ show: false }],
          yAxis: [{ show: false, name: '风量', position: 'left' }],
          series: [{ readFrom: 'coalSeamFireData', xprop: 'coalSeamLevel', yprop: 'num', label: '' }],
        },
      ],
      gallery: [
        {
          type: 'C',
          readFrom: 'coalSeamFireData[0]',
          items: [
            {
              label: '${coalSeamLevel}',
              value: '${num}',
              // color: '',
            },
          ],
        },
      ],
      gallery_list: [],
      table: [
        {
          type: 'E',
          // parser: 'json',
          readFrom: 'transCoalSeamFireData',
          columns: [
            {
              name: '所属煤层',
              prop: 'coalSeamName',
            },
            {
              name: '自燃倾向性',
              prop: 'coalSeamLevel',
            },
          ],
        },
      ],
      list: [],
      complex_list: [],
      preset: [],
    },
    showStyle: {
      size: 'width:400px;height:210px;',
      version: '原版',
      position: 'top:670px;right:25px;',
    },
  },
];
