"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getSpanColorByRate = exports.getColorByRate = exports.getColor = exports.OverViewTRFields = exports.OverViewLHDorHDFields = void 0;
var OverViewLHDorHDFields = exports.OverViewLHDorHDFields = [
// 绿化或河道的基本信息
{
  key: 'tenderName',
  label: '所属标段'
}, {
  key: 'manageUnitName',
  label: '作业单位'
}, {
  key: 'typeName',
  label: '作业类型'
}, {
  key: 'facilityLength',
  label: '长度（m）'
}, {
  key: 'facilityWidth',
  label: '宽度（m）'
}, {
  key: 'facilityArea',
  label: '面积（㎡）'
}];
var OverViewTRFields = exports.OverViewTRFields = [
// 主要干道
{
  key: 'facilityClassName',
  label: '道路等级'
}, {
  key: 'typeName',
  label: '作业类型'
}, {
  key: 'tenderName',
  label: '所属标段'
}, {
  key: 'manageUnitName',
  label: '作业单位'
}, {
  key: 'facilityLength',
  label: '长度（m）'
}, {
  key: 'facilityWidth',
  label: '宽度（m）'
}, {
  key: 'facilityArea',
  label: '面积（㎡）'
}];
var getColor = exports.getColor = function getColor(bh) {
  if (!bh) return;
  // 不同设施类型颜色区分
  var colors = ['#FFDCB8', '#E95439', '#FFF700', '#3D27F6', '#1CD64E', '#00CBFF', '#BE9860', 'green'];
  if (bh.search('tr') !== -1) return colors[0];
  if (bh.search('rxd') !== -1) return colors[1];
  if (bh.search('jdcd') !== -1) return colors[2];
  if (bh.search('fjdcd') !== -1) return colors[3];
  if (bh.search('glss') !== -1) return colors[4];
  if (bh.search('hd') !== -1) return colors[5];
  if (bh.search('hp') !== -1) return colors[6];
  if (bh.search('lh') !== -1) return colors[7];
};
var getColorByRate = exports.getColorByRate = function getColorByRate(bh) {
  var color = '';
  if (!bh) {
    color = 'rgba(228, 228, 228, 1)';
  } else if (bh > 0 && bh <= 50) {
    color = 'rgba(251, 109, 90, 1)';
  } else if (bh > 50 && bh <= 80) {
    color = 'rgba(255, 204, 0, 1)';
  } else if (bh > 80 && bh < 100) {
    color = 'rgba(91, 143, 249, 1)';
  } else if (bh >= 100) {
    color = 'rgba(90, 216, 166, 1)';
  }
  return color;
};
var getSpanColorByRate = exports.getSpanColorByRate = function getSpanColorByRate(bh) {
  var color = '';
  if (!bh) {
    color = 'rgba(228, 228, 228, 1)';
  } else if (bh > 0 && bh <= 50) {
    color = 'rgba(251, 109, 90, 1)';
  } else if (bh > 50 && bh <= 80) {
    color = 'rgba(255, 204, 0, 1)';
  } else if (bh > 80 && bh < 100) {
    color = 'rgba(91, 143, 249, 1)';
  } else if (bh >= 100) {
    color = 'rgba(90, 216, 166, 1)';
  }
  return color;
};
//# sourceMappingURL=config.js.map
