文档服务地址: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 { ...@@ -88,8 +88,8 @@ export default {
if (file.url.endsWith('xlsx')) { goto('tabledCheck') } if (file.url.endsWith('xlsx')) { goto('tabledCheck') }
if (file.url.endsWith('txt')) { goto('SelectedCheck') } if (file.url.endsWith('txt')) { goto('SelectedCheck') }
break break
case '图片': goto('imageShow'); break case '图片': goto('imageCheck'); break
case '图层': goto('layerShow') case '图层': goto('layerCheck')
} }
}, },
exportFile (relationId) { exportFile (relationId) {
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
@mouseenter="labelEnter(index)" @mouseenter="labelEnter(index)"
@mouseleave="labelLeave()"> @mouseleave="labelLeave()">
{{index+1}}.   {{item.labelName}} {{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>--> <!-- <button style="float: right">取消错误</button>-->
</div> </div>
</div> </div>
...@@ -806,12 +806,16 @@ export default { ...@@ -806,12 +806,16 @@ export default {
if (inputData.length > 0) { if (inputData.length > 0) {
var index = 0 var index = 0
inputData.forEach(element => { inputData.forEach(element => {
let newData = { var newData = {
relationId: element.relationId, relationId: element.relationId,
imageName: element.imageName, imageName: element.imageName,
label: element.imageName, label: element.imageName,
children: element.labelList children: element.labelList
} }
newData.children.forEach(element => {
element.isRight = false
console.log(element)
})
this.data.push(newData) this.data.push(newData)
index++ index++
}) })
...@@ -866,7 +870,8 @@ export default { ...@@ -866,7 +870,8 @@ export default {
const newLabel = { const newLabel = {
labelId: currentLabelId, labelId: currentLabelId,
labelName: labelName, labelName: labelName,
pointList: pointList pointList: pointList,
isRight: true
} }
this.data[currentImageId].children.push(newLabel) this.data[currentImageId].children.push(newLabel)
// 保存标志置为0 // 保存标志置为0
...@@ -1078,7 +1083,9 @@ export default { ...@@ -1078,7 +1083,9 @@ export default {
var id = this.pictureId var id = this.pictureId
var tmp = this.canvasAllCheck[id] var tmp = this.canvasAllCheck[id]
alert(tmp[index]) console.log(index)
console.log(this.data[0].children[index])
//alert(tmp[index])
}, },
save () { save () {
// 先把格式转换回去 // 先把格式转换回去
......
...@@ -4,7 +4,7 @@ import traceback ...@@ -4,7 +4,7 @@ import traceback
import zipfile import zipfile
from flask import Blueprint, request, make_response, send_file 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") 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