sbd-npm 1.1.71 → 1.1.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.1.71",
3
+ "version": "1.1.72",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -764,6 +764,16 @@ const Util = {
764
764
  }
765
765
  },
766
766
 
767
+ /**
768
+ * 表格加载状态
769
+ * @param element_id
770
+ */
771
+ set_table_loading: function(element_id) {
772
+ let obj = $("#" + element_id);
773
+ let td_num = obj.parent().find('thead td').length;
774
+ obj.html('<tr><td colspan="' + td_num + '">Loading...</td></tr>');
775
+ },
776
+
767
777
  /**
768
778
  * 渲染板块内容
769
779
  * @param classify_id