| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
- <script src="../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script>
- <script src="../Script/Common/regexs.js"></script>
- <script src="../js/autosize/autosize.min.js"></script>
- <link rel="stylesheet" type="text/css" href="../js/bootstrap-treeview/bootstrap-treeview.min.css" />
- <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
- <link rel="stylesheet" href="../css/init.css" />
- <link href="../css/Table/table1.css" rel="stylesheet" />
- <link rel="stylesheet" href="../css/webuploader.css" />
- <title>设备二维码管理 </title>
- <style>
- .tool_downs li .aBtn {
- width: initial;
- }
-
- #equipment_table .tool_down {
- left: -39px;
- }
-
- .codeBox {
- position: absolute;
- right: -2000px;
- margin: 0 auto;
- width: 360px;
- height: 180px;
- /* border: 1px solid #a5a2a2;*/
- }
-
- .left_code {
- position: absolute;
- top: 15px;
- left: 28px;
- }
-
- .right_code {
- position: absolute;
- top: 5px;
- right: 46px;
- }
-
- .logo_img {
- width: 112px;
- height: 94px;
- margin: 0;
- padding: 0;
- }
-
- .code_tip1 {
- font-size: 14px;
- margin-top: 22px;
- margin-bottom: 0;
- color: #000;
- font-family: 微软雅黑;
- text-align: center;
- }
-
- .code_tip2 {
- font-size: 14px;
- margin-top: 5px;
- margin-bottom: 0;
- color: #000;
- font-family: 微软雅黑;
- text-align: center;
- }
-
- .eq_code_con {
- font-size: 14px;
- color: #000;
- text-align: left;
- margin-bottom: 5px;
- }
-
- .codeHtml {
- z-index: 9999999;
- position: relative;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="form-group tool_bars pull-right">
- <input type="button" class="btn_gray" onclick="btn_add()" value="添加" />
- </div>
- <div class="tableCon">
- <div class="tabs_details showtabs">
- <table id="equipment_table" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
- <thead>
- <tr>
- <th data-field="state" data-checkbox="true"></th>
- <th data-field="username" data-align="center">协同人</th>
- <th data-field="usercode" data-align="center">协同人编号</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- <script src="../js/webuploader.min.js"></script>
- <script src="js/qrcode.min.js"></script>
- <script src="../js/html2canvas/html2canvas.js"></script>
- <script src="../js/canvas2image/canvas2image.js"></script>
- <script src="../js/jszip/jszip.min.js"></script>
- <script src="../js/jszip/FileSaver.js"></script>
- <script src="js/equipmentCommon.js"></script>
- <script>
- var code = helper.request.queryString("code");
- $(function() {
- getSuggestionList()
- })
- //获取列表
- function getSuggestionList() {
- //销毁表格
- $('#equipment_table').bootstrapTable('destroy');
- //初始化表格,动态从服务器加载数据
- $("#equipment_table").bootstrapTable({
- method: "get", //使用get请求到服务器获取数据
- url: huayi.config.callcenter_url + "equipmentapi/api/WoRepairBase/getrepairuser", //获取数据的Servlet地址
- contentType: "application/x-www-form-urlencoded",
- striped: true, //表格显示条纹
- pagination: false, //启动分页
- pageSize: 10, //每页显示的记录数
- pageNumber: 1, //当前第几页
- pageList: [10, 20, 50, 100], //记录数可选列表
- // fixedColumns: true,
- // fixedNumber: 3,
- search: false, //是否启用查询
- showColumns: false, //显示下拉框勾选要显示的列
- showRefresh: false, //显示刷新按钮
- sidePagination: "server", //表示服务端请求
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
- //设置为limit可以获取limit, offset, search, sort, order
- queryParamsType: "undefined",
- queryParams: function queryParams(params) { //设置查询参数
- var param = {
- // pageindex: params.pageNumber,
- // pagesize: params.pageSize,
- wocode: code
- };
- return param;
- },
- responseHandler: function(res) {
- return {
- // "total": res.data && res.data.total, //总页数
- "rows": res.data && res.data //数据
- };
- },
- onLoadSuccess: function(data) { //加载成功时执行
- //layer.msg("加载成功");
- $('.tool_down').authorizeOperateButton();
- },
- onLoadError: function() { //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- }
- });
- }
- function btn_add() {
- var name = $.map($('#equipment_table').bootstrapTable('getSelections'),
- function(row) {
- return row.username;
- });
- var codes = $.map($('#equipment_table').bootstrapTable('getSelections'),
- function(row) {
- return row.usercode;
- });
- parent.togetherVal(name)
- parent.togetherCodes(codes)
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- }
- </script>
- </body>
- </html>
|