From 945ab0817d60428288b2ae60378a9c117728cffa Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 29 三月 2022 10:54:39 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/report/locMap.js | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/report/locMap.js b/src/main/webapp/static/js/report/locMap.js
index 3831df2..5475a00 100644
--- a/src/main/webapp/static/js/report/locMap.js
+++ b/src/main/webapp/static/js/report/locMap.js
@@ -3,8 +3,31 @@
var layer = layui.layer;
var form = layui.form;
+ getLocMapRows();
getLocTable(1);
+ function getLocMapRows() {
+ $.ajax({
+ url: baseUrl+"/report/viewLocMapList/rows.action",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ async: false,
+ success: function (res) {
+ if (res.code === 200) {
+ var tpl = $("#locMastRowTemplate").html();
+ var template = Handlebars.compile(tpl);
+ var html = template(res);
+ $('#rowSelect').append(html);
+ form.render('select');
+ } else if (res.code === 403) {
+ top.location.href = baseUrl+"/";
+ } else {
+ layer.msg(res.msg)
+ }
+ }
+ });
+ }
+
function getLocTable(row){
$.ajax({
url: baseUrl+"/report/viewLocMapList.action",
--
Gitblit v1.9.1