From 3eb0435540403e32442393a385b861f852014da1 Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 28 Sep 2021 10:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=87=AA=E5=8A=A8=E6=A0=87?= =?UTF-8?q?=E6=B3=A8=E7=9A=84=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/self/labelTaskPage.js | 59 ++++-------------------- templates/repo/datasets/label/index.tmpl | 14 +++--- 2 files changed, 14 insertions(+), 59 deletions(-) diff --git a/public/self/labelTaskPage.js b/public/self/labelTaskPage.js index 9d904737e..d84f0f18f 100644 --- a/public/self/labelTaskPage.js +++ b/public/self/labelTaskPage.js @@ -121,34 +121,7 @@ function countLabel(){ } -function display_createdatasetlabel(type){ - var html=""; - for (var i=0;i"+dataSetTaskData[i].task_name+ - ""; - if(type == 1){ - $("#autolabeltaskname").attr({value:dataSetTaskData[i].task_name + "-自动标注"}); - }else{ - $("#datasetlabeltaskname").attr({value:dataSetTaskData[i].task_name + "-人工标注"}); - } - - }else{ - var row = ""; - } - html=html+row; - } - console.log(html); - if(type ==1){ - document.getElementById('dataset_list_auto').innerHTML=html; - }else{ - document.getElementById('dataset_list').innerHTML=html; - } - -} + function setPredictTask(){ @@ -187,11 +160,11 @@ function displayModelTask(){ for (var i=0;i"+modelListData[i].name+ + "\" selected=\"\">"+modelListData[i].model_name + ""; }else{ var row = ""; } html=html+row; @@ -199,8 +172,6 @@ function displayModelTask(){ console.log(html); document.getElementById('model_list').innerHTML=html; - - } @@ -229,27 +200,13 @@ function dataset_sele_Change(sele){ $("#datasetlabeltaskname").attr({value:dataset_listName+"-人工标注"}); } - - -function display_createlabel(sindex=-1){ - var html=""; - for (var i=0;i"+preDictTaskData[i].task_name+ - ""; - $("#labeltaskname").attr({value:preDictTaskData[i].task_name + "-人工标注"}); - }else{ - var row = ""; - } - html=html+row; - } - console.log(html); - document.getElementById('pre_predict_task_for_label').innerHTML=html; +function dataset_auto_sele_Change(sele){ + var dataset_listName = $('#dataset_list_auto option:selected').text(); + console.log("select dataset_list_auto =" + dataset_listName); + $("#autolabeltaskname").attr({value:dataset_listName+"-自动标注"}); } + var createsucced; function submit_datasettask(){ diff --git a/templates/repo/datasets/label/index.tmpl b/templates/repo/datasets/label/index.tmpl index f0a19360d..36f835d0d 100644 --- a/templates/repo/datasets/label/index.tmpl +++ b/templates/repo/datasets/label/index.tmpl @@ -67,7 +67,6 @@
- {{if .Attachments}} {{range .Attachments}} @@ -136,7 +134,7 @@
-
+
@@ -148,11 +146,11 @@
-