| | |
| | | <!--打印部分--> |
| | | <div class="layui-col-xs8" style="overflow: hidden;outline: none;"> |
| | | <!--打印头部分--> |
| | | <div class="hiprint-toolbar" style="margin-top:15px;"> |
| | | <div class="hiprint-toolbar" style="margin-top:15px;margin-left:10px;"> |
| | | <ul> |
| | | <!-- <li><a class="hiprint-tizee-btn" onclick="setPaper('A3')">A3</a></li> --> |
| | | <li><a class="hiprint-tizee-btn" onclick="setPaper('A4')">A4</a></li> |
| | |
| | | <div style="clear:both;"></div> |
| | | </div> |
| | | <!--打印主体部分--> |
| | | <div id="hiprint-printTemplate" class="hiprint-printTemplate" |
| | | style="margin-top:20px; overflow-x: scroll; overflow-y: hidden;"> |
| | | <div style="overflow-x: scroll; overflow-y: hidden;"> |
| | | <div id="hiprint-printTemplate" class="hiprint-printTemplate" |
| | | style="margin-top:20px;margin-left:20px;"> |
| | | </div> |
| | | </div> |
| | | <textarea class="form-control" rows="10" id="A4_textarea_json" style="display: none;"></textarea> |
| | | </div> |
| | |
| | | |
| | | //初始化打印插件渲染 |
| | | // $(".hiprintEpContainer").html(""); //清除div内容 |
| | | |
| | | if (parent.objRowsData.Type) { |
| | | datalist = getPrintDataList()(parent.objRowsData.Type); |
| | | } |
| | | hiprint.init({ |
| | | providers: [new configElementTypeProvider()] |
| | | }); |
| | |
| | | 'testModule'); |
| | | |
| | | let hiprintTemplate; |
| | | if (window.parent.objRowsData.PositionJson) |
| | | var JsonData = JSON.parse(window.parent.objRowsData.PositionJson) |
| | | if (parent.objRowsData.PositionJson) |
| | | var JsonData = JSON.parse(parent.objRowsData.PositionJson) |
| | | if (JsonData) { |
| | | $("#customWidth").val(JsonData.panels[0].width); |
| | | $("#customHeight").val(JsonData.panels[0].height); |