2024-03-18 16:21:52 +08:00
|
|
|
<template>
|
2024-03-18 20:02:23 +08:00
|
|
|
<div>
|
|
|
|
<h1>{{ materialBhProp }}</h1>
|
2024-03-18 16:21:52 +08:00
|
|
|
<el-table
|
2024-03-18 20:02:23 +08:00
|
|
|
:data="operlogData"
|
2024-03-18 16:21:52 +08:00
|
|
|
height="500"
|
|
|
|
style="width: 100%">
|
|
|
|
<el-table-column
|
2024-03-18 20:02:23 +08:00
|
|
|
prop="operlog_date"
|
2024-03-18 16:21:52 +08:00
|
|
|
label="时间"
|
|
|
|
width="200"
|
|
|
|
fixed>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
2024-03-18 20:02:23 +08:00
|
|
|
prop="operlog_user_name"
|
2024-03-18 16:21:52 +08:00
|
|
|
label="操作人"
|
|
|
|
width="100"
|
|
|
|
fixed>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
2024-03-18 20:02:23 +08:00
|
|
|
prop="operlog_event"
|
2024-03-18 16:21:52 +08:00
|
|
|
label="事件"
|
2024-03-19 10:05:33 +08:00
|
|
|
width="200"
|
2024-03-18 16:21:52 +08:00
|
|
|
fixed>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="录入信息">
|
|
|
|
<el-table-column
|
2024-03-18 20:02:23 +08:00
|
|
|
prop="operlog_zlh"
|
2024-03-18 16:21:52 +08:00
|
|
|
label="指令号"
|
|
|
|
width="150">
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
2024-03-18 20:02:23 +08:00
|
|
|
prop="operlog_xingh"
|
2024-03-18 16:21:52 +08:00
|
|
|
label="型号"
|
|
|
|
width="150">
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
2024-03-18 20:02:23 +08:00
|
|
|
prop="operlog_guig"
|
2024-03-18 16:21:52 +08:00
|
|
|
label="规格"
|
|
|
|
width="150">
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
2024-03-18 20:02:23 +08:00
|
|
|
prop="operlog_diany"
|
2024-03-18 16:21:52 +08:00
|
|
|
label="电压等级"
|
|
|
|
width="100">
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
2024-03-18 20:02:23 +08:00
|
|
|
prop="operlog_ms"
|
2024-03-18 16:21:52 +08:00
|
|
|
label="米数"
|
|
|
|
width="100">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
2024-03-18 20:02:23 +08:00
|
|
|
</div>
|
2024-03-18 16:21:52 +08:00
|
|
|
</template>
|
|
|
|
<script>
|
2024-03-18 20:02:23 +08:00
|
|
|
import { listOperlog } from "@/api/storageLocation/operlog";
|
2024-03-18 16:21:52 +08:00
|
|
|
export default {
|
|
|
|
name: 'Operlog',
|
2024-03-18 20:02:23 +08:00
|
|
|
props: {
|
|
|
|
materialBhProp: String
|
|
|
|
},
|
2024-03-18 16:21:52 +08:00
|
|
|
data() {
|
|
|
|
return {
|
2024-03-18 20:02:23 +08:00
|
|
|
queryParams: {
|
|
|
|
operlog_kw: null,
|
|
|
|
},
|
|
|
|
operlogData: [],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
materialBhProp(value,oldvalue){
|
|
|
|
this.getOperlogData();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
/*获取库位信息*/
|
|
|
|
this.getOperlogData();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
/*获取操作记录*/
|
|
|
|
getOperlogData() {
|
|
|
|
this.queryParams.operlog_kw = this._props.materialBhProp;
|
|
|
|
this.operlogData = [];
|
|
|
|
listOperlog(this.queryParams).then(response => {
|
|
|
|
this.operlogData = response.operlogData;
|
|
|
|
});
|
2024-03-18 16:21:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|