Compare commits
No commits in common. "ea2a8ebfda436200bb810e404d019e166d931ba3" and "308465adb4d18998f831ab924db34b2213f6afbd" have entirely different histories.
ea2a8ebfda
...
308465adb4
|
@ -73,6 +73,7 @@ export class PPTApi {
|
||||||
// 活动列表处理
|
// 活动列表处理
|
||||||
const workList = (res.rows || []).map(o => o.activityContent)
|
const workList = (res.rows || []).map(o => o.activityContent)
|
||||||
const workItem = [...res.rows]
|
const workItem = [...res.rows]
|
||||||
|
// 加入活动后刷新ppt数据内容,不跟换为第一页
|
||||||
// slidesStore.updateSlideIndex(0) // 下标0 为第一页
|
// slidesStore.updateSlideIndex(0) // 下标0 为第一页
|
||||||
slidesStore.setSlides(slides) // 写入数据
|
slidesStore.setSlides(slides) // 写入数据
|
||||||
// 写入作业列表数据
|
// 写入作业列表数据
|
||||||
|
@ -109,9 +110,11 @@ export class PPTApi {
|
||||||
const rid = await API_entpcoursefile.addEntpcoursefileReturnId(params)
|
const rid = await API_entpcoursefile.addEntpcoursefileReturnId(params)
|
||||||
if (!!rid) {
|
if (!!rid) {
|
||||||
data.id = rid
|
data.id = rid
|
||||||
|
params.id = rid
|
||||||
|
params.activityContent = null
|
||||||
|
slidesStore.addWorkItem(params)
|
||||||
slidesStore.updateSlide(data)
|
slidesStore.updateSlide(data)
|
||||||
// msgUtils.msgSuccess('新增成功')
|
// msgUtils.msgSuccess('新增成功')
|
||||||
PPTApi.getSlideList(resource.id)
|
|
||||||
this.isUpdate = false // 新增后会触发监听,不再更新数据
|
this.isUpdate = false // 新增后会触发监听,不再更新数据
|
||||||
resolve(true)
|
resolve(true)
|
||||||
} else msgUtils.msgError('新增失败');resolve(false)
|
} else msgUtils.msgError('新增失败');resolve(false)
|
||||||
|
|
|
@ -305,10 +305,10 @@ const upDateData = async () => {
|
||||||
// await PPTApi.updateSlide(paramData.value)
|
// await PPTApi.updateSlide(paramData.value)
|
||||||
loadingActive.value = true
|
loadingActive.value = true
|
||||||
await updateEntpcoursefileNew(paramData.value)
|
await updateEntpcoursefileNew(paramData.value)
|
||||||
const resource = sessionStore.get('curr.resource')
|
|
||||||
await PPTApi.getSlideList(resource.id)
|
|
||||||
const res = await homeworklist({ ids: paramData.value.activityContent, pageSize: 100 })
|
const res = await homeworklist({ ids: paramData.value.activityContent, pageSize: 100 })
|
||||||
await formatClassWorkFile(res.rows)
|
await formatClassWorkFile(res.rows)
|
||||||
|
const resource = sessionStore.get('curr.resource')
|
||||||
|
await PPTApi.getSlideList(resource.id)
|
||||||
}
|
}
|
||||||
// 判断是否做操作
|
// 判断是否做操作
|
||||||
const objectsAreEqual = (obj1: Record<string, any>, obj2: Record<string, any>) => {
|
const objectsAreEqual = (obj1: Record<string, any>, obj2: Record<string, any>) => {
|
||||||
|
|
|
@ -714,9 +714,8 @@ const closeDialog = () => {
|
||||||
|
|
||||||
// im监听消息回调
|
// im监听消息回调
|
||||||
const msgHandle = (msg) => {
|
const msgHandle = (msg) => {
|
||||||
if (typeof msg === 'object'){
|
const { type, data } = msg
|
||||||
const { head, content, ...other } = msg
|
switch(type) {
|
||||||
switch(head) {
|
|
||||||
case MsgEnum.HEADS.MSG_closed: // 下课:
|
case MsgEnum.HEADS.MSG_closed: // 下课:
|
||||||
window.close() // 关闭窗口
|
window.close() // 关闭窗口
|
||||||
break
|
break
|
||||||
|
@ -748,7 +747,6 @@ const msgHandle = (msg) => {
|
||||||
// break
|
// break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const reloadTimer = ref(0); // 开启定时查询,作业id是否刷新了,刷新了就重新获取
|
const reloadTimer = ref(0); // 开启定时查询,作业id是否刷新了,刷新了就重新获取
|
||||||
const cutid = ref(0); // 当前初始化的作业id
|
const cutid = ref(0); // 当前初始化的作业id
|
||||||
|
|
Loading…
Reference in New Issue