"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _vtxFormLayout = _interopRequireDefault(require("@vtx/components/lib/vtx-form-layout"));
var _input = _interopRequireDefault(require("antd/lib/input"));
var _inputNumber = _interopRequireDefault(require("antd/lib/input-number"));
var _antd = require("antd");
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 unitList = [{
  label: '分钟',
  key: 'MINUTE'
}, {
  label: '小时',
  key: 'HOUR'
}];
var PipelineNetworkBlocking = function PipelineNetworkBlocking() {
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u6CF5\u7AD9\u5F00\u542F\u524D\u591A\u4E45\u8BA1\u5165\u5206\u6790\u65F6\u6BB5",
    required: true
  }, /*#__PURE__*/_react["default"].createElement(_antd.Space, {
    size: 0
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
    name: "beforeOpenDuringTime",
    rules: [{
      required: true,
      message: '必填'
    }],
    noStyle: true
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    placeholder: "\u8BF7\u8F93\u5165",
    min: 0,
    precision: 0
  })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
    name: "beforeOpenDuringTimeUnit",
    rules: [{
      required: true,
      message: '必填'
    }],
    noStyle: true,
    initialValue: 'MINUTE'
  }, /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"], null, unitList.map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(Option, {
      key: item.key
    }, item.label);
  }))))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    label: "\u6CF5\u7AD9\u505C\u6B62\u591A\u4E45\u8BA1\u5165\u5206\u6790\u65F6\u6BB5",
    required: true
  }, /*#__PURE__*/_react["default"].createElement(_antd.Space, {
    size: 0
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
    name: "afterStopDuringTime",
    rules: [{
      required: true,
      message: '必填'
    }],
    noStyle: true
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    placeholder: "\u8BF7\u8F93\u5165",
    min: 0,
    precision: 0
  })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
    name: "afterStopDuringTimeUnit",
    rules: [{
      required: true,
      message: '必填'
    }],
    noStyle: true,
    initialValue: 'MINUTE'
  }, /*#__PURE__*/_react["default"].createElement(_vtxSelect["default"], null, unitList.map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(Option, {
      key: item.key
    }, item.label);
  }))))), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "waterLevelChangeSimilarityThreshold",
    label: "\u6DB2\u4F4D\u53D8\u5316\u76F8\u4F3C\u5EA6\u9608\u503C",
    rules: [{
      required: true,
      message: '必填'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], {
    placeholder: "\u8BF7\u8F93\u5165",
    addonAfter: "%",
    min: 1,
    precision: 0
  })), /*#__PURE__*/_react["default"].createElement("div", null, "\u5904\u7406\u63AA\u65BD\u914D\u7F6E"), /*#__PURE__*/_react["default"].createElement(_vtxFormLayout["default"].FormItem, {
    name: "handlingMeasures",
    label: "\u5835\u585E\u5904\u7406\u63AA\u65BD",
    rules: [{
      required: true,
      message: '请填写堵塞处理措施'
    }]
  }, /*#__PURE__*/_react["default"].createElement(_input["default"].TextArea, {
    showCount: true,
    maxLength: 100,
    placeholder: "\u8BF7\u8F93\u5165"
  })));
};
var _default = exports["default"] = PipelineNetworkBlocking;
//# sourceMappingURL=PipelineNetworkBlocking.js.map
