"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _form = _interopRequireDefault(require("antd/lib/form"));
var _vtxFormLayout = _interopRequireDefault(require("@vtx/components/lib/vtx-form-layout"));
var _vtxInput = _interopRequireDefault(require("@vtx/components/lib/vtx-input"));
var _DivisionTreeSelect = _interopRequireDefault(require("../_component/DivisionTreeSelect"));
var _RoadSelect = _interopRequireDefault(require("../_component/RoadSelect"));
var _space = _interopRequireDefault(require("antd/lib/space"));
var _inputNumber = _interopRequireDefault(require("antd/lib/input-number"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var FilterForm = function FilterForm(_ref) {
  var form = _ref.form;
  return /*#__PURE__*/_react["default"].createElement(_form["default"], {
    form: form
  }, /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"], {
    cols: 1
  }, /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u884C\u653F\u533A\u5212",
    name: "divisionId",
    getValueFromEvent: function getValueFromEvent(_ref2) {
      var keys = _ref2.keys;
      return keys[0];
    }
  }, /*#__PURE__*/_react["default"].createElement(_DivisionTreeSelect["default"], {
    popoverProps: {
      getPopupContainer: function getPopupContainer(node) {
        return node;
      }
    }
  })), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u6240\u5728\u9053\u8DEF",
    name: "roadId",
    style: {
      width: '100%'
    }
  }, /*#__PURE__*/_react["default"].createElement(_RoadSelect["default"], {
    getPopupContainer: function getPopupContainer(node) {
      return node;
    }
  })), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u5173\u8054\u8BBE\u5907",
    name: "deviceName"
  }, /*#__PURE__*/_react["default"].createElement(_vtxInput["default"], {
    placeholder: "\u8BF7\u8F93\u5165"
  })), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u6674\u5929\u5E73\u5747\u6D41\u91CF\uFF08m\xB3/h\uFF09"
  }, /*#__PURE__*/_react["default"].createElement(_space["default"], null, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "avgSunnyFlowMin"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u5F00\u59CB"
  })), /*#__PURE__*/_react["default"].createElement("span", null, "\u81F3"), /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "avgSunnyFlowMax"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u7ED3\u675F"
  })))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u96E8\u5929\u5E73\u5747\u6D41\u91CF\uFF08m\xB3/h\uFF09"
  }, /*#__PURE__*/_react["default"].createElement(_space["default"], null, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "avgRainyFlowMin"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u5F00\u59CB"
  })), /*#__PURE__*/_react["default"].createElement("span", null, "\u81F3"), /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "avgRainyFlowMax"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u7ED3\u675F"
  })))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u6674\u96E8\u6BD4"
  }, /*#__PURE__*/_react["default"].createElement(_space["default"], null, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "ratioMin"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u5F00\u59CB"
  })), /*#__PURE__*/_react["default"].createElement("span", null, "\u81F3"), /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "ratioMax"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u7ED3\u675F"
  }))))));
};
var _default = exports["default"] = FilterForm;
//# sourceMappingURL=FilterForm.js.map
