Jared 3 years ago
parent
commit
abc6afff13
2 changed files with 16 additions and 0 deletions
  1. 5 0
      web/main.py
  2. 11 0
      web/static/index.html

+ 5 - 0
web/main.py

@@ -87,6 +87,11 @@ async def tree_list():
     html+="</table></body></html>"
     return html
 
+@app.post("/proj_kw/",response_class=HTMLResponse)
+async def proj_kw(kw: str = Form(...),kws:Optional[str] = Form(None)):
+    kwlst=[]
+
+
 
 #response_class=RedirectResponse
 @app.post("/gen_tree/",response_class=HTMLResponse)

+ 11 - 0
web/static/index.html

@@ -11,5 +11,16 @@
     </br>
 </br>
 <a href="/tree_list">歷史查詢</a>
+
+</hr>
+<form action="/proj_kw" method="post">
+    專案(例如清原): <input type="text" id="proj" name="proj" value=""></br>
+    關鍵字: </br>
+    <textarea id="kws" name="kws" rows="10" cols="50"></textarea>
+
+    <input type="submit" value="gen">
+</form>
+
+
 </body>
 </html>