var majorId = 0; var aircraft_type = ""; var syst_name =""; var aircraft_id = ""; var syst_id = ""; var funcType = ""; var funcIn = ""; var funcEnd = ""; var funcdeviceType = "" var funcId = ''; $(function() { var params = window.location.href.split("?"); if (params.length > 1) { values = params[1].split("&"); if (values.length > 4) { funcId = values[0].replace("id=", ""); if (funcId !== "0") { funcdeviceType = decodeURI(values[1].replace("device_type=", "")); funcType = decodeURI(values[2].replace("aircraft_type=", "")); funcIn = decodeURI(values[3].replace("syst_name=", "")); funcEnd = decodeURI(values[4].replace("device_name=", "")); // funcUrL = decodeURI(values[4].replace("file_path=", "")); } } } $("#aircraft_type").val(funcType); $("#syst_name").val(funcIn); $("#device_name").val(funcEnd); $("#device_type").val(1); layui.use(["form", "layer", "laydate"], function() { $ = layui.jquery; var form = layui.form, layer = layui.layer; var laydate = layui.laydate; laydate.render({ elem: '#ending_time', isInitValue: false, type: 'datetime', trigger: "click" }); laydate.render({ elem: '#input_time', isInitValue: false, type: 'datetime', trigger: "click" }); //监听提交 function getSystemName(airId){ var deviceType = 0 fetchJSON("api/device/getByAir?airId=" + airId +"&deviceType=" + deviceType, {}, "get", function(bet) { if (bet.status === 0) { $("#syst_name").empty(); $("#syst_name").append($("