"use strict";
const common_vendor = require("../../../../common/vendor.js");
if (!Array) {
  const _easycom_qiun_data_charts2 = common_vendor.resolveComponent("qiun-data-charts");
  _easycom_qiun_data_charts2();
}
const _easycom_qiun_data_charts = () => "../../../../uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.js";
if (!Math) {
  (_easycom_qiun_data_charts + ChartCard)();
}
const ChartCard = () => "../../../../components/chartCard.js";
const _sfc_main = {
  __name: "riskRankingCard",
  setup(__props) {
    const opts = common_vendor.ref({
      color: ["#EE6666", "#EF893B", "#EFCB3B", "#3B8CEF"],
      padding: [5, 5, 5, 5],
      enableScroll: false,
      legend: {
        lineHeight: 20,
        fontSize: 10,
        itemGap: 20
      },
      extra: {
        pie: {
          activeOpacity: 0.5,
          activeRadius: 10,
          offsetAngle: 0,
          labelWidth: 15,
          border: true,
          borderWidth: 3,
          borderColor: "#FFFFFF"
        }
      }
    });
    const chartData = common_vendor.ref({});
    common_vendor.onReady(() => {
      let res = {
        series: [{
          data: [{
            "name": "重大风险",
            "value": 50,
            "labelText": "重大风险:50"
          }, {
            "name": "较大风险",
            "value": 30,
            "labelText": "较大风险:30"
          }, {
            "name": "一般风险",
            "value": 20,
            "labelText": "一般风险:20"
          }, {
            "name": "低风险",
            "value": 8,
            "labelText": "低风险:8"
          }]
        }]
      };
      chartData.value = JSON.parse(JSON.stringify(res));
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.p({
          type: "pie",
          opts: opts.value,
          chartData: chartData.value
        }),
        b: common_vendor.p({
          margin: "0 0 30rpx 0",
          title: "风险分级管控"
        })
      };
    };
  }
};
wx.createComponent(_sfc_main);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/index/board/safe/riskRankingCard.js.map
