Compare commits

...

2 Commits

Author SHA1 Message Date
xiao-fajia
b3f0d7f3a8 Merge branch 'main' of http://122.51.230.86:3000/dianliang/school_website 2024-07-30 17:49:28 +08:00
xiao-fajia
bb9a006e3d 修正杂项 2024-07-30 17:49:20 +08:00
11 changed files with 12 additions and 17 deletions

View File

@ -1,9 +1,6 @@
package com.ruoyi.cms.api; package com.ruoyi.cms.api;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.cms.domain.BaseInfo;
import com.ruoyi.cms.service.IBaseInfoService; import com.ruoyi.cms.service.IBaseInfoService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -11,7 +8,6 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@Anonymous
@RestController @RestController
@RequestMapping("/api/baseInfo") @RequestMapping("/api/baseInfo")
public class BaseInfoApi extends BaseController { public class BaseInfoApi extends BaseController {

View File

@ -4,13 +4,11 @@ import com.ruoyi.cms.domain.CmsCategory;
import com.ruoyi.cms.query.CmsCategoryQuery; import com.ruoyi.cms.query.CmsCategoryQuery;
import com.ruoyi.cms.query.CmsContentQuery; import com.ruoyi.cms.query.CmsContentQuery;
import com.ruoyi.cms.service.ICmsCategoryService; import com.ruoyi.cms.service.ICmsCategoryService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@Anonymous
@RequestMapping("/api/category") @RequestMapping("/api/category")
@RestController @RestController
public class CMSCategoryAPI extends BaseController { public class CMSCategoryAPI extends BaseController {

View File

@ -1,14 +1,12 @@
package com.ruoyi.cms.api; package com.ruoyi.cms.api;
import com.ruoyi.cms.service.ICmsContentService; import com.ruoyi.cms.service.ICmsContentService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@Anonymous
@RestController @RestController
@RequestMapping("/api/content") @RequestMapping("/api/content")
public class CMSContentAPI extends BaseController { public class CMSContentAPI extends BaseController {

View File

@ -22,7 +22,6 @@ import java.util.List;
* @author 点亮信息 * @author 点亮信息
* @date 2024-07-26 * @date 2024-07-26
*/ */
@Anonymous
@RestController @RestController
@RequestMapping("/api/competition") @RequestMapping("/api/competition")
public class HitCompetitionAPI extends BaseController public class HitCompetitionAPI extends BaseController

View File

@ -29,7 +29,6 @@ import java.util.stream.Collectors;
* @author 点亮信息 * @author 点亮信息
* @date 2024-07-26 * @date 2024-07-26
*/ */
@Anonymous
@RestController @RestController
@RequestMapping("/api/registerStudent") @RequestMapping("/api/registerStudent")
public class HitRegistrationStudentInfoAPI extends BaseController public class HitRegistrationStudentInfoAPI extends BaseController

View File

@ -25,7 +25,6 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@Anonymous
@RestController @RestController
@RequestMapping("/ueditor") @RequestMapping("/ueditor")
public class UeditorController { public class UeditorController {

View File

@ -7,7 +7,7 @@
"imageCompressEnable": true, /* ,true */ "imageCompressEnable": true, /* ,true */
"imageCompressBorder": 1600, /* */ "imageCompressBorder": 1600, /* */
"imageInsertAlign": "none", /* */ "imageInsertAlign": "none", /* */
"imageUrlPrefix": "http://localhost:8080", /* 访 */ "imageUrlPrefix": "https://f382b38516.zicp.fun", /* 访 */
"imagePathFormat": "image/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */ "imagePathFormat": "image/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */
/* {filename} , */ /* {filename} , */
/* {rand:6} , */ /* {rand:6} , */
@ -43,7 +43,7 @@
"videoActionName": "uploadvideo", /* action */ "videoActionName": "uploadvideo", /* action */
"videoFieldName": "upfile", /* */ "videoFieldName": "upfile", /* */
"videoPathFormat": "video/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */ "videoPathFormat": "video/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */
"videoUrlPrefix": "http://localhost:8080", /* 访 */ "videoUrlPrefix": "https://f382b38516.zicp.fun", /* 访 */
"videoMaxSize": 102400000, /* B100MB */ "videoMaxSize": 102400000, /* B100MB */
"videoAllowFiles": [ ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"], /* */ "videoAllowFiles": [ ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"], /* */
/* */ /* */
@ -52,7 +52,7 @@
"filePathFormat": "file/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */ "filePathFormat": "file/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */
"fileUrlPrefix": "", /* 访 */ "fileUrlPrefix": "", /* 访 */
"fileMaxSize": 51200000, /* B50MB */ "fileMaxSize": 51200000, /* B50MB */
"fileAllowFiles": [ ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid", ".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml" ], /* */ "fileAllowFiles": [ ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid", ".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml" ], /* */
/* */ /* */
"imageManagerActionName": "listimage", /* action */ "imageManagerActionName": "listimage", /* action */
"imageManagerListPath": "image/", /* */ "imageManagerListPath": "image/", /* */

View File

@ -115,6 +115,7 @@ public class SecurityConfig
// 静态资源可匿名访问 // 静态资源可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
.antMatchers("/api/**", "/ueditor/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated(); .anyRequest().authenticated();
}) })

View File

@ -244,7 +244,7 @@ export default {
}, },
// //
handlerSaveBefore(){ handlerSaveBefore(){
this.form.status = this.form.id !== null ? "3" : "0" this.form.status = this.form.id === "" ? "0" : "3"
this.handleSave(); this.handleSave();
}, },
// //
@ -288,12 +288,19 @@ export default {
if (this.form.accessoryUrl !== null && this.form.accessoryUrl.length !== 0) { if (this.form.accessoryUrl !== null && this.form.accessoryUrl.length !== 0) {
this.form.isAccessory = "1" this.form.isAccessory = "1"
this.form.accessoryUrl = this.StrToArr(this.form.accessoryUrl) this.form.accessoryUrl = this.StrToArr(this.form.accessoryUrl)
}else {
this.form.isAccessory = "0";
this.form.accessoryUrl = [];
} }
if (this.form.imageUrl !== null && this.form.imageUrl.length !== 0) { if (this.form.imageUrl !== null && this.form.imageUrl.length !== 0) {
this.form.imageUrl = this.StrToArr(this.form.imageUrl) this.form.imageUrl = this.StrToArr(this.form.imageUrl)
}else {
this.form.imageUrl = []
} }
if (this.form.videoUrl !== null && this.form.videoUrl.length !== 0) { if (this.form.videoUrl !== null && this.form.videoUrl.length !== 0) {
this.form.videoUrl = this.StrToArr(this.form.videoUrl) this.form.videoUrl = this.StrToArr(this.form.videoUrl)
}else {
this.form.videoUrl = []
} }
}, },
formatTimer: function(value) { formatTimer: function(value) {

View File

@ -34,7 +34,6 @@ export default {
methods: { methods: {
loadShortcuts() { loadShortcuts() {
getHomeShortcuts().then(response => { getHomeShortcuts().then(response => {
console.log(response)
this.shortcuts = response.data; this.shortcuts = response.data;
}) })
}, },

View File

@ -286,7 +286,6 @@ export default {
listHitRegistrationStudentInfo(this.queryParams).then(response => { listHitRegistrationStudentInfo(this.queryParams).then(response => {
this.HitRegistrationStudentInfoList = response.rows; this.HitRegistrationStudentInfoList = response.rows;
this.HitRegistrationStudentInfoList.forEach(item => { this.HitRegistrationStudentInfoList.forEach(item => {
console.log(item)
if (item.leaderNames !== null) item.leaderNames = item.leaderNames.join(","); if (item.leaderNames !== null) item.leaderNames = item.leaderNames.join(",");
if (item.guideNames !== null) item.guideNames = item.guideNames.join(","); if (item.guideNames !== null) item.guideNames = item.guideNames.join(",");
}) })