zhouwx
2024-07-17 246f7b6fd81cf2ba620b8f9bf7cf24b61d7cf521
src/views/onlineEducation/courseManage/courseChapters/components/chapterDialog.vue
@@ -5,6 +5,8 @@
        :title="title"
        width="550px"
        :before-close="handleClose"
        :close-on-press-escape="false"
        :close-on-click-modal="false"
    >
      <el-form :model="state.form" size="default" ref="busRef" :rules="state.formRules" label-width="100px" >
        <el-form-item label="章名称:" prop="name">
@@ -147,6 +149,7 @@
    if(title.value === '新增'){
      if(state.chapter.chapterId){
        const {id, ...data} = JSON.parse(JSON.stringify(state.chapter))
        data.sort = state.form.sort
        const res = await addChapterPeriod(data)
        if(res.code === 200){
          ElMessage({
@@ -176,6 +179,7 @@
    }else if(title.value === '编辑'){
      if(state.chapter.chapterId){
        const {...data} = JSON.parse(JSON.stringify(state.chapter))
        data.sort = state.form.sort
        const res = await editChapterPeriod(data)
        if(res.code === 200){
          ElMessage({