<template>
  <div id="devAiEdit w-full" style="width:100%">
    <div class="page-header">
      <div class="page-title">
        <el-button icon="el-icon-back" size="mini" style="font-size: 20px; color: #000;" type="text" @click="back" ></el-button>
        <el-divider direction="vertical"></el-divider>
        设备ai参数设置
      </div>

      <div class="page-header-btn">

      </div>
    </div>

    <el-container v-loading="isLoading" style="min-height: 82vh;flex-direction: column;" >

    </el-container>
  </div>
</template>

<script>
export default {
  name: "devAiEdit",
  data(){
    return {
      //
      aiId: this.$route.params.aiId,
      isLoading: false,
    }
  },
  mounted() {
    this.loadAiData();
  },
  methods:{
    back(){
      this.$router.back();
      if (this.deviceId === "" ) {
        this.beforeUrl = "/deviceList"
      }
    },
    loadAiData(){
      let that = this;
      this.$axios.axios({
        method: 'post',
        url: '/api/device/ai/edit/' + that.aiId
      }).then((res) => {
        console.log("获取ai数据结果：" + JSON.stringify(res));
      }).catch((e) => {
        console.error(e)
        that.$message({
          showClose: true,
          message: e,
          type: 'error'
        });
      });
    }
  }
}
</script>

<style scoped>

</style>
