From 890cb68586fe79d95b37ee0ad78df0d9f7dce796 Mon Sep 17 00:00:00 2001
From: zhitong.yu <xynz17@163.com>
Date: 星期三, 19 六月 2024 09:45:34 +0800
Subject: [PATCH] 通用版本V1.7 注:1.显示围栏名称 2.中英文版切换 3.引擎异常短信提示
---
src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js | 67 ++++++++++++++++++++++++---------
1 files changed, 48 insertions(+), 19 deletions(-)
diff --git a/src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js b/src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js
index 88be053..50322c8 100644
--- a/src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js
+++ b/src/main/webapp/HouTai/WeiLanList/WeiLanListJs/PersonJuji.js
@@ -14,34 +14,63 @@
,{field: 'id', title: '搴忓彿', sort: true}
,{ field: 'name', title: '鍥存爮鍚嶇О'}
,{field: 'pernum', title: '浜哄憳涓婇檺' }
- ,{field: 'typec2', title: '鏄惁闈欓粯'}
- ,{field: 'redius', title: '鑱氶泦鍗婂緞'}
- ,{field: 'shichang', title: '鑱氶泦鏃堕暱'}
+ ,{field: 'typec2', title: '鏄惁闈欓粯',templet: '#titleTpl'}
+ ,{field: 'redius', title: '鑱氶泦鍗婂緞/CM'}
+ ,{field: 'shichang', title: '鑱氶泦鏃堕暱/S'}
,{field: 'weixianpin', title: '鍗遍櫓鍝佸悕绉�'}
]]
,limits: [10, 20, 30, 40, 50,60,70,80,90,100,100000]
,limit: 20,
});
+ $(document).on('click', '.layui-laypage a', function(){
+ if (sessionStorage.getItem("YuYan") == "English"){
+ setTimeout(function (){
+ translate.execute()
+ },10)
+ }
+ });
table.on('toolbar(juji)', function(obj) {
var checkStatus = table.checkStatus(obj.config.id);
- console.log(obj)
+ var ds = "username="+sessionStorage.getItem("username")
+ var add = "Yes";
+ var udelete = "Yes";
+ var uupdate = "Yes";
+ $.ajax({
+ url: "/hxzkuwb/findUserRole",
+ type: "GET",
+ data:ds,
+ dataType: "json",
+ async: false, // 璁剧疆涓哄悓姝�
+ success: function(data) {
+ if (data.uadd == "No") {
+ add = "No";
+ }
+ if (data.udelete == "No") {
+ udelete = "No";
+ }
+ if (data.uupdate == "No") {
+ uupdate = "No";
+ }
+ }
+ });
switch(obj.event) {
case 'getUpdate':
- var data = checkStatus.data;
- if(data.length>1){
- layer.alert("涓�娆″彧鑳介�変腑涓�涓繘琛屼慨鏀�")
- }else if(data.length == 0){
- layer.alert("璇烽�変腑涓�鏉℃暟鎹�")
- }else{
- $("#up1").val(data[0].id)
- $("#up2").val(data[0].name)
- $("#up3").val(data[0].pernum)
- $("#up4").val(data[0].typec2)
- $("#up5").val(data[0].redius)
- $("#up6").val(data[0].shichang)
- $("#up7").val(data[0].weixianpin)
- $(".update").show();
- $(".heimu").show();
+ if (uupdate == "Yes") {
+ var data = checkStatus.data;
+ if (data.length > 1) {
+ layer.alert("涓�娆″彧鑳介�変腑涓�涓繘琛屼慨鏀�")
+ } else if (data.length == 0) {
+ layer.alert("璇烽�変腑涓�鏉℃暟鎹�")
+ } else {
+ $("#up1").val(data[0].id)
+ $("#up2").val(data[0].name)
+ $("#up3").val(data[0].pernum)
+ $("#up5").val(data[0].redius)
+ $("#up6").val(data[0].shichang)
+ $("#up7").val(data[0].weixianpin)
+ $(".update").show();
+ $(".heimu").show();
+ }
}
break;
case 'getshuaxin':
--
Gitblit v1.10.0