"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: "inspectionRecord",
  setup(__props) {
    const opts = common_vendor.ref({
      padding: [15, 15, 0, 15],
      enableScroll: false,
      legend: {
        show: false
      },
      xAxis: {
        disableGrid: true
      },
      yAxis: {
        disabled: false,
        disableGrid: false,
        splitNumber: 5,
        gridType: "dash",
        dashLength: 4,
        gridColor: "#CCCCCC",
        padding: 10,
        showTitle: true,
        data: [
          {
            position: "left",
            title: "",
            textAlign: "left"
          },
          {
            position: "right",
            min: 0,
            max: 100,
            title: "单位: %"
          }
        ]
      },
      extra: {
        mix: {
          column: {
            width: 20
          }
        }
      }
    });
    const chartData = common_vendor.ref({});
    const handleTap = (e) => {
      common_vendor.index.__f__("log", "at pages/index/board/qms/inspectionRecord.vue:61", e);
    };
    common_vendor.onReady(() => {
      let res = {
        categories: ["设材报验数", "机具报验数", "人员报验数"],
        series: [
          {
            name: "",
            index: 1,
            type: "line",
            color: "#5cffc9",
            data: [70, 50, 85]
          },
          {
            name: "",
            type: "column",
            style: "curve",
            color: "#fff705",
            disableLegend: true,
            data: [56872, 4027, 8452],
            format: "formatDataLabel"
          }
        ]
      };
      chartData.value = JSON.parse(JSON.stringify(res));
    });
    return (_ctx, _cache) => {
      return {
        a: common_vendor.o(handleTap, "9d"),
        b: common_vendor.p({
          type: "mix",
          opts: opts.value,
          chartData: chartData.value
        }),
        c: common_vendor.p({
          margin: "30rpx 0 0 0",
          title: "报验记录"
        })
      };
    };
  }
};
wx.createComponent(_sfc_main);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/index/board/qms/inspectionRecord.js.map
