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

Commit a051e969 by 李严凡

打分范围限制

parent c590d05c
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
:label="item.templateName" :label="item.templateName"
:value="index"> :value="index">
</el-option> </el-option>
<el-button @click="createModle">查看</el-button> <!-- <el-button @click="createModle">查看</el-button>-->
</el-select> </el-select>
<el-tree <el-tree
:data="this.pOptions[templateChoose].entityList" :data="this.pOptions[templateChoose].entityList"
......
...@@ -273,18 +273,23 @@ export default { ...@@ -273,18 +273,23 @@ export default {
parseInt(this.scoreForm.accuracy) < 0 parseInt(this.scoreForm.accuracy) < 0
) )
this.$message("准确度应在0~100范围内"); this.$message("准确度应在0~100范围内");
else if(
parseInt(this.scoreForm.score) > 100 ||
parseInt(this.scoreForm.score) < 0
)
this.$message("分数范围在0~100");
else { else {
this.commentScore = false; this.commentScore = false;
this.$message("打分成功"); this.$message("打分成功");
} }
}, },
submit(){ submit(){
alert("打分成功"); alert("打分成功");
this.$router.push({path: '/taskhall'}); this.$router.push({path: '/taskhall'});
// alert("inin"); // alert("inin");
this.axios({ this.axios({
method:"get", method:"get",
params:{ params:{
userId:this.$store.state.userInfo.userId, userId:this.$store.state.userInfo.userId,
......
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