懒羊羊
2023-12-04 b3e9a47f4c17c0d708398698432a109420e7d9e1
guns-vip-main/src/main/webapp/assets/modular/kb/formula/formulaView.js
@@ -140,13 +140,13 @@
                    $.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");//重新渲染 固定写法
                        },
@@ -154,8 +154,6 @@
                }
                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("更新完成!")