From 67da7d5de6c1741639549a33e1cd4d97c1a7ab1f Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 14 Oct 2021 10:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E8=B0=83=E6=95=B4=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/setting.js | 2 +- src/utils/api.js | 350 ++++++++++++++--------------- src/views/course/AddCurriculum.vue | 2 +- src/views/course/assetConfig.vue | 10 +- src/views/course/courseconfig.vue | 9 +- src/views/order/AddOrder.vue | 4 +- src/views/serve/projectAdd.vue | 6 +- vue.config.js | 74 +++--- 8 files changed, 221 insertions(+), 236 deletions(-) diff --git a/src/setting.js b/src/setting.js index a2f02d6..c681878 100644 --- a/src/setting.js +++ b/src/setting.js @@ -28,7 +28,7 @@ const Setting = { /** * 基础配置 * */ - jumpPath, // 跳转路径前缀 + jumpPath, // 判分点系统跳转路径前缀 host, // 请求路径前缀 }; diff --git a/src/utils/api.js b/src/utils/api.js index 6c625e7..8b9e41d 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -1,188 +1,170 @@ -import Setting from '@/setting'; +import Setting from "@/setting"; + let host = Setting.host; -let uploadURL = "http://39.108.250.202:10000"; +let uploadURL = "http://39.108.250.202:9000"; export default { - logins: `${host}/users/users/user/login`, //登录 - verification:`${host}/users/users/user/captcha`,// 验证码图片 - bindPhoneOrEmail:`${host}/users/users/userAccount/bindPhoneOrEmail`,// 绑定手机 - sendPhoneOrEmailCode:`${host} /users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 - - // 订单管理 - orderAdd:`${host}/nakadai/nakadai/order/add`,// 订单添加 - orderDelete:`${host}/nakadai/nakadai/order/delete`,// 删除定单 - orderDetail:`${host}/nakadai/nakadai/order/get`,// 订单详情 - orderList:`${host}/nakadai/nakadai/order/list`,// 订单列表 - orderUpdate:`${host}/nakadai/nakadai/order/update`,// 订单更新 - - renew:`${host}/nakadai/nakadai/orderOther/renew`,// 续费信息管理-post - ship:`${host}/nakadai/nakadai/orderOther/ship`,// 处理时的订单发货管理-post - - - - queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在 - - // 客户管理 - delCustomers: `${host}/nakadai/nakadai/customer/delCustomers`, - updateCustomer: `${host}/nakadai/nakadai/customer/updateCustomer`, - addCustomer: `${host}/nakadai/nakadai/customer/addCustomer`, - queryCustomer: `${host}/nakadai/nakadai/customer/queryCustomer`, - queryCustomerDetails: `${host}/nakadai/nakadai/customer/queryCustomerDetails`, - saveOrUpdate:`${host}/data/data/role/saveOrUpdate`, - doAssign:`${host}/data/data/permission/doAssign`, - updateCustomerByRoleId:`${host}/nakadai/nakadai/customer/updateCustomerByRoleId`, - - resetPwdCustomer: `${host}/nakadai/nakadai/customer/resetPwd`, - queryCustomerIsExists: `${host}/nakadai/nakadai/customer/queryCustomerIsExists`, - updateEnabled: `${host}/nakadai/nakadai/customer/updateEnabled`, - queryCustomerIndustryClass: `${host}/nakadai/nakadai/hrIndustryClass/queryIndustryClass`, - queryCustomerIndustry: `${host}/nakadai/nakadai/hrIndustry/queryIndustry`, - querySchoolData: `${host}/nakadai/nakadai/school/querySchool`, - queryPhone: `${host}/liuwanr/user/queryPhone`, - queryPlatform: `${host}/liuwanr/userInfo/queryPlatform`, - - // 用户管理 - delUserAccounts: `${host}/users/users/userAccount/delUserAccounts`, - queryUserInfoDetails: `${host}/users/users/userAccount/queryUserInfoDetails`, - - queryUserInfoList: `${host}/users/users/userAccount/queryUserInfoList`, - resetPwd: `${host}/users/users/userAccount/resetPwd`, - selectAccountDetail: `${host}/users/users/userAccount/selectAccountDetail`, - selectUserSysBind: `${host}/users/users/userAccount/selectUserSysBind`, - updatePersonCenter: `${host}/users/users/userAccount/updatePersonCenter`, - updateUserAvatars: `${host}/users/users/userAccount/updateUserAvatars`, - userInfo: `${host}/users/users/userAccount/userInfo`, - // bindPhoneOrEmail: `${host}/users/users/userAccount/bindPhoneOrEmail`, - // sendPhoneOrEmailCode: `${host}/users/users/userAccount/sendPhoneOrEmailCode`, - updateAccountEnable: `${host}/users/users/userAccount/updateAccountEnable`, - updateAccountAllEnable: `${host}/users/users/userAccount/updateAccountAllEnable`, - examinePassword: `${host}/users/users/userAccount/examinePassword`, - - queryOrder: `${host}/liuwanr/order/queryOrder`, //查询订单 - queryOrderDetails: `${host}/liuwanr/order/queryOrderDetails`, //查询订单详情 - queryOrderCustomer: `${host}/liuwanr/order/queryOrderCustomer`, //查询订单客户 - - queryOrderCustomerContact: `${host}/liuwanr/order/queryOrderCustomerContact`, //查询订单客户联系人 - - addOrder: `${host}/liuwanr/order/addOrder`, //添加订单 - updateOrder: `${host}/liuwanr/order/updateOrder`, //编辑订单 - deleteOrder: `${host}/liuwanr/order/deleteOrder`, //删除订单 - bindingApplication: `${host}/liuwanr/order/bindingApplicationPermissions`, //绑定应用权限 - queryCoursePermissions: `${host}/liuwanr/order/queryCoursePermissions`, //查询应用权限 - queryCourseList: `${host}/liuwanr/order/queryCourseList`, //查询订单课程列表 - isDeliverGoods: `${host}/liuwanr/order/isDeliverGoods`, //是否上架课程 - - //服务配置 - deleteServiceConfig: `${host}/liuwanr/serviceConfig/deleteServiceConfig`, //删除服务配置 - updateServiceConfig: `${host}/liuwanr/serviceConfig/updateServiceConfig`, //更新服务配置 - addServiceConfig: `${host}/liuwanr/serviceConfig/addServiceConfig`, //添加服务配置 - queryServiceConfigDetails: `${host}/liuwanr/serviceConfig/queryServiceConfigDetails`, //查询服务配置详情 - queryServiceConfig: `${host}/nakadai/serviceConfiguration/getAllService`, //查询服务配置 - // 项目管理 - avgValues: `${host}/occupationlab/projectManage/avgValues`, // 平均分分配值 - deleteProjectManage: `${host}/occupationlab/projectManage/deleteProjectManage`, // 新增项目管理 - getProjectBySystemId: `${host}/occupationlab/projectManage/getProjectBySystemId`, // 根据系统id获取全部项目 - queryNameIsExist: `${host}/occupationlab/projectManage/queryNameIsExist`, // 新增/编辑项目管理名称判重 - queryProjectManage: `${host}/occupationlab/projectManage/queryProjectManage`, // 项目管理列表(分页、筛选) - updateIsOpen: `${host}/occupationlab/projectManage/updateIsOpen`, // 更新开启状态 - getProjectDetail: `${host}/occupationlab/projectManage/getProjectDetail`, // 根据项目id查询详情 - addProjectManage: `${host}/occupationlab/projectManage/addProjectManage`, // 新增项目管理 - updateProjectManage: `${host}/occupationlab/projectManage/updateProjectManage`, // 修改项目管理 - copyProjectManage: `${host}/occupationlab/projectManage/copyProjectManage`, // 复制项目管理 - // 判分点 - getBcJudgmentPoint: `${host}/judgment/bcJudgmentPoint/getBcJudgmentPoint`, // 获取编程类判分点列表(分页) - getLcJudgmentPoint: `${host}/judgment/lcJudgmentPoint/queryAllJudgmentPoint`, // 获取流程类判分点列表(分页) - addProjectJudgment: `${host}occupationlab/projectJudgment/addProjectJudgment`, // 添加项目管理、判分点中间表 - updateProjectJudgment: `${host}occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新 - deleteProjectJudgment: `${host}occupationlab/projectJudgment/deleteProjectJudgment`, // 判分点中间表批量删除 - - // 课程管理三级联查 - courseDiscipline: `${host}/nakadai/nakadai/subject/courseDiscipline`, //课程学科类别 - courseProfessionalClass: `${host}/nakadai/nakadai/subject/courseProfessionalClass`, //课程专业类 - courseProfessional: `${host}/nakadai/nakadai/subject/courseProfessional`, //课程专业 - //课程管理 - curriculumList: `${host}/nakadai/nakadai/curriculum/curriculumList`, //课程列表 - createCurriculum: `${host}/nakadai/nakadai/curriculum/createCurriculum`, //创建课程 - curriculumDetail: `${host}/nakadai/nakadai/curriculum/curriculumDetail`, //课程详情 - modifyCourse: `${host}/nakadai/nakadai/curriculum/modifyCourse`, //编辑课程 - delCourse: `${host}/nakadai/nakadai/curriculum/delCourse`, //单个、批量删除课程 - isShelves: `${host}/nakadai/nakadai/curriculum/isShelves`, //上下架课程 - getInternalProjectBySystemId: `${host}/occupationlab/projectManage/getInternalProjectBySystemId`, //根据系统id、项目权限获取系统内置项目 - // 课程章节管理 - addChapter: `${host}/nakadai/curriculum/chapter/addChapter`, //添加章节 - editChapter: `${host}/nakadai/curriculum/chapter/editChapter`, //修改章节 - deleteChapter: `${host}/nakadai/curriculum/chapter/deleteChapter`, //根据id删除章节 - queryChaptersAndSubsections: `${host}/nakadai/curriculum/chapter/queryChaptersAndSubsections`, //根据课程id查询章节小节,树状结构 - reorder: `${host}/nakadai/curriculum/chapter/reorder`, //编辑排序 - // 课程小节管理 - addSubsection: `${host}/nakadai/curriculum/subsection/addSubsection`, //添加小节 - deleteSubsection: `${host}/nakadai/curriculum/subsection/deleteSubsection`, //根据id删除小节 - editSubsection: `${host}/nakadai/curriculum/subsection/editSubsection`, //修改小节 - getSubsection: `${host}/nakadai/curriculum/subsection/getSubsection`, //根据小节id获取预览文件地址 - - - // 阿里云文件/视频管理 - fileDeletion: `${uploadURL}/oss/manage/fileDeletion`, // 删除OSS文件 - fileupload: `${uploadURL}/oss/manage/fileUpload`, // 文件上传 - getPlayAuth: `${uploadURL}/oss/manage/getPlayAuth`, // 获取播放凭证 - - - - queryProvince: `${host}/nakadai/nakadai/province/queryProvince`, //查询省份 - queryCity: `${host}/nakadai/nakadai/city/queryCity`, //查询城市 - - - - - - - - - - - - - - - - - - queryCourseDiscipline: `${host}/nakadai/nakadai/discipline/queryDiscipline`, //查询课程学科 - queryCourseProfessionalClass: `${host}/nakadai/nakadai/professionalClass/queryProfessionalClass`, //查询专业类 - queryCourseProfessional: `${host}/nakadai/nakadai/professional/queryProfessional`, //查询专业 - queryAppConfig: `${host}/liuwanr/course/queryAppConfig`, //查询应用配置 - queryTrainingConfig: `${host}/liuwanr/course/queryConfig`, //查询实训配置 - deleteTrainingConfig: `${host}/liuwanr/course/deleteTrainingConfig`, //删除实训配置 - isShow: `${host}/liuwanr/course/isShow`, //是否展示项目控制 - queryCourseDetailsTC: `${host}/liuwanr/course/queryCourseDetailsTC`, //查询课程详情课程权限 - - queryLinkDetails: `${host}/liuwanr/course/queryLinkDetails`, //查询环节详情 - addCourseLink: `${host}/liuwanr/course/addCourseLink`, //添加课程环节 - updateLink: `${host}/liuwanr/course/updateLink`, //更新环节 - - uploadFiles: `${host}/liuwanr/aliyun/uploadFiles`, //上传文件 - downloadFiles: `${host}/liuwanr/aliyun/downloadFiles`, //下载文件 - - // 数据管理 - getIdQueryTable:`${host}/data/data/table/getIdQueryTable`, - getTableByClassification:`${host}/data/data/table/getTableByClassification`, - getTableByCondition:`${host}/data/data/table/getTableByCondition`, - originalList:`${host}/data/data/table/originalList`, - originalListById:`${host}/data/data/table/originalListById`, - saveCategory:`${host}/data/data/table/saveCategory`, - saveTable:`${host}/data/data/table/saveTable`, - updateCategory:`${host}/data/data/table/updateCategory`, - deleteCategory:`${host}/data/data/table/deleteCategory`, - deleteTable:`${host}/data/data/table/deleteTable`, - previewData:`${host}/data/data/preview`, - staticPreview:`${host}/data/data/staticPreview`, - - // 产品管理 - deleteProduct:`${host}/data/data/product/delete`, - findById:`${host}/data/data/product/findById`, - listByEntity:`${host}/data/data/product/listByEntity`, - saveProduct:`${host}/data/data/product/save`, - updateProduct:`${host}/data/data/product/update`, - saveRecord:`${host}/data/data/dataRecord/saveRecord`, -} \ No newline at end of file + logins: `${host}/users/users/user/login`, //登录 + verification: `${host}/users/users/user/captcha`,// 验证码图片 + bindPhoneOrEmail: `${host}/users/users/userAccount/bindPhoneOrEmail`,// 绑定手机 + sendPhoneOrEmailCode: `${host} /users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 + + // 订单管理 + orderAdd: `${host}/nakadai/nakadai/order/add`,// 订单添加 + orderDelete: `${host}/nakadai/nakadai/order/delete`,// 删除定单 + orderDetail: `${host}/nakadai/nakadai/order/get`,// 订单详情 + orderList: `${host}/nakadai/nakadai/order/list`,// 订单列表 + orderUpdate: `${host}/nakadai/nakadai/order/update`,// 订单更新 + renew: `${host}/nakadai/nakadai/orderOther/renew`,// 续费信息管理-post + ship: `${host}/nakadai/nakadai/orderOther/ship`,// 处理时的订单发货管理-post + + queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在 + + // 客户管理 + delCustomers: `${host}/nakadai/nakadai/customer/delCustomers`, + updateCustomer: `${host}/nakadai/nakadai/customer/updateCustomer`, + addCustomer: `${host}/nakadai/nakadai/customer/addCustomer`, + queryCustomer: `${host}/nakadai/nakadai/customer/queryCustomer`, + queryCustomerDetails: `${host}/nakadai/nakadai/customer/queryCustomerDetails`, + saveOrUpdate: `${host}/data/data/role/saveOrUpdate`, + doAssign: `${host}/data/data/permission/doAssign`, + updateCustomerByRoleId: `${host}/nakadai/nakadai/customer/updateCustomerByRoleId`, + + resetPwdCustomer: `${host}/nakadai/nakadai/customer/resetPwd`, + queryCustomerIsExists: `${host}/nakadai/nakadai/customer/queryCustomerIsExists`, + updateEnabled: `${host}/nakadai/nakadai/customer/updateEnabled`, + queryCustomerIndustryClass: `${host}/nakadai/nakadai/hrIndustryClass/queryIndustryClass`, + queryCustomerIndustry: `${host}/nakadai/nakadai/hrIndustry/queryIndustry`, + querySchoolData: `${host}/nakadai/nakadai/school/querySchool`, + queryPhone: `${host}/liuwanr/user/queryPhone`, + queryPlatform: `${host}/liuwanr/userInfo/queryPlatform`, + + // 用户管理 + delUserAccounts: `${host}/users/users/userAccount/delUserAccounts`, + queryUserInfoDetails: `${host}/users/users/userAccount/queryUserInfoDetails`, + + queryUserInfoList: `${host}/users/users/userAccount/queryUserInfoList`, + resetPwd: `${host}/users/users/userAccount/resetPwd`, + selectAccountDetail: `${host}/users/users/userAccount/selectAccountDetail`, + selectUserSysBind: `${host}/users/users/userAccount/selectUserSysBind`, + updatePersonCenter: `${host}/users/users/userAccount/updatePersonCenter`, + updateUserAvatars: `${host}/users/users/userAccount/updateUserAvatars`, + userInfo: `${host}/users/users/userAccount/userInfo`, + // bindPhoneOrEmail: `${host}/users/users/userAccount/bindPhoneOrEmail`, + // sendPhoneOrEmailCode: `${host}/users/users/userAccount/sendPhoneOrEmailCode`, + updateAccountEnable: `${host}/users/users/userAccount/updateAccountEnable`, + updateAccountAllEnable: `${host}/users/users/userAccount/updateAccountAllEnable`, + examinePassword: `${host}/users/users/userAccount/examinePassword`, + + queryOrder: `${host}/liuwanr/order/queryOrder`, //查询订单 + queryOrderDetails: `${host}/liuwanr/order/queryOrderDetails`, //查询订单详情 + queryOrderCustomer: `${host}/liuwanr/order/queryOrderCustomer`, //查询订单客户 + + queryOrderCustomerContact: `${host}/liuwanr/order/queryOrderCustomerContact`, //查询订单客户联系人 + + addOrder: `${host}/liuwanr/order/addOrder`, //添加订单 + updateOrder: `${host}/liuwanr/order/updateOrder`, //编辑订单 + deleteOrder: `${host}/liuwanr/order/deleteOrder`, //删除订单 + bindingApplication: `${host}/liuwanr/order/bindingApplicationPermissions`, //绑定应用权限 + queryCoursePermissions: `${host}/liuwanr/order/queryCoursePermissions`, //查询应用权限 + queryCourseList: `${host}/liuwanr/order/queryCourseList`, //查询订单课程列表 + isDeliverGoods: `${host}/liuwanr/order/isDeliverGoods`, //是否上架课程 + + //服务配置 + deleteServiceConfig: `${host}/liuwanr/serviceConfig/deleteServiceConfig`, //删除服务配置 + updateServiceConfig: `${host}/liuwanr/serviceConfig/updateServiceConfig`, //更新服务配置 + addServiceConfig: `${host}/liuwanr/serviceConfig/addServiceConfig`, //添加服务配置 + queryServiceConfigDetails: `${host}/liuwanr/serviceConfig/queryServiceConfigDetails`, //查询服务配置详情 + queryServiceConfig: `${host}/nakadai/serviceConfiguration/getAllService`, //查询服务配置 + // 项目管理 + avgValues: `${host}/occupationlab/projectManage/avgValues`, // 平均分分配值 + deleteProjectManage: `${host}/occupationlab/projectManage/deleteProjectManage`, // 新增项目管理 + getProjectBySystemId: `${host}/occupationlab/projectManage/getProjectBySystemId`, // 根据系统id获取全部项目 + queryNameIsExist: `${host}/occupationlab/projectManage/queryNameIsExist`, // 新增/编辑项目管理名称判重 + queryProjectManage: `${host}/occupationlab/projectManage/queryProjectManage`, // 项目管理列表(分页、筛选) + updateIsOpen: `${host}/occupationlab/projectManage/updateIsOpen`, // 更新开启状态 + getProjectDetail: `${host}/occupationlab/projectManage/getProjectDetail`, // 根据项目id查询详情 + addProjectManage: `${host}/occupationlab/projectManage/addProjectManage`, // 新增项目管理 + updateProjectManage: `${host}/occupationlab/projectManage/updateProjectManage`, // 修改项目管理 + copyProjectManage: `${host}/occupationlab/projectManage/copyProjectManage`, // 复制项目管理 + // 判分点 + getBcJudgmentPoint: `${host}/judgment/bcJudgmentPoint/getBcJudgmentPoint`, // 获取编程类判分点列表(分页) + getLcJudgmentPoint: `${host}/judgment/lcJudgmentPoint/queryAllJudgmentPoint`, // 获取流程类判分点列表(分页) + addProjectJudgment: `${host}occupationlab/projectJudgment/addProjectJudgment`, // 添加项目管理、判分点中间表 + updateProjectJudgment: `${host}occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新 + deleteProjectJudgment: `${host}occupationlab/projectJudgment/deleteProjectJudgment`, // 判分点中间表批量删除 + + // 课程管理三级联查 + courseDiscipline: `${host}/nakadai/nakadai/subject/courseDiscipline`, //课程学科类别 + courseProfessionalClass: `${host}/nakadai/nakadai/subject/courseProfessionalClass`, //课程专业类 + courseProfessional: `${host}/nakadai/nakadai/subject/courseProfessional`, //课程专业 + //课程管理 + curriculumList: `${host}/nakadai/nakadai/curriculum/curriculumList`, //课程列表 + createCurriculum: `${host}/nakadai/nakadai/curriculum/createCurriculum`, //创建课程 + curriculumDetail: `${host}/nakadai/nakadai/curriculum/curriculumDetail`, //课程详情 + modifyCourse: `${host}/nakadai/nakadai/curriculum/modifyCourse`, //编辑课程 + delCourse: `${host}/nakadai/nakadai/curriculum/delCourse`, //单个、批量删除课程 + isShelves: `${host}/nakadai/nakadai/curriculum/isShelves`, //上下架课程 + getInternalProjectBySystemId: `${host}/occupationlab/projectManage/getInternalProjectBySystemId`, //根据系统id、项目权限获取系统内置项目 + // 课程章节管理 + addChapter: `${host}/nakadai/curriculum/chapter/addChapter`, //添加章节 + editChapter: `${host}/nakadai/curriculum/chapter/editChapter`, //修改章节 + deleteChapter: `${host}/nakadai/curriculum/chapter/deleteChapter`, //根据id删除章节 + queryChaptersAndSubsections: `${host}/nakadai/curriculum/chapter/queryChaptersAndSubsections`, //根据课程id查询章节小节,树状结构 + reorder: `${host}/nakadai/curriculum/chapter/reorder`, //编辑排序 + // 课程小节管理 + addSubsection: `${host}/nakadai/curriculum/subsection/addSubsection`, //添加小节 + deleteSubsection: `${host}/nakadai/curriculum/subsection/deleteSubsection`, //根据id删除小节 + editSubsection: `${host}/nakadai/curriculum/subsection/editSubsection`, //修改小节 + getSubsection: `${host}/nakadai/curriculum/subsection/getSubsection`, //根据小节id获取预览文件地址 + + + // 阿里云文件/视频管理 + fileDeletion: `${uploadURL}/oss/manage/fileDeletion`, // 删除OSS文件 + fileupload: `${uploadURL}/oss/manage/fileupload`, // 文件上传 + getPlayAuth: `${uploadURL}/oss/manage/getPlayAuth`, // 获取播放凭证 + + + queryProvince: `${host}/nakadai/nakadai/province/queryProvince`, //查询省份 + queryCity: `${host}/nakadai/nakadai/city/queryCity`, //查询城市 + + queryCourseDiscipline: `${host}/nakadai/nakadai/discipline/queryDiscipline`, //查询课程学科 + queryCourseProfessionalClass: `${host}/nakadai/nakadai/professionalClass/queryProfessionalClass`, //查询专业类 + queryCourseProfessional: `${host}/nakadai/nakadai/professional/queryProfessional`, //查询专业 + + queryAppConfig: `${host}/liuwanr/course/queryAppConfig`, //查询应用配置 + queryTrainingConfig: `${host}/liuwanr/course/queryConfig`, //查询实训配置 + deleteTrainingConfig: `${host}/liuwanr/course/deleteTrainingConfig`, //删除实训配置 + isShow: `${host}/liuwanr/course/isShow`, //是否展示项目控制 + queryCourseDetailsTC: `${host}/liuwanr/course/queryCourseDetailsTC`, //查询课程详情课程权限 + + queryLinkDetails: `${host}/liuwanr/course/queryLinkDetails`, //查询环节详情 + addCourseLink: `${host}/liuwanr/course/addCourseLink`, //添加课程环节 + updateLink: `${host}/liuwanr/course/updateLink`, //更新环节 + + uploadFiles: `${host}/liuwanr/aliyun/uploadFiles`, //上传文件 + downloadFiles: `${host}/liuwanr/aliyun/downloadFiles`, //下载文件 + + // 数据管理 + getIdQueryTable: `${host}/data/data/table/getIdQueryTable`, + getTableByClassification: `${host}/data/data/table/getTableByClassification`, + getTableByCondition: `${host}/data/data/table/getTableByCondition`, + originalList: `${host}/data/data/table/originalList`, + originalListById: `${host}/data/data/table/originalListById`, + saveCategory: `${host}/data/data/table/saveCategory`, + saveTable: `${host}/data/data/table/saveTable`, + updateCategory: `${host}/data/data/table/updateCategory`, + deleteCategory: `${host}/data/data/table/deleteCategory`, + deleteTable: `${host}/data/data/table/deleteTable`, + previewData: `${host}/data/data/preview`, + staticPreview: `${host}/data/data/staticPreview`, + + // 产品管理 + deleteProduct: `${host}/data/data/product/delete`, + findById: `${host}/data/data/product/findById`, + listByEntity: `${host}/data/data/product/listByEntity`, + saveProduct: `${host}/data/data/product/save`, + updateProduct: `${host}/data/data/product/update`, + saveRecord: `${host}/data/data/dataRecord/saveRecord` +}; \ No newline at end of file diff --git a/src/views/course/AddCurriculum.vue b/src/views/course/AddCurriculum.vue index 69301a0..730c1f2 100644 --- a/src/views/course/AddCurriculum.vue +++ b/src/views/course/AddCurriculum.vue @@ -417,7 +417,7 @@ export default { this.$message.warning("当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!"); }, uploadSuccess(res, file, fileList) { // 文件上传成功时的钩子 - this.form.coverUrl = res.filesResult.fileUrl; + this.form.coverUrl = res.data.filesResult.fileUrl; }, uploadError(err, file, fileList) { // 文件上传失败时的钩子 this.$message({ diff --git a/src/views/course/assetConfig.vue b/src/views/course/assetConfig.vue index 9fad8ce..64808fc 100644 --- a/src/views/course/assetConfig.vue +++ b/src/views/course/assetConfig.vue @@ -324,12 +324,12 @@ export default { ); }, uploadSuccess(res, file, fileList) { - console.log(res); + let { fileId, fileType, fileUrl, ossFileName } = res.data.filesResult; this.uploading = false; - this.fileId = res.filesResult.fileId; - this.fileType = res.filesResult.fileType; - this.fileUrl = res.filesResult.fileUrl; - this.fileName = res.filesResult.ossFileName; + this.fileId = fileId; + this.fileType = fileType; + this.fileUrl = fileUrl; + this.fileName = ossFileName; }, uploadError(err, file, fileList) { this.$message({ diff --git a/src/views/course/courseconfig.vue b/src/views/course/courseconfig.vue index bbf7a19..464f07b 100644 --- a/src/views/course/courseconfig.vue +++ b/src/views/course/courseconfig.vue @@ -307,11 +307,12 @@ export default { ); }, uploadSuccess(res, file, fileList) { + let { fileId, fileType, fileUrl, ossFileName } = res.data.filesResult; this.uploading = false; - this.fileId = res.filesResult.fileId; - this.fileType = res.filesResult.fileType; - this.fileUrl = res.filesResult.fileUrl; - this.fileName = res.filesResult.ossFileName; + this.fileId = fileId; + this.fileType = fileType; + this.fileUrl = fileUrl; + this.fileName = ossFileName; }, uploadError(err, file, fileList) { this.$message({ diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index b8f6058..3fde1ec 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -1355,8 +1355,8 @@ export default { }, // 上传成功 - uploadSuccess(response, file, fileList) { - this.contract.contractFile = response.filesResult.fileUrl; + uploadSuccess(res, file, fileList) { + this.contract.contractFile = res.data.filesResult.fileUrl; }, // 上传报错 uploadError(err, file, fileList) { diff --git a/src/views/serve/projectAdd.vue b/src/views/serve/projectAdd.vue index 7eb8e6c..7904c28 100644 --- a/src/views/serve/projectAdd.vue +++ b/src/views/serve/projectAdd.vue @@ -236,7 +236,6 @@ export default { founder: 0, // 创建人角色(0、系统 1、老师) projectName: "", // 项目名称 permissions: 0, // 项目权限(0、练习 1、考核 2、竞赛) - schoolId: Setting.schoolId, systemId: this.$route.query.systemId, // 系统id hintOpen: 0, // 实验提示是否开启(0开启 1不开启 默认0) experimentHint: "", // 实验提示 @@ -336,11 +335,14 @@ export default { }, getInfoData() { // 获取详情数据 if (!this.isToPoint) { - this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}&schoolId=${this.projectManage.schoolId}`).then(res => { + this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}`).then(res => { if (res.status === 200) { let { projectManage, projectJudgmentVos } = res; this.projectManage = projectManage; this.projectJudgmentData = projectJudgmentVos; + this.projectJudgmentData.forEach((e, i) => { + e.sort = i + 1; + }); } else { this.$message.warning(res.message); } diff --git a/vue.config.js b/vue.config.js index 4c88413..b43d9d5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,45 +1,45 @@ // 引入等比适配插件 -const px2rem = require('postcss-px2rem') +const px2rem = require("postcss-px2rem"); // 配置基本大小 const postcss = px2rem({ - // 基准大小 baseSize,需要和rem.js中相同 - remUnit: 16 -}) + // 基准大小 baseSize,需要和rem.js中相同 + remUnit: 16 +}); // 使用等比适配插件 module.exports = { - lintOnSave: true, - css: { - loaderOptions: { - postcss: { - plugins: [ - postcss - ] - } + lintOnSave: true, + css: { + loaderOptions: { + postcss: { + plugins: [ + postcss + ] + } + } + }, + publicPath: "./", + outputDir: "dist", + assetsDir: "static", + devServer: { + port: 8086 + // proxy: { + // "/api": { + // target: "http://192.168.0.106:8080", + // changeOrigin: true, + // ws: true, + // pathRewrite: { + // "^/api": "" + // } + // } + // } + }, + configureWebpack: { + // resolve: { + // alias: { + // '@': resolve('src'), + // } + // } } - }, - publicPath: './', -  outputDir: 'dist', -  assetsDir: 'static', - devServer: { - port: 8086 - // proxy: { - // "/api": { - // target: "http://192.168.0.106:8080", - // changeOrigin: true, - // ws: true, - // pathRewrite: { - // "^/api": "" - // } - // } - // } - }, - configureWebpack: { - // resolve: { - // alias: { - // '@': resolve('src'), - // } - // } - } -} \ No newline at end of file +}; \ No newline at end of file