|
@@ -69,7 +69,7 @@
|
|
width="680px"
|
|
width="680px"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
class="audit-dialog"
|
|
class="audit-dialog"
|
|
- @close="dialogClose"
|
|
|
|
|
|
+ @close="dialogClose('')"
|
|
>
|
|
>
|
|
<RichText
|
|
<RichText
|
|
v-model="remark_content"
|
|
v-model="remark_content"
|
|
@@ -85,6 +85,16 @@
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <el-dialog title="" :visible="visibleMindMap" width="1100px" class="audit-dialog" @close="dialogClose('MindMap')">
|
|
|
|
+ <MindMap
|
|
|
|
+ v-if="isChildDataLoad"
|
|
|
|
+ ref="mindMapRef"
|
|
|
|
+ :project-id="projectId"
|
|
|
|
+ :mind-map-json-data="mindMapJsonData"
|
|
|
|
+ @child-click="handleNodeClick"
|
|
|
|
+ />
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -93,6 +103,7 @@ import CoursewarePreview from '@/views/book/courseware/preview/CoursewarePreview
|
|
import MenuPopover from '@/views/personal_workbench/common/MenuPopover.vue';
|
|
import MenuPopover from '@/views/personal_workbench/common/MenuPopover.vue';
|
|
import RichText from '@/components/RichText.vue';
|
|
import RichText from '@/components/RichText.vue';
|
|
import { isTrue } from '@/utils/common';
|
|
import { isTrue } from '@/utils/common';
|
|
|
|
+import MindMap from '@/components/MindMap.vue';
|
|
|
|
|
|
import {
|
|
import {
|
|
GetBookCoursewareInfo,
|
|
GetBookCoursewareInfo,
|
|
@@ -101,7 +112,12 @@ import {
|
|
AddCoursewareAuditRemark,
|
|
AddCoursewareAuditRemark,
|
|
DeleteCoursewareAuditRemarkList,
|
|
DeleteCoursewareAuditRemarkList,
|
|
} from '@/api/project';
|
|
} from '@/api/project';
|
|
-import { ContentGetCoursewareContent_View, ChapterGetBookChapterStructExpandList, GetBookBaseInfo } from '@/api/book';
|
|
|
|
|
|
+import {
|
|
|
|
+ ContentGetCoursewareContent_View,
|
|
|
|
+ ChapterGetBookChapterStructExpandList,
|
|
|
|
+ GetBookBaseInfo,
|
|
|
|
+ MangerGetBookMindMap,
|
|
|
|
+} from '@/api/book';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'CommonPreview',
|
|
name: 'CommonPreview',
|
|
@@ -109,6 +125,7 @@ export default {
|
|
CoursewarePreview,
|
|
CoursewarePreview,
|
|
MenuPopover,
|
|
MenuPopover,
|
|
RichText,
|
|
RichText,
|
|
|
|
+ MindMap,
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
projectId: {
|
|
projectId: {
|
|
@@ -162,6 +179,7 @@ export default {
|
|
remark_list: [],
|
|
remark_list: [],
|
|
remark_list_obj: {}, // 存放以组件为对象的数组
|
|
remark_list_obj: {}, // 存放以组件为对象的数组
|
|
visible: false,
|
|
visible: false,
|
|
|
|
+
|
|
remark_content: '',
|
|
remark_content: '',
|
|
submit_loading: false,
|
|
submit_loading: false,
|
|
isTrue,
|
|
isTrue,
|
|
@@ -181,6 +199,9 @@ export default {
|
|
{ icon: 'collect', title: '收藏', handle: '' },
|
|
{ icon: 'collect', title: '收藏', handle: '' },
|
|
{ icon: 'setting', title: '设置', handle: '' },
|
|
{ icon: 'setting', title: '设置', handle: '' },
|
|
],
|
|
],
|
|
|
|
+ visibleMindMap: false,
|
|
|
|
+ isChildDataLoad: false,
|
|
|
|
+ mindMapJsonData: {}, // 思维导图json数据
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -291,8 +312,8 @@ export default {
|
|
};
|
|
};
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- dialogClose() {
|
|
|
|
- this.visible = false;
|
|
|
|
|
|
+ dialogClose(type) {
|
|
|
|
+ this[`visible${type}`] = false;
|
|
},
|
|
},
|
|
// 添加审校批注
|
|
// 添加审校批注
|
|
addCoursewareAuditRemark(id) {
|
|
addCoursewareAuditRemark(id) {
|
|
@@ -347,7 +368,16 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
openMindMap() {
|
|
openMindMap() {
|
|
- console.log('打开思维导图');
|
|
|
|
|
|
+ MangerGetBookMindMap({ book_id: this.projectId }).then(({ content }) => {
|
|
|
|
+ if (content) {
|
|
|
|
+ this.mindMapJsonData = JSON.parse(content);
|
|
|
|
+ this.isChildDataLoad = true;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ this.visibleMindMap = true;
|
|
|
|
+ },
|
|
|
|
+ handleNodeClick(data) {
|
|
|
|
+ console.log('子组件触发了事件', data); // 节点UID
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|