maxiaoshan hace 3 años
padre
commit
b3264450a5
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      src/web/templates/list.html

+ 6 - 1
src/web/templates/list.html

@@ -260,7 +260,12 @@ $(function(){
   }
   //标注人员筛选
   for(i in {{.T.labelers}}){
-    $("#labeler").append("<option value='"+{{.T.labelers}}[i]+"'>"+{{.T.labelers}}[i]+"</option>")
+    var selected = ""
+    console.log({{.T.labeler}},"----",{{.T.labelers}}[i])
+    if({{.T.labeler}} == {{.T.labelers}}[i]){
+      selected = "selected"
+    }
+    $("#labeler").append("<option "+selected+" value='"+{{.T.labelers}}[i]+"'>"+{{.T.labelers}}[i]+"</option>")
   }
   //字段选择
   var fk = "";