|  | @@ -49,7 +49,7 @@
 | 
											
												
													
														|  |            <div class="audit nowrap-ellipsis" :title="auditor_desc">{{ auditor_desc }}</div>
 |  |            <div class="audit nowrap-ellipsis" :title="auditor_desc">{{ auditor_desc }}</div>
 | 
											
												
													
														|  |            <div class="status"></div>
 |  |            <div class="status"></div>
 | 
											
												
													
														|  |            <div class="operator">
 |  |            <div class="operator">
 | 
											
												
													
														|  | -            <span class="link">修改</span>
 |  | 
 | 
											
												
													
														|  | 
 |  | +            <span class="link" @click="openUpdateNameDialog(id, name, is_leaf_chapter === 'true')">修改</span>
 | 
											
												
													
														|  |              <span class="link" @click="openSetProducer(id)">设置制作人</span>
 |  |              <span class="link" @click="openSetProducer(id)">设置制作人</span>
 | 
											
												
													
														|  |              <span class="link" @click="openSetAuditor(id)">设置审校人</span>
 |  |              <span class="link" @click="openSetAuditor(id)">设置审校人</span>
 | 
											
												
													
														|  |              <span class="link danger" @click="is_leaf_chapter === 'true' ? deleteCourseware(id) : deleteChapter(id)">
 |  |              <span class="link danger" @click="is_leaf_chapter === 'true' ? deleteCourseware(id) : deleteChapter(id)">
 | 
											
										
											
												
													
														|  | @@ -87,6 +87,8 @@
 | 
											
												
													
														|  |        :member-list="member_list"
 |  |        :member-list="member_list"
 | 
											
												
													
														|  |        @close="getBookChapterStructExpandList"
 |  |        @close="getBookChapterStructExpandList"
 | 
											
												
													
														|  |      />
 |  |      />
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    <UpdateName :name="name.name" :visible.sync="name.visible" @submit="updateName" />
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -96,6 +98,7 @@ import SetUser from './components/SetUser.vue';
 | 
											
												
													
														|  |  import SetAuditSteps from './components/SetAuditSteps.vue';
 |  |  import SetAuditSteps from './components/SetAuditSteps.vue';
 | 
											
												
													
														|  |  import MenuPage from '@/views/personal_workbench/common/menu.vue';
 |  |  import MenuPage from '@/views/personal_workbench/common/menu.vue';
 | 
											
												
													
														|  |  import SetAuditor from './components/SetAuditor.vue';
 |  |  import SetAuditor from './components/SetAuditor.vue';
 | 
											
												
													
														|  | 
 |  | +import UpdateName from './components/UpdateName.vue';
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import { GetProjectBaseInfo } from '@/api/project';
 |  |  import { GetProjectBaseInfo } from '@/api/project';
 | 
											
												
													
														|  |  import {
 |  |  import {
 | 
											
										
											
												
													
														|  | @@ -105,6 +108,8 @@ import {
 | 
											
												
													
														|  |    ChapterDeleteChapter,
 |  |    ChapterDeleteChapter,
 | 
											
												
													
														|  |    ChapterDeleteCourseware,
 |  |    ChapterDeleteCourseware,
 | 
											
												
													
														|  |    ChapterSetProducer,
 |  |    ChapterSetProducer,
 | 
											
												
													
														|  | 
 |  | +  ChapterUpdateChapter,
 | 
											
												
													
														|  | 
 |  | +  ChapterUpdateCoursewareName,
 | 
											
												
													
														|  |  } from '@/api/book';
 |  |  } from '@/api/book';
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
										
											
												
													
														|  | @@ -115,6 +120,7 @@ export default {
 | 
											
												
													
														|  |      MenuPage,
 |  |      MenuPage,
 | 
											
												
													
														|  |      SetAuditSteps,
 |  |      SetAuditSteps,
 | 
											
												
													
														|  |      SetAuditor,
 |  |      SetAuditor,
 | 
											
												
													
														|  | 
 |  | +    UpdateName,
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    data() {
 |  |    data() {
 | 
											
												
													
														|  |      return {
 |  |      return {
 | 
											
										
											
												
													
														|  | @@ -136,6 +142,12 @@ export default {
 | 
											
												
													
														|  |          visible: false, // 设置审校人弹窗
 |  |          visible: false, // 设置审校人弹窗
 | 
											
												
													
														|  |          id: '', // 章节ID
 |  |          id: '', // 章节ID
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  | 
 |  | +      name: {
 | 
											
												
													
														|  | 
 |  | +        name: '',
 | 
											
												
													
														|  | 
 |  | +        visible: false, // 修改章节名称弹窗
 | 
											
												
													
														|  | 
 |  | +        isCourse: false, // 是否是课件
 | 
											
												
													
														|  | 
 |  | +        id: '', // 章节ID
 | 
											
												
													
														|  | 
 |  | +      },
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    created() {
 |  |    created() {
 | 
											
										
											
												
													
														|  | @@ -264,6 +276,39 @@ export default {
 | 
											
												
													
														|  |          })
 |  |          })
 | 
											
												
													
														|  |          .catch(() => {});
 |  |          .catch(() => {});
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +    /**
 | 
											
												
													
														|  | 
 |  | +     * 打开修改章节名称对话框
 | 
											
												
													
														|  | 
 |  | +     * @param {string} id - 章节ID
 | 
											
												
													
														|  | 
 |  | +     * @param {string} name - 名称
 | 
											
												
													
														|  | 
 |  | +     * @param {boolean} isCourse - 是否是课件
 | 
											
												
													
														|  | 
 |  | +     */
 | 
											
												
													
														|  | 
 |  | +    openUpdateNameDialog(id, name, isCourse) {
 | 
											
												
													
														|  | 
 |  | +      this.name = {
 | 
											
												
													
														|  | 
 |  | +        id,
 | 
											
												
													
														|  | 
 |  | +        name,
 | 
											
												
													
														|  | 
 |  | +        isCourse,
 | 
											
												
													
														|  | 
 |  | +        visible: true,
 | 
											
												
													
														|  | 
 |  | +      };
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    /**
 | 
											
												
													
														|  | 
 |  | +     * 修改章节名称
 | 
											
												
													
														|  | 
 |  | +     * @param {string} id - 章节ID
 | 
											
												
													
														|  | 
 |  | +     */
 | 
											
												
													
														|  | 
 |  | +    updateName(name) {
 | 
											
												
													
														|  | 
 |  | +      if (this.name.isCourse) {
 | 
											
												
													
														|  | 
 |  | +        ChapterUpdateCoursewareName({ id: this.name.id, name }).then(() => {
 | 
											
												
													
														|  | 
 |  | +          this.getBookChapterStructExpandList();
 | 
											
												
													
														|  | 
 |  | +          this.name.visible = false;
 | 
											
												
													
														|  | 
 |  | +          this.$message.success('课件名称修改成功');
 | 
											
												
													
														|  | 
 |  | +        });
 | 
											
												
													
														|  | 
 |  | +      } else {
 | 
											
												
													
														|  | 
 |  | +        ChapterUpdateChapter({ id: this.name.id, name }).then(() => {
 | 
											
												
													
														|  | 
 |  | +          this.getBookChapterStructExpandList();
 | 
											
												
													
														|  | 
 |  | +          this.name.visible = false;
 | 
											
												
													
														|  | 
 |  | +          this.$message.success('章节名称修改成功');
 | 
											
												
													
														|  | 
 |  | +        });
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      openSetProducer(id) {
 |  |      openSetProducer(id) {
 | 
											
												
													
														|  |        this.producer.visible = true;
 |  |        this.producer.visible = true;
 | 
											
												
													
														|  |        this.producer.id = id;
 |  |        this.producer.id = id;
 |