qinbo
2021-09-17 5a1b72da2f969ca5447ad243f915ecc0cb3a2ad0
change Top10
1个文件已修改
23 ■■■■■ 已修改文件
widgetsTS/dataTime/widget.js 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/dataTime/widget.js
@@ -24,6 +24,25 @@
    (day > 9 ? day : ("0" + day)) + " 00:00:00";
}
function applyDateType(){
  var dateType = $('input[type=radio][name=datatype]').val();
  return dateType;
}
function reloadTop10(){
  var leftAndRight = mars3d.widget.getClass("widgetsTS/widget_Overall/widget.js");
  if(leftAndRight){
    if(leftAndRight.viewWindowLeft){
      leftAndRight.viewWindowLeft.loadTop10();
    }
  }
}
function getAppDateTime(){
  return $('#appDate').val();
}
(function (window, mars3d) {
  //创建widget类,需要继承BaseWidget
  class MyWidget extends mars3d.widget.BaseWidget {
@@ -110,6 +129,7 @@
        addGrid5Layers();
        addGrid1Layers();
        reloadTop10();
        reLoadLayers();
        refreshWidgets();
@@ -152,6 +172,9 @@
        // addWindLayer();
        addGrid5Layers();
        addGrid1Layers();
        reloadTop10();
        reLoadLayers();
        refreshWidgets();
      });