|
@@ -10,7 +10,7 @@
|
|
:tid="tid"
|
|
:tid="tid"
|
|
:bmData="bmData"
|
|
:bmData="bmData"
|
|
:imageList="imageList"
|
|
:imageList="imageList"
|
|
- :actionTypesMap="actionTypesMap"
|
|
|
|
|
|
+ :actionTypesMap="actionTypesMap"
|
|
></homePage>
|
|
></homePage>
|
|
<bindFrom
|
|
<bindFrom
|
|
ref="bindFromRef"
|
|
ref="bindFromRef"
|
|
@@ -29,7 +29,13 @@
|
|
:bmData="bmData"
|
|
:bmData="bmData"
|
|
:imageList="imageList"
|
|
:imageList="imageList"
|
|
></classInfo>
|
|
></classInfo>
|
|
- <stencilled ref="stencilledRef" @cutPage="cutPage" :page="page" :analysisList="analysisList" v-if="page == 5 && userId"></stencilled>
|
|
|
|
|
|
+ <stencilled
|
|
|
|
+ ref="stencilledRef"
|
|
|
|
+ @cutPage="cutPage"
|
|
|
|
+ :page="page"
|
|
|
|
+ :analysisList="analysisList"
|
|
|
|
+ v-if="page == 5 && userId"
|
|
|
|
+ ></stencilled>
|
|
<editTel ref="editTelRef" @cutPage="cutPage" :dataList="dataList" :page="page" v-if="page == 6"></editTel>
|
|
<editTel ref="editTelRef" @cutPage="cutPage" :dataList="dataList" :page="page" v-if="page == 6"></editTel>
|
|
<!-- <addTel ref="addTelRef" @cutPage="cutPage" :page="page" v-if="page == 7"></addTel> -->
|
|
<!-- <addTel ref="addTelRef" @cutPage="cutPage" :page="page" v-if="page == 7"></addTel> -->
|
|
<outcome
|
|
<outcome
|
|
@@ -39,12 +45,13 @@
|
|
v-show="page == 8"
|
|
v-show="page == 8"
|
|
:bmData="bmData"
|
|
:bmData="bmData"
|
|
:loading="[currencyLoading, scienceLoading, extendLoading]"
|
|
:loading="[currencyLoading, scienceLoading, extendLoading]"
|
|
|
|
+ :dialogTagList="dialogTagList"
|
|
:analysisList="analysisList"
|
|
:analysisList="analysisList"
|
|
:fileId="fileId"
|
|
:fileId="fileId"
|
|
:dataList="dataList"
|
|
:dataList="dataList"
|
|
:tid="tid"
|
|
:tid="tid"
|
|
/>
|
|
/>
|
|
- <aiChat ref="aiChatRef" @cutPage="cutPage" :fileId="fileId" :tid="tid" v-if="page==9"/>
|
|
|
|
|
|
+ <aiChat ref="aiChatRef" @cutPage="cutPage" :fileId="fileId" :tid="tid" v-if="page == 9" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -59,6 +66,7 @@ import outcome from './outcome.vue'
|
|
import aiChat from './aiChat.vue'
|
|
import aiChat from './aiChat.vue'
|
|
import { v4 as uuidv4 } from 'uuid'
|
|
import { v4 as uuidv4 } from 'uuid'
|
|
import _ from 'lodash'
|
|
import _ from 'lodash'
|
|
|
|
+import { mapGetters } from 'vuex'
|
|
import {
|
|
import {
|
|
updateObsRequest,
|
|
updateObsRequest,
|
|
getCourseListRequest,
|
|
getCourseListRequest,
|
|
@@ -67,11 +75,12 @@ import {
|
|
delObsRequest,
|
|
delObsRequest,
|
|
getClassroomDefaultRequest,
|
|
getClassroomDefaultRequest,
|
|
insertNewClassRoomRequest,
|
|
insertNewClassRoomRequest,
|
|
- insertNewObsRequest
|
|
|
|
|
|
+ insertNewObsRequest,
|
|
|
|
+ getSModelList
|
|
} from '@/api/classObserve'
|
|
} from '@/api/classObserve'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- components: { homePage, bindFrom, classInfo, stencilled, editTel, addTel, outcome,aiChat },
|
|
|
|
|
|
+ components: { homePage, bindFrom, classInfo, stencilled, editTel, addTel, outcome, aiChat },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
userId: this.$store.state.user.id,
|
|
userId: this.$store.state.user.id,
|
|
@@ -109,221 +118,17 @@ export default {
|
|
fileId: '',
|
|
fileId: '',
|
|
fileIdId: '',
|
|
fileIdId: '',
|
|
actionTypesMap: {},
|
|
actionTypesMap: {},
|
|
- analysisList: [
|
|
|
|
- {
|
|
|
|
- title: 'OMO智慧课堂分析',
|
|
|
|
- brief: '多维度分析课堂整体情况',
|
|
|
|
- value: '4cc367c1-0076-11ef-aaca-12e77c4cb76b',
|
|
|
|
- type: 0,
|
|
|
|
- sum: 157
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '教学阶段九事件分析',
|
|
|
|
- brief: '使用加涅九事件分析教学环节',
|
|
|
|
- value: '5e0466b3-0075-11ef-aaca-12e77c4cb76b',
|
|
|
|
- type: 0,
|
|
|
|
- sum: 540
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '布鲁姆问题分类',
|
|
|
|
- brief: '不同认知层次问题分布情况',
|
|
|
|
- value: 'eac63117-00a7-11ef-aaca-12e77c4cb76b',
|
|
|
|
- type: 0,
|
|
|
|
- sum: 405
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '麦卡锡问题分类',
|
|
|
|
- brief: '不同类型问题分布情况',
|
|
|
|
- value: '18545cf7-0125-11ef-aaca-12e77c4cb76b',
|
|
|
|
- type: 0,
|
|
|
|
- sum: 360
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '学生回答情况',
|
|
|
|
- brief: '学生回答情况分析',
|
|
|
|
- value: '2c6ede88-0125-11ef-aaca-12e77c4cb76b',
|
|
|
|
- type: 0,
|
|
|
|
- sum: 206
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'S-T分析:课堂时间分配',
|
|
|
|
- brief: '多维度分析课堂整体情况',
|
|
|
|
- value: 'st1',
|
|
|
|
- type: 0,
|
|
|
|
- sum: 451
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'S-T分析:师生互动分析',
|
|
|
|
- brief: '多维度分析课堂整体情况',
|
|
|
|
- value: 'st2',
|
|
|
|
- type: 0,
|
|
|
|
- sum: 342
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'S-T分析:教学模式分析',
|
|
|
|
- brief: '多维度分析课堂整体情况',
|
|
|
|
- value: 'st3',
|
|
|
|
- type: 0,
|
|
|
|
- sum: 143
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '课堂活动类型',
|
|
|
|
- brief: '识别特定的课堂活动类型',
|
|
|
|
- value: '41d2d2d4-0125-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 430
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '学科核心素养发展',
|
|
|
|
- brief: '分析与学科核心素养的匹配情况',
|
|
|
|
- value: 'a6c0b92b-06de-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 234
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '科学教育目标分析',
|
|
|
|
- brief: '分析四类科学教育目标的情况',
|
|
|
|
- value: 'd6cd48ab-0125-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 513
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'PORTAAL课堂观察',
|
|
|
|
- brief: '使用PORTAAL框架分析科学课堂',
|
|
|
|
- value: '8ab07d41-e143-11ee-aaca-12e77c4cb76b',
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 173
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'UTOP课堂观察',
|
|
|
|
- brief: '使用UTOP框架分析科学课堂',
|
|
|
|
- value: '8e3a389b-014f-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 329
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'L-PST模型',
|
|
|
|
- brief: '使用L-PST框架分析科学课堂',
|
|
|
|
- value: 'e649112e-0150-11ef-aaca-12e77c4cb76b', //e649112e-0150-11ef-aaca-12e77c4cb76b 7daa4c3f-016f-11ef-aaca-12e77c4cb76b
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 421
|
|
|
|
- },
|
|
|
|
- // {
|
|
|
|
- // title: "RST模型",
|
|
|
|
- // brief: "多维度分析课堂整体情况",
|
|
|
|
- // value: "e649112e-0150-11ef-aaca-12e77c4cb76b",
|
|
|
|
- // type: 1,
|
|
|
|
- // },
|
|
|
|
- {
|
|
|
|
- title: 'RTOP课堂观察',
|
|
|
|
- brief: '使用RTOP框架分析科学课堂',
|
|
|
|
- value: '68265b18-0151-11ef-aaca-12e77c4cb76b', //a7107221-f7f5-11ee-aaca-12e77c4cb76b bc254ab9-0142-11ef-aaca-12e77c4cb76b c912ece9-0148-11ef-aaca-12e77c4cb76b 68265b18-0151-11ef-aaca-12e77c4cb76b 2ace7ff6-0154-11ef-aaca-12e77c4cb76b
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 527
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '课程质量评价',
|
|
|
|
- brief: '多维度分析课堂整体情况',
|
|
|
|
- value: '25e53379-0152-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 391
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'SCOP课堂观察',
|
|
|
|
- brief: '使用SCOP框架分析科学课堂',
|
|
|
|
- value: 'd0c76d35-0152-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '科学',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 407
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'KWL教学策略',
|
|
|
|
- brief: '分析课前、课中、课后的教学成果',
|
|
|
|
- value: 'a5d8664b-1748-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '语文',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 135
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'LICC课堂观察',
|
|
|
|
- brief: '崔允漷教授团队的观察框架',
|
|
|
|
- value: '9e8e6356-1769-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '语文',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 614
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '读思达教学法',
|
|
|
|
- brief: '分析课堂阅读、思考、表达的情况',
|
|
|
|
- value: 'd139ed78-176c-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '语文',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 346
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '教学内容分析',
|
|
|
|
- brief: '从教学内容角度观课评教',
|
|
|
|
- value: '9e8e6356-1769-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '语文',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 527
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '提问策略分析',
|
|
|
|
- brief: '基于提问观察表分析课堂提问',
|
|
|
|
- value: 'eb815b01-1769-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '语文',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 389
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '教师反馈分析',
|
|
|
|
- brief: '分析语文课堂师生言语互动行为',
|
|
|
|
- value: '55ae5176-176a-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '语文',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 319
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '师生互动分析',
|
|
|
|
- brief: '分析语文课堂四种不同的互动状态',
|
|
|
|
- value: '8e4b6b48-176a-11ef-aaca-12e77c4cb76b',
|
|
|
|
- subject: '语文',
|
|
|
|
- type: 1,
|
|
|
|
- sum: 191
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '5E课程改编',
|
|
|
|
- brief: '基于5E教学模型设计一堂课',
|
|
|
|
- value: 'f757826e-0125-11ef-aaca-12e77c4cb76b',
|
|
|
|
- type: 2,
|
|
|
|
- sum: 510
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '5EX课程改编',
|
|
|
|
- brief: '基于5EX教学模型设计一堂课',
|
|
|
|
- value: '0b6b08b7-0126-11ef-aaca-12e77c4cb76b',
|
|
|
|
- type: 2,
|
|
|
|
- sum: 611
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'C-POTE课程改编',
|
|
|
|
- brief: 'C-POTE课程改编',
|
|
|
|
- value: '6b4a9650-48be-11ef-936b-12e77c4cb76b',
|
|
|
|
- type: 2,
|
|
|
|
- sum: 165
|
|
|
|
- }
|
|
|
|
|
|
+ analysisList: [],
|
|
|
|
+ dialogTagList: [
|
|
|
|
+ { value: 0, name: '通用课堂分析', loading: false },
|
|
|
|
+ { value: 1, name: '学科课堂分析', loading: false },
|
|
|
|
+ { value: 2, name: '扩展分析', loading: false }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters(['userinfo'])
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
cutPage(val) {
|
|
cutPage(val) {
|
|
this.page = val
|
|
this.page = val
|
|
@@ -381,9 +186,9 @@ export default {
|
|
let _flag = this.tid !== newTid
|
|
let _flag = this.tid !== newTid
|
|
this.tid = newTid
|
|
this.tid = newTid
|
|
if (_flag) {
|
|
if (_flag) {
|
|
- this.getData().then(_=>{
|
|
|
|
- this.$refs.homePageRef.init();
|
|
|
|
- })
|
|
|
|
|
|
+ this.getData().then(_ => {
|
|
|
|
+ this.$refs.homePageRef.init()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
// 获取fileId
|
|
// 获取fileId
|
|
this.getFileIdId()
|
|
this.getFileIdId()
|
|
@@ -495,121 +300,258 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//获取通用分析与基本信息
|
|
//获取通用分析与基本信息
|
|
- getCurrencyAndBaseMessageData() {
|
|
|
|
- return new Promise(resolve => {
|
|
|
|
- if (!this.tid) return
|
|
|
|
- this.loading = true
|
|
|
|
- this.currencyLoading = true
|
|
|
|
- this.baseMessageLoading = true
|
|
|
|
- getObsRequest({ tid: this.tid, type: '0' })
|
|
|
|
- .then(res => {
|
|
|
|
- let _data = res.FunctionResponse.result.length ? JSON.parse(res.FunctionResponse.result) : []
|
|
|
|
- let _bmData = _data.find(i => i.tIndex == 0)
|
|
|
|
- // 基础信息
|
|
|
|
- _bmData.jsonData = JSON.parse(_bmData.jsonData)
|
|
|
|
- _bmData.jsonData.time ? '' : (_bmData.jsonData.time = '')
|
|
|
|
- _bmData.jsonData.editorBarData ? '' : (_bmData.jsonData.editorBarData = { type: '0', content: '', url: '' })
|
|
|
|
- _bmData.jsonData.transcriptionData ? '' : (_bmData.jsonData.transcriptionData = '')
|
|
|
|
- // 图片
|
|
|
|
- let _imageList = _data.find(i => i.tIndex == 1)
|
|
|
|
- _imageList.jsonData = JSON.parse(_imageList.jsonData)
|
|
|
|
|
|
+ // getCurrencyAndBaseMessageData() {
|
|
|
|
+ // return new Promise(resolve => {
|
|
|
|
+ // if (!this.tid) return
|
|
|
|
+ // this.loading = true
|
|
|
|
+ // this.currencyLoading = true
|
|
|
|
+ // this.baseMessageLoading = true
|
|
|
|
+ // getObsRequest({ tid: this.tid, type: '0' })
|
|
|
|
+ // .then(res => {
|
|
|
|
+ // let _data = res.FunctionResponse.result.length ? JSON.parse(res.FunctionResponse.result) : []
|
|
|
|
+ // let _bmData = _data.find(i => i.tIndex == 0)
|
|
|
|
+ // // 基础信息
|
|
|
|
+ // _bmData.jsonData = JSON.parse(_bmData.jsonData)
|
|
|
|
+ // _bmData.jsonData.time ? '' : (_bmData.jsonData.time = '')
|
|
|
|
+ // _bmData.jsonData.editorBarData ? '' : (_bmData.jsonData.editorBarData = { type: '0', content: '', url: '' })
|
|
|
|
+ // _bmData.jsonData.transcriptionData ? '' : (_bmData.jsonData.transcriptionData = '')
|
|
|
|
+ // // 图片
|
|
|
|
+ // let _imageList = _data.find(i => i.tIndex == 1)
|
|
|
|
+ // _imageList.jsonData = JSON.parse(_imageList.jsonData)
|
|
|
|
|
|
- if (!_imageList.jsonData.videoList) {
|
|
|
|
- _imageList.jsonData.videoList = []
|
|
|
|
- }
|
|
|
|
- if (!_imageList.jsonData.NephogramList) {
|
|
|
|
- _imageList.jsonData.NephogramList = []
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!_imageList.jsonData.videoList) {
|
|
|
|
+ // _imageList.jsonData.videoList = []
|
|
|
|
+ // }
|
|
|
|
+ // if (!_imageList.jsonData.NephogramList) {
|
|
|
|
+ // _imageList.jsonData.NephogramList = []
|
|
|
|
+ // }
|
|
|
|
|
|
- let currency = []
|
|
|
|
- for (let i = 2; i < _data.length; i++) {
|
|
|
|
- let _currency = _data[i]
|
|
|
|
- _currency.jsonData = JSON.parse(_currency.jsonData)
|
|
|
|
- currency.push(_currency)
|
|
|
|
- }
|
|
|
|
- // 赋值
|
|
|
|
- this.dataList.push(...currency)
|
|
|
|
- this.bmData = _bmData
|
|
|
|
- this.imageList = _imageList
|
|
|
|
|
|
+ // let currency = []
|
|
|
|
+ // for (let i = 2; i < _data.length; i++) {
|
|
|
|
+ // let _currency = _data[i]
|
|
|
|
+ // _currency.jsonData = JSON.parse(_currency.jsonData)
|
|
|
|
+ // currency.push(_currency)
|
|
|
|
+ // }
|
|
|
|
+ // // 赋值
|
|
|
|
+ // this.dataList.push(...currency)
|
|
|
|
+ // this.bmData = _bmData
|
|
|
|
+ // this.imageList = _imageList
|
|
|
|
|
|
- this.baseMessageLoading = false
|
|
|
|
- this.currencyLoading = false
|
|
|
|
- this.loading = false
|
|
|
|
- resolve()
|
|
|
|
- })
|
|
|
|
- .catch(e => {
|
|
|
|
- console.log(e)
|
|
|
|
- this.$toast.fail('获取通用分析失败')
|
|
|
|
- resolve()
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- //获取学科分析
|
|
|
|
- getScienceData() {
|
|
|
|
|
|
+ // this.baseMessageLoading = false
|
|
|
|
+ // this.currencyLoading = false
|
|
|
|
+ // this.loading = false
|
|
|
|
+ // resolve()
|
|
|
|
+ // })
|
|
|
|
+ // .catch(e => {
|
|
|
|
+ // console.log(e)
|
|
|
|
+ // this.$toast.fail('获取通用分析失败')
|
|
|
|
+ // resolve()
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+ // //获取学科分析
|
|
|
|
+ // getScienceData() {
|
|
|
|
+ // return new Promise(resolve => {
|
|
|
|
+ // if (!this.tid) return
|
|
|
|
+ // this.scienceLoading = true
|
|
|
|
+ // getObsRequest({ tid: this.tid, type: '1' })
|
|
|
|
+ // .then(res => {
|
|
|
|
+ // let _data = res.FunctionResponse.result.length ? JSON.parse(res.FunctionResponse.result) : []
|
|
|
|
+ // if (_data.length == 0) {
|
|
|
|
+ // return (this.scienceLoading = false)
|
|
|
|
+ // }
|
|
|
|
+ // let science = []
|
|
|
|
+ // for (let i = 0; i < _data.length; i++) {
|
|
|
|
+ // let _science = _data[i]
|
|
|
|
+ // _science.jsonData = JSON.parse(_science.jsonData)
|
|
|
|
+ // science.push(_science)
|
|
|
|
+ // }
|
|
|
|
+ // this.dataList.push(...science)
|
|
|
|
+ // this.scienceLoading = false
|
|
|
|
+ // resolve()
|
|
|
|
+ // })
|
|
|
|
+ // .catch(e => {
|
|
|
|
+ // console.log(e)
|
|
|
|
+ // this.$toast.fail('获取科学分析失败')
|
|
|
|
+ // resolve()
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+ // //获取扩展分析
|
|
|
|
+ // getExtendData() {
|
|
|
|
+ // return new Promise(resolve => {
|
|
|
|
+ // if (!this.tid) return
|
|
|
|
+ // this.extendLoading = true
|
|
|
|
+ // getObsRequest({ tid: this.tid, type: '2' })
|
|
|
|
+ // .then(res => {
|
|
|
|
+ // let _data = res.FunctionResponse.result.length ? JSON.parse(res.FunctionResponse.result) : []
|
|
|
|
+ // if (_data.length == 0) {
|
|
|
|
+ // return (this.extendLoading = false)
|
|
|
|
+ // }
|
|
|
|
+ // let extent = []
|
|
|
|
+ // for (let i = 0; i < _data.length; i++) {
|
|
|
|
+ // let _extent = _data[i]
|
|
|
|
+ // _extent.jsonData = JSON.parse(_extent.jsonData)
|
|
|
|
+ // extent.push(_extent)
|
|
|
|
+ // }
|
|
|
|
+ // this.dataList.push(...extent)
|
|
|
|
+ // this.extendLoading = false
|
|
|
|
+ // resolve()
|
|
|
|
+ // })
|
|
|
|
+ // .catch(e => {
|
|
|
|
+ // console.log(e)
|
|
|
|
+ // this.$toast('获取扩展分析失败')
|
|
|
|
+ // resolve()
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+ getAnalysisData(type) {
|
|
|
|
+ if (!this.tid) return
|
|
|
|
+ let _copyTid = this.tid
|
|
return new Promise(resolve => {
|
|
return new Promise(resolve => {
|
|
- if (!this.tid) return
|
|
|
|
- this.scienceLoading = true
|
|
|
|
- getObsRequest({ tid: this.tid, type: '1' })
|
|
|
|
- .then(res => {
|
|
|
|
- let _data = res.FunctionResponse.result.length ? JSON.parse(res.FunctionResponse.result) : []
|
|
|
|
- if (_data.length == 0) {
|
|
|
|
- return (this.scienceLoading = false)
|
|
|
|
- }
|
|
|
|
- let science = []
|
|
|
|
- for (let i = 0; i < _data.length; i++) {
|
|
|
|
- let _science = _data[i]
|
|
|
|
- _science.jsonData = JSON.parse(_science.jsonData)
|
|
|
|
- science.push(_science)
|
|
|
|
|
|
+ let params = {
|
|
|
|
+ tid: this.tid,
|
|
|
|
+ type: type
|
|
|
|
+ }
|
|
|
|
+ this.dialogTagList.find(i => i.value == type)
|
|
|
|
+ ? (this.dialogTagList.find(i => i.value == type).loading = true)
|
|
|
|
+ : ''
|
|
|
|
+ if (type == 0) {
|
|
|
|
+ this.baseMessageLoading = true
|
|
|
|
+ this.bmData = {
|
|
|
|
+ id: '',
|
|
|
|
+ tId: this.tid,
|
|
|
|
+ tIndex: 0,
|
|
|
|
+ jsonData: {
|
|
|
|
+ activity_methods: '',
|
|
|
|
+ activity_structure: '',
|
|
|
|
+ classroom_resources: '',
|
|
|
|
+ courseName: '',
|
|
|
|
+ name: '',
|
|
|
|
+ studentNum: 0,
|
|
|
|
+ subject: '',
|
|
|
|
+ textbook: '',
|
|
|
|
+ editorBarData:{
|
|
|
|
+ type: '0',
|
|
|
|
+ content: '',
|
|
|
|
+ url: ''
|
|
|
|
+ },
|
|
|
|
+ transcriptionData:"",
|
|
}
|
|
}
|
|
- this.dataList.push(...science)
|
|
|
|
- this.scienceLoading = false
|
|
|
|
- resolve()
|
|
|
|
- })
|
|
|
|
- .catch(e => {
|
|
|
|
- console.log(e)
|
|
|
|
- this.$toast.fail('获取科学分析失败')
|
|
|
|
- resolve()
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- //获取扩展分析
|
|
|
|
- getExtendData() {
|
|
|
|
- return new Promise(resolve => {
|
|
|
|
- if (!this.tid) return
|
|
|
|
- this.extendLoading = true
|
|
|
|
- getObsRequest({ tid: this.tid, type: '2' })
|
|
|
|
|
|
+ }
|
|
|
|
+ this.imageList = {}
|
|
|
|
+ this.dataList = []
|
|
|
|
+ this.dialogTagList = [
|
|
|
|
+ { value: 0, name: '通用课堂分析', loading: true },
|
|
|
|
+ { value: 1, name: '学科课堂分析', loading: true },
|
|
|
|
+ { value: 2, name: '扩展分析', loading: true }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ getObsRequest(params)
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
+ if (_copyTid != this.tid) return
|
|
let _data = res.FunctionResponse.result.length ? JSON.parse(res.FunctionResponse.result) : []
|
|
let _data = res.FunctionResponse.result.length ? JSON.parse(res.FunctionResponse.result) : []
|
|
if (_data.length == 0) {
|
|
if (_data.length == 0) {
|
|
- return (this.extendLoading = false)
|
|
|
|
|
|
+ return (this.dialogTagList.find(i => i.value == type).loading = false)
|
|
}
|
|
}
|
|
- let extent = []
|
|
|
|
- for (let i = 0; i < _data.length; i++) {
|
|
|
|
- let _extent = _data[i]
|
|
|
|
- _extent.jsonData = JSON.parse(_extent.jsonData)
|
|
|
|
- extent.push(_extent)
|
|
|
|
|
|
+
|
|
|
|
+ if (type == 0) {
|
|
|
|
+ //第一个分析
|
|
|
|
+ let _bmData = _data.find(i => i.tIndex == 0)
|
|
|
|
+ let _dialogTagList = []
|
|
|
|
+ _bmData.jsonData = JSON.parse(_bmData.jsonData)
|
|
|
|
+ _bmData.jsonData.time ? '' : (_bmData.jsonData.time = '');
|
|
|
|
+ _bmData.jsonData.editorBarData? '': (_bmData.jsonData.editorBarData = { type: '0', content: '', url: '' });
|
|
|
|
+ _bmData.jsonData.transcriptionData ? '' : (_bmData.jsonData.transcriptionData = '');
|
|
|
|
+ _dialogTagList = _bmData.jsonData.dialogTagList || [
|
|
|
|
+ { value: 0, name: '通用课堂分析', loading: false },
|
|
|
|
+ { value: 1, name: '学科课堂分析', loading: false },
|
|
|
|
+ { value: 2, name: '扩展分析', loading: false }
|
|
|
|
+ ]
|
|
|
|
+ let _imageList = _data.find(i => i.tIndex == 1)
|
|
|
|
+ _imageList.jsonData = JSON.parse(_imageList.jsonData)
|
|
|
|
+ if (_imageList.jsonData.videoList) {
|
|
|
|
+ _imageList.jsonData.videoList = []
|
|
|
|
+ }
|
|
|
|
+ if (_imageList.jsonData.NephogramList) {
|
|
|
|
+ _imageList.jsonData.NephogramList = []
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let currency = []
|
|
|
|
+ for (let i = 2; i < _data.length; i++) {
|
|
|
|
+ let _currency = _data[i]
|
|
|
|
+ _currency.jsonData = JSON.parse(_currency.jsonData)
|
|
|
|
+ currency.push(_currency)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.dataList.push(...currency)
|
|
|
|
+ this.bmData = _bmData
|
|
|
|
+ this.dialogTagList = _dialogTagList
|
|
|
|
+ this.baseMessageLoading = false
|
|
|
|
+ this.dialogTagList.find(i => i.value == type)
|
|
|
|
+ ? (this.dialogTagList.find(i => i.value == type).loading = false)
|
|
|
|
+ : ''
|
|
|
|
+ resolve()
|
|
|
|
+ } else {
|
|
|
|
+ if (_data.length == 0) {
|
|
|
|
+ return (this.dialogTagList.find(i => i.value == type).loading = false)
|
|
|
|
+ }
|
|
|
|
+ let _analysisData = []
|
|
|
|
+ for (let i = 0; i < _data.length; i++) {
|
|
|
|
+ let _analysis = _data[i]
|
|
|
|
+ _analysis.jsonData = JSON.parse(_analysis.jsonData)
|
|
|
|
+ _analysisData.push(_analysis)
|
|
|
|
+ }
|
|
|
|
+ this.dataList.push(..._analysisData)
|
|
|
|
+ this.dialogTagList.find(i => i.value == type)
|
|
|
|
+ ? (this.dialogTagList.find(i => i.value == type).loading = false)
|
|
|
|
+ : ''
|
|
|
|
+ resolve()
|
|
}
|
|
}
|
|
- this.dataList.push(...extent)
|
|
|
|
- this.extendLoading = false
|
|
|
|
- resolve()
|
|
|
|
})
|
|
})
|
|
.catch(e => {
|
|
.catch(e => {
|
|
console.log(e)
|
|
console.log(e)
|
|
- this.$toast('获取扩展分析失败')
|
|
|
|
|
|
+ this.$message.error('获取分析列表失败')
|
|
resolve()
|
|
resolve()
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//获取全部的数据
|
|
//获取全部的数据
|
|
- getData() {
|
|
|
|
- this.dataList = []
|
|
|
|
- this.imageList = {}
|
|
|
|
|
|
+ getData(arr = []) {
|
|
return new Promise(resolve => {
|
|
return new Promise(resolve => {
|
|
- Promise.all([this.getCurrencyAndBaseMessageData(), this.getScienceData(), this.getExtendData()]).then(_ => {
|
|
|
|
- console.log('所有分析获取完成')
|
|
|
|
- resolve()
|
|
|
|
- })
|
|
|
|
|
|
+ this.dataList = []
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ this.loading = true
|
|
|
|
+ if (this.tid) {
|
|
|
|
+ return this.getAnalysisData(0).then(_ => {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ let promises = []
|
|
|
|
+ this.loading = false;
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ let forData = arr.length ? arr : this.dialogTagList
|
|
|
|
+ this.dialogTagList = forData
|
|
|
|
+ forData.forEach(i => {
|
|
|
|
+ if (i.value == 0) return
|
|
|
|
+ promises.push(this.getAnalysisData(i.value))
|
|
|
|
+ })
|
|
|
|
+ Promise.all(promises).then(_ => {
|
|
|
|
+ this.dataList.sort((a, b) => a.tIndex - b.tIndex)
|
|
|
|
+ this.dataList.sort((a, b) => a.Type - b.Type)
|
|
|
|
+
|
|
|
|
+ resolve()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ // return new Promise(resolve => {
|
|
|
|
+ // Promise.all([this.getCurrencyAndBaseMessageData(), this.getScienceData(), this.getExtendData()]).then(_ => {
|
|
|
|
+ // console.log('所有分析获取完成')
|
|
|
|
+ // resolve()
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
//删除分析
|
|
//删除分析
|
|
delAnalysis(item) {
|
|
delAnalysis(item) {
|
|
@@ -866,7 +808,7 @@ export default {
|
|
this.saveData(this.bmData).then(_ => {
|
|
this.saveData(this.bmData).then(_ => {
|
|
console.log('转录问稿已保存')
|
|
console.log('转录问稿已保存')
|
|
this.loading = false
|
|
this.loading = false
|
|
- resolve();
|
|
|
|
|
|
+ resolve()
|
|
})
|
|
})
|
|
// // TODO 不同板块用id做key
|
|
// // TODO 不同板块用id做key
|
|
this.actionTypesMap.jsonData['default'] = _actionTypes
|
|
this.actionTypesMap.jsonData['default'] = _actionTypes
|
|
@@ -902,6 +844,15 @@ export default {
|
|
console.error(e)
|
|
console.error(e)
|
|
this.$toast(e)
|
|
this.$toast(e)
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ getDialogTagDataList() {
|
|
|
|
+ let params = {
|
|
|
|
+ uid: this.userinfo.userid
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ getSModelList(params).then(res => {
|
|
|
|
+ this.analysisList = res[0]
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -911,6 +862,7 @@ export default {
|
|
// }
|
|
// }
|
|
// this.getData()
|
|
// this.getData()
|
|
})
|
|
})
|
|
|
|
+ this.getDialogTagDataList()
|
|
// console.log(getClassList)
|
|
// console.log(getClassList)
|
|
}
|
|
}
|
|
}
|
|
}
|