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

Commit 5e325d25 by 李梓桢

图像审核完成

parent aab2ba66
......@@ -38,7 +38,7 @@
<el-radio-button label="矩形标注"></el-radio-button>
<el-radio-button label="多边形标注"></el-radio-button>
</el-radio-group>
<el-button @click="save()" style="font-size: 12px;padding: 10px 20px;">保存</el-button>
<el-button @click="save()" style="font-size: 12px;padding: 10px 20px;">提交</el-button>
</div>
</div>
......@@ -1138,7 +1138,7 @@ export default {
else
var score = 0
var tmpScore = score * 100
this.computeScore = tmpScore.toFixed(2)
this.computeScore = tmpScore.toFixed(0)
},
save () {
......@@ -1167,6 +1167,9 @@ export default {
console.log('outputdata')
console.log(outputData)
this.submit()
this.imageNum = this.data.length
this.axios({
method: 'post',
......@@ -1179,7 +1182,7 @@ export default {
if (res.code === 1) {
// 保存标志置为1
this.hasSaved = true
this.$alert('保存成功', '保存成功', {
this.$alert('审核提交成功', '审核提交成功', {
confirmButtonText: '确定',
callback: action => {
// this.$message({
......@@ -1187,9 +1190,12 @@ export default {
// //message: `action: ${action}`
// })
}
})
this.$router.push({ path: "/check" })
} else {
this.$alert('保存失败', '保存失败', {
this.$alert('审核提交失败', '审核提交失败', {
confirmButtonText: '确定',
callback: action => {
// this.$message({
......@@ -1200,7 +1206,7 @@ export default {
})
}
}).catch(err => {
this.$alert('保存失败', '保存失败', {
this.$alert('审核提交失败', '审核提交失败', {
confirmButtonText: '确定',
callback: action => {
// this.$message({
......@@ -1210,7 +1216,34 @@ export default {
}
})
})
}
},
submit() {
// alert("打分成功");
// console.log("route:")
// console.log(this.$route.params.executor.id)
// if(this.scoreForm.score == '' || this.scoreForm.accuracy == ''){
// alert("请打分和填写准确率");
// return;
// }
this.axios({
method: "get",
params: {
userId: this.$route.params.executor.id,
fileId: this.$route.params.file.id,
score: this.computeScore
},
url: "task/gradePieces"
}).then(res => {
// console.log(res);
// console.log("dafennjg");
if (res.code == 0) {
alert("分数提交失败!");
} else if (res.code == 1) {
// alert("打分成功");
// this.$router.push({ path: "/taskhall" });
}
});
},
}
}
</script>
......
......@@ -94,7 +94,7 @@
<el-radio-button label="矩形"></el-radio-button>
<el-radio-button label="多边形"></el-radio-button>
</el-radio-group>
<el-button @click="save()" style="font-size: 12px;padding: 10px 20px;">保存</el-button>
<el-button @click="save()" style="font-size: 12px;padding: 10px 20px;">提交</el-button>
</div>
......@@ -433,6 +433,7 @@ export default {
}
this.restore()
this.isInfo = false
this.computeFn()
// 保存标志置为0
this.hasSaved = false
},
......@@ -904,7 +905,7 @@ export default {
else
var score = 0
var tmpScore = score * 100
this.computeScore = tmpScore.toFixed(2)
this.computeScore = tmpScore.toFixed(0)
},
// 保存数据用的接口
......@@ -938,6 +939,8 @@ export default {
console.log(outputlandmarkInfo)
console.log(outputLayerInfo)
this.submit()
this.axios({
method: 'post',
url: '/layer/saveLayer',
......@@ -950,7 +953,7 @@ export default {
if (res.code === 1) {
// 保存标志置为1
this.hasSaved = true
this.$alert('保存成功', '保存成功', {
this.$alert('审核提交成功', '审核提交成功', {
confirmButtonText: '确定',
callback: action => {
// this.$message({
......@@ -959,8 +962,9 @@ export default {
// });
}
})
this.$router.push({ path: "/check" })
} else {
this.$alert('保存失败', '保存失败', {
this.$alert('审核提交失败', '审核提交失败', {
confirmButtonText: '确定',
callback: action => {
// this.$message({
......@@ -971,7 +975,7 @@ export default {
})
}
}).catch(err => {
this.$alert('保存失败', '保存失败', {
this.$alert('审核提交失败', '审核提交失败', {
confirmButtonText: '确定',
callback: action => {
// this.$message({
......@@ -988,26 +992,33 @@ export default {
changeToolBar (val) {
this.activeIndex1 = val
},
/**
* 这个是不需要的方法,没有问题会删除
*/
deleteAnnotation: function () {
this.$confirm('确定删除此标注', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '删除成功!'
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
}
submit() {
// alert("打分成功");
// console.log("route:")
// console.log(this.$route.params.executor.id)
// if(this.scoreForm.score == '' || this.scoreForm.accuracy == ''){
// alert("请打分和填写准确率");
// return;
// }
this.axios({
method: "get",
params: {
userId: this.$route.params.executor.id,
fileId: this.$route.params.file.id,
score: this.computeScore
},
url: "task/gradePieces"
}).then(res => {
// console.log(res);
// console.log("dafennjg");
if (res.code == 0) {
alert("分数提交失败!");
} else if (res.code == 1) {
// alert("打分成功");
// this.$router.push({ path: "/taskhall" });
}
});
},
}
}
</script>
......
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