import type {ErrorSystem} from "./interface"

const errordata = ref<ErrorSystem.ErrorSystemList[]>([
      {
        id: '1',
        name: 'Q/GDW 1650.2-2016-A',
        standard_Name:'Q/GDW 1650.2-2016',
        standard_Time:'2016',
        dev_Level:'A级',
        enable:1,
        state:1,
      },
      {
        id: '2',
        name: 'Q/GDW 1650.2-2021-A',
        standard_Name:'Q/GDW 1650.2-2021',
        standard_Time:'2021',
        dev_Level:'A级',
        enable:1,
        state:1,
      },
      {
        id: '3',
        name: 'GBT 19862-2016-A',
        standard_Name:'GBT 19862-2016',
        standard_Time:'2016',
        dev_Level:'A级',
        enable:1,
        state:1,
      },
    ])

    const errordetail = ref<ErrorSystem.Error_detail[]>([
      {
           measured: '电压偏差',
           deviceLevel: 'A', 
           measurementType:'电压',
           condition: '10%~150%标称电压', 
           maxErrorValue: '±0.1%Un' 
      },
      {
           measured: '频率偏差', 
           deviceLevel: 'A', 
           measurementType:'频率',
           condition: '42.5~57.5 Hz', 
           maxErrorValue: '±0.01Hz' 
      },
      {
         measured: '三相不平衡度', 
         deviceLevel: 'A', 
         measurementType:'电压',
         condition: '0.5%~5%', 
         maxErrorValue: '±0.15%' 
      },
      {
        measured: '三相不平衡度', 
        deviceLevel: 'A', 
        measurementType:'电压',
        condition: '5%（不包含）~ 40%', 
        maxErrorValue: '±0.3%' 
     },
     {
      measured: '三相不平衡度', 
      deviceLevel: 'A', 
      measurementType:'电流',
      condition: '', 
      maxErrorValue: '±1%' 
      },
      {
        measured: '电压波动幅值', 
        deviceLevel: 'A', 
        measurementType:'电压',
        condition: '', 
        maxErrorValue: '±0.2%Un' 
      },
      {
        measured: '电压波动持续时间', 
        deviceLevel: 'A', 
        measurementType:'时间',
        condition: '', 
        maxErrorValue: '±1周波' 
      },
      {
        measured: '闪变', 
        deviceLevel: 'A', 
        measurementType:'短时间闪变',
        condition: 'Pst：0.2~10', 
        maxErrorValue: '±5%' 
      },
      {
        measured: '谐波和间谐波', 
        deviceLevel: 'A', 
        measurementType:'电压',
        condition: 'Uh≥1%Un', 
        maxErrorValue: '±5%Uh' 
      },
      {
        measured: '谐波和间谐波', 
        deviceLevel: 'A', 
        measurementType:'电压',
        condition: 'Uh＜1%Un', 
        maxErrorValue: '±0.05%Un' 
      },
      {
        measured: '谐波和间谐波', 
        deviceLevel: 'A', 
        measurementType:'电流',
        condition: 'In≥3%In', 
        maxErrorValue: '±5%Ih' 
      },
      {
        measured: '谐波和间谐波', 
        deviceLevel: 'A', 
        measurementType:'电流',
        condition: 'In＜3%In', 
        maxErrorValue: '±0.15%In' 
      },
      {
        measured: '谐波和间谐波', 
        deviceLevel: 'A', 
        measurementType:'相角',
        condition: '', 
        maxErrorValue: 'h≤5,±1°*h' 
      },
      {
        measured: '谐波和间谐波', 
        deviceLevel: 'A', 
        measurementType:'相角',
        condition: '', 
        maxErrorValue: 'h>5,±5°' 
      },
      {
        measured: '谐波和间谐波', 
        deviceLevel: 'A', 
        measurementType:'功率',
        condition: 'Ph≥150W', 
        maxErrorValue: '±1%Ph' 
      },
      {
        measured: '谐波和间谐波', 
        deviceLevel: 'A', 
        measurementType:'功率',
        condition: 'Ph＜150W', 
        maxErrorValue: '±1.5W' 
      },
      {
        measured: '高频次谐波', 
        deviceLevel: 'A', 
        measurementType:'电压',
        condition: 'Uh≥1%Un', 
        maxErrorValue: '±5%Uh' 
      },
      {
        measured: '高频次谐波', 
        deviceLevel: 'A', 
        measurementType:'电压',
        condition: 'Uh＜1%Un', 
        maxErrorValue: '±0.05%Un' 
      },
      {
        measured: '高频次谐波', 
        deviceLevel: 'A', 
        measurementType:'电流',
        condition: 'In≥3%In', 
        maxErrorValue: '±5%Ih' 
      },
      {
        measured: '高频次谐波', 
        deviceLevel: 'A', 
        measurementType:'电流',
        condition: 'In＜3%In', 
        maxErrorValue: '±0.15%In' 
      },
      {
        measured: '功率', 
        deviceLevel: 'A', 
        measurementType:'功率',
        condition: '', 
        maxErrorValue: '±0.5%' 
      },
      {
        measured: '电流', 
        deviceLevel: 'A', 
        measurementType:'电流',
        condition: 'I≥0.05In', 
        maxErrorValue: '±0.5%' 
      },
      {
        measured: '电流', 
        deviceLevel: 'A', 
        measurementType:'电流',
        condition: '0.01In≤I＜0.05In', 
        maxErrorValue: '±1%' 
      },
      {
        measured: '暂态电压幅值', 
        deviceLevel: 'A', 
        measurementType:'电压',
        condition: '', 
        maxErrorValue: '±0.2%Un' 
      },
      {
        measured: '暂态持续时间', 
        deviceLevel: 'A', 
        measurementType:'时间',
        condition: '', 
        maxErrorValue: '±1周波' 
      },
    ])
    
    
    export default {errordata,errordetail}