| | |
| | | {field: 'operationType', sort: true, title: '类型'}, |
| | | ]]; |
| | | }; |
| | | $('#imgs').click(function (){ |
| | | console.log("11111111111111"); |
| | | var img = new Image(); |
| | | img.src = "http://localhost:8081/img/9f2f070828381f30fdf1be0da9014c086f06f0ad.jpg"; |
| | | // var height = img.height; //获取图片高度 |
| | | // var width = img.width; //获取图片宽度 |
| | | var height = 500; //获取图片高度 |
| | | var width = 800; //获取图片宽度 |
| | | if (height > 1000 || width > 800) { |
| | | height = height / 1.5; |
| | | width = width / 1.5; |
| | | } |
| | | var imgHtml = "<img src='http://localhost:8081/img/9f2f070828381f30fdf1be0da9014c086f06f0ad.jpg' style='width: " + width + "px;height:" + height + "px'/>"; |
| | | layer.open({ |
| | | type: 1, |
| | | offset: 'auto', |
| | | area: [width + 'px', height + 'px'], |
| | | shadeClose: true,//点击外围关闭弹窗 |
| | | scrollbar: true,//不现实滚动条 |
| | | title: false, //不显示标题 |
| | | content: imgHtml, //捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响 |
| | | cancel: function () { |
| | | |
| | | } |
| | | }); |
| | | console.log(height); |
| | | console.log(width); |
| | | |
| | | }); |
| | | |
| | | |
| | | |
| | | initLineInfo(); |
| | |
| | | $.ajax({ |
| | | type: "POST", |
| | | contentType: "application/json;charset=UTF-8", |
| | | url: Feng.ctxPath + '/locationInfo/list?productionLineCode='+data.value, |
| | | url: Feng.ctxPath + '/opInfo/list?lineCode='+data.value, |
| | | success: function (result) { |
| | | $('#locationCode').empty(); |
| | | $('#locationCode').append(new Option("请选择工位", ""));// 下拉菜单里添加元素 |
| | | |
| | | $.each(result.data, function (index, value) { |
| | | $('#locationCode').append(new Option(value.locationCode));// 下拉菜单里添加元素 |
| | | $('#locationCode').append(new Option(value.opCode));// 下拉菜单里添加元素 |
| | | }); |
| | | layui.form.render("select");//重新渲染 固定写法 |
| | | }, |
| | |
| | | } |
| | | break; |
| | | case 'locationCode': |
| | | console.log($('#locationCode').val()); |
| | | console.log($('#lineCode').val()); |
| | | var getIp = new $ax(Feng.ctxPath + "/kanbanConf/ipSetting?lineCode="+$('#lineCode').val()+"&locationCode="+$('#locationCode').val()); |
| | | var result = getIp.start(); |
| | | Feng.info("更新完成!") |