/** * Created by CSL on 2017-03-23. */ var region = '重庆'; var projectID = 5; var spreadView; $(document).ready(function () { $("#inlineFormCustomSelect").change(function () { var fileID = $("#inlineFormCustomSelect").val(); loadLibFees(fileID); }); $("#projectFeeFile").click(function () { loadProjectFees(projectID); }); }); function loadProjectFees(fileID) { $.ajax({ type: "POST", url: '/fees/getProjectFees', data: {"fileID": fileID}, success: function (result) { if (result.data) { createSpreadView(result.data[0].fees, true); } }, error: function (result) { alert('内部程序错误!'); } }); } function loadLibFiles(region) { $('#inlineFormCustomSelect').empty(); $.ajax({ type: "POST", url: '/fees/getLibFiles', data: {"region": region}, success: function (result) { if (result.data) { for (var i = 0; i < result.data.length; i++) { $("#inlineFormCustomSelect").append("