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

Commit 0fc35382 by 李严凡

修改任务分片显示,创建模板传参修改

parent ef7d8320
......@@ -589,6 +589,18 @@
this.dynamicValidateForm.layerDomains = res.data.layerDomains;
this.taskName = res.data.taskName;
this.taskId = res.data.taskId;
var max = res.data.domains.length;
// console.log("F")
for(var i = 0 ; i < max ; i++) this.activeNameF.push(i);
// console.log(res.data.domains)
max = res.data.pictureDomains.length;
// console.log("P")
for(var i = 0 ; i < max ; i++) this.activeNameP.push(i);
// console.log(res.data.pictureDomains.length)
max = res.data.layerDomains.length;
// console.log("L")
for(var i = 0 ; i < max ; i++) this.activeNameL.push(i);
// console.log(res.data.layerDomains.length)
// console.log(res.data.domains[0].piecesOptions);
}
})
......@@ -1015,7 +1027,7 @@
method:'POST',
url:'/textAnnotation/createTemplated',
data:{
templateId:max+1,
// templateId:max+1,
templateName:this.form.name,
templateType:1,
creatorId:this.userInfo.userId,
......@@ -1053,7 +1065,6 @@
this.axios({
method:"POST",
data:{
creatorId:this.userInfo.userId,
templateId:this.pOptions[index].templateId
},
url:'textAnnotation/deleteTemplate',
......
......@@ -845,7 +845,7 @@
alert("分数提交失败!");
} else if (res.code == 1) {
alert("打分成功");
this.$router.push({ path: "/taskhall" });
this.$router.push({ path: "/check" });
}
});
// this.commentScore = false;
......
......@@ -249,14 +249,15 @@ export default {
},
url: "task/gradePieces",
}).then((res) => {
console.log(res)
if (res.code == 0) {
alert("分数提交失败!");
} else if (res.code == 1) {
alert("打分成功");
this.$router.push({ path: "/taskhall" });
this.$router.push({ path: "/check" });
}
});
this.commentScore = false;
// this.commentScore = false;
// this.$message("打分成功");
}
},
......
......@@ -307,7 +307,7 @@ export default {
alert("分数提交失败!");
} else if (res.code == 1) {
alert("打分成功");
this.$router.push({ path: "/taskhall" });
this.$router.push({ path: "/check" });
}
});
// this.commentScore = false;
......
......@@ -191,6 +191,7 @@ def get_task_detail():
# 审核时候打分的接口,前端传送打分的具体信息(文件id,分片id,标注者id,打分详情),后端在标注关系表中查找对应的标注,并将分数存储下来,之后修改审核状态即flag2 = True,代表已审核
@task.route("/gradePieces", methods=["GET"])
def grade():
print('grade')
data_id = request.args['fileId']
userId = request.args['userId']
scoreForm = eval(request.args['scoreForm'])
......
......@@ -8,6 +8,7 @@ user = Blueprint("user", __name__, url_prefix="/api/user")
@user.route("/signup", methods=["Post"])
def signup():
print("signup")
data = request.get_json(silent=True)
ret = User.register(data['userName'], data['password'], data['email'])
res = {
......@@ -20,6 +21,7 @@ def signup():
@user.route("/signin", methods=["Post"])
def signin():
print("signin")
data = request.get_json(silent=True)
ret = User.login(data['userName'], data['password'])
res = {
......
# 工具
# 工具
......@@ -71,4 +71,10 @@ dist中有两个文件**index.html** 和 **static文件夹**
## 页面显示502 bad gateway
大概率是uwsgi服务器没在运行,重新在screen中启动uwsgi
\ No newline at end of file
大概率是uwsgi服务器没在运行,重新在screen中启动uwsgi
## 前端npm run build报错
![1597571995472](C:\Users\84446\AppData\Roaming\Typora\typora-user-images\1597571995472.png)
没有在前端文件夹下DAPlatform-fornt
\ No newline at end of file
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