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