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

Commit fae656c1 by 张欣玥

layerCheck改了个bug

parent 8f21020a
...@@ -326,8 +326,9 @@ export default { ...@@ -326,8 +326,9 @@ export default {
this.computeFn() this.computeFn()
}, },
value2: function fn() { value2: function fn() {
// alert('f2 is changed')
var tmp = this.checkLayer; var tmp = this.checkLayer;
this.value.forEach((e, index) => { this.value2.forEach((e, index) => {
if (tmp[index] == 0) { if (tmp[index] == 0) {
if (e == true) { if (e == true) {
tmp[index] = 2; tmp[index] = 2;
...@@ -876,25 +877,28 @@ export default { ...@@ -876,25 +877,28 @@ export default {
// 2=>标注者标对的,1=>审查者后加的,0=>标错的 // 2=>标注者标对的,1=>审查者后加的,0=>标错的
var yesAll = 0 var yesAll = 0
var yesTmp = 0 var yesTmp = 0
// console.log(this.canvasAllCheck) console.log(this.checkLayer)
console.log(this.checkLand)
this.checkLayer.forEach(e =>{ this.checkLayer.forEach(e =>{
if(e === 2) { if(e == 2) {
yesAll++; yesAll++;
yesTmp++; yesTmp++;
} }
else if(e === 1) { else if(e == 1) {
yesAll++; yesAll++;
} }
}) })
this.checkLand.forEach(e =>{ this.checkLand.forEach(e =>{
if(e === 2) { if(e == 2) {
yesAll++; yesAll++;
yesTmp++; yesTmp++;
} }
else if(e === 1) { else if(e == 1) {
yesAll++; yesAll++;
} }
}) })
// alert(yesAll)
if (yesAll != 0) if (yesAll != 0)
var score = yesTmp / yesAll; var score = yesTmp / yesAll;
else else
......
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