dev_2022-06-14
yujialong 2 years ago
parent 951a69cfad
commit c66744edd9
  1. 18
      src/setting.js
  2. 4
      src/store/index.js
  3. 302
      src/utils/api.js
  4. 5
      src/views/Login.vue
  5. 12
      src/views/match/add/index.vue
  6. 29
      src/views/match/list/index.vue
  7. 450
      src/views/match/list/manage/matchDetail.vue
  8. 14
      src/views/match/manage/index.vue
  9. 2
      src/views/match/manage/notice.vue
  10. 1
      src/views/match/manage/noticeDetail.vue
  11. 2
      src/views/system/manageLog.vue

@ -2,18 +2,18 @@
* 业务配置 * 业务配置
* */ * */
const url = location.host; const url = location.host;
const isDev = process.env.NODE_ENV === 'development'; // 开发环境 const isDev = process.env.NODE_ENV === 'development' // 开发环境
const isPro = url.includes('www.huorantech.cn'); //正式服 const isPro = url.includes('huorantech.cn') //正式服
let jumpPath = `${location.origin}/judgmentPoint` let jumpPath = `${location.origin}/judgmentPoint`
let host = `${location.origin}:9000/` let host = `${location.origin}/`
if (isDev) { if (isDev) {
jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统 jumpPath = 'http://192.168.31.125:8087/' // 本地调试-需要启动本地判分点系统
host = 'http://121.37.12.51:9000/' host = 'http://121.37.12.51/'
// host = 'http://192.168.31.151:9000/'// 榕 host = 'http://192.168.31.151:9000/'// 榕
// host = 'http://192.168.31.137:9000/'// 赓 // host = 'http://192.168.31.137:9000/'// 赓
} else if (isPro) { } else if (isPro) {
jumpPath = "http://www.huorantech.cn/judgmentPoint/"; jumpPath = 'https://www.huorantech.cn/judgmentPoint/'
} }
@ -24,7 +24,7 @@ const Setting = {
platformId: 3, // 平台标识,1职站,2数据平台,3中台,4合伙人 platformId: 3, // 平台标识,1职站,2数据平台,3中台,4合伙人
jumpPath, // 判分点系统跳转路径前缀 jumpPath, // 判分点系统跳转路径前缀
apiBaseURL: host, // 请求路径前缀 apiBaseURL: host, // 请求路径前缀
uploadURL: 'http://121.37.12.51:9000/', // 阿里云oss域名 uploadURL: isDev ? 'http://121.37.12.51/' : location.origin + '/', // 阿里云oss域名
// 平台列表 // 平台列表
platformList: [ platformList: [
{ {

@ -22,6 +22,7 @@ const store = new Vuex.Store({
btns: [], btns: [],
routes: [], routes: [],
customerPage: 1, customerPage: 1,
matchPage: 1
}, },
actions: { actions: {
setSystemId({ state,commit },systemId) { setSystemId({ state,commit },systemId) {
@ -83,6 +84,9 @@ const store = new Vuex.Store({
SET_C_PAGE: (state, page) => { SET_C_PAGE: (state, page) => {
state.customerPage = page state.customerPage = page
}, },
SET_M_PAGE: (state, page) => {
state.matchPage = page
},
} }
}); });

@ -10,12 +10,12 @@ export default {
verification: `${host}users/users/user/captcha`,// 验证码图片 保留host verification: `${host}users/users/user/captcha`,// 验证码图片 保留host
bindPhoneOrEmail: `users/users/userAccount/bindPhoneOrEmail`,// 绑定手机 bindPhoneOrEmail: `users/users/userAccount/bindPhoneOrEmail`,// 绑定手机
sendPhoneOrEmailCode: `users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 sendPhoneOrEmailCode: `users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码
getUserRolesPermissionMenu: `users/user-role/getUserRolesPermissionMenu`, getUserRolesPermissionMenu: `users/users/user-role/getUserRolesPermissionMenu`,
staffTemplate: `http://www.huorantech.cn/template/%E6%89%B9%E9%87%8F%E5%AF%BC%E5%85%A5%E5%91%98%E5%B7%A5%E6%A8%A1%E6%9D%BF.xlsx`, // 后台账号模板 staffTemplate: `http://www.huorantech.cn/template/%E6%89%B9%E9%87%8F%E5%AF%BC%E5%85%A5%E5%91%98%E5%B7%A5%E6%A8%A1%E6%9D%BF.xlsx`, // 后台账号模板
checkEmailOrPhone: `occupationlab/architecture/checkEmailOrPhone`, // 新增学生前:校验手机号或者邮箱 checkEmailOrPhone: `occupationlab/occupationlab/architecture/checkEmailOrPhone`, // 新增学生前:校验手机号或者邮箱
checkWorkNumOrAccount: `occupationlab/architecture/checkWorkNumOrAccount`, // 新增/编辑学生前:校验学号或者学生账号 checkWorkNumOrAccount: `occupationlab/occupationlab/architecture/checkWorkNumOrAccount`, // 新增/编辑学生前:校验学号或者学生账号
// 订单管理 // 订单管理
orderAdd: `nakadai/nakadai/order/add`,// 订单添加 orderAdd: `nakadai/nakadai/order/add`,// 订单添加
@ -27,8 +27,6 @@ export default {
ship: `nakadai/nakadai/orderOther/ship`,// 处理时的订单发货管理-post ship: `nakadai/nakadai/orderOther/ship`,// 处理时的订单发货管理-post
getOrderOtherTime: `nakadai/nakadai/orderOther/getOrderOtherTime`, getOrderOtherTime: `nakadai/nakadai/orderOther/getOrderOtherTime`,
queryAccountIsExist: `liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在
// 客户管理 // 客户管理
delCustomers: `nakadai/nakadai/customer/delCustomers`, delCustomers: `nakadai/nakadai/customer/delCustomers`,
updateCustomer: `nakadai/nakadai/customer/updateCustomer`, updateCustomer: `nakadai/nakadai/customer/updateCustomer`,
@ -49,8 +47,6 @@ export default {
queryCustomerIndustryClass: `nakadai/nakadai/hrIndustryClass/queryIndustryClass`, queryCustomerIndustryClass: `nakadai/nakadai/hrIndustryClass/queryIndustryClass`,
queryCustomerIndustry: `nakadai/nakadai/hrIndustry/queryIndustry`, queryCustomerIndustry: `nakadai/nakadai/hrIndustry/queryIndustry`,
querySchoolData: `nakadai/nakadai/school/querySchool`, querySchoolData: `nakadai/nakadai/school/querySchool`,
queryPhone: `liuwanr/user/queryPhone`,
queryPlatform: `liuwanr/userInfo/queryPlatform`,
getAListOfClientBusinessManagers: `nakadai/nakadai/customer/getAListOfClientBusinessManagers`, getAListOfClientBusinessManagers: `nakadai/nakadai/customer/getAListOfClientBusinessManagers`,
getBusinessManagerOrder: `nakadai/nakadai/customer/getBusinessManagerOrder`, getBusinessManagerOrder: `nakadai/nakadai/customer/getBusinessManagerOrder`,
@ -73,74 +69,55 @@ export default {
viewUserDetailsforNakadai: `users/users/userAccount/viewUserDetailsforNakadai`, viewUserDetailsforNakadai: `users/users/userAccount/viewUserDetailsforNakadai`,
oneClickEnableVerification: `users/users/userAccount/oneClickEnableVerification`, oneClickEnableVerification: `users/users/userAccount/oneClickEnableVerification`,
queryOrder: `liuwanr/order/queryOrder`, //查询订单 queryServiceConfig: `nakadai/nakadai/serviceConfiguration/getAllService`, //查询服务配置
queryOrderDetails: `liuwanr/order/queryOrderDetails`, //查询订单详情
queryOrderCustomer: `liuwanr/order/queryOrderCustomer`, //查询订单客户
queryOrderCustomerContact: `liuwanr/order/queryOrderCustomerContact`, //查询订单客户联系人
addOrder: `liuwanr/order/addOrder`, //添加订单
updateOrder: `liuwanr/order/updateOrder`, //编辑订单
deleteOrder: `liuwanr/order/deleteOrder`, //删除订单
bindingApplication: `liuwanr/order/bindingApplicationPermissions`, //绑定应用权限
queryCoursePermissions: `liuwanr/order/queryCoursePermissions`, //查询应用权限
queryCourseList: `liuwanr/order/queryCourseList`, //查询订单课程列表
isDeliverGoods: `liuwanr/order/isDeliverGoods`, //是否上架课程
//服务配置
deleteServiceConfig: `liuwanr/serviceConfig/deleteServiceConfig`, //删除服务配置
updateServiceConfig: `liuwanr/serviceConfig/updateServiceConfig`, //更新服务配置
addServiceConfig: `liuwanr/serviceConfig/addServiceConfig`, //添加服务配置
queryServiceConfigDetails: `liuwanr/serviceConfig/queryServiceConfigDetails`, //查询服务配置详情
queryServiceConfig: `nakadai/serviceConfiguration/getAllService`, //查询服务配置
// 项目管理 // 项目管理
avgValues: `occupationlab/projectManage/avgValues`, // 平均分分配值 avgValues: `occupationlab/occupationlab/projectManage/avgValues`, // 平均分分配值
deleteProjectManage: `occupationlab/projectManage/deleteProjectManage`, // 新增项目管理 deleteProjectManage: `occupationlab/occupationlab/projectManage/deleteProjectManage`, // 新增项目管理
getProjectBySystemId: `occupationlab/projectManage/getProjectBySystemId`, // 根据系统id获取全部项目 getProjectBySystemId: `occupationlab/occupationlab/projectManage/getProjectBySystemId`, // 根据系统id获取全部项目
queryNameIsExist: `occupationlab/projectManage/queryNameIsExist`, // 新增/编辑项目管理名称判重 queryNameIsExist: `occupationlab/occupationlab/projectManage/queryNameIsExist`, // 新增/编辑项目管理名称判重
queryProjectManage: `occupationlab/projectManage/queryProjectManage`, // 项目管理列表(分页、筛选) queryProjectManage: `occupationlab/occupationlab/projectManage/queryProjectManage`, // 项目管理列表(分页、筛选)
updateIsOpen: `occupationlab/projectManage/updateIsOpen`, // 更新开启状态 updateIsOpen: `occupationlab/occupationlab/projectManage/updateIsOpen`, // 更新开启状态
getProjectDetail: `occupationlab/projectManage/getProjectDetail`, // 根据项目id查询详情 getProjectDetail: `occupationlab/occupationlab/projectManage/getProjectDetail`, // 根据项目id查询详情
saveProjectDraft: `occupationlab/projectManage/saveProjectDraft`, // 新增项目管理 saveProjectDraft: `occupationlab/occupationlab/projectManage/saveProjectDraft`, // 新增项目管理
addProjectManage: `occupationlab/projectManage/addProjectManage`, // 新增项目管理 addProjectManage: `occupationlab/occupationlab/projectManage/addProjectManage`, // 新增项目管理
updateProjectManage: `occupationlab/projectManage/updateProjectManage`, // 修改项目管理 updateProjectManage: `occupationlab/occupationlab/projectManage/updateProjectManage`, // 修改项目管理
editProjectDraft: `occupationlab/projectManage/editProjectDraft`, // 修改项目管理 editProjectDraft: `occupationlab/occupationlab/projectManage/editProjectDraft`, // 修改项目管理
copyProjectManage: `occupationlab/projectManage/copyProjectManage`, // 复制项目管理 copyProjectManage: `occupationlab/occupationlab/projectManage/copyProjectManage`, // 复制项目管理
// 判分点 // 判分点
getBcJudgmentPoint: `judgment/bcJudgmentPoint/getBcJudgmentPoint`, // 获取编程类判分点列表(分页) getBcJudgmentPoint: `judgment/judgment/bcJudgmentPoint/getBcJudgmentPoint`, // 获取编程类判分点列表(分页)
getLcJudgmentPoint: `judgment/lcJudgmentPoint/queryAllJudgmentPoint`, // 获取流程类判分点列表(分页) getLcJudgmentPoint: `judgment/judgment/lcJudgmentPoint/queryAllJudgmentPoint`, // 获取流程类判分点列表(分页)
addProjectJudgment: `occupationlab/projectJudgment/addProjectJudgment`, // 添加项目管理、判分点中间表 addProjectJudgment: `occupationlab/occupationlab/projectJudgment/addProjectJudgment`, // 添加项目管理、判分点中间表
updateProjectJudgment: `occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新 updateProjectJudgment: `occupationlab/occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新
deleteProjectJudgment: `occupationlab/projectJudgment/deleteProjectJudgment`, // 判分点中间表批量删除 deleteProjectJudgment: `occupationlab/occupationlab/projectJudgment/deleteProjectJudgment`, // 判分点中间表批量删除
// 系统后台 // 系统后台
deleteModelClass: `nakadai/model/reference/deleteModelClass`, deleteModelClass: `nakadai/nakadai/model/reference/deleteModelClass`,
modelClassList: `nakadai/model/reference/modelClassList`, modelClassList: `nakadai/nakadai/model/reference/modelClassList`,
saveReferenceCategory: `nakadai/model/reference/saveReferenceCategory`, saveReferenceCategory: `nakadai/nakadai/model/reference/saveReferenceCategory`,
updateModelClass: `nakadai/model/reference/updateModelClass`, updateModelClass: `nakadai/nakadai/model/reference/updateModelClass`,
checkIsShowBySystemId: `nakadai/model/reference/checkIsShowBySystemId`, checkIsShowBySystemId: `nakadai/nakadai/model/reference/checkIsShowBySystemId`,
modifyIsShowState: `nakadai/model/reference/modifyIsShowState`, modifyIsShowState: `nakadai/nakadai/model/reference/modifyIsShowState`,
delModelInfoBySystemId: `nakadai/model/reference/demo/delModelInfoBySystemId`, delModelInfoBySystemId: `nakadai/nakadai/model/reference/demo/delModelInfoBySystemId`,
deleteReferenceDemo: `nakadai/model/reference/demo/deleteReferenceDemo`, deleteReferenceDemo: `nakadai/nakadai/model/reference/demo/deleteReferenceDemo`,
referenceFindById: `nakadai/model/reference/demo/findById`, referenceFindById: `nakadai/nakadai/model/reference/demo/findById`,
saveReferenceDemo: `nakadai/model/reference/demo/saveReferenceDemo`, saveReferenceDemo: `nakadai/nakadai/model/reference/demo/saveReferenceDemo`,
referenceDemoList: `nakadai/model/reference/demo/referenceDemoList`, referenceDemoList: `nakadai/nakadai/model/reference/demo/referenceDemoList`,
getAllModelList: `nakadai/model/reference/demo/getAllModelList`, getAllModelList: `nakadai/nakadai/model/reference/demo/getAllModelList`,
synchronizationMdel: `nakadai/model/reference/demo/synchronizationMdel`, synchronizationMdel: `nakadai/nakadai/model/reference/demo/synchronizationMdel`,
deleteSourceModelCategory: `nakadai/model/category/deleteSourceModelCategory`, deleteSourceModelCategory: `nakadai/nakadai/model/category/deleteSourceModelCategory`,
categorySave: `nakadai/model/category/save`, categorySave: `nakadai/nakadai/model/category/save`,
sourceModelClassification: `nakadai/model/category/sourceModelClassification`, sourceModelClassification: `nakadai/nakadai/model/category/sourceModelClassification`,
updateSourceModelCategory: `nakadai/model/category/updateSourceModelCategory`, updateSourceModelCategory: `nakadai/nakadai/model/category/updateSourceModelCategory`,
bulkDisable: `nakadai/model/demo/bulkDisable`, bulkDisable: `nakadai/nakadai/model/demo/bulkDisable`,
deleteSysModelDemo: `nakadai/model/demo/deleteSysModelDemo`, deleteSysModelDemo: `nakadai/nakadai/model/demo/deleteSysModelDemo`,
modelFindById: `nakadai/model/demo/findById`, modelFindById: `nakadai/nakadai/model/demo/findById`,
saveSysModelDemo: `nakadai/model/demo/saveSysModelDemo`, saveSysModelDemo: `nakadai/nakadai/model/demo/saveSysModelDemo`,
sysModelDemoList: `nakadai/model/demo/sysModelDemoList`, sysModelDemoList: `nakadai/nakadai/model/demo/sysModelDemoList`,
updateSysModelDemo: `nakadai/model/demo/updateSysModelDemo`, updateSysModelDemo: `nakadai/nakadai/model/demo/updateSysModelDemo`,
runPythonCode: `nakadai/model/demo/runPythonCode`, runPythonCode: `nakadai/nakadai/model/demo/runPythonCode`,
getAllModelListBySys: `nakadai/model/demo/getAllModelListBySys`, getAllModelListBySys: `nakadai/nakadai/model/demo/getAllModelListBySys`,
// 课程管理三级联查 // 课程管理三级联查
courseDiscipline: `nakadai/nakadai/subject/courseDiscipline`, //课程学科类别 courseDiscipline: `nakadai/nakadai/subject/courseDiscipline`, //课程学科类别
@ -153,19 +130,19 @@ export default {
modifyCourse: `nakadai/nakadai/curriculum/modifyCourse`, //编辑课程 modifyCourse: `nakadai/nakadai/curriculum/modifyCourse`, //编辑课程
delCourse: `nakadai/nakadai/curriculum/delCourse`, //单个、批量删除课程 delCourse: `nakadai/nakadai/curriculum/delCourse`, //单个、批量删除课程
isShelves: `nakadai/nakadai/curriculum/isShelves`, //上下架课程 isShelves: `nakadai/nakadai/curriculum/isShelves`, //上下架课程
getInternalProjectBySystemId: `occupationlab/projectManage/getInternalProjectBySystemId`, //根据系统id、项目权限获取系统内置项目 getInternalProjectBySystemId: `occupationlab/occupationlab/projectManage/getInternalProjectBySystemId`, //根据系统id、项目权限获取系统内置项目
checkConfig: `nakadai/nakadai/curriculum/checkConfig`, checkConfig: `nakadai/nakadai/curriculum/checkConfig`,
// 课程章节管理 // 课程章节管理
addChapter: `nakadai/curriculum/chapter/addChapter`, //添加章节 addChapter: `nakadai/nakadai/curriculum/chapter/addChapter`, //添加章节
editChapter: `nakadai/curriculum/chapter/editChapter`, //修改章节 editChapter: `nakadai/nakadai/curriculum/chapter/editChapter`, //修改章节
deleteChapter: `nakadai/curriculum/chapter/deleteChapter`, //根据id删除章节 deleteChapter: `nakadai/nakadai/curriculum/chapter/deleteChapter`, //根据id删除章节
queryChaptersAndSubsections: `nakadai/curriculum/chapter/queryChaptersAndSubsections`, //根据课程id查询章节小节,树状结构 queryChaptersAndSubsections: `nakadai/nakadai/curriculum/chapter/queryChaptersAndSubsections`, //根据课程id查询章节小节,树状结构
reorder: `nakadai/curriculum/chapter/reorder`, //编辑排序 reorder: `nakadai/nakadai/curriculum/chapter/reorder`, //编辑排序
// 课程小节管理 // 课程小节管理
addSubsection: `nakadai/curriculum/subsection/addSubsection`, //添加小节 addSubsection: `nakadai/nakadai/curriculum/subsection/addSubsection`, //添加小节
deleteSubsection: `nakadai/curriculum/subsection/deleteSubsection`, //根据id删除小节 deleteSubsection: `nakadai/nakadai/curriculum/subsection/deleteSubsection`, //根据id删除小节
editSubsection: `nakadai/curriculum/subsection/editSubsection`, //修改小节 editSubsection: `nakadai/nakadai/curriculum/subsection/editSubsection`, //修改小节
getSubsection: `nakadai/curriculum/subsection/getSubsection`, //根据小节id获取预览文件地址 getSubsection: `nakadai/nakadai/curriculum/subsection/getSubsection`, //根据小节id获取预览文件地址
// 阿里云文件/视频管理 // 阿里云文件/视频管理
fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件 fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件
@ -181,19 +158,6 @@ export default {
queryCourseProfessionalClass: `nakadai/nakadai/subject/courseProfessionalClass`, //查询专业类 queryCourseProfessionalClass: `nakadai/nakadai/subject/courseProfessionalClass`, //查询专业类
queryCourseProfessional: `nakadai/nakadai/subject/courseProfessional`, //查询专业 queryCourseProfessional: `nakadai/nakadai/subject/courseProfessional`, //查询专业
queryAppConfig: `liuwanr/course/queryAppConfig`, //查询应用配置
queryTrainingConfig: `liuwanr/course/queryConfig`, //查询实训配置
deleteTrainingConfig: `liuwanr/course/deleteTrainingConfig`, //删除实训配置
isShow: `liuwanr/course/isShow`, //是否展示项目控制
queryCourseDetailsTC: `liuwanr/course/queryCourseDetailsTC`, //查询课程详情课程权限
queryLinkDetails: `liuwanr/course/queryLinkDetails`, //查询环节详情
addCourseLink: `liuwanr/course/addCourseLink`, //添加课程环节
updateLink: `liuwanr/course/updateLink`, //更新环节
uploadFiles: `liuwanr/aliyun/uploadFiles`, //上传文件
downloadFiles: `liuwanr/aliyun/downloadFiles`, //下载文件
// 数据管理 // 数据管理
getIdQueryTable: `data/data/table/getIdQueryTable`, getIdQueryTable: `data/data/table/getIdQueryTable`,
getTableByClassification: `data/data/table/getTableByClassification`, getTableByClassification: `data/data/table/getTableByClassification`,
@ -209,7 +173,7 @@ export default {
staticPreview: `data/data/staticPreview`, staticPreview: `data/data/staticPreview`,
editTableName: `data/data/table/editTableName`, editTableName: `data/data/table/editTableName`,
updateTableCommit: `data/data/updateTableCommit`, updateTableCommit: `data/data/updateTableCommit`,
getLevel: `data/category/getLevel`, getLevel: `data/data/category/getLevel`,
getAllTableInfoByCategoryId: `data/data/product/getAllTableInfoByCategoryId`, getAllTableInfoByCategoryId: `data/data/product/getAllTableInfoByCategoryId`,
// 产品管理 // 产品管理
@ -222,93 +186,93 @@ export default {
getAllTableIdBycategoryId: `data/data/product/getAllTableIdBycategoryId`, getAllTableIdBycategoryId: `data/data/product/getAllTableIdBycategoryId`,
// 关键词 // 关键词
addKeyword: `data/keyword/addKeyword`, addKeyword: `data/data/keyword/addKeyword`,
deleteKeyword: `data/keyword/deleteKeyword`, deleteKeyword: `data/data/keyword/deleteKeyword`,
getKeywordByCategoryId: `data/keyword/getKeywordByCategoryId`, getKeywordByCategoryId: `data/data/keyword/getKeywordByCategoryId`,
// 后台账号 // 后台账号
deleteArch: `nakadai/staffAccountArchitecture/delete`, deleteArch: `nakadai/nakadai/staffAccountArchitecture/delete`,
saveArch: `nakadai/staffAccountArchitecture/save`, saveArch: `nakadai/nakadai/staffAccountArchitecture/save`,
treeListArch: `nakadai/staffAccountArchitecture/treeList`, treeListArch: `nakadai/nakadai/staffAccountArchitecture/treeList`,
updateArch: `nakadai/staffAccountArchitecture/update`, updateArch: `nakadai/nakadai/staffAccountArchitecture/update`,
delStaff: `nakadai/backstageStaff/delStaff`, delStaff: `nakadai/nakadai/backstageStaff/delStaff`,
modifyStaff: `nakadai/backstageStaff/modifyStaff`, modifyStaff: `nakadai/nakadai/backstageStaff/modifyStaff`,
saveStaff: `nakadai/backstageStaff/saveStaff`, saveStaff: `nakadai/nakadai/backstageStaff/saveStaff`,
staffDetail: `nakadai/backstageStaff/staffDetail`, staffDetail: `nakadai/nakadai/backstageStaff/staffDetail`,
staffList: `nakadai/backstageStaff/staffList`, staffList: `nakadai/nakadai/backstageStaff/staffList`,
importStaff: `${host}nakadai/backstageStaff/importStaff`, importStaff: `${host}nakadai/nakadai/backstageStaff/importStaff`,
exportFailure: `${host}nakadai/backstageStaff/exportFailure`, exportFailure: `${host}nakadai/nakadai/backstageStaff/exportFailure`,
// 角色管理 // 角色管理
batchRemove: `users/role/batchRemove`, //批量删除角色 batchRemove: `users/users/role/batchRemove`, //批量删除角色
checkRoleIsExist: `users/role/checkRoleIsExist`, //判断该角色是否存在 checkRoleIsExist: `users/users/role/checkRoleIsExist`, //判断该角色是否存在
delRoleByAccountId: `users/role/delRoleByAccountId`, //删除某用户下的某个角色 delRoleByAccountId: `users/users/role/delRoleByAccountId`, //删除某用户下的某个角色
roleList: `users/role/list`, //角色分页列表查询 roleList: `users/users/role/list`, //角色分页列表查询
obtainDetails: `users/role/obtainDetails`, //获取角色详情 obtainDetails: `users/users/role/obtainDetails`, //获取角色详情
saveOrUpdate: `users/role/saveOrUpdate`, //新增或更新角色 saveOrUpdate: `users/users/role/saveOrUpdate`, //新增或更新角色
queryAllMenus: `users/users/permission/queryAllMenus`, //查询所有菜单 queryAllMenus: `users/users/permission/queryAllMenus`, //查询所有菜单
// 日志管理 // 日志管理
logAdd: `nakadai/log/add`, logAdd: `nakadai/nakadai/log/add`,
logDel: `nakadai/log/delete`, logDel: `nakadai/nakadai/log/delete`,
logGet: `nakadai/log/get`, logGet: `nakadai/nakadai/log/get`,
logManagementList: `nakadai/log/logManagementList`, logManagementList: `nakadai/nakadai/log/logManagementList`,
platformLogList: `nakadai/log/platformLogList`, platformLogList: `nakadai/nakadai/log/platformLogList`,
listUpdate: `nakadai/log/update`, listUpdate: `nakadai/nakadai/log/update`,
checkRepeat: `nakadai/log/checkRepeat`, checkRepeat: `nakadai/nakadai/log/checkRepeat`,
logWithdrawal: `nakadai/log/logWithdrawal`, logWithdrawal: `nakadai/nakadai/log/logWithdrawal`,
// 合伙人 // 合伙人
deleteParner: `nakadai/partnerClassification/delete`, deleteParner: `nakadai/nakadai/partnerClassification/delete`,
saveParner: `nakadai/partnerClassification/save`, saveParner: `nakadai/nakadai/partnerClassification/save`,
listParner: `nakadai/partnerClassification/treeList`, listParner: `nakadai/nakadai/partnerClassification/treeList`,
updateParner: `nakadai/partnerClassification/update`, updateParner: `nakadai/nakadai/partnerClassification/update`,
delPartnerAccount: `nakadai/partnerAccount/delPartnerAccount`, delPartnerAccount: `nakadai/nakadai/partnerAccount/delPartnerAccount`,
modifyPartnerAccount: `nakadai/partnerAccount/modifyPartnerAccount`, modifyPartnerAccount: `nakadai/nakadai/partnerAccount/modifyPartnerAccount`,
partnerAccountDetail: `nakadai/partnerAccount/partnerAccountDetail`, partnerAccountDetail: `nakadai/nakadai/partnerAccount/partnerAccountDetail`,
partnerAccountList: `nakadai/partnerAccount/partnerAccountList`, partnerAccountList: `nakadai/nakadai/partnerAccount/partnerAccountList`,
savePartnerAccount: `nakadai/partnerAccount/savePartnerAccount`, savePartnerAccount: `nakadai/nakadai/partnerAccount/savePartnerAccount`,
generateInvitationCode: `nakadai/partnerAccount/generateInvitationCode`, generateInvitationCode: `nakadai/nakadai/partnerAccount/generateInvitationCode`,
generationQrCode: `nakadai/partnerAccount/generationQrCode`, generationQrCode: `nakadai/nakadai/partnerAccount/generationQrCode`,
queryUserInfoByPhone: `nakadai/partner-team/queryUserInfoByPhone`, queryUserInfoByPhone: `nakadai/nakadai/partner-team/queryUserInfoByPhone`,
getAllTeam: `nakadai/partnerClassification/getAllTeam`, getAllTeam: `nakadai/nakadai/partnerClassification/getAllTeam`,
partnerRemoval: `nakadai/partnerAccount/partnerRemoval`, partnerRemoval: `nakadai/nakadai/partnerAccount/partnerRemoval`,
generateTransferCode: `nakadai/partnerAccount/generateTransferCode`, generateTransferCode: `nakadai/nakadai/partnerAccount/generateTransferCode`,
transferAdmin: `nakadai/partnerAccount/transferAdmin`, transferAdmin: `nakadai/nakadai/partnerAccount/transferAdmin`,
transferTeam: `nakadai/partnerAccount/transferTeam`, transferTeam: `nakadai/nakadai/partnerAccount/transferTeam`,
partnerAccountMergeList: `nakadai/partnerAccount/partnerAccountMergeList`, partnerAccountMergeList: `nakadai/nakadai/partnerAccount/partnerAccountMergeList`,
// 赛事 // 赛事
contestPageConditionQueryByNakadai: `occupationlab/enterprise/match/contest/contestPageConditionQueryByNakadai`, contestPageConditionQueryByNakadai: `occupationlab/occupationlab/enterprise/match/contest/contestPageConditionQueryByNakadai`,
addContest: `occupationlab/enterprise/match/contest/addContest`, addContest: `occupationlab/occupationlab/enterprise/match/contest/addContest`,
editContest: `occupationlab/enterprise/match/contest/editContest`, editContest: `occupationlab/occupationlab/enterprise/match/contest/editContest`,
deleteContest: `occupationlab/enterprise/match/contest/deleteContest`, deleteContest: `occupationlab/occupationlab/enterprise/match/contest/deleteContest`,
getContest: `occupationlab/enterprise/match/contest/getContest`, getContest: `occupationlab/occupationlab/enterprise/match/contest/getContest`,
deleteAnnex: `occupationlab/contest/annex/delete`, deleteAnnex: `occupationlab/occupationlab/contest/annex/delete`,
saveAnnex: `occupationlab/contest/annex/save`, saveAnnex: `occupationlab/occupationlab/contest/annex/save`,
getSchoolsByProvince: `nakadai/nakadai/school/getSchoolsByProvince`, getSchoolsByProvince: `nakadai/nakadai/school/getSchoolsByProvince`,
disabledEvents: `occupationlab/enterprise/match/contest/disabledEvents`, disabledEvents: `occupationlab/occupationlab/enterprise/match/contest/disabledEvents`,
// 竞赛进展 // 竞赛进展
addContestProgress: `occupationlab/enterprise/match/contest-progress/addContestProgress`, addContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/addContestProgress`,
deleteContestProgress: `occupationlab/enterprise/match/contest-progress/deleteContestProgress`, deleteContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/deleteContestProgress`,
getContestProgress: `occupationlab/enterprise/match/contest-progress/getContestProgress`, getContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/getContestProgress`,
editContestProgress: `occupationlab/enterprise/match/contest-progress/editContestProgress`, editContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/editContestProgress`,
// 报名人员 // 报名人员
addApplicant: `occupationlab/enterprise/match/applicant/addApplicant`, addApplicant: `occupationlab/occupationlab/enterprise/match/applicant/addApplicant`,
disableContests: `occupationlab/enterprise/match/applicant/disableContests`, disableContests: `occupationlab/occupationlab/enterprise/match/applicant/disableContests`,
excelExport: `${host}occupationlab/enterprise/match/applicant/excelExport`, excelExport: `${host}occupationlab/occupationlab/enterprise/match/applicant/excelExport`,
queryApplicantByCondition: `occupationlab/enterprise/match/applicant/queryApplicantByCondition`, queryApplicantByCondition: `occupationlab/occupationlab/enterprise/match/applicant/queryApplicantByCondition`,
disableApplicant: `occupationlab/enterprise/match/applicant/disableApplicant`, disableApplicant: `occupationlab/occupationlab/enterprise/match/applicant/disableApplicant`,
exportDataInBatches: `${host}occupationlab/enterprise/match/applicant/exportDataInBatches`, exportDataInBatches: `${host}occupationlab/occupationlab/enterprise/match/applicant/exportDataInBatches`,
// 赛事公告 // 赛事公告
addAnnouncement: `occupationlab/contest/announcement/addAnnouncement`, addAnnouncement: `occupationlab/occupationlab/contest/announcement/addAnnouncement`,
amendmentAnnouncement: `occupationlab/contest/announcement/amendmentAnnouncement`, amendmentAnnouncement: `occupationlab/occupationlab/contest/announcement/amendmentAnnouncement`,
deleteAnnouncement: `occupationlab/contest/announcement/deleteAnnouncement`, deleteAnnouncement: `occupationlab/occupationlab/contest/announcement/deleteAnnouncement`,
disableAnnouncement: `occupationlab/contest/announcement/disableAnnouncement`, disableAnnouncement: `occupationlab/occupationlab/contest/announcement/disableAnnouncement`,
queryAnnouncementByContestId: `occupationlab/contest/announcement/queryAnnouncementByContestId`, queryAnnouncementByContestId: `occupationlab/occupationlab/contest/announcement/queryAnnouncementByContestId`,
queryAnnouncementDetails: `occupationlab/contest/announcement/queryAnnouncementDetails`, queryAnnouncementDetails: `occupationlab/occupationlab/contest/announcement/queryAnnouncementDetails`,
deleteAnnouncementAnnex: `occupationlab/contestAnnouncementAnnex/delete`, deleteAnnouncementAnnex: `occupationlab/occupationlab/contestAnnouncementAnnex/delete`,
saveAnnouncementAnnex: `occupationlab/contestAnnouncementAnnex/save`, saveAnnouncementAnnex: `occupationlab/occupationlab/contestAnnouncementAnnex/save`,
}; };

@ -308,7 +308,6 @@ export default {
.login-wrap { .login-wrap {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%;
background-image: url(../assets/img/login-bg.png); background-image: url(../assets/img/login-bg.png);
background-size: 100%; background-size: 100%;
} }
@ -322,8 +321,8 @@ export default {
/deep/ .ms-login { /deep/ .ms-login {
position: relative; position: relative;
width: 1200px; width: 1200px;
height: calc(92vh - 60px); height: calc(92vh - 40px);
margin: 60px auto 20px; margin: 60px auto 0;
background-image: url(../assets/img/login-input.png); background-image: url(../assets/img/login-input.png);
box-shadow:0px 0px 79px 0px rgba(11,15,65,0.36); box-shadow:0px 0px 79px 0px rgba(11,15,65,0.36);
background-repeat: no-repeat; background-repeat: no-repeat;

@ -401,7 +401,7 @@ export default {
}).catch(res => {}) }).catch(res => {})
}, },
handleAnnexRemove(file, fileList) { handleAnnexRemove(file, fileList) {
this.$del(`${this.api.fileDeletion}?keys=${file.url}`).then(res => {}).catch(res => {}) file.url && this.$del(`${this.api.fileDeletion}?keys=${file.url}`).then(res => {}).catch(res => {})
}, },
// //
previewFile(item) { previewFile(item) {
@ -436,6 +436,7 @@ export default {
this.submiting = true this.submiting = true
form.publishStatus = status form.publishStatus = status
form.ztOpen = status ? 0 : 1 //
if (this.form.id) { if (this.form.id) {
this.$put(this.api.editContest, form).then(res => { this.$put(this.api.editContest, form).then(res => {
this.submiting = false; this.submiting = false;
@ -631,7 +632,7 @@ $upload-lg-height: 150px;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 12px; margin-bottom: 12px;
font-size: 14px; font-size: 18px;
color: #333; color: #333;
img{ img{
margin-right: 5px; margin-right: 5px;
@ -652,6 +653,13 @@ $upload-lg-height: 150px;
} }
.texts { .texts {
margin-bottom: 30px; margin-bottom: 30px;
font-size: 14px;
line-height: 1.6;
text-indent: 2em;
overflow: hidden;
/deep/img{
max-width: 100%;
}
} }
.files { .files {
li { li {

@ -52,7 +52,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="competitionName" label="竞赛名称" align="center"></el-table-column> <el-table-column prop="competitionName" label="竞赛名称" align="center"></el-table-column>
<el-table-column prop="founderName" label="创建人" align="center"></el-table-column> <el-table-column prop="founderName" label="创建人" align="center"></el-table-column>
<el-table-column prop="name" label="大赛来源" align="center"> <el-table-column prop="name" label="大赛来源" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ sourceList.find(e => e.id === scope.row.platformSource).name }} {{ sourceList.find(e => e.id === scope.row.platformSource).name }}
</template> </template>
@ -62,27 +62,23 @@
{{ rangeList.find(e => e.id === scope.row.competitionScope).name }} {{ rangeList.find(e => e.id === scope.row.competitionScope).name }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="applicantNum" label="报名人数" align="center" width="150"></el-table-column> <el-table-column prop="applicantNum" label="报名人数" align="center" width="100"></el-table-column>
<el-table-column prop="status" label="状态" align="center" width="150"> <el-table-column prop="status" label="状态" align="center" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.publishStatus ? '已发布' : '未发布' }} {{ scope.row.publishStatus ? '已发布' : '未发布' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="time" label="竞赛时间" align="center" width="300"> <el-table-column prop="time" label="竞赛时间" align="center" width="270">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.playStartTime }} ~ {{ scope.row.playEndTime }} {{ scope.row.playStartTime }} ~ {{ scope.row.playEndTime }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center" width="200"></el-table-column> <el-table-column prop="createTime" label="创建时间" align="center" width="160"></el-table-column>
<el-table-column label="操作" align="center" width="100"> <el-table-column label="操作" align="center" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="manage(scope.row)">管理</el-button> <el-button type="text" @click="manage(scope.row)">管理</el-button>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-button type="text" @click="delData(scope.row)">删除</el-button> <el-button type="text" @click="delData(scope.row)">删除</el-button>
</template>
</el-table-column>
<el-table-column label="发布状态" align="center" width="120">
<template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.ztOpen" v-model="scope.row.ztOpen"
:active-value="0" :active-value="0"
@ -149,7 +145,7 @@ export default {
publishStatus: "", publishStatus: "",
startTime: "", startTime: "",
endTime: "", endTime: "",
platformSource: '', // (01) platformSource: 0, // (01)
competitionScope: '', // (0: 1: 2.) competitionScope: '', // (0: 1: 2.)
}, },
multipleSelection: [], multipleSelection: [],
@ -233,10 +229,10 @@ export default {
}, },
getData() { getData() {
this.getList() this.getList()
if (!Setting.isDev) { // if (!Setting.isDev) {
clearInterval(this.timer) // clearInterval(this.timer)
this.timer = setInterval(this.getList, 1000) // this.timer = setInterval(this.getList, 1000)
} // }
}, },
initData() { initData() {
this.page = 1; this.page = 1;
@ -246,7 +242,7 @@ export default {
this.$router.push("/addMatch"); this.$router.push("/addMatch");
}, },
manage(row) { manage(row) {
this.$router.push(`/matchManage?id=${row.id}`); this.$router.push(`/matchManage?id=${row.id}&name=${row.competitionName}`)
}, },
changeType() { changeType() {
@ -295,6 +291,7 @@ export default {
this.page = val; this.page = val;
this.$router.push(`match?page=${val}`) this.$router.push(`match?page=${val}`)
this.getData(); this.getData();
this.$store.commit('SET_M_PAGE', val)
}, },
transferTime(date, type) { transferTime(date, type) {
if (date == "0000-00-00 00:00:00") return "---"; if (date == "0000-00-00 00:00:00") return "---";

@ -1,450 +0,0 @@
<template>
<!-- 大赛详情 -->
<div style="padding: 24px">
<div class="page-content">
<el-form label-width="170px" label-suffix=":" size="small">
<el-form-item label="竞赛封面(选填)">
<el-upload
class="avatar-uploader"
accept=".jpg,.png,.jpeg,.gif"
:on-remove="handleRemove"
:on-error="uploadError"
:on-success="uploadSuccess"
:before-remove="beforeRemove"
:limit="1"
:on-exceed="handleExceed"
:action="this.api.fileupload"
name="file"
>
<img v-if="coverUrl" :src="coverUrl" class="avatar">
<div class="uploader-default" v-else>
<i class="el-icon-plus"></i>
<p>上传封面</p>
</div>
<div slot="tip" class="el-upload__tip">
<p>展示宽度为220高度140JPG/PNG/GIF3MB以内</p>
</div>
</el-upload>
</el-form-item>
<el-form-item label="竞赛封面长图(选填)">
<el-upload
class="avatar-uploader avatar-uploader-lg"
accept=".jpg,.png,.jpeg,.gif"
:on-remove="handleLgRemove"
:on-error="uploadError"
:on-success="uploadLgSuccess"
:before-remove="beforeRemove"
:limit="1"
:on-exceed="handleExceed"
:action="this.api.fileupload"
name="file"
>
<img v-if="carouselUrl" :src="carouselUrl" class="avatar-lg">
<div class="uploader-default" v-else>
<i class="el-icon-plus"></i>
<p>上传封面</p>
</div>
<div slot="tip" class="el-upload__tip">
<p>展示宽度为1920高度300JPG/PNG/GIF3MB以内</p>
</div>
</el-upload>
</el-form-item>
<el-form-item label="竞赛名称">
<div class="d-inline-block">
<el-input placeholder="请输入竞赛名称" v-model="name" clearable></el-input>
</div>
</el-form-item>
<el-form-item label="主办方">
<div class="inline-input">
<div class="input-wrap" v-for="(item,index) in sponsorList" :key="index">
<el-input placeholder="主办方名称" v-model="sponsorList[index]"></el-input>
<i v-if="sponsorList.length > 1" class="remove" @click="delSponsor(index)"></i>
<button v-if="index == 0" class="add-btn" @click="addSponsor">
<i class="el-icon-plus"></i>
<span>添加</span>
</button>
</div>
</div>
</el-form-item>
<el-form-item label="承办方(选填)">
<div class="inline-input">
<div class="input-wrap" v-for="(item,index) in undertakerList" :key="index">
<el-input placeholder="承办方名称" v-model="undertakerList[index]"></el-input>
<i v-if="undertakerList.length > 1" class="remove" @click="delOrganizer(index)"></i>
<button v-if="index == 0" class="add-btn" @click="addOrganizer">
<i class="el-icon-plus"></i>
<span>添加</span>
</button>
</div>
</div>
<button v-if="!undertakerList.length" class="add-btn" @click="addOrganizer">
<i class="el-icon-plus"></i>
<span>添加</span>
</button>
</el-form-item>
<el-form-item label="报名时间">
<el-date-picker v-model="signupTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item label="竞赛时间">
<el-date-picker v-model="playTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item label="竞赛详情">
<quill :border="true" v-model="description" :height="400" />
</el-form-item>
<el-form-item>
<el-button @click="save(1)">保存</el-button>
<el-button type="primary" v-if="publishStatus == 1" @click="save(0)">发布</el-button>
</el-form-item>
</el-form>
</div>
</div>
</template>
<script>
import quill from "@/components/quill";
import util from "@/libs/util";
import { mapActions } from "vuex";
export default {
name: "matchDetail",
data() {
return {
id: this.$route.query.id,
coverUrl: "",
carouselUrl: "",
publishStatus: 0,
uploadList: [],
uploadDataList: [],
name: "",
sponsor: "",
sponsorList: [""],
undertaker: "",
undertakerList: [],
signUpStartTime: "",
signUpEndTime: "",
signupTime: "",
playTime: "",
playStartTime: "",
playEndTime: "",
description: ""
};
},
components: {
quill
},
watch: {
signupTime: function(val) {
if (val) {
this.signUpStartTime = val[0];
this.signUpEndTime = val[1];
} else {
this.signUpStartTime = "";
this.signUpEndTime = "";
}
},
playTime: function(val) {
if (val) {
this.playStartTime = val[0];
this.playEndTime = val[1];
} else {
this.playStartTime = "";
this.playEndTime = "";
}
}
},
mounted() {
this.getData();
this.commitId();
},
methods: {
...mapActions("match", [
"setMatchId"
]),
save(status) {
this.sponsor = this.sponsorList.filter(d => d).join();
this.undertaker = this.undertakerList.filter(d => d).join();
if (!this.name) return util.warningMsg("请填写竞赛名称");
if (status == 0) {
if (!this.sponsor) return util.warningMsg("请填写主办方");
if (!this.signUpStartTime) return util.warningMsg("请选择报名时间");
}
let now = new Date().getTime();
let signUpStartTime = new Date(this.signUpStartTime).getTime();
let signUpEndTime = new Date(this.signUpEndTime).getTime();
let playStartTime = new Date(this.playStartTime).getTime();
// if(signUpStartTime && now > signUpStartTime) return this.$$message.warning('')
if (!this.playStartTime && status == 0) return util.warningMsg("请选择竞赛时间");
if (playStartTime && playStartTime < signUpEndTime) return util.warningMsg("竞赛时间不能早于报名结束时间");
if (!this.description && status == 0) return util.warningMsg("请填写竞赛详情");
let data = {
id: this.id,
coverUrl: this.coverUrl,
carouselUrl: this.carouselUrl,
description: this.description,
founderId: 1,
name: this.name,
playEndTime: this.playEndTime,
playStartTime: this.playStartTime,
publishStatus: status ? this.publishStatus : 0,
signUpEndTime: this.signUpEndTime,
signUpStartTime: this.signUpStartTime,
sponsor: this.sponsor,
undertaker: this.undertaker
};
if (this.id) {
this.$put(this.api.editContest, data).then(res => {
util.successMsg("修改成功");
this.$router.back();
})
.catch(err => {
});
} else {
this.$post(this.api.addContest, data).then(res => {
util.successMsg("创建成功");
this.$router.back();
})
.catch(err => {
});
}
},
getData() {
this.$get(this.api.getContest + "/" + this.id)
.then(res => {
let data = res.contest;
this.coverUrl = data.coverUrl;
this.carouselUrl = data.carouselUrl;
this.description = data.description;
this.name = data.name;
this.playEndTime = data.playEndTime;
this.playStartTime = data.playStartTime;
this.publishStatus = data.publishStatus;
this.signUpEndTime = data.signUpEndTime;
this.signUpStartTime = data.signUpStartTime;
this.sponsor = data.sponsor;
this.undertaker = data.undertaker;
this.signupTime = [data.signUpStartTime, data.signUpEndTime];
this.playTime = [data.playStartTime, data.playEndTime];
this.sponsorList = data.sponsor.split(",");
this.undertakerList = data.undertaker.split(",");
})
.catch(err => {
});
},
commitId() {
this.setMatchId(this.id);
},
handleExceed(files, fileList) {
util.warningMsg(`当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!`);
},
uploadSuccess(res, file, fileList) {
if (this.coverUrl) {
let fileName = this.coverUrl.replace("https://liuwanr.oss-cn-shenzhen.aliyuncs.com/", "");
this.$del(`${this.api.fileDeletion}?keys=${fileName}`).then(res => {
}).catch(res => {
});
}
this.coverUrl = res.data.filesResult.fileUrl;
},
uploadLgSuccess(res, file, fileList) {
if (this.carouselUrl) {
let fileName = this.carouselUrl.replace("https://liuwanr.oss-cn-shenzhen.aliyuncs.com/", "");
this.$del(`${this.api.fileDeletion}?keys=${fileName}`).then(res => {
}).catch(res => {
});
}
this.carouselUrl = res.data.filesResult.fileUrl;
},
uploadError(err, file, fileList) {
this.$message({
message: "上传出错,请重试!",
type: "error",
center: true
});
},
beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name}`);
},
handleRemove(file, fileList) {
let fileName = this.coverUrl.replace("https://liuwanr.oss-cn-shenzhen.aliyuncs.com/", "");
this.$del(`${this.api.fileDeletion}?keys=${fileName}`).then(res => {
this.coverUrl = "";
}).catch(res => {
});
},
handleLgRemove(file, fileList) {
let fileName = this.carouselUrl.replace("https://liuwanr.oss-cn-shenzhen.aliyuncs.com/", "");
this.$del(`${this.api.fileDeletion}?keys=${fileName}`).then(res => {
this.carouselUrl = "";
}).catch(res => {
});
},
uploadSure() {
this.BatchUpload = false;
this.pageNo = 1;
this.keyword = "";
this.getData();
},
goback() {
this.$confirm("确定返回?未更新的信息将不会保存。", "提示", {
type: "warning"
})
.then(() => {
this.$router.push("/match");
})
.catch(() => {
});
},
addSponsor() {
this.sponsorList.push("");
},
delSponsor(index) {
this.sponsorList.splice(index, 1);
},
addOrganizer() {
this.undertakerList.push("");
},
delOrganizer(index) {
this.undertakerList.splice(index, 1);
}
}
};
</script>
<style scoped lang="scss">
$upload-width: 220px;
$upload-height: 140px;
$upload-lg-height: 150px;
/deep/ .avatar-uploader {
.el-upload {
position: relative;
width: $upload-width;
height: $upload-height;
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
overflow: hidden;
&:hover {
border-color: #cb221c;
}
.uploader-default {
display: flex;
height: $upload-height;
flex-direction: column;
justify-content: center;
text-align: center;
background: rgba(0, 0, 0, 0.04);
i {
font-size: 20px;
font-weight: bold;
color: #8c939d;
}
p {
margin-top: 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
line-height: 1;
}
}
}
&.avatar-uploader-lg {
.el-upload {
width: 100%;
max-width: 960px;
height: $upload-lg-height;
.uploader-default {
height: $upload-lg-height;
}
}
}
.avatar {
display: block;
width: $upload-width;
height: $upload-height;
}
.avatar-lg {
display: block;
width: 100%;
height: $upload-lg-height;
}
.el-upload__tip {
margin-top: 0;
p {
font-size: 14px;
color: rgba(0, 0, 0, 0.45);
line-height: 1;
&:first-child {
margin-bottom: 5px;
}
}
}
}
/deep/ .d-inline-block {
width: 216px;
.el-select, .el-input {
width: 100%;
}
}
.inline-input {
.input-wrap {
display: flex;
align-items: center;
margin-bottom: 10px;
.el-input {
display: inline-block;
width: 216px;
margin-right: 8px;
}
.remove {
width: 16px;
height: 16px;
background: url("../../../../assets/img/close.png") 0 0/cover no-repeat;
cursor: pointer;
}
}
.add-btn {
margin-left: 32px;
}
}
.add-btn {
display: flex;
justify-content: center;
align-items: center;
width: 216px;
line-height: 32px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
background-color: transparent;
border: 1px dashed rgba(0, 0, 0, 0.15);
border-radius: 4px;
cursor: pointer;
i {
margin-right: 8px;
font-size: 14px;
font-weight: bold;
}
}
</style>

@ -32,7 +32,7 @@ export default {
name: "matchManage", name: "matchManage",
data() { data() {
return { return {
name: '', name: this.$route.query.name,
active: this.$route.query.tab || "first", active: this.$route.query.tab || "first",
tabs: { tabs: {
first: "大赛详情", first: "大赛详情",
@ -49,20 +49,19 @@ export default {
MatchSignup MatchSignup
}, },
mounted() { mounted() {
// console.log(33, this.$refs.detail.form)
}, },
methods: { methods: {
back() { back() {
this.handleSave(0) && this.$router.back() this.handleSave(0) && this.backPage()
}, },
// confirm // confirm
handleSave(i) { handleSave(i) {
// //
if (this.active === 'first') { if (this.active === 'first') {
const detail = this.$refs.detail const detail = this.$refs.detail
console.log(11, detail.updateTime, i)
if (detail.updateTime > 1) { if (detail.updateTime > 1) {
this.$confirm(`编辑的内容未保存,是否保存?`, '提示', { this.$confirm(`编辑的内容未保存,是否保存并且发布`, '提示', {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
detail.save(1) detail.save(1)
@ -79,15 +78,16 @@ export default {
} }
}, },
backPage(){ backPage(){
this.$router.back() this.$router.push(`/match?page=${this.$store.state.matchPage}`)
}, },
tabSwitch(i) { tabSwitch(i) {
this.active = i this.active = i
this.$router.push(`/matchManage?id=${this.$route.query.id}&tab=${i}`) this.$router.push(`/matchManage?id=${this.$route.query.id}&tab=${i}&name=${this.name}`)
}, },
backOrTab(i) { backOrTab(i) {
i ? this.tabSwitch(i) : this.backPage() i ? this.tabSwitch(i) : this.backPage()
}, },
// tab
tabChange(i) { tabChange(i) {
this.handleSave(i) && this.tabSwitch(i) this.handleSave(i) && this.tabSwitch(i)
} }

@ -120,6 +120,8 @@ export default {
}).catch(() => { }).catch(() => {
row.isOpen = 1 row.isOpen = 1
}) })
} else {
this.$put(`${this.api.disableAnnouncement}?id=${row.id}&isDisable=${val}`).then(res => {}).catch(err => {})
} }
}, },
add() { add() {

@ -114,6 +114,7 @@ export default {
if (!form.announcementText) return util.warningMsg('请填写正文') if (!form.announcementText) return util.warningMsg('请填写正文')
form.status = status form.status = status
if (form.id) { if (form.id) {
form.isOpen = 0
delete form.announcementAnnexList delete form.announcementAnnexList
this.$post(this.api.amendmentAnnouncement, form).then(res => { this.$post(this.api.amendmentAnnouncement, form).then(res => {
util.successMsg("修改成功") util.successMsg("修改成功")

@ -43,7 +43,7 @@
</div> </div>
<div> <div>
<template v-if="!i"> <template v-if="!i">
<span class="withdraw" v-if="item.withdraw">已撤回</span> <span class="withdraw" v-if="item.withdraw && item.open">已撤回</span>
<el-button v-else style="margin-right: 10px" type="primary" size="small" @click="revoke(item)">撤销</el-button> <el-button v-else style="margin-right: 10px" type="primary" size="small" @click="revoke(item)">撤销</el-button>
</template> </template>
<el-switch v-model="item.open" :active-value="0" :inactive-value="1" @change="switchOff($event, item)" v-auth="'/system:日志更新:管理:开启日志'"></el-switch> <el-switch v-model="item.open" :active-value="0" :inactive-value="1" @change="switchOff($event, item)" v-auth="'/system:日志更新:管理:开启日志'"></el-switch>

Loading…
Cancel
Save