"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 _vtxSelect = _interopRequireDefault(require("@vtx/components/lib/vtx-select"));
var _space = _interopRequireDefault(require("antd/lib/space"));
var _inputNumber = _interopRequireDefault(require("antd/lib/input-number"));
var _form = _interopRequireDefault(require("antd/lib/form"));
var _config = require("./config");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var typeList = [_config.SedimentationType.CQYJ, _config.SedimentationType.TFDS, _config.SedimentationType.GTGD, _config.SedimentationType.ZC];
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: "\u7BA1\u7EBF\u7F16\u53F7",
    name: "lineNo"
  }, /*#__PURE__*/_react["default"].createElement(_vtxInput["default"], {
    placeholder: "\u8BF7\u8F93\u5165"
  })), /*#__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: "\u6DE4\u79EF\u7C7B\u578B",
    name: "sedimentationTypes"
  }, /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"], {
    getPopupContainer: function getPopupContainer(node) {
      return node;
    }
  }, /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"].Option, {
    value: ""
  }, "\u5168\u90E8"), typeList.map(function (type) {
    return /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"].Option, {
      value: type,
      key: type
    }, _config.SedimentationTypeName[type]);
  }))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u6DE4\u79EF\u65F6\u957F(h)"
  }, /*#__PURE__*/_react["default"].createElement(_space["default"], null, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "durationHourMin"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u6700\u5C0F\u503C"
  })), /*#__PURE__*/_react["default"].createElement("span", null, "~"), /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "durationHourMax"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u6700\u5927\u503C"
  })))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u5E73\u5747\u6DB2\u4F4D(m)"
  }, /*#__PURE__*/_react["default"].createElement(_space["default"], null, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "avgWaterLevelMin"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u6700\u5C0F\u503C"
  })), /*#__PURE__*/_react["default"].createElement("span", null, "~"), /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "avgWaterLevelMax"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u6700\u5927\u503C"
  })))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u5E73\u5747\u6D41\u901F(m/s)"
  }, /*#__PURE__*/_react["default"].createElement(_space["default"], null, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "avgFlowSpeedMin"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u6700\u5C0F\u503C"
  })), /*#__PURE__*/_react["default"].createElement("span", null, "~"), /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
    noStyle: true,
    name: "avgFlowSpeedMax"
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    style: {
      width: '100%'
    },
    placeholder: "\u6700\u5927\u503C"
  }))))));
};
FilterForm.propTypes = {
  form: _propTypes["default"].object
};
var _default = exports["default"] = FilterForm;
//# sourceMappingURL=FilterForm.js.map
