รวม code การแก้บัก จากทีม
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
var rep_eva01_API = "/api/rep_eva01/";
|
||||
|
||||
function array_to_string_comma(a){
|
||||
var x = "";
|
||||
$.each(a, function( index, value ) {
|
||||
if(x !== "") x+=",";
|
||||
x+=value;
|
||||
});
|
||||
return x;
|
||||
}
|
||||
|
||||
//================= Search Customizaiton =========================================
|
||||
|
||||
function rep_eva01_GetSearchParameter(fileType) {
|
||||
var rep_eva01SearchObject = new Object();
|
||||
rep_eva01SearchObject.org_id = $("#s_rep_eva01_org_id").val();
|
||||
rep_eva01SearchObject.org_id = array_to_string_comma($("#s_rep_eva01_org_id").val());
|
||||
rep_eva01SearchObject.round_id = $("#s_rep_eva01_round_id").val();
|
||||
|
||||
|
||||
@@ -48,6 +57,8 @@ function rep_eva01_DoSearch(fileType) {
|
||||
|
||||
var report_url = apisite + "/api/rep_eva01/rep_eva01_report?" + p;
|
||||
|
||||
console.log(report_url);
|
||||
|
||||
if (fileType === "pdf") {
|
||||
$("#report_result").attr("src", report_url);
|
||||
$("#report_result").show();
|
||||
|
||||
Reference in New Issue
Block a user