|
@@ -30,15 +30,14 @@
|
|
|
:label="item.label"
|
|
|
:value="item.value"
|
|
|
>
|
|
|
- <div class="selectBox">
|
|
|
- <span style="float: left">{{ item.label }}</span>
|
|
|
- <span
|
|
|
- class="delSelect"
|
|
|
- @click.stop="delCourse(item.value)"
|
|
|
- style="float: right"
|
|
|
- ></span>
|
|
|
- </div>
|
|
|
-
|
|
|
+ <div class="selectBox">
|
|
|
+ <span style="float: left">{{ item.label }}</span>
|
|
|
+ <span
|
|
|
+ class="delSelect"
|
|
|
+ @click.stop="delCourse(item.value)"
|
|
|
+ style="float: right"
|
|
|
+ ></span>
|
|
|
+ </div>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</span>
|
|
@@ -52,21 +51,21 @@
|
|
|
</div>
|
|
|
<div class="co-h2-right">
|
|
|
<div
|
|
|
- :class="['co-h2-r-btn',fileId?'':'ca-h2-r-noActive']"
|
|
|
+ :class="['co-h2-r-btn', fileId ? '' : 'ca-h2-r-noActive']"
|
|
|
style="background: rgba(54, 129, 252, 1)"
|
|
|
@click.stop="getReport()"
|
|
|
>
|
|
|
<span class="co-h2-r-b-icon1"></span>
|
|
|
- <div style="color:white">一键分析</div>
|
|
|
+ <div style="color: white">一键分析</div>
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
- :class="['co-h2-r-btn',fileId?'':'ca-h2-r-noActive']"
|
|
|
- style="background: #FFFFFF"
|
|
|
+ :class="['co-h2-r-btn', fileId ? '' : 'ca-h2-r-noActive']"
|
|
|
+ style="background: #ffffff"
|
|
|
@click.stop="preview()"
|
|
|
>
|
|
|
<span class="co-h2-r-b-icon2"></span>
|
|
|
- <div style="color:black">查看报告</div>
|
|
|
+ <div style="color: black">查看报告</div>
|
|
|
</div>
|
|
|
<!-- <div class="co-h2-r-btn2" @click.stop="preview()">
|
|
|
<el-tooltip class="item" effect="light" content="预览" placement="top">
|
|
@@ -79,15 +78,47 @@
|
|
|
|
|
|
<div :class="['co-h2-r-btn2']" @click.stop="shareBtn">
|
|
|
<!-- <span class="co-h2-r-b-icon3"></span> -->
|
|
|
- <el-tooltip class="item" effect="light" content="分享" placement="top">
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="分享"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
<img
|
|
|
- src="../../../assets/icon/classroomObservation/daoChu.png"
|
|
|
- alt=""
|
|
|
- />
|
|
|
- </el-tooltip>
|
|
|
-
|
|
|
- <!-- <div>分享</div> -->
|
|
|
+ src="../../../assets/icon/classroomObservation/daoChu.svg"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div :class="['co-h2-r-btn2']" @click.stop="examine">
|
|
|
+ <!-- <span class="co-h2-r-b-icon3"></span> -->
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="审核"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="../../../assets/icon/classroomObservation/examine.svg"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- <div :class="['co-h2-r-btn2']" @click.stop="home">
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="light"
|
|
|
+ content="主页"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="../../../assets/icon/classroomObservation/home.svg"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="co-main">
|
|
@@ -120,7 +151,11 @@
|
|
|
@shareBtn="shareBtn"
|
|
|
></sharePdf>
|
|
|
|
|
|
- <addNewCourseDialog :courseList="optionData" ref="addNewCourseDialogRef" @success="addNewCourse" />
|
|
|
+ <addNewCourseDialog
|
|
|
+ :courseList="optionData"
|
|
|
+ ref="addNewCourseDialogRef"
|
|
|
+ @success="addNewCourse"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -161,11 +196,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
addNewCourse(form) {
|
|
|
- if(this.loading)return this.$message.info("请稍等")
|
|
|
+ if (this.loading) return this.$message.info("请稍等");
|
|
|
this.loading = true;
|
|
|
let params = {
|
|
|
tid: form.no,
|
|
|
- name:form.name
|
|
|
+ name: form.name,
|
|
|
};
|
|
|
this.ajax
|
|
|
.post(
|
|
@@ -213,47 +248,12 @@ export default {
|
|
|
},
|
|
|
// 生成报告
|
|
|
getReport() {
|
|
|
- if(!this.fileId)return;
|
|
|
+ if (!this.fileId) return;
|
|
|
this.$refs.messageAreaRef.getReport();
|
|
|
- // let assistant_title = [
|
|
|
- // "课堂观察",
|
|
|
- // "教学阶段九事件分析",
|
|
|
- // "OMO智慧课堂分析",
|
|
|
- // "布鲁姆问题分类",
|
|
|
- // "麦克锡问题分类",
|
|
|
- // "学生回答统计",
|
|
|
- // "课堂活动类型",
|
|
|
- // "素养目标分析",
|
|
|
- // "科学教育目标分析",
|
|
|
- // "5E课程改编",
|
|
|
- // "5EX课程改编",
|
|
|
- // "UTOP课程观察",
|
|
|
- // "RST模型",
|
|
|
- // "RTOP模型",
|
|
|
- // "课堂质量评价",
|
|
|
- // "scop课堂观察",
|
|
|
- // "rtop课堂观察",
|
|
|
- // ]
|
|
|
- // let _index = 0;
|
|
|
- // let _this = this;
|
|
|
- // function addValue(){
|
|
|
- // _this.$refs.messageAreaRef.addAnalysisItem({title:assistant_title[_index]}).then(_=>{
|
|
|
- // _index+=1;
|
|
|
- // if(_index<assistant_title.length){
|
|
|
- // addValue()
|
|
|
- // }
|
|
|
- // }).catch(_=>{
|
|
|
- // _index+=1;
|
|
|
- // if(_index<assistant_title.length){
|
|
|
- // addValue()
|
|
|
- // }
|
|
|
- // })
|
|
|
- // }
|
|
|
- // addValue()
|
|
|
},
|
|
|
//预览
|
|
|
preview() {
|
|
|
- if(!this.fileId)return;
|
|
|
+ if (!this.fileId) return;
|
|
|
window.parent.postMessage(
|
|
|
{
|
|
|
tools: "classroom_observation_board",
|
|
@@ -267,6 +267,21 @@ export default {
|
|
|
// if(!this.fileId)return;
|
|
|
this.dialogVisibleShare = !this.dialogVisibleShare;
|
|
|
},
|
|
|
+ // 审核
|
|
|
+ examine() {
|
|
|
+ if (!this.tid) return;
|
|
|
+ window.parent.postMessage(
|
|
|
+ {
|
|
|
+ tools: "classroom_observation_ob_comment",
|
|
|
+ type: this.tid,
|
|
|
+ },
|
|
|
+ "*"
|
|
|
+ );
|
|
|
+ },
|
|
|
+ // 主页
|
|
|
+ home() {
|
|
|
+ this.$message.info("主页");
|
|
|
+ },
|
|
|
delCourse(_value = this.tid) {
|
|
|
this.$confirm("此操作将永久删除该课程, 是否继续?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
@@ -349,11 +364,14 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- updateTranscription({ transcriptionData, editorBarData },fn) {
|
|
|
- this.$refs.messageAreaRef.updateMessageTranscription({
|
|
|
- transcriptionData,
|
|
|
- editorBarData,
|
|
|
- },fn);
|
|
|
+ updateTranscription({ transcriptionData, editorBarData }, fn) {
|
|
|
+ this.$refs.messageAreaRef.updateMessageTranscription(
|
|
|
+ {
|
|
|
+ transcriptionData,
|
|
|
+ editorBarData,
|
|
|
+ },
|
|
|
+ fn
|
|
|
+ );
|
|
|
},
|
|
|
changeTranscription({ transcriptionData, editorBarData }) {
|
|
|
this.$refs.chatAreaRef.changeEditorBar({
|
|
@@ -361,18 +379,18 @@ export default {
|
|
|
editorBarData,
|
|
|
});
|
|
|
},
|
|
|
- changeOptionData(_tid,_newObj){
|
|
|
- let _index = this.optionData.findIndex(i=>i.value==_tid);
|
|
|
- if(_index!=-1){
|
|
|
- this.optionData[_index] = {...this.optionData[_index],..._newObj}
|
|
|
+ changeOptionData(_tid, _newObj) {
|
|
|
+ let _index = this.optionData.findIndex((i) => i.value == _tid);
|
|
|
+ if (_index != -1) {
|
|
|
+ this.optionData[_index] = { ...this.optionData[_index], ..._newObj };
|
|
|
this.$forceUpdate();
|
|
|
- };
|
|
|
- console.log(this.optionData)
|
|
|
+ }
|
|
|
+ console.log(this.optionData);
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getCourseList().then((_) => {
|
|
|
- if(!this.tid)return;
|
|
|
+ if (!this.tid) return;
|
|
|
this.getFileIdId();
|
|
|
this.$refs.messageAreaRef.getData();
|
|
|
this.$refs.chatAreaRef.getData();
|
|
@@ -509,8 +527,8 @@ export default {
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
|
|
|
-.ca-h2-r-noActive{
|
|
|
- opacity: .5 !important;
|
|
|
+.ca-h2-r-noActive {
|
|
|
+ opacity: 0.5 !important;
|
|
|
cursor: not-allowed !important;
|
|
|
}
|
|
|
|
|
@@ -537,12 +555,12 @@ export default {
|
|
|
}
|
|
|
|
|
|
.co-h2-r-b-icon1 {
|
|
|
- background: url("../../../assets/icon/classroomObservation/six.png") no-repeat;
|
|
|
+ background: url("../../../assets/icon/classroomObservation/six.svg") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
|
|
|
-.co-h2-r-b-icon2{
|
|
|
- background: url("../../../assets/icon/classroomObservation/Syan.png")
|
|
|
+.co-h2-r-b-icon2 {
|
|
|
+ background: url("../../../assets/icon/classroomObservation/Syan.svg")
|
|
|
no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
@@ -612,7 +630,7 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
- background: url("../../../assets/icon/classroomObservation/del.png") no-repeat;
|
|
|
+ background: url("../../../assets/icon/classroomObservation/del.svg") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
|
|
@@ -620,11 +638,11 @@ export default {
|
|
|
background-color: #eaeef1;
|
|
|
}
|
|
|
|
|
|
-.selectBox{
|
|
|
+.selectBox {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
-.selectBox:hover .delSelect{
|
|
|
+.selectBox:hover .delSelect {
|
|
|
display: flex;
|
|
|
}
|
|
|
|
|
@@ -634,7 +652,7 @@ export default {
|
|
|
display: none;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- background: url("../../../assets/icon/classroomObservation/del.png") no-repeat;
|
|
|
+ background: url("../../../assets/icon/classroomObservation/del.svg") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
box-sizing: border-box;
|
|
|
transform: translateY(7px);
|