Browse Source

test the name

pull/440/head
zhoupzh 3 years ago
parent
commit
6248ce16f2
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      public/self/js/Director/detection.js

+ 10
- 1
public/self/js/Director/detection.js View File

@@ -713,7 +713,16 @@ function loadimg(){
var picturePath = labeltastresult[fileindex].pic_image_field; var picturePath = labeltastresult[fileindex].pic_image_field;
img.src = ip + "/getgiteaimage?filename=" + picturePath; img.src = ip + "/getgiteaimage?filename=" + picturePath;
console.log("picturePath",picturePath) console.log("picturePath",picturePath)
var html = picturePath.substring(picturePath.lastIndexOf("/") + 1) + "  "+ "(" + (tablePageData.current * pageSize + fileindex + 1) + "/" + tablePageData.total + ")"
var picIndex = picturePath.indexOf("/",70);
if(picIndex != -1){
float_text_name = picturePath.substring(picIndex + 1);
float_text_name = float_text_name.substring(float_text_name.indexOf('/')+1);
}else{
float_text_name = picturePath.substring(picturePath.lastIndexOf("/") + 1)
}
console.log("float_text_name",float_text_name)
var html = float_text_name + "  "+ "(" + (tablePageData.current * pageSize + fileindex + 1) + "/" + tablePageData.total + ")"
document.getElementById("float_text").innerHTML = html; document.getElementById("float_text").innerHTML = html;
} }
function save(){ function save(){


Loading…
Cancel
Save