modify file type
slove the issue with version page can not show Change-Id: Ib6bbeef688b9aa30ffba183db5b60cd775bd5e4c Signed-off-by: Jing Sun <sun.jing22@zte.com.cn>
This commit is contained in:
parent
1016c7da42
commit
901cf05f4a
@ -67,7 +67,7 @@
|
||||
return;
|
||||
|
||||
var file_paths = document.getElementById("version_file").files;
|
||||
// 获取前台的版本信息
|
||||
|
||||
var params = {
|
||||
"file_type": $("#file_type").val(),
|
||||
"file_name": file_paths[0].name,
|
||||
@ -86,7 +86,7 @@
|
||||
$(function(){
|
||||
$("#file_type").change(function(){
|
||||
if ($("#patch_version").attr('checked') == 'checked'){
|
||||
// 获取所有系统版本信息
|
||||
|
||||
var url = "/dashboard/environment/version/get_appointed_system_versions/";
|
||||
do_post(url, JSON.stringify({'file_type': $("#file_type").val()}), update_correspond_file_option);
|
||||
}
|
||||
@ -107,7 +107,7 @@
|
||||
$(".form-local-file").addClass("hide");
|
||||
$(".form-server-file").removeClass("hide");
|
||||
|
||||
// 获取服务端文件信息
|
||||
|
||||
var params = {
|
||||
"file_type": $("#file_type").val()
|
||||
}
|
||||
@ -119,7 +119,7 @@
|
||||
$(".version_type").on("click", function(){
|
||||
if ($("#patch_version").attr('checked') == 'checked') {
|
||||
$(".form-correspond-file").removeClass("hide");
|
||||
// 获取所有系统版本信息
|
||||
|
||||
var url = "/dashboard/environment/version/get_appointed_system_versions/";
|
||||
do_post(url, JSON.stringify({'file_type': $("#file_type").val()}), update_correspond_file_option);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user