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;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.cms.domain.BaseInfo;
import com.ruoyi.cms.service.IBaseInfoService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
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.RestController;
@Anonymous
@RestController
@RequestMapping("/api/baseInfo")
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.CmsContentQuery;
import com.ruoyi.cms.service.ICmsCategoryService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@Anonymous
@RequestMapping("/api/category")
@RestController
public class CMSCategoryAPI extends BaseController {

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@
"imageCompressEnable": true, /* ,true */
"imageCompressBorder": 1600, /* */
"imageInsertAlign": "none", /* */
"imageUrlPrefix": "http://localhost:8080", /* 访 */
"imageUrlPrefix": "https://f382b38516.zicp.fun", /* 访 */
"imagePathFormat": "image/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */
/* {filename} , */
/* {rand:6} , */
@ -43,7 +43,7 @@
"videoActionName": "uploadvideo", /* action */
"videoFieldName": "upfile", /* */
"videoPathFormat": "video/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */
"videoUrlPrefix": "http://localhost:8080", /* 访 */
"videoUrlPrefix": "https://f382b38516.zicp.fun", /* 访 */
"videoMaxSize": 102400000, /* B100MB */
"videoAllowFiles": [ ".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg", ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"], /* */
/* */

View File

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

View File

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

View File

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

View File

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