电子围栏48

server_yn_4.8
Yan Nan 2024-04-08 10:01:42 +08:00
parent 169c182bf5
commit e4e10d63aa
2 changed files with 231 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import request from "@/utils/request";
export function recordList(data) {
return request({
url: '/corpor/recordList',
method: 'post',
data
})
}

View File

@ -0,0 +1,222 @@
<template>
<div>
<h1>车辆记录管理</h1>
<!-- 条件查询-->
<el-form :inline="true" :model="record" class="demo-form-inline">
<el-form-item label="VIN">
<el-input v-model="record.recordName" placeholder="审批人"></el-input>
</el-form-item>
<el-form-item label="开始时间">
<el-date-picker
v-model="record.recordDateStart"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间">
<el-date-picker
v-model="record.recordDateEnd"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit" icon="el-icon-search">搜索</el-button>
<el-button @click="reset" icon="el-icon-refresh-left">重置</el-button>
</el-form-item>
</el-form>
<!-- 记录车辆列表-->
<el-table :data="tableData" style="width: 100%">
<el-table-column
label="车辆记录ID"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.recordId }}</span>
</template>
</el-table-column>
<el-table-column
label="VIN"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.recordName }}</span>
</template>
</el-table-column>
<el-table-column
label="开始时间"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.recordDateStart }}</span>
</template>
</el-table-column>
<el-table-column
label="结束时间"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.recordDateEnd }}</span>
</template>
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-link type="primary" icon="el-icon-map-location" @click="historicaltrack"></el-link>
<el-link type="primary" icon="el-icon-delete" @click="del"></el-link>
</template>
</el-table-column>
</el-table>
<!-- 分页查询-->
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="record.pageNum"
:page-sizes="[1, 3, 10, 20]"
:page-size="record.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div>
</template>
<script>
//jsjsjson,
//import from ',
import axios from "axios";
import {recordList} from "@/api/system/record";
import {resetForm} from "@/utils/muyu";
export default {
//import使"
components: {axios},
props: {},
data() {
//"
return {
tableData:[],
record:{
recordName:'',
recordDateStart:'',
recordDateEnd:'',
pageNum:1,
pageSize:5
},
total:0,
};
},
// data",
computed: {},
//data",
watch: {},
//",
methods: {
resetForm,
/**
* 车辆记录列表
*/
list(){
recordList(this.record).then(
res=>{
this.tableData=res.data.list
this.total=res.data.total
console.log(this.tableData)
console.log(res)
}
)
},
/**
* 条件查询
*/
onSubmit(){
this.list()
},
/**
* 条件重置
*/
reset(){
//
this.record.recordName=''
this.record.recordDateStart=''
this.record.recordDateEnd=''
this.list()
},
/**
* 分页查询
*/
handleSizeChange(val){
this.record.pageSize=val
this.list()
},
handleCurrentChange(val){
this.record.pageNum=val
this.list()
},
/**
* 历史轨迹
*/
/**
* 删除
*/
},
// - 访this",
created() {
this.list()
},
// - 访DOM",
mounted() {
},
beforeCreate() {
}, // - ",
beforeMount() {
}, // - ",
beforeUpdate() {
}, // - ",
updated() {
}, // - ",
beforeDestroy() {
}, // - ",
destroyed() {
}, // - ",
activated() {
} //keep-alive",
};
</script>
<style scoped>
</style>