| | |
| | | <title>Title</title> |
| | | <link rel="stylesheet" href="../../CSS/layui2.css"> |
| | | <link rel="stylesheet" href="../../CSS/layer.css"> |
| | | <style> |
| | | #translate{ |
| | | display: none; |
| | | } |
| | | #translateSelectLanguage{ |
| | | display: none; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body style="display: none"> |
| | | <body style=""> |
| | | <div class="heimu" style="display: none;width: 100%;height: 100%;position: fixed;top: 0px;left: 0px;z-index: 9999;background-color: black;opacity: 0.8"></div> |
| | | <div class="layui-container" style="width: 100%;margin: 0px;padding: 0px;position: relative"> |
| | | <div class="layui-row"> |
| | |
| | | <div class="update" style="display: none;width: 600px;background-color: #f6f6f6;border: 1px solid #cccccc;padding: 50px;position: fixed;top: 50px;left: 450px;z-index: 99999"> |
| | | <form class="layui-form" action="/hxzkuwb/upDaoHang" enctype="multipart/form-data" method="post" lay-filter="example"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">序号</label> |
| | | <label class="layui-form-label languages1">序号</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" lay-verify="title" readonly name="id" id="up1" required autocomplete="off" class="layui-input"> |
| | | <input type="text" minlength="1" maxlength="20" pattern="^[^<>&\`#%]*$" lay-verify="title" readonly name="id" id="up1" required autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" id="po3"> |
| | | <label class="layui-form-label">导航名称</label> |
| | | <label class="layui-form-label languages2">导航名称</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" lay-verify="title" name="name" id="up2" required autocomplete="off" class="layui-input"> |
| | | <input type="text" minlength="1" maxlength="20" pattern="^[^<>&\`#%]*$" lay-verify="title" name="name" id="up2" required autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" id="fu"> |
| | | <label class="layui-form-label">关联父级</label> |
| | | <label class="layui-form-label languages3">关联父级</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" lay-verify="title" name="parents" id="up3" autocomplete="off" class="layui-input"> |
| | | <input type="text" minlength="1" maxlength="20" pattern="^[^<>&\`#%]*$" lay-verify="title" name="parents" id="up3" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">是否显示</label> |
| | | <label class="layui-form-label languages4">是否显示</label> |
| | | <div class="layui-input-block"> |
| | | <input type="checkbox" checked="" name="ishow" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF"> |
| | | <input type="checkbox" minlength="1" maxlength="20" pattern="^[^<>&\`#%]*$" checked="" name="ishow" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" id="tu"> |
| | | <label class="layui-form-label">图标</label> |
| | | <label class="layui-form-label languages5">图标</label> |
| | | <div class="layui-input-block"> |
| | | <select id="icons" name="icon"> |
| | | <option></option> |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-input-block"> |
| | | <button type="submit" class="layui-btn" lay-submit="" lay-filter="">保存</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-filter="" onclick="quxiao()" style="margin-left: 200px">取消</button> |
| | | <button type="submit" class="layui-btn languages6" lay-submit="" lay-filter="">保存</button> |
| | | <button type="button" class="layui-btn layui-btn-normal languages7" lay-filter="" onclick="quxiao()" style="margin-left: 200px">取消</button> |
| | | </div> |
| | | </div> |
| | | </form> |
| | |
| | | <span style="color: black">不显示</span> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="titleTplew"> |
| | | {{# if(d.ishow === '1') { }} |
| | | <span style="color: black">Показать</span> |
| | | {{# } else if(d.ishow === '0') { }} |
| | | <span style="color: black">Не показывать</span> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="titleTplimg"> |
| | | {{# if(d.level === '1') { }} |
| | | <span style="text-align: center;display: inline-block;width: 100%;height: 100%;background-color: #0C0C0C"><img src="../../Icon/{{d.icon}}" style="width: 20px;text-align: center"/></span> |
| | |
| | | </script> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container" style="margin-left: 0px;margin-top: 20px;display: inline-block"> |
| | | <button class="layui-btn layui-btn-warm" id="btnUpdate" lay-event="getUpdate">修改</button> |
| | | <button class="layui-btn layui-btn-normal" lay-event="getshuaxin">刷新</button> |
| | | <button class="layui-btn layui-btn-warm" id="btnUpdate" style="" lay-event="getUpdate">修改</button> |
| | | <button class="layui-btn layui-btn-normal" id="btnShuaXin" style="" lay-event="getshuaxin">刷新</button> |
| | | </div> |
| | | </script> |
| | | <script src="/hxzkuwb/HouTai/Js/jquery-3.5.1.js"></script> |
| | | <script src="../../languages/languages.js"></script> |
| | | <script src="../../JS/layui.js"></script> |
| | | <script src="../../JS/layer.js"></script> |
| | | <script src="XiTongJs/HouTaiDaoHang.js"></script> |
| | | <script src="../../JS/translate.js"></script> |
| | | <script> |
| | | var name = sessionStorage.getItem("username") |
| | | var data = "username="+name |
| | | $.get("/hxzkuwb/findUserRole",data,function (data){ |
| | | if (data.juese !="超级管理员"){ |
| | | $("body").empty(); |
| | | $("body").show(); |
| | | $("body").append('<div style="width: 100%;margin: auto;text-align: center;margin-top: 10%"><img src="../../Icon/NoRole.jpg"></div>') |
| | | $("body").append('<h2 style="text-align: center;">你没有执行当前操作的权限......</h2>') |
| | | layer.alert('当前没有权限查看此管理页面!请联系管理员') |
| | | }else{ |
| | | $("body").show(); |
| | | } |
| | | |
| | | var languages; |
| | | let languages1; |
| | | let languages2; |
| | | let languages3; |
| | | window.addEventListener('load', function() { |
| | | $.ajaxSetup({ |
| | | headers: { |
| | | 'x-access-token': localStorage.getItem("hxzkmars3d") |
| | | } |
| | | }); |
| | | $.ajax({ |
| | | url: "/hxzkuwb/FindSetting", |
| | | type: "POST", |
| | | async: false, // 设置为同步 |
| | | success: function(data) { |
| | | languages = data[0].languages; |
| | | $("#icons").append('<option></option>') |
| | | languages1 = "请选中一条数据" |
| | | languages2 = "请选中一条数据" |
| | | languages3 = "操作成功" |
| | | }, |
| | | error: function(xhr, status, error) { |
| | | console.error("请求失败:", status, error); |
| | | } |
| | | }); |
| | | }) |
| | | |
| | | |
| | | |
| | | </script> |
| | | <script> |
| | | var ds = "username="+sessionStorage.getItem("username") |