From b4227b5145943e067351a2a59ca34826b41d6fb7 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期二, 15 四月 2025 09:46:30 +0800 Subject: [PATCH] 界面翻译为俄语 --- src/main/webapp/static/js/report/locMap.js | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/js/report/locMap.js b/src/main/webapp/static/js/report/locMap.js index 3a3e6e8..6a8b25f 100644 --- a/src/main/webapp/static/js/report/locMap.js +++ b/src/main/webapp/static/js/report/locMap.js @@ -3,7 +3,30 @@ 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({ @@ -18,7 +41,7 @@ var html = template(res.data); $('#locMap').html(html); } else if (res.code === 403) { - top.location.href = "/"; + top.location.href = baseUrl+"/"; } else { layer.msg(res.msg) } @@ -41,12 +64,13 @@ || html.trim()==='S' || html.trim()==='D' || html.trim()==='O' + || html.trim()==='Z' ){ } else { layer.open({ type: 2, - title: '搴撲綅鐗╂枡', + title: '袦邪褌械褉懈邪谢褘 褟褔械泄泻懈', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: true, -- Gitblit v1.9.1