雷达设备状态
parent
b46d91cd6d
commit
756062c666
5
pom.xml
5
pom.xml
|
|
@ -220,6 +220,11 @@
|
|||
<artifactId>jssc</artifactId>
|
||||
<version>2.8.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -6,7 +6,7 @@ spring:
|
|||
druid:
|
||||
# 主库数据源
|
||||
master:
|
||||
url: jdbc:mysql://192.168.120.21:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: 12345678
|
||||
# 从库数据源
|
||||
|
|
|
|||
|
|
@ -5,39 +5,16 @@
|
|||
<th:block th:include="include :: header('标识器状态列表')" />
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<h1>标识器状态列表</h1>
|
||||
<form id="ordinary-form">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
常温标识器ID:<input type="text" name="userId"/>
|
||||
</li>
|
||||
<li>
|
||||
铁包号:<input type="text" name="termId"/>
|
||||
</li>
|
||||
<li>
|
||||
标签类型:<select name="status">
|
||||
<option value="">高温标签</option>
|
||||
<option value="0">常温标签</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table" data-page-size="10"
|
||||
data-show-custom-view="true" data-custom-view="customViewFormatter"
|
||||
data-show-custom-view-button="true">
|
||||
data-show-custom-view-button="false">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template id="profileTemplate">
|
||||
<div class="col-sm-4">
|
||||
<div class="contact-box">
|
||||
|
|
@ -45,41 +22,93 @@
|
|||
<div class="col-sm-4">
|
||||
<div class="text-center">
|
||||
<img alt="image" class="img-circle m-t-xs img-responsive" src="%IMAGE%">
|
||||
<div class="m-t-xs font-bold">%userName%</div>
|
||||
<div class="m-t-xs font-bold">%radarIp%</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<h3><strong>%userCode%</strong></h3>
|
||||
<p><i class="fa fa-jpy"></i> %userBalance%</p>
|
||||
<address>
|
||||
<strong>RuoYi, Inc.</strong><br>
|
||||
E-mail: %userEmail%<br>
|
||||
<abbr title="Phone">Tel:</abbr> %userPhone%
|
||||
</address>
|
||||
<h3><strong>%radarLocation%</strong></h3>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div th:include="include :: footer"></div>
|
||||
<th:block th:include="include :: bootstrap-table-custom-view-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/radarStatus";
|
||||
var datas = [[${@dict.getType('sys_normal_disable')}]];
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
showSearch: false,
|
||||
showRefresh: false,
|
||||
showToggle: false,
|
||||
showColumns: false,
|
||||
showExport: true,
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field : 'userId',
|
||||
title : '用户ID'
|
||||
},
|
||||
{
|
||||
field : 'userCode',
|
||||
title : '用户编号'
|
||||
},
|
||||
{
|
||||
field : 'radarIp',
|
||||
title : '雷达ip'
|
||||
},
|
||||
{
|
||||
field : 'userPhone',
|
||||
title : '用户手机'
|
||||
},
|
||||
{
|
||||
field : 'userEmail',
|
||||
title : '用户邮箱'
|
||||
},
|
||||
{
|
||||
field : 'userBalance',
|
||||
title : '用户余额'
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '用户状态',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
return $.table.selectDictLabel(datas, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs" href="javascript:;"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs" href="javascript:;"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
|
||||
function customViewFormatter (data) {
|
||||
var template = $('#profileTemplate').html()
|
||||
var view = ''
|
||||
$.each(data, function (i, row) {
|
||||
view += template.replace('%userCode%', row.userCode)
|
||||
.replace('%IMAGE%', "http://demo.ruoyi.vip/img/profile.jpg")
|
||||
.replace('%userName%', row.userName)
|
||||
.replace('%userEmail%', row.userEmail)
|
||||
.replace('%userPhone%', row.userPhone)
|
||||
.replace('%userBalance%', row.userBalance);
|
||||
.replace('%IMAGE%', "https://xjl559.oss-cn-shanghai.aliyuncs.com/2023/12/11/%E6%88%AA%E5%B1%8F2024-01-08%2013.57.36.png")
|
||||
.replace('%radarIp%', row.radarIp)
|
||||
.replace('%radarLocation%', row.radarLocation)
|
||||
})
|
||||
|
||||
return `<div class="row mx-0">${view}</div>`
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -7,9 +7,9 @@
|
|||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table" data-page-size="10"
|
||||
<table id="bootstrap-table" data-page-size="10"
|
||||
data-show-custom-view="true" data-custom-view="customViewFormatter"
|
||||
data-show-custom-view-button="true">
|
||||
data-show-custom-view-button="false">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
<template id="profileTemplate">
|
||||
<div class="col-sm-4">
|
||||
<div class="contact-box">
|
||||
<a href="profile.html">
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="text-center">
|
||||
<img alt="image" class="img-circle m-t-xs img-responsive" src="%IMAGE%">
|
||||
|
|
@ -26,16 +26,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<h3><strong>2222</strong></h3>
|
||||
<p><i class="fa fa-jpy"></i> 1111</p>
|
||||
<address>
|
||||
<strong>RuoYi, Inc.</strong><br>
|
||||
E-mail: 33333<br>
|
||||
<abbr title="Phone">Tel:</abbr>4444
|
||||
</address>
|
||||
<h3><strong>%radarLocation%</strong></h3>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -66,8 +60,8 @@
|
|||
title : '用户编号'
|
||||
},
|
||||
{
|
||||
field : 'userName',
|
||||
title : '用户姓名'
|
||||
field : 'radarIp',
|
||||
title : '雷达ip'
|
||||
},
|
||||
{
|
||||
field : 'userPhone',
|
||||
|
|
@ -108,11 +102,9 @@
|
|||
var view = ''
|
||||
$.each(data, function (i, row) {
|
||||
view += template.replace('%userCode%', row.userCode)
|
||||
.replace('%IMAGE%', "http://demo.ruoyi.vip/img/profile.jpg")
|
||||
.replace('%userName%', row.userName)
|
||||
.replace('%userEmail%', row.userEmail)
|
||||
.replace('%userPhone%', row.userPhone)
|
||||
.replace('%userBalance%', row.userBalance);
|
||||
.replace('%IMAGE%', "https://xjl559.oss-cn-shanghai.aliyuncs.com/2023/12/11/%E6%88%AA%E5%B1%8F2024-01-08%2013.57.36.png")
|
||||
.replace('%radarIp%', row.radarIp)
|
||||
.replace('%radarLocation%', row.radarLocation)
|
||||
})
|
||||
|
||||
return `<div class="row mx-0">${view}</div>`
|
||||
|
|
|
|||
Loading…
Reference in New Issue