|
@@ -9067,7 +9067,7 @@
|
|
|
</div>
|
|
|
<div
|
|
|
class="upload_send"
|
|
|
- @click="addCourseWorks(taskCount)"
|
|
|
+ @click="addCourseWorksCopy(taskCount)"
|
|
|
v-if="!proVisible"
|
|
|
>
|
|
|
提交
|
|
@@ -14767,6 +14767,25 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ addCourseWorksCopy(i){
|
|
|
+ let arr = this.workStudent[this.toolindex].filter(e=>{
|
|
|
+ return e.userid = this.userid
|
|
|
+ })
|
|
|
+
|
|
|
+ if (arr.length > 0) {
|
|
|
+ this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.addCourseWorks(i)
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ }else{
|
|
|
+ this.addCourseWorks(i)
|
|
|
+ }
|
|
|
+ },
|
|
|
addCourseWorks(i) {
|
|
|
var typesql;
|
|
|
if (this.fileType === 0) {
|
|
@@ -14795,7 +14814,7 @@ export default {
|
|
|
},
|
|
|
];
|
|
|
this.ajax
|
|
|
- .post(this.$store.state.api + "addCourseWorksR", params)
|
|
|
+ .post(this.$store.state.api + "addCourseWorksR1", params)
|
|
|
.then((res) => {
|
|
|
this.$message({
|
|
|
message: "提交成功",
|