| | |
| | | $.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("更新完成!") |