diff --git a/src/api/modules/active-manage.js b/src/api/modules/active-manage.js deleted file mode 100644 index f8f32e5..0000000 --- a/src/api/modules/active-manage.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * @author: ym - * @Date: 2021-10-31 13:01:13 - * @LastEditTime: 2021-10-31 13:38:31 - * @LastEditors: ym - * @Description: - * @FilePath: \background-front-end\src\api\modules\active-manage.js - */ -//===================== 活动 ============================= -import $http from '../../utils/httpRequest' - -// 资讯管理================================================= -// 增 -export const saveActivityInfo=(content)=>{ - return $http.post('/activity/redactivityinfo/save',JSON.stringify(content)) -} -// 删 -export const deleteRedActivityInfo=(idList)=>{ - return $http.post('/activity/redactivityinfo/delete',JSON.stringify(idList)); -} -// 改 -export const updateRedActivityInfo=(ids)=>{ - return $http.post('/activity/redactivityinfo/update',JSON.stringify(ids)) -} -// 查 -export const getActivityInfoListByParams=(obj)=>{ - return $http({ - url:'/activity/redactivityinfo/getActivityInfoListByParams', - method: 'get', - params: $http.adornParams(obj) - }) -} - -// 轮播图管理================================================= -// 增 -export const saveActivityImage=(content)=>{ - return $http.post('/activity/redactivityimage/save',JSON.stringify(content)) -} -// 删 -export const deleteRedActivityImage=(idList)=>{ - return $http.post('/activity/redactivityimage/delete',JSON.stringify(idList)); -} -// 改 -export const updateRedActivityImage=(ids)=>{ - return $http.post('/activity/redactivityimage/update',JSON.stringify(ids)) -} -// 查 -export const getRedActivityImage=(obj)=>{ - return $http({ - url:'/activity/redactivityimage/list', - method: 'get', - params: $http.adornParams(obj) - }) -} \ No newline at end of file diff --git a/src/api/modules/active-match.js b/src/api/modules/active-match.js deleted file mode 100644 index 31f0040..0000000 --- a/src/api/modules/active-match.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - * @Author: cwl - * @Date: 2021-12-23 14:12:02 - * @LastEditTime: 2022-01-01 20:48:32 - * @LastEditors: Please set LastEditors - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE - * @FilePath: \background-front-end\src\api\modules\active-match.js - */ -import $http from '../../utils/httpRequest' - -//===================== 活动/赛事管理 ============================= -export function addActiveMatch(data){ - return $http({ - url:'/activity/redactivitymatch/save', - method:'post', - data - }) -} -export function getActiveMatch(params){ - return $http({ - url:'/activity/redactivitymatch/getListDetails', - params - }) -} -export function delActiveMatch(data){ - return $http({ - url:'/activity/redactivitymatch/delete', - method:'post', - data - }) -} -export function updateActiveMatch(data){ - return $http({ - url:'/activity/redactivitymatch/update', - method:'post', - data - }) -} -//===================== 报名信息============================= -export function getActiveSignUp(params){ - return $http({ - url:'/activity/redactivitysignup/list', - params - }) -} -//===================== 作品审核============================= -export function getWorksExamine(params){ - return $http({ - url:'/activity/redactivityworks/list', - params - }) -} - -export function setWorksExamine(data){ - return $http({ - url:'/activity/redactivityworks/setWorks', - method:'post', - data - }) -} - -export function getWorksAwardList(id){ - return $http({ - url:'/activity/reduseraward/list/'+id, - id - }) -} -export function delelteWorksAward(data){ - return $http({ - url:'/activity/reduseraward/delete', - method:'post', - data - }) -} -export function addWorksAward(data){ - return $http({ - url:'/activity/reduseraward/save', - method:'post', - data - }) -} -export function updateWorksAward(data){ - return $http({ - url:'/activity/reduseraward/update', - method:'post', - data - }) -} \ No newline at end of file diff --git a/src/api/modules/app-operate.js b/src/api/modules/app-operate.js deleted file mode 100644 index 0e5abc4..0000000 --- a/src/api/modules/app-operate.js +++ /dev/null @@ -1,15 +0,0 @@ -import $http from '../../utils/httpRequest' -export const appOperate={ - updateTheme(currentTheme){ - return $http.post(`/sys/config/update`,{ - id:2, - paramKey:"THEME", - paramValue:currentTheme - }) - }, - //检查主题 - getTheme(){ - return $http.get("/sys/config/info/2"); - } - -} \ No newline at end of file diff --git a/src/api/modules/approval.js b/src/api/modules/approval.js deleted file mode 100644 index ec6b57f..0000000 --- a/src/api/modules/approval.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * @Author: chenkangxu - * @Date: 2022-06-19 00:07:43 - * @LastEditTime: 2022-06-20 17:43:17 - * @LastEditors: 陈伟亮 1186723967@qq.com - * @Description: - * @Github: - */ -import $http from "../../utils/httpRequest"; -export const approval = { - content: (obj) => { - return $http({ - url: "/content/redcontentinfo/examine", - method: "get", - params: $http.adornParams(obj) - }); - - }, - poetry: obj => { - return $http({ - url: "/localService/redpoetry/examine", - method: "get", - params: $http.adornParams(obj) - }); - }, - course: obj => { - return $http({ - url: "/localService/redstudycourse/examine", - method: "get", - params: $http.adornParams(obj) - }); - } -}; diff --git a/src/api/modules/content-manage.js b/src/api/modules/content-manage.js deleted file mode 100644 index b91bac3..0000000 --- a/src/api/modules/content-manage.js +++ /dev/null @@ -1,85 +0,0 @@ -/* - * @Author: ym - * @Date: 2021-10-09 10:15:18 - * @LastEditTime: 2022-06-18 18:47:19 - * @LastEditors: 陈伟亮 1186723967@qq.com - * @Description: In User Settings Edit - * @FilePath: \background-front-end\src\api\modules\content-manage.js - */ -//===================== 内容 ============================= -import $http from '../../utils/httpRequest' -import $httpComment from '../../utils/httpRequestComment' -// 资讯管理================================================= -// 增 -export const saveNewContent=(content)=>{ - return $http.post('/content/redcontentinfo/saveNewContent',JSON.stringify(content)) -} -// 删 -export const deleteRedContentInfo=(idList)=>{ - return $http.post('/content/redcontentinfo/delete',JSON.stringify(idList)); -} -// 改 -export const updateRedContentInfo=(ids)=>{ - return $http.post('/content/redcontentinfo/update',JSON.stringify(ids)) -} -// 查 -export const getContentInfoListByParams=(obj)=>{ - return $http({ - url:'/content/redcontentinfo/getContentInfoListByParams', - method: 'get', - params: $http.adornParams(obj) - }) -} - -// 查分类 -export const getContentTypeListNoPage=()=>{ - return $http.get('/management/reddatacontentmaintype/getContentTypeListNoPage'); -} - -// 轮播图管理 -// 增 -export const saveContentImage=(content)=>{ - return $http.post('/content/redcontentimage/save',JSON.stringify(content)) -} -// 删 -export const deleteContentImage=(idList)=>{ - return $http.post('/content/redcontentimage/delete',JSON.stringify(idList)); -} -// 改 -export const updateContentImage=(ids)=>{ - return $http.post('/content/redcontentimage/update',JSON.stringify(ids)) -} -// 查 -export const getContentImage=(obj)=>{ - return $http({ - url:'/content/redcontentimage/getListByParams', - method: 'get', - params: $http.adornParams(obj) - }) -} -// 查询评论 -export const getCommentList=(obj)=>{ - let url=''; - switch(obj.type){ - case 'CONTENTIMG': url='/content/redcontentimage'; break; - case 'CONTENTINFO': url='/content/redcontentinfo'; break; - case 'CONTENTLOCALINFO': url='/content/redcontentlocalinfo'; break; - case 'STUDYIMG': url='/study/redstudyimage'; break; - case 'STUDYINFO': url='/study/redstudyinfo'; break; - case 'ACTIVITY' :url="/activity/redactivitymatch";break; - } - delete obj.type - return $httpComment({ - url:url+'/listComment', - method: 'post', - params:obj - }) -} -// 地方后台查 -export const getLocalContentInfoListByParams=(obj)=>{ - return $http({ - url:'/content/redcontentlocalinfo/getContentLocalInfoListByParams', - method: 'post', - data: $http.adornParams(obj) - }) -} \ No newline at end of file diff --git a/src/api/modules/data-dictionary.js b/src/api/modules/data-dictionary.js deleted file mode 100644 index 2e71125..0000000 --- a/src/api/modules/data-dictionary.js +++ /dev/null @@ -1,242 +0,0 @@ -/* - * @Author: ym - * @Date: 2021-09-28 16:17:10 - * @LastEditTime: 2022-09-02 23:04:36 - * @LastEditors: chenkangxu - * @Description: In User Settings Edit - * @FilePath: \background-front-end\src\api\modules\data-dictionary.js - */ -import $http from '../../utils/httpRequest' - -//===================== 内容分类 ============================= -// 新增分类 -export const saveNewContentType=(mainTypeName)=>{ - return $http.post('/management/reddatacontentmaintype/saveNewContentType',JSON.stringify(mainTypeName)) -} -// 新增子分类 -export const saveNewContentSecondType=(secondTypeName,mainTypeId)=>{ - return $http.post('/management/reddatacontentsecondtype/saveNewSecondType',{ - secondTypeName:secondTypeName, - mainTypeId:mainTypeId - }) -} -// 修改子类 -export const updateContentSecType=(obj)=>{ - return $http.post('/management/reddatacontentsecondtype/update',JSON.stringify(obj)) -} -//修改父类 -export const updateContentMainType=(obj)=>{ - return $http.post(`/management/reddatacontentmaintype/update`,JSON.stringify(obj)) -} -// 批量修改子排序 -export const updateContentSecSort=(list)=>{ - return $http.post('/management/reddatacontentsecondtype/updateSort',JSON.stringify(list)) -} -// 批量修改排序 -export const updateTypeSort=(list)=>{ - return $http.post('/management/reddatacontentmaintype/updateSort',JSON.stringify(list)) -} -// 根据id批量删除部门 -export const deleteType=(idList)=>{ - return $http.post('/management/reddatacontentmaintype/delete',JSON.stringify(idList)); -} -// 根据id批量删除子部门 -export const deleteContentSecType=(idList)=>{ - return $http.post('/management/reddatacontentsecondtype/delete',JSON.stringify(idList)); -} -// 查询分类 -export const getContentTypeList=()=>{ - return $http.get('/management/reddatacontentmaintype/getMainSecondTypeList'); -} - -//===================== 古诗词分类 ============================= -// 新增主分类 -export const saveNewMainType=(mainTypeName)=>{ - return $http.post('/management/reddatapoetrymaintype/saveNewMainType',{ - mainTypeName:mainTypeName - }) -} -// 新增子分类 -export const saveNewSecondType=(secondTypeName,mainTypeId)=>{ - return $http.post('/management/reddatapoetrysecondtype/saveNewSecondType',{ - secondTypeName:secondTypeName, - mainTypeId:mainTypeId - }) -} -// 修改主类 -export const updateMainType=(obj)=>{ - return $http.post('/management/reddatapoetrymaintype/update',JSON.stringify(obj)) -} -// 修改子类 -export const updateSecType=(obj)=>{ - return $http.post('/management/reddatapoetrysecondtype/update',JSON.stringify(obj)) -} -// 批量修改主排序 -export const updatePSort=(list)=>{ - return $http.post('/management/reddatapoetrymaintype/updateSort',JSON.stringify(list)) -} -// 批量修改子排序 -export const updateSPSort=(list)=>{ - return $http.post('/management/reddatapoetrysecondtype/updateSort',JSON.stringify(list)) -} -// 根据id批量删除主部门 -export const deleteMainType=(idList)=>{ - return $http.post('/management/reddatapoetrymaintype/delete',JSON.stringify(idList)); -} -// 根据id批量删除子部门 -export const deleteSecType=(idList)=>{ - return $http.post('/management/reddatapoetrysecondtype/delete',JSON.stringify(idList)); -} -// 查询分类 -export const getMainSecondTypeList=()=>{ - return $http.get('/management/reddatapoetrymaintype/getMainSecondTypeList'); -} - -//===================== 打卡地 ============================= -// 新增分类 -export const saveNewFootprintType=(footprintTypeName)=>{ - return $http.post('/management/reddatafootprinttype/saveNewFootprintType',JSON.stringify(footprintTypeName)) -} -// 批量修改排序 -export const updateFootprintTypeSort=(list)=>{ - return $http.post('/management/reddatafootprinttype/updateFootprintTypeSort',JSON.stringify(list)) -} -// 根据id批量删除 -export const deleteFootprint=(idList)=>{ - return $http.post('/management/reddatafootprinttype/delete',JSON.stringify(idList)); -} -// 查询分类 -export const getListByParams=()=>{ - return $http.get('/management/reddatafootprinttype/getList'); -} - - -//==================== 手抄报分类 ============================= -export function getHandCopyTypeList(){ - return $http({ - url:'/management/reddatahandcopytype/getList', - method:'get', - }) -} -export function saveHandCopyType(data){ - return $http({ - url:'/management/reddatahandcopytype/save', - method:'post', - data - }) -} -export function updateHandCopySort(data){ - return $http({ - url:'/management/reddatahandcopytype/updateHandCopySort ', - method:'post', - data - }) -} -export function deleteHandCopySort(data){ - return $http({ - url:'/management/reddatahandcopytype/delete ', - method:'post', - data - }) -} - -//==================== 活动/赛事分类 ============================= -//活动分类 -export function getActivityTypeList(){ - return $http({ - url:'/management/reddataactivitytype/getList', - method:'get', - }) -} -export function saveActivityType(data){ - return $http({ - url:'/management/reddataactivitytype/save', - method:'post', - data - }) -} -export function updateActivitySort(data){ - return $http({ - url:'/management/reddataactivitytype/updateActivitySort ', - method:'post', - data - }) -} -export function deleteActivitySort(data){ - return $http({ - url:'/management/reddataactivitytype/delete ', - method:'post', - data - }) -} -//赛事分类 -export function getMatchTypeList(){ - return $http({ - url:'/management/reddatamatchtype/getList', - method:'get', - }) -} -export function saveMatchType(data){ - return $http({ - url:'/management/reddatamatchtype/save', - method:'post', - data - }) -} -export function updateMatchSort(data){ - return $http({ - url:'/management/reddatamatchtype/updateMatchSort ', - method:'post', - data - }) -} -export function deleteMatchSort(data){ - return $http({ - url:'/management/reddatamatchtype/delete ', - method:'post', - data - }) -} -//专题分类增删改查 -export function courseThemeSave(data){ - return $http({ - url:'/localService/redcoursetheme/save', - method:'post', - data - }) -} -export function courseThemeDelete(data){ - return $http({ - url:'/localService/redcoursetheme/delete', - method:'post', - data - }) -} -export function courseThemeUpdate(data){ - return $http({ - url:'/localService/redcoursetheme/update', - method:'post', - data - }) -} -export function courseThemeList(params){ - return $http({ - url:'/localService/redcoursetheme/list', - method:'get', - params - }) -} -export function courseThemeSort(data){ - return $http({ - url:'/localService/redcoursetheme/updateSort', - method:'post', - data - }) -} -export function courseThemeAll(params){ - return $http({ - url:'/localService/redcoursetheme/getListNoPage', - method:'get', - params - }) -} \ No newline at end of file diff --git a/src/api/modules/department-management.js b/src/api/modules/department-management.js deleted file mode 100644 index 6fa15f6..0000000 --- a/src/api/modules/department-management.js +++ /dev/null @@ -1,27 +0,0 @@ -import $http from '../../utils/httpRequest' - -// 新增部门√ -export const addDepartment=(departmentName,parentId,parentName,responseUser,departmentRemark,departmentNumber)=>{ - return $http.post('/sys/sysdepartment/save',{ - departmentName,parentId,parentName,responseUser,departmentRemark,departmentNumber - }) -} -// 修改部门√ -export const updateDepartment=(departmentId,departmentName,parentId,parentName,responseUser,departmentRemark,departmentNumber)=>{ - return $http.post('/sys/sysdepartment/update',{ - departmentId,departmentName,parentId,parentName,responseUser,departmentRemark,departmentNumber - }) -} -// 根据id批量删除部门√ -export const deleteDepartmentsByIdArray=(departmentIdArray)=>{ - return $http.post('/sys/sysdepartment/delete',JSON.stringify(departmentIdArray)); -} -// 查询部门√ -export const queryDepartmentById=(departmentId)=>{ - return $http.get('/sys/sysdepartment/info/'+departmentId); -} - -// 查询全部部门√ -export const queryAllDepartments=()=>{ - return $http.get('/sys/sysdepartment/list'); -} \ No newline at end of file diff --git a/src/api/modules/file.js b/src/api/modules/file.js deleted file mode 100644 index ca06fcb..0000000 --- a/src/api/modules/file.js +++ /dev/null @@ -1,15 +0,0 @@ -import axios from 'axios' -let request=axios.create({ - baseURL:'http://123.57.0.201:8080' -}) -export function UploadFile (data) { - // console.log(111) - return request({ - url: '/csc/oss/upload', - headers: { - 'Content-Type': 'multipart/form-data' - }, - method: 'post', - data - }) - } \ No newline at end of file diff --git a/src/api/modules/footprint.js b/src/api/modules/footprint.js deleted file mode 100644 index 8f4baf7..0000000 --- a/src/api/modules/footprint.js +++ /dev/null @@ -1,98 +0,0 @@ -/* - * @Author: ym - * @Date: 2021-09-28 16:17:10 - * @LastEditTime: 2022-01-20 15:42:09 - * @LastEditors: Please set LastEditors - * @Description: In User Settings Edit - * @FilePath: \background-front-end\src\api\modules\footprint.js - */ -import $http from '../../utils/httpRequest' - -/** - * 系统管理 意见反馈 查询删除 - * @param {*} mainTypeName - * @returns - */ - -// 查询景点所属分类列表 -export const getFootprintTypeList=()=>{ - return $http.post('/management/reddatafootprinttype/getFootprintTypeListNoPage'); -} -// 查询景点列表 -export const getFootPrintByParams=(data)=>{ - return $http({ - url:'/footprint/redfootprint/getFootPrintByParams', - method: 'get', - params: $http.adornParams(data) - }) -} -//根据id获取景点/打卡地详情 -export const getFootprintInfo=(url)=>{ - return $http({ - url: '/footprint/redfootprint/info/' + url, - method: 'get', - }) -} -//添加一个景点 / 打卡地 -export const saveNewFootprint=(data)=>{ - return $http({ - url:'/footprint/redfootprint/saveNewFootprint', - method: 'post', - data: $http.adornData(data) - }) -} -//编辑修改打卡地 修改景点 -export const editFootprint=(data)=>{ - return $http({ - url:'/footprint/redfootprint/update', - method: 'post', - data: $http.adornData(data) - }) -} -//编辑批量删除打卡地 修改景点 -export const deleteFootprintList=(data)=>{ - return $http({ - url:'/footprint/redfootprint/delete', - method: 'post', - data - }) -} -// 查询景点路线列表 -export const getFootprintLineList=(params)=>{ - return $http({ - url:"/footprint/redfootprintline/list", - method:'post', - params - }) -} -// 添加景点路线 -export const saveFootprintLine=(data)=>{ - return $http({ - url:"/footprint/redfootprintline/save", - method:'post', - data - }) -} -// 编辑景点路线 -export const updateFootprintLine=(data)=>{ - return $http({ - url:"/footprint/redfootprintline/update", - method:'post', - data - }) -} -// 删除景点路线 -export const deleteFootprintLine=(data)=>{ - return $http({ - url:"/footprint/redfootprintline/delete", - method:'post', - data - }) -} -// 获取景点路线详情 -export const getFootprintLineDetail=(id)=>{ - return $http({ - url:"/footprint/redfootprintline/info/"+id, - method:'get', - }) -} \ No newline at end of file diff --git a/src/api/modules/integral-statistics.js b/src/api/modules/integral-statistics.js deleted file mode 100644 index 9c4689d..0000000 --- a/src/api/modules/integral-statistics.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - * @Author: your name - * @Date: 2021-12-20 16:29:03 - * @LastEditTime: 2021-12-20 16:31:37 - * @LastEditors: Please set LastEditors - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE - * @FilePath: \background-front-end\src\api\modules\integral-statistics.js - */ -import $http from '../../utils/httpRequest' - -// 查询积分详情 -export const getIntegralDetail=(params)=>{ - return $http({ - url:'/score/detail', - params - }) -} -// 查询积分概览 -export const getIntegralOverview=()=>{ - return $http({ - url:'/score/count/table' - }) -} \ No newline at end of file diff --git a/src/api/modules/intetral.js b/src/api/modules/intetral.js deleted file mode 100644 index 4383ea8..0000000 --- a/src/api/modules/intetral.js +++ /dev/null @@ -1,132 +0,0 @@ -/* - * @author: ym - * @Date: 2021-10-10 13:45:17 - * @LastEditTime: 2021-10-10 14:46:44 - * @LastEditors: ym - * @Description: - * @FilePath: \background-front-end\src\api\modules\intetral.js - */ -import $http from '../../utils/httpRequest' -import dayjs from 'dayjs' -//**********未严格命名 */ - - - - -//查询升级所需积分 -export function findUploadIntegral(data){ - return $http({ - url:'/integral/redintegralupgrade/info/1' - }) -} -//保存升级所需积分 -export function saveUploadIntegral(upgradeId,integral){ - return $http({ - url:'/integral/redintegralupgrade/update', - method:'post', - data:{ - integral, - upgradeId - } - }) -} -//查看段位列表 -export function findLevelType(){ - return $http({ - url:'/integral/redintegrallevel/list', - }) -} -export function savelevelType(data){ - - return $http({ - url:'/integral/redintegrallevel/update', - method:'post', - data - }) -} -//**********未严格命名(结尾) */ - - -//查询所有红星币规则 -export function getRedCoinRule(params){ - return $http({ - url:'/integral/redstarcoinrule/getRedCoinRuleByParams', - params - }) -} -//添加红星币规则 -export function addRedCoinRule(data){ - console.log(data) - return $http({ - url:'/integral/redstarcoinrule/saveNewRule', - method:'post', - data - }) -} -//删除红星币规则 -export function deleteRedCoinRule(data){ - return $http({ - url:'/integral/redstarcoinrule/delete', - method:'post', - data - }) -} -//更新红星币规则 -export function updateRedCoinRule(data){ - return $http({ - url:'/integral/redstarcoinrule/update', - method:'post', - data - }) -} - -//查询所有积分规则 -export function getIntegralRule(params){ - return $http({ - url:'/integral/redintegralrule/getRuleListByParams', - params - }) -} -//添加积分规则 -export function addIntegralRule(data){ - return $http({ - url:'/integral/redintegralrule/saveNewRule', - method:'post', - data - }) -} -//更新所有积分规则 -export function updateIntegralRule(data){ - return $http({ - url:'/integral/redintegralrule/update', - method:'post', - data - }) -} -//删除所有积分规则 -export function deleteIntegralRule(data){ - return $http({ - url:'/integral/redintegralrule/delete', - method:'post', - data - }) -} - -//查询积分协议 -export function getInteralAgreement(data){ - return $http({ - url:'/integral/redintegralruleinfo/getInfoByContentType/'+data - }) -} -//保存积分协议 -export function saveInteralAgreement(ruleInfoId,ruleInfoContent,contentType){ - return $http({ - url:'/integral/redintegralruleinfo/update', - method:'post', - data:{ - ruleInfoId, - ruleInfoContent, - contentType - } - }) -} \ No newline at end of file diff --git a/src/api/modules/local-admin.js b/src/api/modules/local-admin.js deleted file mode 100644 index f002214..0000000 --- a/src/api/modules/local-admin.js +++ /dev/null @@ -1,101 +0,0 @@ -import $http from '@/utils/httpRequest.js' - -export const local_admin = { - /** - * 登录 - * @param {object} params LoginParam - * @param {number} params.type - * @param {string} params.role - * @param {string} params.username - * @param {string} params.password - * @param {string} params.mobile - * @param {string} params.code - * @returns - */ - loginByAccount: (params) => { - return $http.post(`/auth/login`, { - ...params, - type: 1 - }) - }, - loginByMobile: (params) => { - return $http.post(`/merchant-api/auth/sms/login`, { - ...params, - type: 2 - }) - }, - getYZM(mobile) { - return $http.get(`/merchant-api/auth/login/code?mobile=${mobile}`); - }, - getInfo() { - return $http.get(`/merchant-api/auth/info`); - }, - //获取教育局列表 - getEducationBureauList() { - return $http.get(`/org/area_edu`); - }, - //获取学校分页 - getSchoolPage: (data) => { - return $http.request({ - url: `/school/page`, - method: 'get', - params: data - }) - }, - //添加学校 - addSchool: (data) => { - return $http.post(`/school/add`, data); - }, - //获取数据字典 - getDictionary: (categoryId) => { - return $http.get(`/common/dict?categoryId=${categoryId}`); - }, - //获取省市区 - getArea: () => { - return $http.get(`/common/pca`); - }, - //更新年级 - updateGrade: (gradeId,data) => { - return $http.put(`/grade/update?gradeId=${gradeId}`, data); - }, - //添加年级 - addGrade: (data) => { - return $http.post(`/grade/add`, data); - }, - //获取年级列表 - getGradeList: () => { - return $http.get(`/grade/list`); - }, - //删除年级 - removeGrade: (gradeId) => { - return $http.delete(`/grade/delete?gradeId=${gradeId}`) - }, - //添加班级 - addClass:(data)=>{ - return $http.post(`/clazz/add`,data); - }, - //编辑班级 - updateClass:(data)=>{ - return $http.post(`/clazz/update?clazzId=${data.clazzId}`,data) - }, - //获取班级列表 - getClassList:()=>{ - return $http.get(`/clazz/list`); - }, - //删除班级 - removeClass:(clazzId)=>{ - return $http.delete(`/clazz/delete?clazzId=${clazzId}`) - }, - //添加教师 - addTeacher:(data)=>{ - return $http.post(`/teacher/add`,data); - }, - //获取教师分页 - getTeacherPage:(data)=>{ - return $http.request({ - url:'/teacher/page', - method:'get', - params:data - }) - } -} \ No newline at end of file diff --git a/src/api/modules/login.js b/src/api/modules/login.js deleted file mode 100644 index 7938e87..0000000 --- a/src/api/modules/login.js +++ /dev/null @@ -1,5 +0,0 @@ -import $http from "@/utils/httpRequest.js" - -export const login={ - -} \ No newline at end of file diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js new file mode 100644 index 0000000..22f5672 --- /dev/null +++ b/src/api/modules/mer_admin.js @@ -0,0 +1,54 @@ +import $http from '@/utils/httpRequest.js' + +export const mer_admin = { + /** + * 登录 + * @param {object} params LoginParam + * @param {number} params.type + * @param {string} params.role + * @param {string} params.username + * @param {string} params.password + * @param {string} params.mobile + * @param {string} params.code + * @returns + */ + loginByAccount: (params) => { + return $http.post(`/auth/login`, { + ...params, + type: 1 + }) + }, + loginByMobile: (params) => { + return $http.post(`/merchant-api/auth/sms/login`, { + ...params, + type: 2 + }) + }, + getYZM(mobile) { + return $http.get(`/merchant-api/auth/login/code?mobile=${mobile}`); + }, + getInfo() { + return $http.get(`/merchant-api/auth/info`); + }, + //商品管理 + //保存商品信息 + saveProduct:(data)=>{ + return $http.post(`/merchant-api/product/save`,data); + }, + //保存商品基本信息 + saveProductBase:(data)=>{ + return $http.post(`/merchant-api/product/save/basic`,data); + }, + //返回商品分类以及列表(聚合) + getPolyProduct:(data)=>{ + return $http.post(`/merchant-api/product/polymerization/list`,data); + }, + //商品分页 + getProductPage:(data)=>{ + return $http.post(`/merchant-api/product/page`,data); + }, + //商户商品分类 + getProductCategory:()=>{ + return $http.get(`/merchant-api/product/category/list?shopId=${JSON.parse(sessionStorage.getItem('userInfo')).shopId}`); + } +} \ No newline at end of file diff --git a/src/api/modules/my.js b/src/api/modules/my.js deleted file mode 100644 index 5d19bfc..0000000 --- a/src/api/modules/my.js +++ /dev/null @@ -1,140 +0,0 @@ -import $http from '../../utils/httpRequestUser' -// 个人中心接口 -export const my={ - // 认证 - identifyCode(inviteCode){ - return $http.post(`/user/redstudent/identifyCode`,inviteCode); - }, - // 意见反馈 - feedback(form){ - return $http.post(`/user/redsystemfeedback/save`,form); - }, - // ==================最近/学习记录 start==========================// - //获取历史记录 - getStudyRecords(){ - return $http.post(`/talk/userrecent/list`); - }, - //清空历史记录 - cleanRecently(){ - return $http.get('talk/userrecent/delete'); - }, - // ==================最近/学习记录 end==========================// - //===================我的 start================================// - //获取用户信息 - getUserInfo(){ - return $http.get(`/user/reduser/getUserInfo`); - }, - //=================积分 start================================// - //获取积分任务完成信息 - getPointsTaskInfo(){ - return $http.get(`/score/list`); - }, - //获取最近7天积分明细 - getPointsTask7Detail(){ - return $http.get(`/score/weekList`) - }, - // 获取特定日期的积分明细 - getPointTaskDateDeatil(date){ - return $http.post(`/score/getListByDay`,{ - date - }) - }, - //获取积分说明 - getPointExplain(contentType=1){ - return $http.get(`/score/redintegralruleinfo/getInfo/${contentType}`); - }, - //=================积分 end=================================// - // ================个人信息 start==========================// - // 更新用户信息 - updateUserInfo(role,redPassportNumber,ids,data){ - return $http.post(`/user/reduser/updateUserInfo`,{...data,role,...ids,redPassportNumber}) - }, - //=================个人信息 end===========================// - // ================红星榜 start==========================// - //获取顶部通用数据 - getRedStarBoardData(){ - return $http.get(`/score/getRedStarData`); - }, - //获取足迹打卡榜单 - getFootmarkRank(){ - return $http.get(`/score/getFootprintRank`); - }, - // 获取积分榜单 - getPointRank(){ - return $http.get(`/score/getRedStarRank`); - }, - //=================红星榜 end=============================// - //================红色生涯 start=========================// - //获取红色生涯(获取时间轴) - getMyRedCareer(page=1,limit=20){ - return $http.get(`/user/reduser/getRedCareer?page=${page}&limit=${limit}`) - }, - //获取证书 - getMyReward(){ - return $http.get(`/activity/reduseraward/getAwardByUser`) - }, - //================红色生涯 end==========================// - //================红星小铺 start============================// - // 获取分类列表 - getGoodsTypeList(){ - return $http.get(`/shop/dataproducttype/list`) - }, - // 根据分类获取商品 - getGoodsByType(productTypeName="",page=1,limit=20){ - return $http.get(`/shop/shopproduct/list?productTypeName=${productTypeName}&page=${page}&limit=${limit}`) - }, - //兑换记录 - getExchangeRecord(page=1,limit=10){ - return $http.get(`/shop/shoporder/list?page=${page}&limit=${limit}`) - }, - //兑换详情 - getExchangeRecordInfo(orderId){ - return $http.get(`/shop/shoporder/info/${orderId}`) - }, - //兑换/下单 - buyGood(data){ - return $http.post(`/shop/shoporder/save`,data) - }, - //获取最近一周的红星币 - geRedCointWeekList(){ - return $http.get(`/shop/coinrecord/getWeekList`); - }, - //根据日期查看获取的红星币明细 - getRedCoinListByDay(date){ - return $http.post(`/shop/coinrecord/getListByDay`,{ - date - }) - }, - //================红星小铺 end============================// - //===============红色护照 start==========================// - getRedPassport(){ - return $http.get(`/user/reduser/getRedPassport`) - }, - //上传照片 - uploadPhoto(redUserId,userPhoto){ - return $http.post(`/user/reduser/update`,{ - redUserId,userPhoto - }) - }, - //===============红色护照 end=============================// - - //===============消息 start===========================// - //获取消息列表 总列表 - getReportList(page,limit){ - return $http.get(`/report/list`) - }, - // 获取消息列表详情 - getReportInfoList(type,page=1,limit=10){ - return $http.get(`/report/listInfo?type=${type}&page=${page}&limit=${limit}`) - }, - //==============消息 end==============================// - //==============咨询 start==============================// - getProblemResovleList(page=1,limit=10){ - return $http.get(`/system/redsystemproblemsolve/list?page=${page}&limit=${limit}`); - }, - // =============咨询 end ================================// - //通过第一次的欢迎仪式,通过后,isFirst变为1; - doneWelcomeCeremony(){ - return $http.get(`/user/reduser/updateFirst`); - } -} \ No newline at end of file diff --git a/src/api/modules/notice-management.js b/src/api/modules/notice-management.js deleted file mode 100644 index aa947fd..0000000 --- a/src/api/modules/notice-management.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * @Author: ym - * @Date: 2021-09-25 16:08:51 - * @LastEditTime: 2021-09-25 16:20:08 - * @LastEditors: Please set LastEditors - * @Description: In User Settings Edit - * @FilePath: \piecework-treasure\src\api\modules\notice-management.js - */ -import $http from '../../utils/httpRequest' - -// 添加新公告 -export const addReport=(reportTitle,reportContent)=>{ - return $http.post('/sys/report/save',{ - reportTitle,reportContent - }) -} - -// 修改通知 -export const updateReport=(reportId,reportTitle,reportContent)=>{ - return $http.post('/sys/report/update',{ - reportId,reportTitle,reportContent - }) -} - -// 删除通知 -export const deleteReportsByIds=(reportIdsArray)=>{ - return $http.post('/sys/report/delete',JSON.stringify(reportIdsArray)) -} - -// 日期条件都不传就查询全部 , 支持1.只传日期 2.传日期加条件 -export const getReportsList=(condition,beginDay,endDay,page=1,limit=10)=>{ - // 2010-08-29 00:00:00 2022-08-29 00:00:00 - return $http.get(`/sys/report/list?page=${page}&limit=${limit}&beginDay=${beginDay}&endDay=${endDay}&condition=${condition}`) -} - -// 通知详情 -export const getReportInfo=(reportId)=>{ - return $http.get(`/sys/report/info/${id}`) -} \ No newline at end of file diff --git a/src/api/modules/org.js b/src/api/modules/org.js deleted file mode 100644 index c24ff09..0000000 --- a/src/api/modules/org.js +++ /dev/null @@ -1,39 +0,0 @@ -//管理下属机构,总后台管理地方后台 -import $http from '../../utils/httpRequest' - -export const org={ - //获取组织列表 - getOrgList(){ - return $http.get('/organization/list') - }, - //创建机构 - createOrg(data){ - return $http.post('/organization/add',data) - }, - //删除机构 - deleteOrg(orgId){ - return $http.put(`/organization/delete?orgId=${orgId}`) - }, - //编辑机构 - editOrg(orgId,data){ - return $http.put(`/organization/update?orgId=${orgId}`,data) - }, - //修改机构地方管理后台管理账号密码 - //支持jsdoc - /** - * @param {Object} data - * @param {String} data.id - * @param {String} data.password - */ - changeAccountPassword(data){ - return $http.put('/organization/update_local_password',data) - }, - //分配地方后台管理账号 - assignAccount(data){ - return $http.post('/organization/assign_local_account',data) - }, - //重新分配地方后台管理账号 - reassignAccount(data){ - return $http.post('/organization/reassign_local_account',data) - } -} \ No newline at end of file diff --git a/src/api/modules/produce-management.js b/src/api/modules/produce-management.js deleted file mode 100644 index 0187e26..0000000 --- a/src/api/modules/produce-management.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * @Author: chenkangxu - * @Date: 2021-09-26 12:46:12 - * @LastEditTime: 2021-09-26 22:15:17 - * @LastEditors: chenkangxu - * @Description: 生产管理模块api - * @Github: - */ -import $http from '../../utils/httpRequest' - -// #region 款式生产 -/** - * @description: 新增款式 - * @param {Object} data - * @return {*} - */ -export const addPattern=(data)=>{ - /** - * { - createNumber: (...) - deliveryDay: (...) - orderNumber: (...) - patternCreateTime: (...) - patternName: (...) - patternNumber: (...) - patternRemark: (...) - * } - */ - return $http.post('/create/pattern/save',data) -} - -/** - * @description: 查看款式 - * @param {*} - * @return {*} - */ -export const getPatternInfo=(pattekrnId)=>{ - return $http.get('/create/pattern/info/'+pattekrnId) -} -/** - * @description: 删除款式 - * @param {*} - * @return {*} - */ -export const deletePatternsByIdsArray=(IdsArray)=>{ - return $http.post('/create/pattern/delete',JSON.stringify(IdsArray)) -} - -/** - * @description: 修改款式和款式状态修改 - * @param {*} - * @return {*} - */ -export const updatePattern=(patternId,patternName,workStatus)=>{ - return $http.post('/create/pattern/update',{ - patternId,patternName,workStatus - }) -} -/** - * @description: 查看全部款式 - * @param {*} - * @return {*} - */ -export const getPatternList=(data,page=1,limit=10)=>{ - return $http.get(`/create/pattern/list?page=${page}&limit=${limit}&${data.timeType=='创建时间'?'':'D'}beginDay=${data.startDate}&${data.timeType=='创建时间'?'':'D'}endDay=${data.endDate}&workStatus=${data.status=='所有状态'?'':data.status}&isExistProcess=${data.onlyNoProcess}&condition=${data.filter}`); -} -/** - * @description: 查询对应款式得全部工序 - * @param {*} - * @return {*} - */ -export const getProcessOfPattern=(patternId)=>{ - return $http.get(`/create/process/listByPattern/${patternId}`) -} -// #endregion \ No newline at end of file diff --git a/src/api/modules/service.js b/src/api/modules/service.js deleted file mode 100644 index e52603d..0000000 --- a/src/api/modules/service.js +++ /dev/null @@ -1,217 +0,0 @@ -/* - * @author: ym - * @Date: 2021-10-11 19:24:45 - * @LastEditTime: 2022-08-03 17:38:13 - * @LastEditors: 陈伟亮 1186723967@qq.com - * @Description: - * @FilePath: \background-front-end\src\api\modules\service.js - */ -//===================== 服务 ============================= -import $http from '../../utils/httpRequest' - -// 轮播图管理 -// 增 -export const saveLocalServiceImage=(content)=>{ - return $http.post('/localService/redstudyimage/save',JSON.stringify(content)) -} -// 删 -export const deleteLocalServiceImage=(idList)=>{ - return $http.post('/localService/redstudyimage/delete',JSON.stringify(idList)); -} -// 改 -export const updateLocalServiceImage=(ids)=>{ - return $http.post('/localService/redstudyimage/update',JSON.stringify(ids)) -} -// 查 -export const getLocalServiceImage=(obj)=>{ - return $http({ - url:'/localService/redstudyimage/getListByParams', - method: 'get', - params: $http.adornParams(obj) - }) -} - -// 课程 -// 增 -export const saveNewCourse=(content)=>{ - return $http.post('/localService/redstudycourse/saveNewCourse',JSON.stringify(content)) -} -// 删 -export const deleteRedCourse=(ids)=>{ - return $http.post('/localService/redstudycourse/delete',ids); -} -// 改 -export const updateRedCourse=(content)=>{ - return $http.post('/localService/redstudycourse/updateCourse',JSON.stringify(content)) -} -// 查 -export const getCourseListByParams=(obj)=>{ - return $http({ - url:'/localService/redstudycourse/getCourseListByParams', - method: 'get', - params: $http.adornParams(obj) - }) -} -// 修改课程排序号 -export const updateCourseListSort=(data)=>{ - console.log(data) - return $http({ - url:'/localService/redstudycourse/updateBatchSort', - method: 'post', - data - }) -} - -// 古诗词 -// 增 -export const saveRedPoetry=(content)=>{ - return $http.post('/localService/redpoetry/save',JSON.stringify(content)) -} -// 删 -export const deleteRedPoetry=(ids)=>{ - return $http.post('/localService/redpoetry/delete',JSON.stringify(ids)); -} -// 改 -export const updateRedPoetry=(content)=>{ - return $http.post('/localService/redpoetry/update',JSON.stringify(content)) -} -// 查 -export const getPoetryByParams=(obj)=>{ - return $http({ - url:'/localService/redpoetry/getPoetryByParams', - method: 'get', - params: $http.adornParams(obj) - }) -} - - -//教育局学校管理 -// 增 教育局超管 -export const saveNewEducation=(content)=>{ - return $http.post('/localService/rededucation/saveNewEducation',JSON.stringify(content)) -} -// 增 学校超管 -export const saveNewSchool=(content)=>{ - return $http.post('/localService/redschool/saveNewSchool',JSON.stringify(content)) -} -// // 删 -// export const deleteRedPoetry=(ids)=>{ -// return $http.post('/localService/redpoetry/delete',JSON.stringify(ids)); -// } -// 改 -// 修改教育局 -export function updateEducation (content) { - return $http.post('/localService/rededucation/updateEducation',JSON.stringify(content)) -} -// 修改角色 -export function updateSchool (content) { - return $http.post('/localService/redschool/updateSchool',JSON.stringify(content)) -} - -// 查 教育局 -export const getEducationByParams=(obj)=>{ - return $http({ - url:'/localService/rededucation/getList', - method: 'get', - params: $http.adornParams(obj) - }) -} -// 查 学校 -export const getSchoolByParams=(obj)=>{ - return $http({ - url:'/localService/redschool/getList', - method: 'get', - params: $http.adornParams(obj) - }) -} - -// 获取角色列表, 根据当前用户 -export const selectRoles=()=>{ - return $http({ - url:'/sys/role/select' - }) - } - -// 查 详情 -export const getEducationInfo=(id)=>{ - return $http({ - url:'/localService/rededucation/info/'+id, - method: 'get' - }) -} - -//=================手抄报管理================== -//查询 -export function getHandlCopyManagementList(params){ - return $http({ - url:'/localService/redhandcopy/getListByParams', - method:'get', - params - }) -} -//修改 -export function updateHandlCopyManagement(data){ - return $http({ - url:'/localService/redhandcopy/update', - method:'post', - data - }) -} -//删除 -export function deleteHandlCopyManagementList(data){ - return $http({ - url:'/localService/redhandcopy/delete', - method:'post', - data - }) -} -//添加 -export function saveHandlCopyManagement(data){ - return $http({ - url:'/localService/redhandcopy/save', - method:'post', - data - }) -} -//=================资讯管理================== -// 增 -export const saveServiceNewInfo=(content)=>{ - return $http.post('/localService/redstudyinfo/save',JSON.stringify(content)) -} -// 删 -export const deleteServiceNewInfo=(idList)=>{ - return $http.post('/localService/redstudyinfo/delete',JSON.stringify(idList)); -} -// 改 -export const updateServiceNewInfo=(ids)=>{ - return $http.post('/localService/redstudyinfo/update',JSON.stringify(ids)) -} -// 查 -export const geServiceNewInfoListByParams=(obj)=>{ - return $http({ - url:'/localService/redstudyinfo/getStudyInfoListByParams', - method: 'get', - params: $http.adornParams(obj) - }) -} - -export const service={ - //添加题库 - addQuestionBatch(data){ - return $http.post(`/project/pruserprojectitem/saveBatch`,JSON.stringify(data)) - }, - //删除某个题目 - deleteQuestion(questionIdsArray){ - return $http.post(`/project/pruserprojectitem/delete`,JSON.stringify(questionIdsArray)); - }, - //修改某个题目 - editQuestion(data){ - data.expand=JSON.stringify(data.expand) - data.regList=JSON.stringify(data.regList) - return $http.post(`/project/pruserprojectitem/update`,data) - }, - //获取题库列表 - getQuestionList(params){ - return $http.get(`/project/pruserprojectitem/list`,{params}); - } -} \ No newline at end of file diff --git a/src/api/modules/shop-system.js b/src/api/modules/shop-system.js deleted file mode 100644 index b843215..0000000 --- a/src/api/modules/shop-system.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * @author: ym - * @Date: 2021-11-02 13:39:40 - * @LastEditTime: 2021-11-02 13:43:07 - * @LastEditors: ym - * @Description: - * @FilePath: \background-front-end\src\api\modules\shop-system.js - */ -import $http from '../../utils/httpRequest' -//===================== 商品分类 ============================= -// 新增分类 -export const saveDataProductType=(typeName)=>{ - return $http.post('/management/reddataproducttype/save',JSON.stringify(typeName)) -} -// 批量修改 -export const updateProductTypeSort=(list)=>{ - return $http.post('/management/reddataproducttype/updateProductTypeSort',JSON.stringify(list)) -} -// // 根据id批量删除 -export const deleteProductType=(idList)=>{ - return $http.post('/management/reddataproducttype/delete',JSON.stringify(idList)); -} -// 查询分类 -export const getProductTypeListByParams=()=>{ - return $http.get('/management/reddataproducttype/getList'); -} - -//===================== 商品管理 ============================= -// 新增分类 -export const saveProduct=(obj)=>{ - return $http.post('/shop/redshopproduct/save',JSON.stringify(obj)) -} -// 批量修改 -export const updateProduct=(obj)=>{ - return $http.post('/shop/redshopproduct/update',JSON.stringify(obj)) -} -// // 根据id批量删除 -export const deleteProduct=(idList)=>{ - return $http.post('/shop/redshopproduct/delete',JSON.stringify(idList)); -} -// 查询分类 -export const getProductListByParams=(obj)=>{ - return $http.request({ - method: 'get', - params:obj, - url:"/shop/redshopproduct/getListByParams" - }) - // return $http.get('/shop/redshopproduct/getListByParams',JSON.stringify(obj)); -} \ No newline at end of file diff --git a/src/api/modules/study.js b/src/api/modules/study.js deleted file mode 100644 index 4d3613c..0000000 --- a/src/api/modules/study.js +++ /dev/null @@ -1,389 +0,0 @@ -import $http from '../../utils/httpRequestUser.js' - -// 学习接口 -export const study = { - // 获取轮播图列表 - getStudySwiper() { - return $http.get(`/study/redstudyimage/getList`); - }, - // 获取学习资讯列表 - getStudyNews(page = 1, limit = 20) { - return $http.get(`/study/redstudyinfo/list?page=${page}&limit=${limit}`) - }, - // 获取资讯详情 - getStudyNewsInfo(contentInfoId) { - return $http.get(`/study/redstudyinfo/info/${contentInfoId}`) - }, - //获取轮播图资讯 - getStudySwiperInfo(contentInfoId) { - return $http.get(`/study/redstudyimage/info/${contentInfoId}`) - }, - //=============教师观察start==============// - //判断是否为老师 - judgeIsTeacher() { - return $http.get(`/user/redteacher/isTeacher`); - }, - // 获取邀请码 - createInviteCode(teacherId) { - return $http.get(`/user/redteacher/createCode/${teacherId}`) - }, - // 获取成员列表和创建的邀请码 - getClassInfoByTeacherId(teacherId) { - return $http.get(`/user/redteacher/getClassInfoByTeacherId/${teacherId}`) - }, - // 获取申请列表 - getStudentApplyList(teacherId) { - return $http.get(`/user/redteacher/getStudentApplyList/${teacherId}`) - }, - // 申请通过 - getAgreeApply(userId) { - return $http.get(`/user/redteacher/getAgreeApply/${userId}`) - }, - // 申请通过 - deleteStudent(studentId) { - return $http.get(`/user/redteacher/deleteStudent/${studentId}`) - }, - //查询爱国主义课程学习情况 - getStudentStudyStatus(courseId /* 课程id */ , teacherId /* 教师id */ ) { - return $http.get(`/user/redteacher/getUserStudyList?courseId=${courseId}&teacherId=${teacherId}`); - }, - //获取当前老师的所有管理的课程(每个老师的课程都是一样的) - getAllCourseByTeacherId() { - return $http.get(`/user/redteacher/getCourseList`) - }, - // 催学生 - urgeStudents(userIdsAndCourseIdsArray) { - return $http.post(`/report/pushStudent`, JSON.stringify(userIdsAndCourseIdsArray)) - }, - //=============教师观察end===================// - - // ============爱国主义教育start================// - // 获取爱国主义课程列表 - getPatriotismCourseList(page = 1, limit = 20) { - return $http.get(`/study/redstudycourse/getList?page=${page}&limit=${limit}`); - }, - // 获取爱国主页课程详情 - getPatriotismCourseInfo(courseId /* 课程id */ ) { - return $http.get(`/study/redstudycourse/getCourseInfoById/${courseId}`) - }, - // 完成课程的接口 - finishCourse(courseId) { - return $http.get(`/study/redstudycourse/videoIsOver/${courseId}`); - }, - // 提交试卷 接口文档https://easydoc.net/s/80870525/lFkazUXb/ccBRVOz7 - submitExam(data) { - return $http.post(`/study/redstudycourse/submitPaper`, data) - }, - - - - //=============爱国主义教育end===================// - - //=============古诗词学习start=================// - //获取古诗分类 - getPoetryType() { - return $http.get(`/study/reddatapoetrymaintype/list`); - }, - // 获取古诗列表 - getPoetryList(secondTypeId /* 古诗类型id */ , page, limit) { - return $http.get(`/study/redpoetry/list?secondTypeId=${secondTypeId}&page=${page}&limit=${limit}`) - }, - //古诗全文搜索 - searchPoetryByName(searchName) { - return $http.get(`/study/redpoetry/searchPoetry?searchName=${searchName}`) - }, - //获取古诗详情 - getPoetryInfo(poetryId /* 古诗id */ ) { - return $http.post(`/study/redpoetry/info/${poetryId}`) - }, - //=============古诗词学习end==================// - - //============手抄报start===================// - // 获取手抄报类型 - getHandPaperType() { - return $http.get(`/study/reddatahandcopytype/list`); - }, - // 获取手抄报列表 - getHandPaperList(typeId, searchName = '') { - return $http.get(`/study/redhandcopy/list?typeId=${typeId}&searchName=${searchName}`); - }, - // 获取手抄报详情 - getHandPaperInfo(handPaperId) { - return $http.post(`/study/redhandcopy/info/${handPaperId}`); - }, - //手抄报点赞 - likePaper(articleId) { - return $http.post(`/study/redhandcopy/up`, { - articleId - }) - }, - //手抄报取消点赞 - cancelLikePaper(articleId) { - return $http.post(`/study/redhandcopy/cancelup`, { - articleId - }) - }, - //===========手抄报end================// - //==========立德树人以及家教家风 start============// - //获取立德树人列表 废弃 - getMoralityEducationList(page = 1, limit = 20) { - return $http.get(`/study/redstudyinfo/getFamilyList`); - }, - //获取家教家风列表 废弃 - getFamilyStyleList(page = 1, limit = 20) { - return $http.get(`/study/redstudyinfo/getVirtueList`); - }, - //统一获取立德树人、爱国主义、家教家风 - getRedStudyCourse(courseType, page = 1, limit = 20,searchName='',courseGrade=1,courseThemeId="") { - return $http.get(`/study/redstudycourse/getList?courseType=${courseType}&page=${page}&limit=${limit}&title=${searchName}&courseGrade=${courseGrade}&courseThemeId=${courseThemeId}`) - }, - //==========立德树人以及家教家风 end============// - - //==========课堂 start=========================// - // 创建课堂 - /** - * @description 创建课堂 - * @param {String} courseName 课程名称 - * @param {String} courseUrl 课程图片 - */ - createClassroom(courseName, courseUrl) { - return $http.post(`/course/save`, { - courseName, - courseUrl - }) - }, - /** - * @description 删除课堂 - * @param {Array} courseIdsArray 要删除的课程id数组 - */ - deleteClassroom(courseIdsArray) { - return $http.post(`/course/delete`, JSON.stringify(courseIdsArray)) - }, - /** - * @description 修改课堂信息 - * @param {String} courseId 要更改的课堂id - * @param {String} courseName 要更改的名字 - * @param {String} courseUrl 要更改的课堂图片OSS地址 - */ - updateClassroom(courseId, courseName, courseUrl) { - return $http.post(`/course/update`, { - courseId, - courseName, - courseUrl - }) - }, - /** - * @description 查看对应的课堂详情 - * @param {String} courseId 要查看的课堂id - */ - getClassroomInfo(courseId) { - return $http.get(`/course/info/${courseId}`); - }, - /** - * @description 查询课堂列表 - */ - getClassroomsList(page = 1, litmit = 10) { - return $http.get(`/course/list?page=${page}&litmit=${litmit}`); - }, - /** - * @description 批量拉学生进课堂 - * @param {String[]} userIds 课堂id - * * @param {String} courseId 课堂id - */ - saveStudents(userIds,courseId){ - return $http.post(`/course/saveStudents`,{ - userIds, - courseId - }) - }, - /** - * @description 获取课堂邀请码 - * @param {String} courseId 课堂id - */ - getInviteCode(courseId) { - return $http.get(`/course/createCode/${courseId}`); - }, - /** - * @description 根据邀请码加入课堂 - * @param {String} inviteCode 邀请码 - */ - joinInClassroomByInviteCode(inviteCode) { - return $http.get(`/course/saveUserByCode/${inviteCode}`) - }, - /** - * @description 发布讨论 - * @param {String} talkTitle 讨论标题 - * @param {String} talkContent 讨论内容 - * @param {String} courseId 要发布到的课堂id - */ - createTalk(talkTitle, talkContent, courseId) { - return $http.post(`/talk/talk/save`, { - talkTitle, - talkContent, - courseId - }) - }, - /** - * @description 获取对应的课堂里的讨论列表 - * @param {String} courseId 对应的课堂id - */ - getTalkList(courseId,page=1,limit=10) { - return $http.get(`/talk/talk/list?courseId=${courseId}&page=${page}&limit=${limit}`); - }, - /** - * @description 删除讨论 - * @param {Array} talkIdsArray 对应的讨论id数组 - */ - deleteTalk(talkIdsArray) { - return $http.post(`/talk/talk/delete`, JSON.stringify(talkIdsArray)); - }, - /** - * @description 更新讨论 - * @param {String} talkId 讨论id - * @param {String} talkTitle 讨论标题 - * @param {String} talkContent 话题内容 - */ - updateTalk(talkId,talkTitle,talkContent) { - return $http.post(`/talk/talk/update`, { - talkId,talkTitle,talkContent - }) - }, - /** - * @description 获取讨论详情 - * @param {String} talkId 讨论id - */ - getTalkInfo(talkId){ - return $http.post(`/talk/talk/info/${talkId}`); - }, - /** - * @description 回复讨论 - * @param {String} parentId 回复的talkId - * @param {String} commentContent 回复内容 - * @param {String} commentImg 回复的图片 - */ - replyTalk(talkId,commentContent,commentImg){ - return $http.post(`/talk/talk/saveComment`,{ - parentId:talkId,commentContent,commentImg - }) - }, - /** - * @description 删除回复的讨论 - * @param {Array} commentIdsArray 要删除的回复id的数组 - */ - deleteReplyTalk(commentIdsArray){ - return $http.post(`/talk/comment/delete`,JSON.stringify(commentIdsArray)); - }, - /** - * @description 查询课堂的所有学生 - */ - classroomStudentList(courseId,name='',page=1,limit=10){ - return $http.get(`/course/usercourse/list?courseId=${courseId}&name=${name}&page=${page}&limit=${limit}`); - }, - /** - * @description 移除学生 - */ - removeStudent(ucIdsArray){ - return $http.post(`/course/usercourse/delete`,JSON.stringify(ucIdsArray)); - }, - //==========课堂 end===========================// - //==========动态 分享 start======================// - /** - * @description 获取该课堂的所有动态与分享 目前就两种:成绩分享和文章分享 - * @param {String} 要分享到的课堂id - * @param {String} page limit - */ - getShareList(courseId,page,limit){ - return $http.get(`/user/share/list?courseId=${courseId}&page=${page}&limit=${limit}`) - }, - /** - * @description 分享到课堂 - * @param {Object} data {articleType,articleId,comment,courseId,score} - **/ - shareToClassroom(data){ - return $http.post(`/user/share/save`,data) - }, - /** - * @description 删除我的分享 - * @param {Array} shareIdsArray 分享id字符串数组 - **/ - deleteMyShare(shareIdsArray){ - return $http.post(`/user/share/delete`,JSON.stringify(shareIdsArray)); - }, - //==========动态 分享 end========================// - //===============提升练习 start==================// - /** - * @description 根据练习类型获取提升练习列表 - * @param {String} practiceType 练习类型 - * @param {String} searchName 模糊搜索 - **/ - getPracticesListByType(practiceType,page,limit,searchName='',courseThemeId){ - return $http.get(`/study/redteacherpractice/getListByType?page=${page}&limit=${limit}&practiceType=${practiceType}&practiceName=${searchName}&courseThemeId=${courseThemeId}`); - }, - /** - * @description 根据练习id获取练习详情 - * @param {String} practiceId 练习id - **/ - getPracticeInfoById(practiceId){ - return $http.get(`/study/redteacherpractice/getPracticeInfoById/${practiceId}`) - }, - /** - * @description 提交练习 - * @param {Object} data 对应的数据 - **/ - submitPractice(data){ - return $http.post(`/study/redteacherpractice/submitPractice`,data) - }, - //===============提升练习 end====================// - //===============教师发布提升练习 题库 start================// - /** - * @description 获取对应专题的题库数据 - */ - getPracticeList(itemType,page=1,limit=10,courseThemeId=''){ - return $http.get(`/project/pruserprojectitem/list?page=${page}&limit=${limit}&itemType=${itemType}&courseThemeId=${courseThemeId}`) - }, - /** - * @description 根据勾选的题库进行发布随堂练习 - */ - sendNewPractice(data){ - return $http.post(`/study/redteacherpractice/saveNewPractice`,data) - }, - /** - * @description 查询我发布的练习 - */ - getMyPublishedPractice(practiceType,page=1,limit=10,searchName='',courseThemeId){ - return $http.request({ - url:"/study/redteacherpractice/getPracticeByTeacher", - method:"get", - data:{ - page,limit,searchName,practiceType,courseThemeId - } - }) - }, - /** - * @description 查看当前练习的详情以及完成情况 - * @param {String} practiceId - */ - getMyPublishedPracticeInfo(practiceId){ - return $http.get(`/study/redteacherpractice/getPracticeDetailsById/${practiceId}`) - }, - /** - * @description 移除我发布的随堂练习 - * @param {Array} practiceIdsArray 随堂练习id数组 - */ - removeMyPublishedPractice(practiceIdsArray){ - return $http.post(`/study/redteacherpractice/deletePractice`,JSON.stringify(practiceIdsArray)) - }, - //===============教师发布提升练习 end================// - /** - * @description 获取学习模块下的分类 如点击思想教育,获取下列的伟大领袖、红色印记、英烈人物、爱国情怀 - */ - getStudySecondModule(courseType){ - return $http.get(`/study/redcoursetheme/getListByType?courseType=${courseType}`) - }, - /** - * @@description 获取待学习的课程列表 - */ - getStudyingCourseList(courseGrade=1,courseType='',courseThemeId=''){ - return $http.get(`/study/redstudycourse/getNotStudyCourse?courseGrade=${courseGrade}&courseType=${courseType}&courseThemeId=${courseThemeId}`) - } -} diff --git a/src/api/modules/sys.js b/src/api/modules/sys.js deleted file mode 100644 index b089647..0000000 --- a/src/api/modules/sys.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - * @Author: ym - * @Date: 2021-09-28 16:17:10 - * @LastEditTime: 2022-08-11 18:37:54 - * @LastEditors: 陈伟亮 1186723967@qq.com - * @Description: In User Settings Edit - * @FilePath: \piecework-treasure\src\api\modules\content-type.js - */ -import $http from '../../utils/httpRequest' - -/** - * 系统管理 意见反馈 查询删除 - * @param {*} mainTypeName - * @returns - */ - -// 根据id批量删除意见反馈 -export const deleteFeedback=(idList)=>{ - return $http.post('/management/redsystemfeedback/delete',JSON.stringify(idList)); -} -// 查询意见反馈列表 -export const getFeedbackByParams=()=>{ - return $http.get('/management/redsystemfeedback/getFeedbackByParams'); -} -//保存公告 -export const addReport=(reportTitle,reportContent,reportType='system')=>{ - return $http.post(`/report/save`,{ - reportType,reportTitle,reportContent - }); -} -//查看全部公告 -export const getReportsList=(page=1,limit=10)=>{ - return $http.get(`/report/list?page=${page}&limit=${limit}`) -} -// 查看公告 -export const getReportInfo=(reportId)=>{ - return $http.get(`/report/info/${reportId}`) -} -// 删除公告 -export const deleteReportsByIds=(ids)=>{ - return $http.post(`/report/delete`,JSON.stringify(ids)) -} -//修改公告 -export const updateReport=(reportId,reportTitle,reportContent)=>{ - return $http.post(`/report/update`,{ - reportId,reportTitle,reportContent - }) -} -//修改公告 -export const savePreviewRichText=(data)=>{ - return $http.post(`/text/redtext/save`,data) -} -/** - * 系统管理 常见问题 增删改查 - * @param {*} mainTypeName - * @returns - */ -//上传富文本图片 -export const richTextImgUpload=(url)=>{ - return $http({ - url: '/sys/oss/upload', - method: 'post', - data: {text:url} - }) -} \ No newline at end of file diff --git a/src/api/modules/user.js b/src/api/modules/user.js deleted file mode 100644 index e511bc8..0000000 --- a/src/api/modules/user.js +++ /dev/null @@ -1,61 +0,0 @@ -/* - * @Author: your name - * @Date: 2021-10-08 17:39:17 - * @LastEditTime: 2022-01-02 15:07:46 - * @LastEditors: Please set LastEditors - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE - * @FilePath: \background-front-end\src\api\modules\user.js - */ -import $http from '../../utils/httpRequest' - -//查询会员列表 -export function getUserList(params){ - return $http({ - url:'/redMember/reduser/getUserListByParams', - params - }) -} -//查询会员详情 -export function getUserDetail(id){ - return $http({ - url:'/redMember/reduser/info/'+id, - - }) -} -//更新会员信息 -export function updateUserList(data){ - return $http({ - url:'redMember/reduser/update', - method:'post', - data - }) -} -//查询用户协议 -export function getUserAgreement(){ - return $http({ - url:'/redMember/redpublishagreement/info/1', - - }) -} -//保存用户协议 -export function saveUserAgreement(data){ - return $http({ - url:'/redMember/redpublishagreement/update', - method:'post', - data - }) -} -// 查询红色护照 -export function getUserRedPassport(){ - return $http({ - url:'/redMember/redpassport/info/1', - }) -} -// 保存红色护照 -export function saveUserRedPassport(data){ - return $http({ - url:'/redMember/redpassport/update', - method:'post', - data - }) -} \ No newline at end of file diff --git a/src/api/modules/userManage.js b/src/api/modules/userManage.js deleted file mode 100644 index 95df740..0000000 --- a/src/api/modules/userManage.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * @Author: ym - * @Date: 2021-09-23 20:34:59 - * @LastEditTime: 2021-09-27 22:01:58 - * @LastEditors: Please set LastEditors - * @Description: In User Settings Edit - * @FilePath: \piecework-treasure\src\api\modules\userManage.js - */ -import $http from '../../utils/httpRequest' - -// 批量查询人员 -export const queryUser=(obj)=>{ - return $http.get(`/sys/user/list?page=${obj.page}&limit=${obj.limit}&departmentName=${obj.departmentName}&userTypeName=${obj.userTypeName}&wokerTypeName=${obj.workerTypeName}&userStatus=${obj.userStatus}&condition=${obj.condition}`); -} -// 添加人员 -export const saveUser=(obj)=>{ - return $http.post('/sys/user/save',JSON.stringify(obj)); -} -// 查询人员 -export const selectUser=(id)=>{ - return $http.get('/sys/user/info/'+id); -} -// 修改人员 -export const editUser=(obj)=>{ - return $http.post('/sys/user/update',JSON.stringify(obj)); -} -// 删除人员 -export const deleteUser=(obj)=>{ - return $http.post('/sys/user/delete',JSON.stringify(obj)); -} -// 批量修改 -// [{"userId":3,"userStatus":"测试1"},{"userId":4,"userStatus":"测试2"}] -export const updateBatch=(obj)=>{ - return $http.post('/sys/user/updateBatch',JSON.stringify(obj)); -} \ No newline at end of file diff --git a/src/api/modules/version.js b/src/api/modules/version.js deleted file mode 100644 index 18408aa..0000000 --- a/src/api/modules/version.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * @Author: chenkangxu - * @Date: 2022-08-26 16:59:26 - * @LastEditTime: 2022-08-26 17:00:07 - * @LastEditors: chenkangxu - * @Description: - * @Github: - */ -import $http from '@/utils/httpRequest' -export const version={ - addAppVersion:(data)=>{ - return $http({ - url: '/sys/version/save', - method:'post', - data - }) - }, - delAppVersion:(data)=>{ - return $http({ - url: '/sys/version/delete', - method:'post', - data - }) - }, - updateAppVersion:(data)=>{ - return $http({ - url: '/sys/version/update', - method:'post', - data - }) - }, - getAppVersion:(params)=>{ - return $http({ - url: '/sys/version/list', - method:'post', - params - }) - } -} diff --git a/src/filters/accounts.js b/src/filters/accounts.js new file mode 100644 index 0000000..3181137 --- /dev/null +++ b/src/filters/accounts.js @@ -0,0 +1,33 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +//财务过滤器 +/** + * 资金流水 交易类型 + */ +export function transactionTypeFilter(status) { + const statusMap = { + pay_order: '订单支付', + refund_order: '订单退款', + }; + return statusMap[status]; +} + +/** + * 转账类型 + */ +export function transferTypeFilter(status) { + const statusMap = { + bank: '银行卡', + alipay: '支付宝', + wechat: '微信', + }; + return statusMap[status]; +} diff --git a/src/filters/commFilter.js b/src/filters/commFilter.js new file mode 100644 index 0000000..410f3dd --- /dev/null +++ b/src/filters/commFilter.js @@ -0,0 +1,294 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +import * as constants from '@/utils/constants.js'; +import { formatDates } from '@/utils/index'; + +// 公共过滤器 +export function filterEmpty(val) { + let _result = '-'; + if (!val) { + return _result; + } + _result = val; + return _result; +} + +// 时间过滤器 +export function formatDate(time) { + if (time !== 0) { + const date = new Date(time * 1000); + return formatDates(date, 'yyyy-MM-dd hh:mm'); + } +} + +export function filterYesOrNo(value) { + return value ? '是' : '否'; +} + +export function filterShowOrHide(value) { + return value ? '显示' : '不显示'; +} + +export function filterShowOrHideForFormConfig(value) { + return value === '‘0’' ? '显示' : '不显示'; +} + +export function filterYesOrNoIs(value) { + return value ? '否' : '是'; +} + +export function filterCategroyType(value) { + return constants.categoryType.filter((item) => value === item.value)[0].name; +} + +export function filterConfigCategory(value) { + return constants.configCategory.filter((item) => value === item.value)[0].label; +} + +/** + * @description 公众号回复类型 + */ +export function keywordStatusFilter(status) { + const statusMap = { + text: '文字消息', + image: '图片消息', + news: '图文消息', + voice: '声音消息', + }; + return statusMap[status]; +} + +/** + * @description 优惠券类别 + */ +export function couponCategoryFilter(status) { + const statusMap = { + 1: '店铺', + 2: '商品', + 3: '通用', + 4: '品类', + 5: '品牌', + 6: '跨店', + }; + return statusMap[status]; +} + +/** + * @description 优惠券类型 + */ +export function couponTypeFilter(status) { + const statusMap = { + 1: '商家券', + 2: '商品券', + 3: '平台券', + }; + return statusMap[status]; +} + +/** + * @description 优惠券领取方式 + */ +export function couponUserTypeFilter(status) { + const statusMap = { + 1: '手动领取', + 2: '赠送券', + }; + return statusMap[status]; +} + +/** + * @description 文章分类 + */ +export function articleTypeFilter(status) { + if (!status) { + return ''; + } + let arrayList = JSON.parse(localStorage.getItem('articleClass')); + if (arrayList.filter((item) => Number(status) === Number(item.id)).length < 1) { + return ''; + } + return arrayList.filter((item) => Number(status) === Number(item.id))[0].name; +} + +/** + * @description 支付状态 + */ +export function payStatusFilter(status) { + const statusMap = { + false: '未支付', + true: '已支付', + }; + return statusMap[status]; +} + +/** + * @description 提现方式 + */ +export function extractTypeFilter(status) { + const statusMap = { + bank: '银行卡', + alipay: '支付宝', + weixin: '微信', + }; + return statusMap[status]; +} + +/** + * @description 充值类型 + */ +export function rechargeTypeFilter(status) { + const statusMap = { + public: '微信公众号', + weixinh5: '微信H5支付', + routine: '小程序', + }; + return statusMap[status]; +} + +/** + * @description 财务审核状态 + */ +export function extractStatusFilter(status) { + const statusMap = { + '-1': '已拒绝', + 0: '审核中', + 1: '已提现', + }; + return statusMap[status]; +} + +/** + * @description 砍价状态 + */ +export function bargainStatusFilter(status) { + const statusMap = { + 1: '进行中', + 2: '未完成', + 3: '已成功', + }; + return statusMap[status]; +} + +/** + * @description 砍价状态 + */ +export function bargainColorFilter(status) { + const statusMap = { + 1: '', + 2: 'danger', + 3: 'success', + }; + return statusMap[status]; +} + +/** + * @description 拼团状态 + */ +export function groupStatusFilter(status) { + const statusMap = { + 1: '进行中', + 2: '已成功', + 3: '未完成', + }; + return statusMap[status]; +} + +/** + * @description 拼团状态 + */ +export function groupColorFilter(status) { + const statusMap = { + 1: '', + 2: 'success', + 3: 'danger', + }; + return statusMap[status]; +} + +/** + * @description 一号通tab值 + */ +export function onePassTypeFilter(status) { + const statusMap = { + sms: '短信', + copy: '商品采集', + expr_query: '物流查询', + expr_dump: '电子面单打印', + }; + return statusMap[status]; +} + +/** + * @description 视频号草稿商品微信审核状态 + */ +export function editStatusFilter(status) { + const statusMap = { + '-1': '违规/风控系统下', + '-2': '平台下架', + '-3': '商家下架', + 1: '未审核', + 2: '审核中', + 3: '审核失败', + 4: '审核成功', + }; + return statusMap[status]; +} + +/** + * @description 视频号草稿商品平台审核状态 + */ +export function platformStatusFilter(status) { + const statusMap = { + 1: '未审核', + 2: '审核中', + 3: '审核失败', + 4: '审核成功', + }; + return statusMap[status]; +} + +/** + * @description 视频号正式商品状态 + */ +export function videoStatusFilter(status) { + const statusMap = { + 0: '初始值', + 5: '上架', + 11: '自主下架', + 13: '违规下架/风控系统下架', + }; + return statusMap[status]; +} + +/** + * @description 角色类型 + */ +export function roleTypeFilter(status) { + const statusMap = { + platform: '平台', + merchant: '商户', + system: '系统', + }; + return statusMap[status]; +} + +/** + * @description 秒杀商品活动状态 + * + */ +export function activityStatusFilter(status) { + const statusMap = { + 0: '未开始', + 1: '进行中', + 2: '已结束', + }; + return statusMap[status]; +} diff --git a/src/filters/index.js b/src/filters/index.js new file mode 100644 index 0000000..43d3e8d --- /dev/null +++ b/src/filters/index.js @@ -0,0 +1,86 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +// import parseTime, formatTime and set to filter +export { parseTime, formatTime } from '@/utils'; + +export * from '../filters/commFilter'; +export * from '../filters/user'; +export * from '../filters/order'; +export * from '../filters/wx'; +export * from '../filters/merchant'; +export * from '../filters/accounts'; +export * from '../filters/product'; + +/** + * Show plural label if time is plural number + * @param {number} time + * @param {string} label + * @return {string} + */ +function pluralize(time, label) { + if (time === 1) { + return time + label; + } + return time + label + 's'; +} + +/** + * @param {number} time + */ +export function timeAgo(time) { + const between = Date.now() / 1000 - Number(time); + if (between < 3600) { + return pluralize(~~(between / 60), ' minute'); + } else if (between < 86400) { + return pluralize(~~(between / 3600), ' hour'); + } else { + return pluralize(~~(between / 86400), ' day'); + } +} + +/** + * Number formatting + * like 10000 => 10k + * @param {number} num + * @param {number} digits + */ +export function numberFormatter(num, digits) { + const si = [ + { value: 1e18, symbol: 'E' }, + { value: 1e15, symbol: 'P' }, + { value: 1e12, symbol: 'T' }, + { value: 1e9, symbol: 'G' }, + { value: 1e6, symbol: 'M' }, + { value: 1e3, symbol: 'k' }, + ]; + for (let i = 0; i < si.length; i++) { + if (num >= si[i].value) { + return (num / si[i].value).toFixed(digits).replace(/\.0+$|(\.[0-9]*[1-9])0+$/, '$1') + si[i].symbol; + } + } + return num.toString(); +} + +/** + * 10000 => "10,000" + * @param {number} num + */ +export function toThousandFilter(num) { + return (+num || 0).toString().replace(/^-?\d+/g, (m) => m.replace(/(?=(?!\b)(\d{3})+$)/g, ',')); +} + +/** + * Upper case first char + * @param {String} string + */ +export function uppercaseFirst(string) { + return string.charAt(0).toUpperCase() + string.slice(1); +} diff --git a/src/filters/merchant.js b/src/filters/merchant.js new file mode 100644 index 0000000..5fec8ca --- /dev/null +++ b/src/filters/merchant.js @@ -0,0 +1,33 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +//商户过滤器 + +/** + * 商户创建类型 + */ +export function merCreateTypeFilter(status) { + const statusMap = { + admin: '管理员创建', + apply: '商户入驻申请', + }; + return statusMap[status]; +} + +/** + * 商户类别 + */ +export function selfTypeFilter(status) { + const statusMap = { + true: '自营', + false: '非自营', + }; + return statusMap[status]; +} diff --git a/src/filters/order.js b/src/filters/order.js new file mode 100644 index 0000000..5217a51 --- /dev/null +++ b/src/filters/order.js @@ -0,0 +1,96 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +//订单过滤器 + +/** + * @description 支付状态 + */ +export function paidFilter(status) { + const statusMap = { + true: '已支付', + false: '未支付', + }; + return statusMap[status]; +} + +/** + * @description 订单状态 + * 2,已收货,待评价 + */ +export function orderStatusFilter(status) { + const statusMap = { + 0: '待付款', + 1: '待发货', + 2: '部分发货', + 3: '待核销', + 4: '待收货', + 5: '已收货', + 6: '已完成', + 9: '已取消', + }; + return statusMap[status]; +} + +/** + * @description 订单中的退款状态 + */ +export function orderRefundStatusFilter(status) { + const statusMap = { + 0: '未退款', + 1: '申请退款中', + 2: '部分退款', + 3: '已退款', + }; + return statusMap[status]; +} + +/** + * @description 退款单退款状态 + * + */ +export function refundStatusFilter(status) { + const statusMap = { + 0: '待审核', + 1: '商家拒绝', + 2: '退款中', + 3: '退款成功', + 4: '用户退货', + 5: '商家待收货', + 6: '已撤销', + }; + return statusMap[status]; +} + +/** + * @description 支付方式 + */ +export function payTypeFilter(status) { + const statusMap = { + weixin: '微信', + alipay: '支付宝', + yue: '余额', + }; + return statusMap[status]; +} + +/** + * @description 订单类型 + */ +export function orderTypeFilter(status) { + const statusMap = { + 0: '普通订单', + 1: '视频号订单', + 2: '秒杀订单', + 5: '云盘订单', + 6: '卡密订单', + }; + return statusMap[status]; +} diff --git a/src/filters/product.js b/src/filters/product.js new file mode 100644 index 0000000..f15763f --- /dev/null +++ b/src/filters/product.js @@ -0,0 +1,88 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +/** + * @description 直播商品审核状态 + */ +export function liveReviewStatusFilter(status) { + const statusMap = { + 0: '商户创建/撤回', + 1: '平台待审核/商户重新提交审核', + 2: '平台审核通过/微信审核中', + 3: '平台审核失败', + 4: '微信审核成功', + 5: '微信审核失败', + }; + return statusMap[status]; +} + +/** + * @description 直播状态 + */ +export function broadcastStatusFilter(status) { + const statusMap = { + 101: '直播中', + 102: '未开始', + 103: '已结束', + 104: '禁播', + 105: '暂停', + 106: '异常', + 107: '已过期', + }; + return statusMap[status]; +} + +/** + * @description 直播间审核状态 + */ +export function roomReviewStatusFilter(status) { + const statusMap = { + 0: '平台待审核', + 1: '平台审核失败', + 2: '微信审核失败', + 3: '微信审核成功', + }; + return statusMap[status]; +} + +/** + * @description 直播间开启关闭状态 + */ +export function roomShowFilter(status) { + const statusMap = { + 0: '开启', + 1: '关闭', + }; + return statusMap[status]; +} + +/** + * @description 直播商品价格类型 + */ +export function priceTypeFilter(status) { + const statusMap = { + 1: '一口价', + 2: '价格区间', + 3: '折扣价', + }; + return statusMap[status]; +} + +/** + * @description 商品类型 + */ +export function productTpyeFilter(status) { + const statusMap = { + 0: '普通商品', + 5: '云盘商品', + 6: '卡密商品', + }; + return statusMap[status]; +} diff --git a/src/filters/user.js b/src/filters/user.js new file mode 100644 index 0000000..ce7bd8b --- /dev/null +++ b/src/filters/user.js @@ -0,0 +1,53 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +//会员过滤器 + +/** + * 等级 + */ +export function levelFilter(status) { + if (!status) { + return ''; + } + let arrayList = JSON.parse(localStorage.getItem('levelKey')); + let array = arrayList.filter((item) => status === item.id); + if (array.length) { + return array[0].name; + } else { + return ''; + } +} + +/** + * 用户注册类型 + */ +export function registerTypeFilter(status) { + const statusMap = { + wechat: '公众号', + routine: '小程序', + h5: 'H5', + iosWx: '微信ios', + androidWx: '微信安卓', + ios: 'ios', + }; + return statusMap[status]; +} + +/** + * 用户类型 + */ +export function filterIsPromoter(status) { + const statusMap = { + true: '推广员', + false: '普通用户', + }; + return statusMap[status]; +} diff --git a/src/filters/wx.js b/src/filters/wx.js new file mode 100644 index 0000000..87392ac --- /dev/null +++ b/src/filters/wx.js @@ -0,0 +1,39 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- + +//小程序 微信过滤器 +import Cookies from 'js-cookie'; +/** + * @description 小程序所属类目 + */ +export function wxCategoryFilter(status) { + if (!status) { + return ''; + } + if (!Cookies.get('WxCategory')) { + return; + } + let arrayList = JSON.parse(Cookies.get('WxCategory')); + if (arrayList.filter((item) => Number(status) === Number(item.id)).length < 1) { + return ''; + } + return arrayList.filter((item) => Number(status) === Number(item.id))[0].name; +} + +/** + * @description 小程序模板类型 + */ +export function wxTypeFilter(status) { + const statusMap = { + 2: '一次性订阅', + 3: '长期订阅', + }; + return statusMap[status]; +} diff --git a/src/router/full-routers.js b/src/router/full-routers.js index 357f8fe..b0f88a3 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -30,494 +30,93 @@ export default { "menuId": getUUID(), "parentId": 0, "parentName": null, - "name": "课程管理", + "name": "商品", "url": "local-course/resources", "perms": "", "type": 1, "elIcon": "el-icon-menu", "orderNum": 0, "open": null, - list: [] - }, - { - "menuId": getUUID(), - "parentId": 0, - "parentName": null, - "name": "教务管理", - "url": "local-affairs", - "perms": "", - "type": 0, - "elIcon": "el-icon-office-building", - "orderNum": 0, - "open": null, - list: [ - { - "menuId": getUUID(), - "parentId": 2, - "parentName": null, - "name": "年级管理", - "url": "local-affairs/grade", - "perms": "", - "type": 1, - "icon": "log", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentId": 2, - "parentName": null, - "name": "班级管理", - "url": "local-affairs/class", - "perms": "", - "type": 1, - "icon": "log", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentId": 2, - "parentName": null, - "name": "教师管理", - "url": "local-teacher/teacher", - "perms": "", - "type": 1, - "icon": "log", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentId": 0, - "parentName": null, - "name": "学校管理", - "url": "local-school/school", - "perms": "", - "type": 1, - "elIcon": "el-icon-school", - "orderNum": 0, - "open": null, - list: [] - }, - ] - }, - { - "menuId": getUUID(), - "parentId": 0, - "parentName": null, - "name": "活动管理", - "url": "", - "perms": "", - "type": 0, - "elIcon": "el-icon-star-off", - "orderNum": 0, - "open": null, - "list": [ - { - "menuId": getUUID(), - "parentId": 127, - "parentName": null, - "name": "活动管理", - "url": "active-match/active-match-management", - "perms": "", - "type": 1, - "icon": "log", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentId": 127, - "parentName": null, - "name": "报名信息", - "url": "active-match/active-sign-up", - "perms": "", - "type": 1, - "icon": "tubiao", - "orderNum": 0, - "open": null, - "list": [] - }, - // { - // "menuId": getUUID(), - // "parentId": 127, - // "parentName": null, - // "name": "赛事管理", - // "url": "active-match/match-management", - // "perms": "matchManagement", - // "type": 1, - // "icon": "shoucangfill", - // "orderNum": 0, - // "open": null, - // "list": [] - // }, - { - "menuId": getUUID(), - "parentId": 127, - "parentName": null, - "name": "作品审核", - "url": "active-match/works-examine", - "perms": "", - "type": 1, - "icon": "zhedie", - "orderNum": 0, - "open": null, - "list": [] - } - ] - }, - { - "menuId": getUUID(), - "parentId": 0, - "parentName": null, - "name": "教学管理", - "url": "local-teach-manage", - "perms": "", - "type": 0, - "elIcon": "el-icon-notebook-2", - "orderNum": 0, - "open": null, list: [{ "menuId": getUUID(), - "parentId": 2, + "parentId": 0, "parentName": null, - "name": "课程教学", - "url": "course-teach", + "name": "商品管理", + "url": "product/index", "perms": "", "type": 1, - "icon": "log", + "elIcon": "el-icon-menu", "orderNum": 0, "open": null, - "list": [] - }, { - "menuId": getUUID(), - "parentId": 2, - "parentName": null, - "name": "课程评价", - "url": "course-evaluation", - "perms": "", - "type": 1, - "icon": "log", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentId": 2, - "parentName": null, - "name": "期末综评", - "url": "final-evaluation", - "perms": "", - "type": 1, - "icon": "log", - "orderNum": 0, - "open": null, - "list": [] - }, - ] - }, - { - "menuId": 45, - "parentId": 0, - "parentName": null, - "name": "足迹管理", - "url": "", - "perms": "", - "type": 0, - "icon": "dangdifill", - "orderNum": 5, - "open": null, - "list": [ - { - "menuId": 135, - "parentId": 45, - "parentName": null, - "name": "路线管理", - "url": "/footprint-management/footprint-line", - "perms": "", - "type": 1, - "icon": "dangdifill", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": 133, - "parentId": 45, - "parentName": null, - "name": "打卡规则", - "url": "/footprint-management/footprint-rule", - "perms": "", - "type": 1, - "icon": "log", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": 46, - "parentId": 45, - "parentName": null, - "name": "打卡地管理", - "url": "/footprint-management/punch-in-management", - "perms": "", - "type": 1, - "icon": "daohang", - "orderNum": 0, - "open": null, - "list": [] - } - ] - }, - { - "menuId": getUUID(), - "parentId": 45, - "parentName": null, - "name": "作业管理", - "url": "/local-homework/teacher", - "perms": "", - "type": 1, - // "icon": "daohang", - "elIcon":"el-icon-notebook-2", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentName": null, - "name": "教师优秀示范课", - "url": "/local-excellent-teacher-course", - "perms": "", - "type": 1, - "elIcon": "el-icon-medal", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentName": null, - "name": "学生优秀作品展", - "url": "/local-excellent-student-work", - "perms": "", - "type": 1, - "elIcon": "el-icon-medal", - "orderNum": 0, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentName": null, - "name": "系统管理", - "url": "sys", - "perms": null, - "type": 0, - "icon": "system", - "orderNum": 0, - "open": null, - "list": [ - // { - // "menuId": 132, - // "parentId": 1, - // "parentName": null, - // "name": "公告管理", - // "url": "/sys/report-management", - // "perms": "", - // "type": 1, - // "icon": "log", - // "orderNum": 0, - // "open": null, - // "list": [] - // }, - // { - // "menuId": 2, - // "parentId": 1, - // "parentName": null, - // "name": "管理员列表", - // "url": "sys/user", - // "perms": null, - // "type": 1, - // "icon": "admin", - // "orderNum": 1, - // "open": null, - // "list": [] - // }, - { - "menuId": getUUID(), - "parentId": 1, - "parentName": null, - "name": "角色管理", - "url": "sys/role", - "perms": null, - "type": 1, - "icon": "role", - "orderNum": 2, - "open": null, - "list": [] - }, - { - "menuId": getUUID(), - "parentId": 1, - "parentName": null, - "name": "资源管理", - "url": "sys/menu", - "perms": null, - "type": 1, - "icon": "menu", - "orderNum": 3, - "open": null, - "list": [] - }, - // { - // "menuId": 37, - // "parentId": 1, - // "parentName": null, - // "name": "意见反馈", - // "url": "sys/feedback", - // "perms": "", - // "type": 1, - // "icon": "bianji", - // "orderNum": 5, - // "open": null, - // "list": [] - // }, - // { - // "menuId": 29, - // "parentId": 1, - // "parentName": null, - // "name": "系统日志", - // "url": "sys/log", - // "perms": "sys:log:list", - // "type": 1, - // "icon": "log", - // "orderNum": 7, - // "open": null, - // "list": [] - // }, - // { - // "menuId": 40, - // "parentId": 1, - // "parentName": null, - // "name": "常见问题及解答", - // "url": "sys/common-problem", - // "perms": "", - // "type": 1, - // "icon": "bianji", - // "orderNum": 9, - // "open": null, - // "list": [] - // }, - { - "menuId": getUUID(), - "parentId": 1, - "parentName": null, - "name": "组织机构管理", - "url": "sys/org", - "perms": "", - "type": 1, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [] - } - ] - }, - { - "menuId": getUUID(), - "parentName": null, - "name": "统计分析", - "perms": "", - "type": 0, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [{ - "menuId": getUUID(), - "parentName": null, - "name": "区域内学校基本信息统计", - "url": "/local-statistics/region-school", - "perms": "", - "type": 1, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [] - }, { - "menuId": getUUID(), - "parentName": null, - "name": "课程开展情况统计", - "url": "sys/org", - "perms": "", - "type": 1, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [] - }, { - "menuId": getUUID(), - "parentName": null, - "name": "课程完成明细统计", - "url": "sys/org", - "perms": "", - "type": 1, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [] - }, { - "menuId": getUUID(), - "parentName": null, - "name": "作业明细统计", - "url": "sys/org", - "perms": "", - "type": 1, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [] - }, { - "menuId": getUUID(), - "parentName": null, - "name": "评价明细统计", - "url": "sys/org", - "perms": "", - "type": 1, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [] - }, { - "menuId": getUUID(), - "parentName": null, - "name": "优秀示范课程明细统计", - "url": "sys/org", - "perms": "", - "type": 1, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [] - }, { - "menuId": getUUID(), - "parentName": null, - "name": "优秀作品明细统计", - "url": "sys/org", - "perms": "", - "type": 1, - "icon": "bianji", - "orderNum": 10, - "open": null, - "list": [] + list: [] }] }, + // { + // "menuId": getUUID(), + // "parentId": 0, + // "parentName": null, + // "name": "教务管理", + // "url": "local-affairs", + // "perms": "", + // "type": 0, + // "elIcon": "el-icon-office-building", + // "orderNum": 0, + // "open": null, + // list: [ + // { + // "menuId": getUUID(), + // "parentId": 2, + // "parentName": null, + // "name": "年级管理", + // "url": "local-affairs/grade", + // "perms": "", + // "type": 1, + // "icon": "log", + // "orderNum": 0, + // "open": null, + // "list": [] + // }, + // { + // "menuId": getUUID(), + // "parentId": 2, + // "parentName": null, + // "name": "班级管理", + // "url": "local-affairs/class", + // "perms": "", + // "type": 1, + // "icon": "log", + // "orderNum": 0, + // "open": null, + // "list": [] + // }, + // { + // "menuId": getUUID(), + // "parentId": 2, + // "parentName": null, + // "name": "教师管理", + // "url": "local-teacher/teacher", + // "perms": "", + // "type": 1, + // "icon": "log", + // "orderNum": 0, + // "open": null, + // "list": [] + // }, + // { + // "menuId": getUUID(), + // "parentId": 0, + // "parentName": null, + // "name": "学校管理", + // "url": "local-school/school", + // "perms": "", + // "type": 1, + // "elIcon": "el-icon-school", + // "orderNum": 0, + // "open": null, + // list: [] + // }, + // ] + // }, ], "code": 0, "permissions": [] diff --git a/src/views/common/login.vue b/src/views/common/login.vue index 25d4fc9..9c30723 100644 --- a/src/views/common/login.vue +++ b/src/views/common/login.vue @@ -153,7 +153,7 @@ export default { // this.getCaptcha(); }); } else { - this.$api.local_admin + this.$api.mer_admin .loginByAccount({ role: _loginTypeMapper[this.loginType], username: this.dataForm.userName, @@ -183,7 +183,7 @@ export default { }; this.$refs["loginByYZMRef"].validate((valid) => { console.log("验证码登录"); - this.$api.local_admin + this.$api.mer_admin .loginByMobile({ // role: _loginTypeMapper[this.loginType], mobile: this.loginByYZMForm.mobile, @@ -207,7 +207,7 @@ export default { this.$message.error("请输入正确的手机号码"); return; } - this.$api.local_admin.getYZM(this.loginByYZMForm.mobile).then((res) => { + this.$api.mer_admin.getYZM(this.loginByYZMForm.mobile).then((res) => { this.mobileCodeCountDown = 60; this.mobileCodeCountDownTimer = setInterval(() => { this.mobileCodeCountDown--; diff --git a/src/views/modules/active-manage/active-info.vue b/src/views/modules/active-manage/active-info.vue deleted file mode 100644 index aa97f56..0000000 --- a/src/views/modules/active-manage/active-info.vue +++ /dev/null @@ -1,529 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/active-manage/swiper-image.vue b/src/views/modules/active-manage/swiper-image.vue deleted file mode 100644 index 025460b..0000000 --- a/src/views/modules/active-manage/swiper-image.vue +++ /dev/null @@ -1,541 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/active-match/active-match-management.vue b/src/views/modules/active-match/active-match-management.vue deleted file mode 100644 index 8865a78..0000000 --- a/src/views/modules/active-match/active-match-management.vue +++ /dev/null @@ -1,1261 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/active-match/active-sign-up.vue b/src/views/modules/active-match/active-sign-up.vue deleted file mode 100644 index a50292a..0000000 --- a/src/views/modules/active-match/active-sign-up.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/active-match/components/active-match-management.vue b/src/views/modules/active-match/components/active-match-management.vue deleted file mode 100644 index 272c43b..0000000 --- a/src/views/modules/active-match/components/active-match-management.vue +++ /dev/null @@ -1,535 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/active-match/components/active-match-modal.vue b/src/views/modules/active-match/components/active-match-modal.vue deleted file mode 100644 index d0ee7a4..0000000 --- a/src/views/modules/active-match/components/active-match-modal.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - diff --git a/src/views/modules/active-match/components/award-modal.vue b/src/views/modules/active-match/components/award-modal.vue deleted file mode 100644 index 7d319f3..0000000 --- a/src/views/modules/active-match/components/award-modal.vue +++ /dev/null @@ -1,191 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/active-match/components/works-modal.vue b/src/views/modules/active-match/components/works-modal.vue deleted file mode 100644 index 1921628..0000000 --- a/src/views/modules/active-match/components/works-modal.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/active-match/match-management.vue b/src/views/modules/active-match/match-management.vue deleted file mode 100644 index acd42ea..0000000 --- a/src/views/modules/active-match/match-management.vue +++ /dev/null @@ -1,1260 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/active-match/works-examine.vue b/src/views/modules/active-match/works-examine.vue deleted file mode 100644 index 5567eb0..0000000 --- a/src/views/modules/active-match/works-examine.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/app-operate/theme-manage.vue b/src/views/modules/app-operate/theme-manage.vue deleted file mode 100644 index 8576319..0000000 --- a/src/views/modules/app-operate/theme-manage.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - diff --git a/src/views/modules/approval/content/index.vue b/src/views/modules/approval/content/index.vue deleted file mode 100644 index 51348dd..0000000 --- a/src/views/modules/approval/content/index.vue +++ /dev/null @@ -1,672 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/approval/course/index.vue b/src/views/modules/approval/course/index.vue deleted file mode 100644 index 762fb1b..0000000 --- a/src/views/modules/approval/course/index.vue +++ /dev/null @@ -1,409 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/approval/course/popup/detail.vue b/src/views/modules/approval/course/popup/detail.vue deleted file mode 100644 index 763c8ee..0000000 --- a/src/views/modules/approval/course/popup/detail.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/approval/poetry/index.vue b/src/views/modules/approval/poetry/index.vue deleted file mode 100644 index 10efc09..0000000 --- a/src/views/modules/approval/poetry/index.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/approval/popup/approval.vue b/src/views/modules/approval/popup/approval.vue deleted file mode 100644 index 8bf0526..0000000 --- a/src/views/modules/approval/popup/approval.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/content/new-content.vue b/src/views/modules/content/new-content.vue deleted file mode 100644 index feef788..0000000 --- a/src/views/modules/content/new-content.vue +++ /dev/null @@ -1,896 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/content/popup/new-content-see.vue b/src/views/modules/content/popup/new-content-see.vue deleted file mode 100644 index 4c4033c..0000000 --- a/src/views/modules/content/popup/new-content-see.vue +++ /dev/null @@ -1,215 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/content/popup/swiper-image-see.vue b/src/views/modules/content/popup/swiper-image-see.vue deleted file mode 100644 index 223c756..0000000 --- a/src/views/modules/content/popup/swiper-image-see.vue +++ /dev/null @@ -1,223 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/content/swiper-image.vue b/src/views/modules/content/swiper-image.vue deleted file mode 100644 index 8ea8905..0000000 --- a/src/views/modules/content/swiper-image.vue +++ /dev/null @@ -1,838 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/data-dictionary/activity-type.vue b/src/views/modules/data-dictionary/activity-type.vue deleted file mode 100644 index 6bab3f0..0000000 --- a/src/views/modules/data-dictionary/activity-type.vue +++ /dev/null @@ -1,207 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/data-dictionary/components/add-content.vue b/src/views/modules/data-dictionary/components/add-content.vue deleted file mode 100644 index bb54761..0000000 --- a/src/views/modules/data-dictionary/components/add-content.vue +++ /dev/null @@ -1,122 +0,0 @@ - - - diff --git a/src/views/modules/data-dictionary/components/add-foot.vue b/src/views/modules/data-dictionary/components/add-foot.vue deleted file mode 100644 index d311a6c..0000000 --- a/src/views/modules/data-dictionary/components/add-foot.vue +++ /dev/null @@ -1,122 +0,0 @@ - - - diff --git a/src/views/modules/data-dictionary/components/add-poetry.vue b/src/views/modules/data-dictionary/components/add-poetry.vue deleted file mode 100644 index bb54761..0000000 --- a/src/views/modules/data-dictionary/components/add-poetry.vue +++ /dev/null @@ -1,122 +0,0 @@ - - - diff --git a/src/views/modules/data-dictionary/content-type.vue b/src/views/modules/data-dictionary/content-type.vue deleted file mode 100644 index 66436be..0000000 --- a/src/views/modules/data-dictionary/content-type.vue +++ /dev/null @@ -1,610 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/data-dictionary/course-theme.vue b/src/views/modules/data-dictionary/course-theme.vue deleted file mode 100644 index 57147be..0000000 --- a/src/views/modules/data-dictionary/course-theme.vue +++ /dev/null @@ -1,447 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/data-dictionary/footprint-type.vue b/src/views/modules/data-dictionary/footprint-type.vue deleted file mode 100644 index c165993..0000000 --- a/src/views/modules/data-dictionary/footprint-type.vue +++ /dev/null @@ -1,374 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/data-dictionary/handcopy-type.vue b/src/views/modules/data-dictionary/handcopy-type.vue deleted file mode 100644 index 943a935..0000000 --- a/src/views/modules/data-dictionary/handcopy-type.vue +++ /dev/null @@ -1,207 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/data-dictionary/match-type.vue b/src/views/modules/data-dictionary/match-type.vue deleted file mode 100644 index 0c9b3ac..0000000 --- a/src/views/modules/data-dictionary/match-type.vue +++ /dev/null @@ -1,197 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/modules/data-dictionary/poetry-type.vue b/src/views/modules/data-dictionary/poetry-type.vue deleted file mode 100644 index a77f337..0000000 --- a/src/views/modules/data-dictionary/poetry-type.vue +++ /dev/null @@ -1,574 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/footprint-management/components/footprint-line-detail-modal.vue b/src/views/modules/footprint-management/components/footprint-line-detail-modal.vue deleted file mode 100644 index 2eebaff..0000000 --- a/src/views/modules/footprint-management/components/footprint-line-detail-modal.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/footprint-management/components/footprint-line-modal.vue b/src/views/modules/footprint-management/components/footprint-line-modal.vue deleted file mode 100644 index 074324d..0000000 --- a/src/views/modules/footprint-management/components/footprint-line-modal.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/footprint-management/components/footprint-line.vue b/src/views/modules/footprint-management/components/footprint-line.vue deleted file mode 100644 index 499f274..0000000 --- a/src/views/modules/footprint-management/components/footprint-line.vue +++ /dev/null @@ -1,228 +0,0 @@ - - - diff --git a/src/views/modules/footprint-management/components/footprint-vr-table.vue b/src/views/modules/footprint-management/components/footprint-vr-table.vue deleted file mode 100644 index cda6347..0000000 --- a/src/views/modules/footprint-management/components/footprint-vr-table.vue +++ /dev/null @@ -1,256 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/views/modules/footprint-management/footprint-line.vue b/src/views/modules/footprint-management/footprint-line.vue deleted file mode 100644 index 6928626..0000000 --- a/src/views/modules/footprint-management/footprint-line.vue +++ /dev/null @@ -1,217 +0,0 @@ - - - diff --git a/src/views/modules/footprint-management/footprint-rule.vue b/src/views/modules/footprint-management/footprint-rule.vue deleted file mode 100644 index f338861..0000000 --- a/src/views/modules/footprint-management/footprint-rule.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/footprint-management/punch-in-add-or-update.vue b/src/views/modules/footprint-management/punch-in-add-or-update.vue deleted file mode 100644 index aff6eac..0000000 --- a/src/views/modules/footprint-management/punch-in-add-or-update.vue +++ /dev/null @@ -1,413 +0,0 @@ - - - - - diff --git a/src/views/modules/footprint-management/punch-in-management.vue b/src/views/modules/footprint-management/punch-in-management.vue deleted file mode 100644 index 15c8639..0000000 --- a/src/views/modules/footprint-management/punch-in-management.vue +++ /dev/null @@ -1,473 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/modules/footprint-management/punch-in-map.vue b/src/views/modules/footprint-management/punch-in-map.vue deleted file mode 100644 index 26dd26f..0000000 --- a/src/views/modules/footprint-management/punch-in-map.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/modules/integral-statistics/integral-detail.vue b/src/views/modules/integral-statistics/integral-detail.vue deleted file mode 100644 index d648626..0000000 --- a/src/views/modules/integral-statistics/integral-detail.vue +++ /dev/null @@ -1,400 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/integral-statistics/integral-overview.vue b/src/views/modules/integral-statistics/integral-overview.vue deleted file mode 100644 index 028acfc..0000000 --- a/src/views/modules/integral-statistics/integral-overview.vue +++ /dev/null @@ -1,304 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/integral/agreement/integralDescription.vue b/src/views/modules/integral/agreement/integralDescription.vue deleted file mode 100644 index 4326cc5..0000000 --- a/src/views/modules/integral/agreement/integralDescription.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/integral/agreement/redStarCoinDescription.vue b/src/views/modules/integral/agreement/redStarCoinDescription.vue deleted file mode 100644 index 9b5bda8..0000000 --- a/src/views/modules/integral/agreement/redStarCoinDescription.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/integral/agreement/reminder.vue b/src/views/modules/integral/agreement/reminder.vue deleted file mode 100644 index 3ac4d9a..0000000 --- a/src/views/modules/integral/agreement/reminder.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/integral/integralRule.vue b/src/views/modules/integral/integralRule.vue deleted file mode 100644 index 6b957ac..0000000 --- a/src/views/modules/integral/integralRule.vue +++ /dev/null @@ -1,417 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/modules/integral/rank.vue b/src/views/modules/integral/rank.vue deleted file mode 100644 index 479c537..0000000 --- a/src/views/modules/integral/rank.vue +++ /dev/null @@ -1,136 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/modules/integral/redStarCoin.vue b/src/views/modules/integral/redStarCoin.vue deleted file mode 100644 index 8ab6df0..0000000 --- a/src/views/modules/integral/redStarCoin.vue +++ /dev/null @@ -1,289 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/modules/integral/upload.vue b/src/views/modules/integral/upload.vue deleted file mode 100644 index cb43b62..0000000 --- a/src/views/modules/integral/upload.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/job/schedule-add-or-update.vue b/src/views/modules/job/schedule-add-or-update.vue deleted file mode 100644 index f392be6..0000000 --- a/src/views/modules/job/schedule-add-or-update.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - diff --git a/src/views/modules/job/schedule-log.vue b/src/views/modules/job/schedule-log.vue deleted file mode 100644 index fb4b0b4..0000000 --- a/src/views/modules/job/schedule-log.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - diff --git a/src/views/modules/job/schedule.vue b/src/views/modules/job/schedule.vue deleted file mode 100644 index fb8f3de..0000000 --- a/src/views/modules/job/schedule.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - diff --git a/src/views/modules/local-affairs/class-popup/add-or-update.vue b/src/views/modules/local-affairs/class-popup/add-or-update.vue deleted file mode 100644 index aefa5aa..0000000 --- a/src/views/modules/local-affairs/class-popup/add-or-update.vue +++ /dev/null @@ -1,212 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/local-affairs/class.vue b/src/views/modules/local-affairs/class.vue deleted file mode 100644 index 4b4cb91..0000000 --- a/src/views/modules/local-affairs/class.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/modules/local-affairs/grade-popup/add-or-update.vue b/src/views/modules/local-affairs/grade-popup/add-or-update.vue deleted file mode 100644 index 0fcd0e1..0000000 --- a/src/views/modules/local-affairs/grade-popup/add-or-update.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/local-affairs/grade.vue b/src/views/modules/local-affairs/grade.vue deleted file mode 100644 index 094e94b..0000000 --- a/src/views/modules/local-affairs/grade.vue +++ /dev/null @@ -1,103 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/modules/local-homework/school/index.vue b/src/views/modules/local-homework/school/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/modules/local-homework/teacher/index.vue b/src/views/modules/local-homework/teacher/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/modules/local-school/popup/add-or-update.vue b/src/views/modules/local-school/popup/add-or-update.vue deleted file mode 100644 index 03d9959..0000000 --- a/src/views/modules/local-school/popup/add-or-update.vue +++ /dev/null @@ -1,291 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/local-school/school.vue b/src/views/modules/local-school/school.vue deleted file mode 100644 index 0a1ad47..0000000 --- a/src/views/modules/local-school/school.vue +++ /dev/null @@ -1,102 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/modules/local-statistics/region-school/index.vue b/src/views/modules/local-statistics/region-school/index.vue deleted file mode 100644 index 99c5065..0000000 --- a/src/views/modules/local-statistics/region-school/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/modules/local-teacher/popup/add-or-update.vue b/src/views/modules/local-teacher/popup/add-or-update.vue deleted file mode 100644 index c36c277..0000000 --- a/src/views/modules/local-teacher/popup/add-or-update.vue +++ /dev/null @@ -1,223 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/local-teacher/teacher.vue b/src/views/modules/local-teacher/teacher.vue deleted file mode 100644 index 36f977f..0000000 --- a/src/views/modules/local-teacher/teacher.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/modules/oss/oss-config.vue b/src/views/modules/oss/oss-config.vue deleted file mode 100644 index 7220139..0000000 --- a/src/views/modules/oss/oss-config.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - diff --git a/src/views/modules/oss/oss-upload.vue b/src/views/modules/oss/oss-upload.vue deleted file mode 100644 index 53016da..0000000 --- a/src/views/modules/oss/oss-upload.vue +++ /dev/null @@ -1,71 +0,0 @@ - - - diff --git a/src/views/modules/oss/oss.vue b/src/views/modules/oss/oss.vue deleted file mode 100644 index 4fb7a6c..0000000 --- a/src/views/modules/oss/oss.vue +++ /dev/null @@ -1,176 +0,0 @@ - - - diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue new file mode 100644 index 0000000..80f94a6 --- /dev/null +++ b/src/views/modules/product/index.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/popup/add-or-update.vue b/src/views/modules/product/popup/add-or-update.vue new file mode 100644 index 0000000..ed744c0 --- /dev/null +++ b/src/views/modules/product/popup/add-or-update.vue @@ -0,0 +1,792 @@ + + + \ No newline at end of file diff --git a/src/views/modules/service/course-demo-show.vue b/src/views/modules/service/course-demo-show.vue deleted file mode 100644 index 45d2313..0000000 --- a/src/views/modules/service/course-demo-show.vue +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/views/modules/service/course-manage.vue b/src/views/modules/service/course-manage.vue deleted file mode 100644 index c6e8d0c..0000000 --- a/src/views/modules/service/course-manage.vue +++ /dev/null @@ -1,745 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/service/education-manage.vue b/src/views/modules/service/education-manage.vue deleted file mode 100644 index 4d90521..0000000 --- a/src/views/modules/service/education-manage.vue +++ /dev/null @@ -1,474 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/modules/service/handcopy-management.vue b/src/views/modules/service/handcopy-management.vue deleted file mode 100644 index 7e9f088..0000000 --- a/src/views/modules/service/handcopy-management.vue +++ /dev/null @@ -1,401 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/modules/service/new-management.vue b/src/views/modules/service/new-management.vue deleted file mode 100644 index e2cf46a..0000000 --- a/src/views/modules/service/new-management.vue +++ /dev/null @@ -1,566 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/modules/service/poetry-manage.vue b/src/views/modules/service/poetry-manage.vue deleted file mode 100644 index 6233759..0000000 --- a/src/views/modules/service/poetry-manage.vue +++ /dev/null @@ -1,708 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/modules/service/popup/exam-popup.vue b/src/views/modules/service/popup/exam-popup.vue deleted file mode 100644 index 3e9011c..0000000 --- a/src/views/modules/service/popup/exam-popup.vue +++ /dev/null @@ -1,336 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/service/popup/publish-inclass-exercises.vue b/src/views/modules/service/popup/publish-inclass-exercises.vue deleted file mode 100644 index d29e815..0000000 --- a/src/views/modules/service/popup/publish-inclass-exercises.vue +++ /dev/null @@ -1,366 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/modules/service/popup/question-editor/content-editor.vue b/src/views/modules/service/popup/question-editor/content-editor.vue deleted file mode 100644 index f99208a..0000000 --- a/src/views/modules/service/popup/question-editor/content-editor.vue +++ /dev/null @@ -1,392 +0,0 @@ - - - - - - diff --git a/src/views/modules/service/popup/question-editor/editor/DraggableItem.vue b/src/views/modules/service/popup/question-editor/editor/DraggableItem.vue deleted file mode 100644 index 1a4d8df..0000000 --- a/src/views/modules/service/popup/question-editor/editor/DraggableItem.vue +++ /dev/null @@ -1,164 +0,0 @@ - - diff --git a/src/views/modules/service/popup/question-editor/editor/IconsDialog.vue b/src/views/modules/service/popup/question-editor/editor/IconsDialog.vue deleted file mode 100644 index 6fd3799..0000000 --- a/src/views/modules/service/popup/question-editor/editor/IconsDialog.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - diff --git a/src/views/modules/service/popup/question-editor/editor/RightPanel.vue b/src/views/modules/service/popup/question-editor/editor/RightPanel.vue deleted file mode 100644 index a025255..0000000 --- a/src/views/modules/service/popup/question-editor/editor/RightPanel.vue +++ /dev/null @@ -1,1761 +0,0 @@ - - - - - diff --git a/src/views/modules/service/popup/question-editor/editor/TreeNodeDialog.vue b/src/views/modules/service/popup/question-editor/editor/TreeNodeDialog.vue deleted file mode 100644 index 236ed34..0000000 --- a/src/views/modules/service/popup/question-editor/editor/TreeNodeDialog.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/views/modules/service/popup/question-editor/editor/index.vue b/src/views/modules/service/popup/question-editor/editor/index.vue deleted file mode 100644 index 72d1540..0000000 --- a/src/views/modules/service/popup/question-editor/editor/index.vue +++ /dev/null @@ -1,505 +0,0 @@ - - - - - - - diff --git a/src/views/modules/service/popup/question-editor/preview/ProjectForm.vue b/src/views/modules/service/popup/question-editor/preview/ProjectForm.vue deleted file mode 100644 index baca52a..0000000 --- a/src/views/modules/service/popup/question-editor/preview/ProjectForm.vue +++ /dev/null @@ -1,362 +0,0 @@ - - - - - diff --git a/src/views/modules/service/popup/question-editor/preview/index.vue b/src/views/modules/service/popup/question-editor/preview/index.vue deleted file mode 100644 index acf45ae..0000000 --- a/src/views/modules/service/popup/question-editor/preview/index.vue +++ /dev/null @@ -1,150 +0,0 @@ -