|  |  |  | 
|---|
|  |  |  | </button> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!-- #endregion --> | 
|---|
|  |  |  | <script type="text/html" id="toolbarDemo1"> | 
|---|
|  |  |  | {{# function GetBtn1(d){ | 
|---|
|  |  |  | var html = ''; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | html += `<a class="layui-btn layui-btn-normal layui-btn-xs editDemoClass" lay-event="editDemo"> | 
|---|
|  |  |  | <i class="layui-icon layui-icon-edit"></i>备注</a>`; | 
|---|
|  |  |  | return html; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | {{ GetBtn1(d) }} | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- #region 自定义表头 --> | 
|---|
|  |  |  | <script type="text/html" id="templetProductionTime"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <i class="layui-icon layui-icon-edit"></i>详情 | 
|---|
|  |  |  | </button> | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  | <!-- 添加备注按钮 --> | 
|---|
|  |  |  | <script type="text/html" id="toolbarDemo1"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <a class="layui-btn layui-btn-normal layui-btn-xs editDemoClass" lay-event="editDemo"> | 
|---|
|  |  |  | <i class="layui-icon layui-icon-edit"></i>备注 | 
|---|
|  |  |  | </a> | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | function addZero(s) { | 
|---|
|  |  |  | return s < 10 ? ('0' + s) : s; | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | var $ = layui.$; | 
|---|
|  |  |  | var yemianid = 0; | 
|---|
|  |  |  | refreshTable("", "", "", "", "", "", "", "", "", "", "", "", "", ""); | 
|---|
|  |  |  | 
|---|
|  |  |  | even: true, | 
|---|
|  |  |  | cellMinWidth: 80, //全局定义常规单元格的最小宽度,layui 2.2.1 新增 | 
|---|
|  |  |  | done: function () { | 
|---|
|  |  |  | setRight(); | 
|---|
|  |  |  | //自定义列宽 | 
|---|
|  |  |  | SetTableColW('LAY-app-content-list', 'Statistical/GetBindList', TotalColsSysArr); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | //#endregion | 
|---|
|  |  |  | } | 
|---|
|  |  |  | function setRight() { | 
|---|
|  |  |  | $(function () { | 
|---|
|  |  |  | $(".editDemoClass").hide();//备注 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) { | 
|---|
|  |  |  | if (res.code == 0) { //成功 | 
|---|
|  |  |  | for (var k = 0; k < res.data.length; k++) { | 
|---|
|  |  |  | if (res.data[k].MenuName == "维护托盘明细备注") { | 
|---|
|  |  |  | $(function () { | 
|---|
|  |  |  | $(".editDemoClass").show(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else { //不成功 | 
|---|
|  |  |  | layer.msg('获取权限信息失败', { | 
|---|
|  |  |  | icon: 2, | 
|---|
|  |  |  | time: 2000 //2秒关闭(如果不配置,默认是3秒) | 
|---|
|  |  |  | }, function () { }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 表单需要的变量 | 
|---|
|  |  |  | var infoOptions2; | 
|---|