仅内网可见-管理员端 调试

This commit is contained in:
670788339
2025-07-23 17:10:19 +08:00
parent 5d0d64abbf
commit 2ee3daedf6
2 changed files with 21 additions and 6 deletions

View File

@@ -170,7 +170,9 @@ const updateContentOrders = function(cid,items) {
const detail = function(id) { const detail = function(id) {
return ajax.get('/xboe/m/course/manage/detail?id=' + id); return ajax.get('/xboe/m/course/manage/detail?id=' + id);
} }
const getDictIds = function(pid,type) {
return request.get(`/xboe/m/course/manage/getDictIds?pid=${pid}&type=${type}`);
}
/** /**
* 更新内容的名称 * 更新内容的名称
* @param {Object} data * @param {Object} data
@@ -446,6 +448,7 @@ export default {
findUpdateLogs, findUpdateLogs,
getUpdateLog, getUpdateLog,
detail, detail,
getDictIds,
saveContent, saveContent,
pageList, pageList,
setEnabled, setEnabled,

View File

@@ -571,6 +571,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.getDictIds();
let extendFlag=this.$route.query.f; //是否是管理端过来的 let extendFlag=this.$route.query.f; //是否是管理端过来的
this.extendRefId=this.$route.query.refId; this.extendRefId=this.$route.query.refId;
this.extendRefType=this.$route.query.refType; this.extendRefType=this.$route.query.refType;
@@ -917,6 +918,17 @@ export default {
this.courseCoverurl = ''; this.courseCoverurl = '';
this.courseInfo.coverImg = ''; this.courseInfo.coverImg = '';
}, },
//获取字典信息
getDictIds() {
console.log("--- 获取字典信息 1 = ",this.dicts)
const { result, status } = apiCourse.getDictIds(637,1);
console.log("--- 获取字典信息 2 result= ",result)
if (status === 200) {
console.log("--- 获取字典信息 3 = ",this.dicts)
this.dicts = result.dicts;
console.log("--- 获取字典信息 4 = ",this.dicts)
}
},
//获取课程信息 //获取课程信息
async getDetail(id) { async getDetail(id) {
this.curCourseId = id; this.curCourseId = id;