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

Commit 128238eb by 李严凡

bug

parent abd81d99
......@@ -2,6 +2,15 @@
<div class="user-info-container">
<div class="user-info-panel">
<div class="user-info-left">
<!-- 上传头像-->
<!-- <el-upload class="avatar-uploader"-->
<!-- action="https://jsonplaceholder.typicode.com/posts/"-->
<!-- :show-file-list="false"-->
<!-- :on-success="handleAvatarSuccess"-->
<!-- :before-upload="beforeAvatarUpload">-->
<!-- <img v-if="imageUrl" :src="imageUrl" class="avatar">-->
<!-- <i v-else class="el-icon-plus avatar-uploader-icon"></i>-->
<!-- </el-upload>-->
<img src="../assets/avatar.jpg" alt="">
<el-button type="primary" plain>更换头像</el-button>
</div>
......@@ -29,6 +38,7 @@ export default {
name: 'user-home',
data () {
return {
imageUrl
}
},
computed: {
......@@ -107,4 +117,27 @@ export default {
}
}
}
/*.avatar-uploader .el-upload {*/
/* border: 1px dashed #d9d9d9;*/
/* border-radius: 6px;*/
/* cursor: pointer;*/
/* position: relative;*/
/* overflow: hidden;*/
/*}*/
/*.avatar-uploader .el-upload:hover {*/
/* border-color: #409EFF;*/
/*}*/
/*.avatar-uploader-icon {*/
/* font-size: 28px;*/
/* color: #8c939d;*/
/* width: 178px;*/
/* height: 178px;*/
/* line-height: 178px;*/
/* text-align: center;*/
/*}*/
/*.avatar {*/
/* width: 178px;*/
/* height: 178px;*/
/* display: block;*/
/*}*/
</style>
参加过一次软院心理讲座,但是未录入
有博雅记录的一共4次
总共5次博雅
\ No newline at end of file
......@@ -191,12 +191,15 @@ def get_task_detail():
# 审核时候打分的接口,前端传送打分的具体信息(文件id,分片id,标注者id,打分详情),后端在标注关系表中查找对应的标注,并将分数存储下来,之后修改审核状态即flag2 = True,代表已审核
@task.route("/gradePieces", methods=["GET"])
def grade():
# print('grade')
print('grade')
data_id = request.args['fileId']
userId = request.args['userId']
scoreForm = eval(request.args['scoreForm'])
score = int(scoreForm['score'])
accuracy = scoreForm['accuracy']
print('socre')
print(score)
print(accuracy)
ret = Data.find_slice_id(data_id)
if ret.code == 0:
......@@ -215,6 +218,7 @@ def grade():
User.add_image_score(userId, score)
ret = Relation.set_grade(userId, slice_id, data_id, score)
print(ret.code)
res = {
'code': ret.code,
'message': ret.message,
......
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