|
|
@@ -138,7 +138,7 @@
|
|
|
<el-button @click="dialogConfig.visible = false; cleanNewAssignmentInfo()">取消</el-button>
|
|
|
<el-button type="primary" @click="handleSubmit">确定</el-button>
|
|
|
<!-- TODO:有点问题 总是删除失败 -->
|
|
|
- <!-- <el-button type="danger" @click="confirmDelete()">删除作业</el-button> -->
|
|
|
+ <el-button type="danger" @click="confirmDelete()">删除作业</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
@@ -506,8 +506,7 @@ const openEditor = (url: string, title: string) => {
|
|
|
};
|
|
|
|
|
|
const deleteAssignment = () => {
|
|
|
- //TODO:teacherId,assignmentId
|
|
|
- apis.deleteById(store.user.id,IAssignmentId.value)
|
|
|
+ apis.deleteAssignmentById(store.user.id,IAssignmentId.value)
|
|
|
|
|
|
.then((res: any) => {
|
|
|
if (res.data.code === 200) {
|