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

Commit 024bcdbc by 李梓桢

图片审核

parent f8709f05
var baseURL = 'http://47.92.1.107/api'
var baseURL = 'http://localhost:9100/api'
export {
baseURL
......
......@@ -71,11 +71,11 @@
<button style="float: right"
v-show = "canvasAllCheck[index] == 2"
@click="isRightFn2(index)">取消错误</button>
@click="isRightFn2(index)">取消正确</button>
<button style="float: right"
v-show = "canvasAllCheck[index] == 0"
@click="isRightFn(index)">标记错误</button>
@click="isRightFn(index)">标记正确</button>
</div>
<div style="position: absolute;bottom: 0;">
......@@ -1080,7 +1080,7 @@ export default {
isRightFn (index) {
var tmp = this.canvasAllCheck
// alert(tmp[id])
// alert(tmp)
tmp[index] = 2
this.$forceUpdate()
},
......@@ -1093,11 +1093,11 @@ export default {
},
computeFn () {
// alert("start!")
// 0=>标注者标对的,1=>审查者后加的,2=>标错的
// 2=>标注者标对的,1=>审查者后加的,0=>标错的
var yesAll = 0
var yesTmp = 0
this.canvasAllCheck.forEach(e =>{
if(e === 0) {
if(e === 2) {
yesAll++;
yesTmp++;
}
......@@ -1105,7 +1105,10 @@ export default {
yesAll++;
}
})
var score = yesTmp / yesAll;
if (yesAll != 0)
var score = yesTmp / yesAll;
else
var score = 0
this.computeScore = score * 100
},
......
......@@ -1081,10 +1081,13 @@ export default {
},
isRightFn (index) {
var id = this.pictureId
var tmp = this.canvasAllCheck[id]
// var id = this.pictureId
// var tmp = this.canvasAllCheck[id]
console.log(index)
console.log(this.data[0].children[index])
//isRight标志位为true时表示该标注区域正确
this.data[0].children[index].isRight = true
//alert(tmp[index])
},
save () {
......
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