123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <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>
- {{ $t('aiManager.title') }}
- </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>
|