change - 查询阈值参数传递中包含#问题排查

main
wenjy 3 years ago
parent 6db5feb919
commit 2cd5053fa7

@ -63,8 +63,7 @@ public class BaseAlarmInfoController extends BaseController
/** /**
* *
*/ */
@RequiresPermissions("base:alarmInfo:list") @GetMapping("/getAlarmParams")
@PostMapping("/getAlarmParams")
@ResponseBody @ResponseBody
public TableDataInfo getAlarmParams(String sensorId) public TableDataInfo getAlarmParams(String sensorId)
{ {

@ -6,12 +6,12 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://121.36.58.109:3306/jrm-intelligent-iot?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 # url: jdbc:mysql://121.36.58.109:3306/jrm-intelligent-iot?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: Haiwei123456
# url: jdbc:mysql://localhost:3306/jrm-intelligent-iot?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: root # username: root
# password: root # password: Haiwei123456
url: jdbc:mysql://localhost:3306/jrm-intelligent-iot?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: root
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭

@ -296,16 +296,11 @@
} }
const onClickRow = function (row, $element) { const onClickRow = function (row, $element) {
initTable(row.sensorId);
}
// 根据选中行查询关联文件
function initTable(id) {
//先销毁表格,必须先销毁才能实现动态加载数据 //先销毁表格,必须先销毁才能实现动态加载数据
$('#bootstrap-table1').bootstrapTable('destroy'); $('#bootstrap-table1').bootstrapTable('destroy');
$('#bootstrap-table1').bootstrapTable({ $('#bootstrap-table1').bootstrapTable({
method: "post", //向服务器请求数据的方式 method: "get", //向服务器请求数据的方式
url: "/base/alarmInfo/getAlarmParams?sensorId=" + id, url: "/base/alarmInfo/getAlarmParams?sensorId="+row.sensorId,
deleteUrl: "/base/alarmInfo/delete", deleteUrl: "/base/alarmInfo/delete",
striped: true, //表格显示条纹 striped: true, //表格显示条纹
pagination: false, //不启动分页 pagination: false, //不启动分页
@ -374,6 +369,8 @@
}); });
} }
</script> </script>
<!-- 导入区域 --> <!-- 导入区域 -->

Loading…
Cancel
Save