"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
var _vtxFormLayout = _interopRequireDefault(require("@vtx/components/lib/vtx-form-layout"));
var _vtxInput = _interopRequireDefault(require("@vtx/components/lib/vtx-input"));
var _space = _interopRequireDefault(require("antd/lib/space"));
var _inputNumber = _interopRequireDefault(require("antd/lib/input-number"));
var _form = _interopRequireDefault(require("antd/lib/form"));
var _vtxSelect = _interopRequireDefault(require("@vtx/components/lib/vtx-select"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var Option = _vtxSelect["default"].Option;
var FilterForm = function FilterForm(_ref) {
  var form = _ref.form,
    facilityTypeCodeList = _ref.facilityTypeCodeList;
  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: "\u8BBE\u65BD\u7C7B\u578B",
    name: "facilitySubType"
  }, /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"], {
    getPopupContainer: function getPopupContainer(node) {
      return node;
    }
  }, /*#__PURE__*/_react["default"].createElement(Option, {
    value: 'manhole'
  }, "\u6C61\u6C34\u7AA8\u4E95"), /*#__PURE__*/_react["default"].createElement(Option, {
    value: 'line'
  }, "\u6C61\u6C34\u7BA1\u7F51"), /*#__PURE__*/_react["default"].createElement(Option, {
    value: 'pump_station'
  }, "\u6C61\u6C34\u6CF5\u7AD9"), /*#__PURE__*/_react["default"].createElement(Option, {
    value: 'sewage_plant'
  }, "\u6C61\u6C34\u5382"), (facilityTypeCodeList || []).map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(Option, {
      key: item.code
    }, item.name);
  }))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u62A5\u8B66\u503C"
  }, /*#__PURE__*/_react["default"].createElement(_space["default"], null, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "alarmDataMin"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u5F00\u59CB",
    min: 0
  })), /*#__PURE__*/_react["default"].createElement("span", null, "\u81F3"), /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "alarmDataMax"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u7ED3\u675F",
    min: 0
  }))))));
};
FilterForm.propTypes = {
  form: _propTypes["default"].object
};
var _default = exports["default"] = FilterForm;
//# sourceMappingURL=FilterForm.js.map
