소스 검색

修正磁盘挂载时bug

James Iter 8 년 전
부모
커밋
9e5adb1d5b
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      templates/disks_show.html
  2. 1 0
      templates/guest_detail.html

+ 2 - 2
templates/disks_show.html

@@ -159,7 +159,7 @@
             // 单机版加入与磁盘同一计算节点的过滤
             {% if show_on_host %}
                 var node_id = $(me.relatedTarget).parent().parent().parent().parent().prev().prev().prev().text();
-                url += '&filter=node_id:eq:' + node_id + ';status:eq:1';
+                url += '&filter=node_id:eq:' + node_id + ';status:eq:2';
             {% endif %}
 
             $.ajax({
@@ -171,7 +171,7 @@
                 },
                 success : function(data, textStatus, xhr) {
                     $('#mountable_guest').empty();
-                    var subtext = ''
+                    var subtext = '';
                     $.each(data.data, function(k, v) {
                         subtext = v['remark'];
                         if (subtext === '') {

+ 1 - 0
templates/guest_detail.html

@@ -898,6 +898,7 @@
         render_cpu_chart(uuid, granularity);
         render_traffic_chart(uuid, granularity);
         render_disks_chart(uuid, granularity)
+        render_memory_chart(uuid, granularity);
     }
 
     function get_selected_element(checked) {