1、增加设备备注
This commit is contained in:
parent
3a29e6118a
commit
0bf150765f
@ -65,5 +65,5 @@ public class GnssDevice {
|
||||
|
||||
// 日志记录控制
|
||||
private Short loggingmode;
|
||||
|
||||
private String remark;
|
||||
}
|
||||
|
||||
@ -92,4 +92,6 @@ public class GnssStatusJoin {
|
||||
Double longitude;
|
||||
@ExcelProperty("海拔")
|
||||
Double altitude;
|
||||
@ExcelProperty("备注")
|
||||
String remark;
|
||||
}
|
||||
|
||||
@ -135,6 +135,11 @@ public class GnssDeviceController extends BasicController{
|
||||
if (StringUtils.hasText(appver)) {
|
||||
queryWrapper.like("appver", appver);
|
||||
}
|
||||
//备注
|
||||
String remark = search.getString("remark");
|
||||
if (StringUtils.hasText(remark)) {
|
||||
queryWrapper.like("remark", remark);
|
||||
}
|
||||
//使用状态
|
||||
Integer opmode = search.getInteger("opmode");
|
||||
if (opmode != null && opmode != QUERY_ALL) {
|
||||
|
||||
@ -99,7 +99,7 @@ public class GnssStatusController extends BasicController implements CommonExcel
|
||||
public MPJQueryWrapper<GnssStatus> prepareQueryWrapper() {
|
||||
return new MPJQueryWrapper<GnssStatus>()
|
||||
.selectAll(GnssStatus.class)
|
||||
.select("d.devicetype as devicetype")
|
||||
.select("d.devicetype as devicetype,d.remark as remark")
|
||||
.leftJoin("gnssdevices d on t.deviceid = d.deviceid")
|
||||
.orderByDesc("t.updatetime");
|
||||
}
|
||||
|
||||
@ -82,6 +82,12 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline" th:if="${role=='SUPER_ADMIN'}">
|
||||
<label class="layui-form-label">备注</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="remark" id="remark" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<button type="submit" class="layui-btn layui-btn-primary" lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
|
||||
</div>
|
||||
@ -113,6 +119,7 @@
|
||||
table = layui.table;
|
||||
var cfg_cols = [
|
||||
{field: 'deviceid', title: '设备号', width: 100, sort: true},
|
||||
{field: 'remark', title: '备注', width: 100},
|
||||
{field: 'project_id', title: '项目号', width: 120, sort: true},
|
||||
{field: 'sector', title: '桩号', width: 120, sort: true},
|
||||
{field: 'name', title: '监测点号', width: 80},
|
||||
@ -131,10 +138,13 @@
|
||||
{title: '操作', toolbar: '#currentTableBar', fixed: "right", width: 120}
|
||||
];
|
||||
if([[${role}]] == "USER") {
|
||||
cfg_cols[15].hide = true;
|
||||
cfg_cols[17].hide = true;
|
||||
}
|
||||
else if([[${role}]] != "SUPER_ADMIN") {
|
||||
cfg_cols[1].hide = true;
|
||||
}
|
||||
if([[${tenant_id}]] != 0) {
|
||||
cfg_cols[10].hide = true;
|
||||
cfg_cols[11].hide = true;
|
||||
}
|
||||
/**
|
||||
* 初始化表单,要加上,不然刷新部分组件可能会不加载
|
||||
|
||||
@ -61,6 +61,12 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline" th:if="${role=='SUPER_ADMIN'}">
|
||||
<label class="layui-form-label">备注</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="sl_d.remark" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<button type="submit" class="layui-btn layui-btn-primary" lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
|
||||
<button type="submit" class="layui-btn layui-btn-primary" lay-submit lay-filter="data-export-btn"><i class="layui-icon"></i>导出</button>
|
||||
@ -92,6 +98,7 @@
|
||||
table = layui.table;
|
||||
var cfg_cols = [
|
||||
{field: 'deviceid', title: '设备号', sort: true},
|
||||
{field: 'remark', title: '备注', width: 100},
|
||||
{field: 'devicetype', title: '设备类型',templet: '#typeTrans'},
|
||||
{field: 'updatetime', title: '更新时间', templet: "<div>{{layui.util.toDateString(d.updatetime, 'yyyy-MM-dd HH:mm:ss')}}</div>"},
|
||||
{field: 'state', title: '状态',templet: '#stateTrans'},
|
||||
@ -107,6 +114,9 @@
|
||||
{field: 'latitude', title: '纬度'},
|
||||
{title: '操作', toolbar: '#currentTableBar', fixed: "right", width: 80}
|
||||
];
|
||||
if([[${role}]] != "SUPER_ADMIN") {
|
||||
cfg_cols[1].hide = true;
|
||||
}
|
||||
/**
|
||||
* 初始化表单,要加上,不然刷新部分组件可能会不加载
|
||||
*/
|
||||
|
||||
@ -207,6 +207,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="layui-form-item" th:if="${role=='SUPER_ADMIN'}">
|
||||
<label class="layui-form-label">备注</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="remark" id="remark" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<hr th:if="${role=='SUPER_ADMIN'}">
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block" style="float:right" >
|
||||
<button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
|
||||
@ -312,6 +319,7 @@
|
||||
$('#ecefz').val(data.ecefz);
|
||||
$('#model').val(data.model);
|
||||
$('#sector').val(data.sector);
|
||||
$('#remark').val(data.remark);
|
||||
setEcefEditor();
|
||||
form.render();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user