|
@@ -41,6 +41,8 @@
|
|
|
:courseType="courseType"
|
|
|
:taskCount="taskCount"
|
|
|
/>
|
|
|
+
|
|
|
+ <workFlowIframe v-if="itemType == 6 && iframeSrc.length" :iframeSrc="iframeSrc"></workFlowIframe>
|
|
|
<!-- <dialogArea
|
|
|
:courseDetail="courseDetail"
|
|
|
:openMegaphone="openMegaphone"
|
|
@@ -270,7 +272,24 @@
|
|
|
<!-- <span :style="`background:url(${itemType==1?require('../../assets/icon/course/up_active.png'):require('../../assets/icon/course/up.png')});`"></span> -->
|
|
|
<div>对话</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ <div
|
|
|
+ v-if="iframeSrc.length && canUseCourseId.includes(courseId)"
|
|
|
+ :class="[
|
|
|
+ 'ch_nav_box_middle_item',
|
|
|
+ itemType == 6 ? 'ch_nav_box_middle_item_active' : ''
|
|
|
+ ]"
|
|
|
+ @click.stop="changeItemType(6)"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ v-if="itemType == 6"
|
|
|
+ :src="require('../../assets/icon/course/gongzuoliu2.svg')"
|
|
|
+ />
|
|
|
+ <img
|
|
|
+ v-if="itemType != 6"
|
|
|
+ :src="require('../../assets/icon/course/gongzuoliu.svg')"
|
|
|
+ />
|
|
|
+ <div>工作流</div>
|
|
|
+ </div>
|
|
|
<div
|
|
|
:class="[
|
|
|
'ch_nav_box_middle_item',
|
|
@@ -422,6 +441,7 @@ import countdown from "./component/countdown.vue";
|
|
|
import AnnotationCanvas from "./component/AnnotationCanvas.vue";
|
|
|
import languageAssistant from "./component/languageAssistant.vue";
|
|
|
import reviewArea from "./component/reviewArea.vue";
|
|
|
+import workFlowIframe from "./component/workFlowIframe.vue";
|
|
|
import uploadFile from "./component/uploadFile.vue";
|
|
|
import { v4 as uuidv4 } from "uuid";
|
|
|
// 自定义指令,用于处理点击外部区域的事件
|
|
@@ -466,7 +486,8 @@ export default {
|
|
|
AnnotationCanvas,
|
|
|
languageAssistant,
|
|
|
reviewArea,
|
|
|
- uploadFile
|
|
|
+ uploadFile,
|
|
|
+ workFlowIframe
|
|
|
},
|
|
|
props: {
|
|
|
courseDetail: {
|
|
@@ -560,7 +581,9 @@ export default {
|
|
|
key: "",
|
|
|
uploadid: "",
|
|
|
loading: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ iframeSrc: [],
|
|
|
+ canUseCourseId: ['bfbe1913-2f87-11ef-bf55-005056b86db5','3a64b199-d2eb-11ef-a2d1-005056b86db5', 'bb0b1995-0207-11ef-b534-005056b86db5']
|
|
|
};
|
|
|
},
|
|
|
computed:{
|
|
@@ -576,6 +599,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ courseType(newValue, oldValue) {
|
|
|
+ this.setIframeSrc();
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
let setting = this.courseDetail.setting;
|
|
|
if (setting) {
|
|
@@ -600,6 +628,7 @@ export default {
|
|
|
this.canGetTips = true;
|
|
|
this.getTipsList();
|
|
|
}, 3000);
|
|
|
+ this.setIframeSrc();
|
|
|
},
|
|
|
methods: {
|
|
|
getTipsListTime(time = 5000) {
|
|
@@ -791,6 +820,30 @@ ${_textData}
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ setIframeSrc() {
|
|
|
+ const array = [
|
|
|
+ { index: 0, src: [{src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/6c5e785f-d1b0-11ef-b730-12e77c4cb76b', name:'赛规者'}] },
|
|
|
+ { index: 1, src:
|
|
|
+ [
|
|
|
+ {src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/6c5e785f-d1b0-11ef-b730-12e77c4cb76b', name:'共情者'},
|
|
|
+ {src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/45ab8600-d1b3-11ef-b730-12e77c4cb76b', name:'解析者'},
|
|
|
+ {src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/1f8ee1b8-d258-11ef-8b75-12e77c4cb76b', name:'构想者'},
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ { index: 2, src: [{src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/2bf156bc-d1ae-11ef-b730-12e77c4cb76b', name:'建模者'}] },
|
|
|
+ { index: 3, src: [{src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/2bf156bc-d1ae-11ef-b730-12e77c4cb76b', name:'建模者'}] },
|
|
|
+ { index: 4, src: [{src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/73371371-d1a8-11ef-b730-12e77c4cb76b', name:'编码者'}] },
|
|
|
+ { index: 5, src: [{src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/73371371-d1a8-11ef-b730-12e77c4cb76b', name:'编码者'}] },
|
|
|
+ { index: 6, src: [{src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/73371371-d1a8-11ef-b730-12e77c4cb76b', name:'编码者'}] },
|
|
|
+ { index: 7, src: [
|
|
|
+ {src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/cd01ace0-d259-11ef-8b75-12e77c4cb76b', name:'项目书编者'},
|
|
|
+ {src:'https://beta.knowledge.cocorobo.cn/zh-CN/story-telling/a2f4c70a-d1b0-11ef-b730-12e77c4cb76b', name:'答辩者'},
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ const matched = array.find(el => el.index === this.courseType);
|
|
|
+ this.iframeSrc = matched ? matched.src : [];
|
|
|
+ },
|
|
|
//计时
|
|
|
startTime(time) {
|
|
|
this.$refs.timepieceRef.startTime(time);
|
|
@@ -1126,6 +1179,8 @@ Instruction: Based on the context, follow "Format example", write content
|
|
|
overflow-y: auto !important; /* 上下溢出显示滚动条 */
|
|
|
overflow-x: hidden !important; /* 左右溢出正常溢出 */
|
|
|
position: relative;
|
|
|
+ padding-top: 65px;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.ch_content_box {
|