From 6248ce16f21105fa2e03a0394117594d0b789bdc Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 23 Sep 2021 15:44:44 +0800 Subject: [PATCH] test the name --- public/self/js/Director/detection.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/public/self/js/Director/detection.js b/public/self/js/Director/detection.js index 6231a720d..5bd98d1c2 100644 --- a/public/self/js/Director/detection.js +++ b/public/self/js/Director/detection.js @@ -713,7 +713,16 @@ function loadimg(){ var picturePath = labeltastresult[fileindex].pic_image_field; img.src = ip + "/getgiteaimage?filename=" + 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; } function save(){