diff --git a/plugins/data_query/static/html/index.html b/plugins/data_query/static/html/index.html index 49204ab39..2ec6103a8 100644 --- a/plugins/data_query/static/html/index.html +++ b/plugins/data_query/static/html/index.html @@ -20,8 +20,20 @@
-
@@ -39,11 +51,6 @@
-
@@ -126,7 +133,7 @@
-
1共1条
+
0共0条
diff --git a/plugins/data_query/static/js/app.js b/plugins/data_query/static/js/app.js index 8ea046d32..a64882ded 100755 --- a/plugins/data_query/static/js/app.js +++ b/plugins/data_query/static/js/app.js @@ -357,6 +357,15 @@ function mongodbGetDbName(){ return $('.db_list select[name="db"]').val(); } +function mongodbInitField(f){ + var option_html = ''; + for (var i = 0; i < f.length; i++) { + option_html+= ''; + } + + $('select[name="mongodb_field_key"]').html(option_html); +} + var mogodb_db_list; function mongodbCollectionName(){ // console.log(mogodb_db_list); @@ -467,6 +476,7 @@ function mongodbDataList(p){ // console.log(dlist); var fields = mongodbGetDataFields(dlist); + mongodbInitField(fields); // console.log(fields); var header_field = '';