JLBA202505130001_关于吉林银行新建AI智能培训系统的需求:fix; bug

This commit is contained in:
杨航
2025-12-20 11:15:58 +08:00
parent 2de3859c30
commit 263e028bef
3 changed files with 24 additions and 5 deletions
+9
View File
@@ -203,4 +203,13 @@ export const setStudyTeacherApi = (data) => {
toastErrors: true,
data
});
};
// 预览切换顾问
export const setPreviewTeacherApi = (data) => {
return request({
url: base_url + '/traStdyTeacher/setStudyTeacherPreview ',
method: 'post',
toastErrors: true,
data
});
};
+12 -2
View File
@@ -130,7 +130,16 @@ import { onLoad, onShow, onUnload, onHide } from '@dcloudio/uni-app'
import { previewFile, downloadFile, commonUploadVoiceFile, downloadVoiceFile, uploadVoiceFile } from '@/api/common.js'
import { getToken, getPhoneEnvBool } from '@/common/common.js'
import { get_base_url, goto_login_fun } from '@/api/request'
import { getCourseStudyInfoApi, afreshStudyCourseApi, queryQuestionEvalateApi, textChartApi, setStudyTeacherApi, textChartPreviewApi, previewAfreshStudyCourse, studyEndApi, studyStartApi } from '@/api/study.js'
import { getCourseStudyInfoApi,
afreshStudyCourseApi,
queryQuestionEvalateApi,
textChartApi,
setStudyTeacherApi,
setPreviewTeacherApi,
textChartPreviewApi,
previewAfreshStudyCourse,
studyEndApi,
studyStartApi } from '@/api/study.js'
import common from '@/common/common'
import TalkingItem from '@/pages/course/components/talkingItem.vue'
import ImagePreview from '@/components/image-preview/image-preview.vue'
@@ -302,7 +311,8 @@ const choiceTeacherInfo = computed(() => {
const changeTeacherVoiceNow = async item => {
if (item.teacherNo === choiceTeacher.value) return
try {
const res = await setStudyTeacherApi({
let _ajax = isPreview.value ? setPreviewTeacherApi : setStudyTeacherApi
const res = await _ajax({
stdyId: stdyId.value,
teacherNo: item.teacherNo
})