Browse Source

fix issue 404

tags/v1.21.9.1^2
zhoupzh 4 years ago
parent
commit
5a1125176e
5 changed files with 16 additions and 16 deletions
  1. +1
    -1
      options/locale/locale_en-US.ini
  2. +1
    -1
      options/locale/locale_zh-CN.ini
  3. +8
    -8
      public/self/js/Director/detection.js
  4. +1
    -1
      public/self/labelTaskPage.js
  5. +5
    -5
      templates/repo/datasets/dataset_list.tmpl

+ 1
- 1
options/locale/locale_en-US.ini View File

@@ -647,7 +647,7 @@ public = public
dir = directory
back = back
copy_url=copy download url
directory=check directory of the datasets
directory=preview of the datasets
create_label_task=create label task
visibility = visibility
visibility_description = Only the owner or the organization members if they have rights, will be able to see it.


+ 1
- 1
options/locale/locale_zh-CN.ini View File

@@ -649,7 +649,7 @@ dir=目录
back=返回
copy_url=复制下载链接
copy_md5=复制文件MD5
directory=查看数据集目录结构
directory=数据集预览
create_label_task=创建标注任务
visibility=可见性
visibility_description=只有组织所有人或拥有权利的组织成员才能看到。


+ 8
- 8
public/self/js/Director/detection.js View File

@@ -2641,19 +2641,19 @@ function setPage(pageData,pageSize){
}

canvas = document.getElementById("myCanvas");
context = canvas.getContext("2d");
var maxWidth = document.getElementById("showPic").offsetWidth;
var maxHeight = document.getElementById("showPic").offsetHeight-100;
canvas.width = maxWidth;//document.getElementById("tool0").offsetWidth;
canvas.height = maxHeight;//document.getElementById("tool0").offsetWidth/1280*720;
init_index();
// canvas = document.getElementById("myCanvas");
// context = canvas.getContext("2d");
// var maxWidth = document.getElementById("showPic").offsetWidth;
// var maxHeight = document.getElementById("showPic").offsetHeight-100;
// canvas.width = maxWidth;//document.getElementById("tool0").offsetWidth;
// canvas.height = maxHeight;//document.getElementById("tool0").offsetWidth/1280*720;

// show_region = document.getElementById("show_region");
// show_region.width =document.getElementById("tool0").offsetWidth;
// show_region.height = document.getElementById("tool0").offsetWidth/1280*720;

window.onload = function() {
function init_index() {

canvas = document.getElementById("myCanvas");
context = canvas.getContext("2d");


+ 1
- 1
public/self/labelTaskPage.js View File

@@ -674,7 +674,7 @@ function personLabel(taskid, task_type){
sessionStorage.setItem('return_url',url_name);
console.log("task_type=" + task_type);
if(task_type == 2 || task_type == 1 || task_type == 4){
window.open("/self/labeling.html","标注");
window.open("/self/labeling.html?","标注"+new Date().getMilliseconds());
//window.location.href="/self/labeling.html";
}else if(task_type == 3){
window.location.href="labelingDcm.html";


+ 5
- 5
templates/repo/datasets/dataset_list.tmpl View File

@@ -25,11 +25,11 @@
<div class="wide column one" style="{{if ne .DecompressState 1}}visibility: hidden;{{end}}">
<a class="ui text center" href="datasets/dirs/{{.UUID}}?type={{$.Type}}" data-tooltip='{{$.i18n.Tr "dataset.directory"}}'>{{svg "octicon-file-directory" 16}}</a>
</div>
<div class="wide column one" style="{{if ne .DecompressState 1}}visibility: hidden;{{end}}">
<a class="ui text center" href="datasets/label/{{.UUID}}?type={{$.Type}}" data-tooltip='{{$.i18n.Tr "dataset.create_label_task"}}'><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
</div>
{{if $.IsSigned}}
<div class="wide column one" style="{{if ne .DecompressState 1}}visibility: hidden;{{end}}">
<a class="ui text center" href="datasets/label/{{.UUID}}?type={{$.Type}}" data-tooltip='{{$.i18n.Tr "dataset.create_label_task"}}'><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
</div>
{{end}}
{{if $.Permission.CanWrite $.UnitTypeDatasets}}
{{if $.Repository.IsPrivate}}
<div class="two wide column">


Loading…
Cancel
Save