<!-- 斥候IP设置——无线网关页面 -->
<template>
  <div>
    <!-- <el-button type="info" plain @click="getShow">斥候IP设置——无线网关</el-button> -->
    <div class="gateway" v-show="isShow">
      <div class="title">
        <p class="title_l">IP配置</p>
        <i class="el-icon-close title_r" @click="isShow = false"></i>
      </div>
      <el-divider></el-divider>
      <div class="content">
        <el-form :label-position="labelPosition" :rules="rules" ref="ruleForm">
          <el-row>
            <el-col :span="24">
              <el-form-item
                label="客户端SSID:"
                :label-width="formLabelWidth"
                prop="ippz_ssid"
              >
                <el-input
                  v-model="ippz_ssid"
                  placeholder="请输入WIFI名字"
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item label="认证方式:" :label-width="formLabelWidth">
                <el-select v-model="ippz_rzfs" placeholder="开放式">
                  <el-option
                    v-for="item in options1"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item label="加密方式:" :label-width="formLabelWidth">
                <el-select v-model="ippz_jmfs" placeholder="NONE">
                  <el-option
                    v-for="item in options2"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item
                label="密码:"
                :label-width="formLabelWidth"
                prop="ippz_mm"
              >
                <el-input
                  v-model="ippz_mm"
                  placeholder="请输入wifi密码"
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <div class="footer">
            <el-button type="primary">保 存</el-button>
            <el-button @click="isShow = false">取 消</el-button>
          </div>
        </el-form>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ChiGate",
  data() {
    return {
      ippz_ssid: "",
      ippz_rzfs: "开放式", //答案：WPA2-PSK
      ippz_jmfs: "NONE", //答案：AES
      ippz_mm: "",
      options1: [
        {
          value: "开放式",
          label: "开放式",
        },
        {
          value: "共享式",
          label: "共享式",
        },
        {
          value: "WPA-PSK",
          label: "WPA-PSK",
        },
        {
          value: "WPA",
          label: "WPA",
        },
        {
          value: "WPA2-PSK",
          label: "WPA2-PSK",
        },
        {
          value: "WPA2",
          label: "WPA2",
        },
      ],
      options2: [
        {
          value: "NONE",
          label: "NONE",
        },
        {
          value: "WEP40",
          label: "WEP40",
        },
        {
          value: "WEP104",
          label: "WEP104",
        },
        {
          value: "AES",
          label: "AES",
        },
      ],
      labelPosition: "left",
      formLabelWidth: "116px",
      value: "测试",
      count: 0,
      isShow: true,
      rules: {
        ippz_ssid: [
          { required: true, message: "请输入客户端SSID", trigger: "blur" },
        ],
        ippz_mm: [{ required: true, message: "请输入密码", trigger: "blur" }],
      },
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.gateway {
  position: absolute;
  left: 648px;
  top: 226px;
  width: 470px;
  height: 384px;
  line-height: 20px;
  background-color: rgba(255, 255, 255, 1);
  text-align: center;
  border: 1px solid rgba(187, 187, 187, 1);

  .el-divider--horizontal {
    margin: 10px 0;
  }

  .title {
    margin: 13px 6px 0px 25px;
    display: flex;
    justify-content: space-between;

    .title_l {
      width: 53px;
      height: 26px;
      color: rgba(16, 16, 16, 1);
      font-size: 18px;
      text-align: left;
    }

    .title_r {
      width: 24px;
      height: 24px;
      cursor: pointer;
      color: rgba(111, 103, 103, 1);
    }
  }

  /deep/ .content {
    margin-left: 62px;
    margin-right: 114px;

    .el-input__inner {
      width: 200px;
      height: 30px;
    }
  }

  /deep/ .footer {
    .el-button {
      width: 80px;
      height: 30px;
      line-height: 0.5;
    }
  }
}
</style>
