修改请求路径

master
wuxiaolong 2023-11-25 12:16:47 +08:00
parent 30ddc5764e
commit 9b28fb1964
2 changed files with 45 additions and 11 deletions

View File

@ -0,0 +1,9 @@
import request from '@/utils/request'
// 查询参数列表
export function list() {
return request({
url: '/fence/fenceTag/list',
method: 'get'
})
}

View File

@ -1,33 +1,48 @@
<template> <template>
<div> <div>
<h2>电子围栏</h2>
<el-table :data="tableData" style="width: 100%"> <el-table :data="tableData" style="width: 100%">
<el-table-column label="日期" width="180"> <el-table-column label="围栏标签主键id" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span style="margin-left: 10px">{{ scope.row.date }}</span> <span style="margin-left: 10px">{{ scope.row.fenceTagId }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="日期" width="180"> <el-table-column label="围栏标签名称" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span style="margin-left: 10px">{{ scope.row.data}}</span> <span style="margin-left: 10px">{{ scope.row.fenceTagName}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="日期" width="180"> <el-table-column label="创建人" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span style="margin-left: 10px">{{ scope.row.data }}</span> <span style="margin-left: 10px">{{ scope.row.createdBy }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="日期" width="180"> <el-table-column label="创建时间" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span style="margin-left: 10px">{{scope.row.data}}</span> <span style="margin-left: 10px">{{ scope.row.createdTime}}</span>
</template>
</el-table-column>
<el-table-column label="更新人" width="180">
<template slot-scope="scope">
<i class="el-icon-time"></i>
<span style="margin-left: 10px">{{scope.row.updatedBy}}</span>
</template>
</el-table-column>
<el-table-column label="更新时间" width="180">
<template slot-scope="scope">
<i class="el-icon-time"></i>
<span style="margin-left: 10px">{{scope.row.updatedTime}}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -39,8 +54,9 @@
<script> <script>
//jsjsjson, //jsjsjson,
//import from ', //import from ',
import { list } from "@/api/system/fence";
export default { export default {
//import使" //import使"
components: {}, components: {},
props: {}, props: {},
@ -54,7 +70,8 @@
status: null, status: null,
alarmType: null, alarmType: null,
fenceTagId: null, fenceTagId: null,
} },
tableData:[],
}; };
}, },
// data", // data",
@ -62,9 +79,17 @@
//data", //data",
watch: {}, watch: {},
//", //",
methods: {}, methods: {
FenceList() {
list().then(res => {
console.log(res.data.data)
this.tableData=res.data.data
})
},
},
// - 访this", // - 访this",
created() { created() {
this.FenceList();
}, },
// - 访DOM", // - 访DOM",
mounted() { mounted() {