文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit f8709f05 by 李梓桢

图片审核

parent c17cd94a
......@@ -88,8 +88,8 @@ export default {
if (file.url.endsWith('xlsx')) { goto('tabledCheck') }
if (file.url.endsWith('txt')) { goto('SelectedCheck') }
break
case '图片': goto('imageShow'); break
case '图层': goto('layerShow')
case '图片': goto('imageCheck'); break
case '图层': goto('layerCheck')
}
},
exportFile (relationId) {
......
......@@ -73,7 +73,7 @@
@mouseenter="labelEnter(index)"
@mouseleave="labelLeave()">
{{index+1}}.   {{item.labelName}}
<button style="float: right" @click="isRightFn(index)">记错误</button>
<button style="float: right" @click="isRightFn(index)">注正确</button>
<!-- <button style="float: right">取消错误</button>-->
</div>
</div>
......@@ -806,12 +806,16 @@ export default {
if (inputData.length > 0) {
var index = 0
inputData.forEach(element => {
let newData = {
var newData = {
relationId: element.relationId,
imageName: element.imageName,
label: element.imageName,
children: element.labelList
}
newData.children.forEach(element => {
element.isRight = false
console.log(element)
})
this.data.push(newData)
index++
})
......@@ -866,7 +870,8 @@ export default {
const newLabel = {
labelId: currentLabelId,
labelName: labelName,
pointList: pointList
pointList: pointList,
isRight: true
}
this.data[currentImageId].children.push(newLabel)
// 保存标志置为0
......@@ -1078,7 +1083,9 @@ export default {
var id = this.pictureId
var tmp = this.canvasAllCheck[id]
alert(tmp[index])
console.log(index)
console.log(this.data[0].children[index])
//alert(tmp[index])
},
save () {
// 先把格式转换回去
......
......@@ -4,7 +4,7 @@ import traceback
import zipfile
from flask import Blueprint, request, make_response, send_file
from dao import Image
from dao import Image, Relation
image = Blueprint("image", __name__, url_prefix="/api")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment