更新设备
This commit is contained in:
@@ -43,6 +43,7 @@ public class RootLogServiceImpl implements RootLogService {
|
||||
if (StrUtil.isEmpty(log_type)) {
|
||||
log_type = "default";
|
||||
}
|
||||
|
||||
if (StrUtil.isNotEmpty(log_level)){
|
||||
query.addCriteria(Criteria.where("level").is(log_level));
|
||||
}
|
||||
@@ -72,6 +73,8 @@ public class RootLogServiceImpl implements RootLogService {
|
||||
String device_code = (String) whereJson.get("device_code");
|
||||
String begin_time = (String) whereJson.get("begin_time");
|
||||
String end_time = (String) whereJson.get("end_time");
|
||||
String error_info = (String) whereJson.get("error_info");
|
||||
|
||||
|
||||
Query query = new Query();
|
||||
query.with(Sort.by(Sort.Order.desc("create_time")));
|
||||
@@ -81,6 +84,9 @@ public class RootLogServiceImpl implements RootLogService {
|
||||
JSONObject json = array.getJSONObject(0);
|
||||
device_code = json.getString("device_code");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(error_info)){
|
||||
query.addCriteria(Criteria.where("message").regex(error_info));
|
||||
}
|
||||
if (StrUtil.isNotEmpty(begin_time) && StrUtil.isNotEmpty(end_time)) {
|
||||
query.addCriteria(Criteria.where("create_time")
|
||||
.gte(begin_time)
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
title="监控详情"
|
||||
append-to-body
|
||||
:visible.sync="dialogVisible"
|
||||
fullscreen
|
||||
@open="open"
|
||||
@close="close"
|
||||
fullscreen
|
||||
>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="18" style="border: 1px solid white">
|
||||
<span />
|
||||
</el-col>
|
||||
<el-col :span="6" style="margin-bottom: 20px">
|
||||
<!-- <span style="float: right">
|
||||
<!-- <span style="float: right">
|
||||
<el-button icon="el-icon-close" size="mini" type="info" @click="dialogVisible = false">返 回</el-button>
|
||||
</span>-->
|
||||
</el-col>
|
||||
@@ -183,7 +183,6 @@ export default {
|
||||
const obj = JSON.parse(JSON.stringify(item))
|
||||
if (obj.device_code === that.device_code) {
|
||||
that.form = obj.data
|
||||
console.log(that.form)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,9 +37,17 @@
|
||||
end-placeholder="结束日期"
|
||||
align="right"
|
||||
/>
|
||||
<el-input
|
||||
v-model="query.error_info"
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="请输入异常信息"
|
||||
style="width: 220px;"
|
||||
class="filter-item"
|
||||
/>
|
||||
<rrOperation />
|
||||
</div>
|
||||
<crudOperation :permission="permission"/>
|
||||
<crudOperation :permission="permission" />
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
ref="table"
|
||||
@@ -50,11 +58,11 @@
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="device_code" label="设备编码"/>
|
||||
<el-table-column prop="device_code" label="设备编码" />
|
||||
<el-table-column prop="create_time" label="创建时间" />
|
||||
<el-table-column prop="vehicle_code" label="载具号"/>
|
||||
<el-table-column prop="vehicle_code" label="载具号" />
|
||||
<el-table-column prop="inst_code" label="指令号" />
|
||||
<el-table-column prop="message" label="异常详情" width="300"/>
|
||||
<el-table-column prop="message" label="异常详情" width="300" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
@@ -71,7 +79,7 @@ import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import { get } from '@/api/system/dictDetail'
|
||||
import Search from '@/views/monitor/lucene/search'
|
||||
import deviceCrud from "@/api/acs/device/device";
|
||||
import deviceCrud from '@/api/acs/device/device'
|
||||
|
||||
const defaultForm = {
|
||||
_id: null,
|
||||
|
||||
Reference in New Issue
Block a user