| | |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo" id="xt_SystemLogList_ButtonGroup"> |
| | | <div class="layui-btn-container"> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container" id="xt_SystemLogList_ButtonGroup"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>é¢è§</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>å·æ°</button>--> |
| | | <!-- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button> --> |
| | |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | switch (obj.event) { |
| | | //æé®è®¾ç½® |
| | | case 'set_HideButton': get_HideButton(); |
| | | case 'set_HideButton': get_HideButton(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(set_HideButton_ID, HBillType, HModName, sessionStorage["HUserName"]); |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //ä¿åæ¹æ¡ |
| | | case 'set_SaveScheme': set_SaveScheme(); |
| | |
| | | // , trigger: 'click' |
| | | // , format:'yyyy-MM-dd HH:mm' |
| | | //}); |
| | | |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | //#region ãè¿æ»¤æ¹æ¡è¿åæ°æ®ã |
| | | function HFilterScheme(obj) //è¿åè¿æ»¤æ¹æ¡ |
| | | { |
| | | console.log(obj) |
| | | var HInterID = obj[0].hmainid; |
| | | HInterID_Choose = obj[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_FastICScheme/Chooselist', |
| | | type: "GET", |
| | | data: { "user": sessionStorage["Czybm"], "HModuleName": HModuleName, "HInterID": HInterID, "Type": "Select" }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = data1.data; |
| | | //èµå¼è¿æ»¤æ¹æ¡åç§° |
| | | HDefaultFilter = data[0].æ¹æ¡åç§° |
| | | var HRemark = data[0].夿³¨ |
| | | //æ¾ç¤ºå½åçè¿æ»¤æ¹æ¡ |
| | | document.getElementById("HFilterScheme_Now").style.display = "block"; |
| | | document.getElementById('HFilterScheme_Now').innerHTML = "å½åè¿æ»¤æ¹æ¡ï¼" + HDefaultFilter + '<span style="font-size: 15px; font-weight: bold; color:#7b90fb"> ' + "(" + HRemark + ")" + '</span>'; |
| | | HInterID = data[0].hmainid |
| | | //æ ¹æ®éæ©çè¿æ»¤æ¹æ¡åå¡«æ°æ®å°åè¡¨è¿æ»¤æ¡ä»¶ |
| | | for (let i = 0; i < data.length; i++) { |
| | | $("#" + data[i].è¿æ»¤å段ID).val(data[i].è¿æ»¤å¼); |
| | | if (data[i].è¿æ»¤æ ç¾ç±»å == 'SELECT') { |
| | | $("#" + data[i].è¿æ»¤å段ID).find("option[value='" + data[i].è¿æ»¤å¼ + "']").attr("selected", true); |
| | | } |
| | | } |
| | | |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //è·åå½åç¨æ·çé»è®¤è¿æ»¤æ¹æ¡ |
| | | function get_DefaultModule() { |
| | | $.ajax({ |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | //#region ãè¿æ»¤æ¹æ¡è¿åæ°æ®ã |
| | | function HFilterScheme(obj) //è¿åè¿æ»¤æ¹æ¡ |
| | | { |
| | | var HInterID = obj[0].hmainid; |
| | | HInterID_Choose = obj[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_FastICScheme/Chooselist', |
| | | type: "GET", |
| | | data: { "user": sessionStorage["Czybm"], "HModuleName": HModuleName, "HInterID": HInterID, "Type": "Select" }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = data1.data; |
| | | //èµå¼è¿æ»¤æ¹æ¡åç§° |
| | | HDefaultFilter = data[0].æ¹æ¡åç§° |
| | | var HRemark = data[0].夿³¨ |
| | | //æ¾ç¤ºå½åçè¿æ»¤æ¹æ¡ |
| | | document.getElementById("HFilterScheme_Now").style.display = "block"; |
| | | document.getElementById('HFilterScheme_Now').innerHTML = "å½åè¿æ»¤æ¹æ¡ï¼" + HDefaultFilter + '<span style="font-size: 15px; font-weight: bold; color:#7b90fb"> ' + "(" + HRemark + ")" + '</span>'; |
| | | HInterID = data[0].hmainid |
| | | //æ ¹æ®éæ©çè¿æ»¤æ¹æ¡åå¡«æ°æ®å°åè¡¨è¿æ»¤æ¡ä»¶ |
| | | for (let i = 0; i < data.length; i++) { |
| | | $("#" + data[i].è¿æ»¤å段ID).val(data[i].è¿æ»¤å¼); |
| | | if (data[i].è¿æ»¤æ ç¾ç±»å == 'SELECT') { |
| | | $("#" + data[i].è¿æ»¤å段ID).find("option[value='" + data[i].è¿æ»¤å¼ + "']").attr("selected", true); |
| | | } |
| | | } |
| | | |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | </script> |
| | | </body> |
| | | |