From 6efa3e6a35f3f4f6b33dda02fc911ef3a01410bf Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 19 Jan 2019 15:31:17 +0800 Subject: [PATCH] up --- plugins/simdht/index.html | 1 + plugins/simdht/index.py | 5 +++++ plugins/simdht/js/simdht.js | 11 ++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/plugins/simdht/index.html b/plugins/simdht/index.html index a7bcac8f8..e53168fc9 100755 --- a/plugins/simdht/index.html +++ b/plugins/simdht/index.html @@ -7,6 +7,7 @@

配置

日志

收录趋势

+

说明

diff --git a/plugins/simdht/index.py b/plugins/simdht/index.py index 0a1ddffe1..60fb8e149 100755 --- a/plugins/simdht/index.py +++ b/plugins/simdht/index.py @@ -263,6 +263,9 @@ def getTrendData(): print str(e) return public.getJson([0, 0, 0]) +def dhtCmd(): + file = initDreplace() + return file+' rstart' if __name__ == "__main__": func = sys.argv[1] @@ -290,5 +293,7 @@ if __name__ == "__main__": print getRunLog() elif func == 'get_trend_data': print getTrendData() + elif func == 'dht_cmd': + print dhtCmd(); else: print 'error' diff --git a/plugins/simdht/js/simdht.js b/plugins/simdht/js/simdht.js index 8a1a4b6e6..92a05295d 100755 --- a/plugins/simdht/js/simdht.js +++ b/plugins/simdht/js/simdht.js @@ -260,4 +260,13 @@ function dhtTrendRender() { }, 300); } - +function dhtRead(){ + dhtPost('dht_cmd','', function(data){ + console.log(data); + var readme = '

* 在手动导入SQL-先把数据表创建

'; + readme += '

* 修改成对应配置文件

'; + readme += '

'; + $('.soft-man-con').html(readme); + }); + +}