<template>
  <div class="rangePoint">
    <div class="item">
      <el-form>
        <el-form-item>
          <el-input
            v-model="input"
            placeholder="请输入查询参数"
            style="width:250px"
          ></el-input>
          <el-button type="primary" @click="onclick">查询</el-button>
        </el-form-item>
      </el-form>
    </div>
    <div class="table">
      <dilTable v-bind.sync="option"></dilTable>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      option: {
        requestUrl: "/api/v1/ams/getRangePoint?apiId=499"
      },
      input: null
    };
  },
  methods: {
    onclick() {
      this.option.requestUrl =
        "/api/v1/ams/getRangePoint?apiId=499&con=" +
        this.input +
        "&i=" +
        new Date();
    }
  }
};
</script>
<style lang="scss" scoped>
.rangePoint {
  .item {
    margin-left: 20px;
    margin-top: 20px;
  }
  .table {
    margin-left: 20px;
    margin-top: 20px;
  }
}
</style>
