修改时间选择

main
夜笙歌 1 year ago
parent deb9b4b71a
commit 8cc4233573

@ -32,7 +32,7 @@ const sensorInfoList = function (sensorTypeId) {
columnsArray.push({ columnsArray.push({
field: property, field: property,
title: typeof(sensorTypeArray.find(x=>x.paramTitle.includes(property))) == "undefined" ? property : sensorTypeArray.find(x=>x.paramTitle.includes(property)).paramText, title: typeof(sensorTypeArray.find(x=>x.paramTitle.includes(property))) == "undefined" ? property : sensorTypeArray.find(x=>x.paramTitle.includes(property)).paramText,
width: property == "imgstr" || property == "md5" ? 500 : 140, width: property == "imgstr" || property == "md5" ? 500 : 170,
align: "center",height: 60 align: "center",height: 60
}); });
} }

@ -238,9 +238,9 @@
#sensor-card-group { #sensor-card-group {
position: absolute; position: absolute;
width: 49%; width: 49%;
height: 85%; height: 90%;
left: 49%; left: 49%;
top: 13%; top: 7%;
overflow-y: scroll; overflow-y: scroll;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -502,22 +502,6 @@
</div> </div>
<nav class="nav search-bar d-inline-block" id="main-search-bar">
<form action="#" class="search-form-nav">
<input id="monitorUnitId" name="monitorUnitId" type="hidden">
<label class="search-label" for="monitor-unit">监控单元:</label>
<input class="form-control d-inline-block" id="monitor-unit" name="monitor-unit" placeholder="请输入监控单元"
type="text">
<label class="search-label" for="sensor-type">传感器类型:</label>
<input class="form-control d-inline-block" id="sensor-type" name="sensor-type" placeholder="请输入传感器类型"
type="text">
<label class="search-label" for="sensor-name">传感器名称:</label>
<input class="form-control d-inline-block" id="sensor-name" name="sensor-name" placeholder="请输入传感器名称"
type="text">
<button class="btn btn-primary search-btn">搜索</button>
</form>
</nav>
<div id="sensor-card-group"> <div id="sensor-card-group">
</div> </div>
<div class="imgMagnification" id="imgMagnification"> <div class="imgMagnification" id="imgMagnification">
@ -596,7 +580,8 @@
...e, ...e,
nodes, nodes,
} }
}) }).filter(e=>!!e)
console.log(data)
// console.log(data) // console.log(data)
initSelectableTree(data) initSelectableTree(data)
// return $selectableTree.treeview('search', [$('#input-select-node').val(), { // return $selectableTree.treeview('search', [$('#input-select-node').val(), {
@ -605,7 +590,7 @@
// }]); // }]);
}; };
$('#input-select-node').on('keyup', function (e) { $('#input-select-node').on('input', function (e) {
findSelectableNodes(); findSelectableNodes();
// initSelectableTree([]) // initSelectableTree([])
// $('.select-node').prop('disabled', !(selectableNodes.length >= 1)); // $('.select-node').prop('disabled', !(selectableNodes.length >= 1));

Loading…
Cancel
Save