Merge branch 'case' into dev

# Conflicts:
#	.env.development
#	.gitignore
#	src/components/Course/weikeContent.vue
#	src/components/PdfPreview/view.vue
#	src/views/portal/case/Detail.vue
#	src/views/portal/case/Index.vue
This commit is contained in:
zhaofang
2022-06-07 19:03:18 +08:00
23 changed files with 1105 additions and 312 deletions

View File

@@ -3,7 +3,7 @@ import ajax from '@/utils/xajax.js'
/**首页查询
* pageSize
* orderField
* orderField
* orderAsc
*/
const indexList = function(query) {

View File

@@ -8,7 +8,7 @@
const items=function(key){
return ajax.get('/xboe/m/dictionary/items?key='+key);
}
// 修改
// 修改
//@param key 对应字段后缀
//
// 案例的组织机构字典 org_domain key

View File

@@ -34,7 +34,7 @@ const casePageList=function(query){
/*分页查询 收藏的文章信息
*@param {Object} query
@param Integer type 根据什么类型搜索,这块暂时不传
@param pageIndex 第几页 pageSize 每页展示多少行
@param pageIndex 第几页 pageSize 每页展示多少行
keyword对应关键字查询
*/
const articlePageList=function(query){
@@ -45,7 +45,7 @@ const articlePageList=function(query){
@param Integer type 根据什么类型搜索,暂时不传
@param pageIndex 第几页 pageSize 每页展示多少行
keyword对应关键字查询
*/
const coursePageList=function(query){
return ajax.post('/xboe/m/favorite/mycourselist',query);
@@ -85,16 +85,23 @@ const has=function(objType,objId){
*/
const findAll=function(query){
return ajax.post('/xboe/m/favorite/findAll',query);
}
}
/*
我的收藏 全部
@param pageIndex 第几页
@param pageSize 每页行数
@param keyword 关键字
@param keyword 关键字
*/
const queryAll=function(query){
return ajax.post('/xboe/m/favorite/queryAll',query);
}
/**
* 查看是否已收藏 批量
* @param {问答或者文章或者课程的id数组} data
* */
const isNoFavorite=function(date){
return ajax.postJson('/xboe/m/favorite/isNoFavorite',data);
}
export default{
has,
@@ -107,5 +114,6 @@ export default{
articlePageList,
coursePageList,
findAll,
queryAll
queryAll,
isNoFavorite
}

View File

@@ -33,7 +33,7 @@ const remove=function(objId,objType){
// toAname 分享给人的名称
//
const querylist=function(query){
return ajax.post('/xboe/m/share/list',data);
return ajax.post('/xboe/m/share/list',query);
}
// 当前用户是否已分享
// // objType点赞对象类型 1课程 2文章,3案例, 4问答
@@ -112,7 +112,7 @@ const mymearticlelist=function(query){
*/
const updateIsRead=function(id){
return ajax.get(`/xboe/m/share/updateIsRead?id=${id}`);
}
}
/*
撤回分享
@@ -121,6 +121,49 @@ const updateIsRead=function(id){
const deleteshares=function(id){
return ajax.get(`/xboe/m/share/delete-shares?id=${id}`);
}
/**
* 我分享的全部
* @param pageIndex 第几页
* @param pageSize 每页多少行
* @param keyword 关键字搜索
* @param isRead 是否已读
* */
const findMeShare=function (query){
return ajax.post('/xboe/m/share/findMeShare',query);
}
/**
* 分享给我的全部
* @param pageIndex 第几页
* @param pageSize 每页多少行
* @param keyword 关键字搜索
* @param isRead 是否已读
* */
const findShareMe=function (query){
return ajax.post('/xboe/m/share/findShareMe',query);
}
/**
* 我分享的案例
* @param pageIndex 第几页
* @param pageSize 每页多少行
* @param isRead 是否已读
* @param keyword 关键字搜索
* */
const myCaseList=function (query){
return ajax.post('/xboe/m/share/myCaseList',query);
}
/**
* 分享给我的案例
* @param pageIndex 第几页
* @param pageSize 每页多少行
* @param isRead 是否已读
* @param keyword 关键字搜索
* */
const myMeCaseList=function (query){
return ajax.post('/xboe/m/share/myMeCaseList',query);
}
/**
* */
export default{
save,
has,
@@ -134,5 +177,9 @@ const deleteshares=function(id){
mymecourselist,
mymearticlelist,
updateIsRead,
deleteshares
deleteshares,
findMeShare,
findShareMe,
myCaseList,
myMeCaseList
}