Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev
Conflicts:
README.md
pom.xml
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java
ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java
ruoyi-common/pom.xml
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginUser.java
ruoyi-common/src/main/java/com/ruoyi/common/core/text/Convert.java
ruoyi-common/src/main/java/com/ruoyi/common/exception/file/InvalidExtensionException.java
ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java
ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java
ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java
ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java
ruoyi-framework/src/main/java/com/ruoyi/framework/config/FastJson2JsonRedisSerializer.java
ruoyi-framework/src/main/java/com/ruoyi/framework/config/RedisConfig.java
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.java
ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java
ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/AuthenticationEntryPointImpl.java
ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/LogoutSuccessHandlerImpl.java
ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableServiceImpl.java
ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
ruoyi-ui/src/views/index.vue
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.annotation;
|
| | |
|
| | | import java.lang.annotation.Documented;
|
| | | import java.lang.annotation.ElementType;
|
| | | import java.lang.annotation.Retention;
|
| | | import java.lang.annotation.RetentionPolicy;
|
| | | import java.lang.annotation.Target;
|
| | |
|
| | | /**
|
| | | * å¿å访é®ä¸é´ææ³¨è§£
|
| | | * |
| | | * @author ruoyi
|
| | | */
|
| | | @Target({ ElementType.METHOD, ElementType.TYPE })
|
| | | @Retention(RetentionPolicy.RUNTIME)
|
| | | @Documented
|
| | | public @interface Anonymous
|
| | | {
|
| | | }
|
| | |
| | | ) |
| | | private String password; |
| | | |
| | | @JsonIgnore |
| | | @JsonProperty |
| | | public String getPassword() { |
| | | return password; |
| | | } |
| | | |
| | | /** |
| | | * å¸å·ç¶æï¼0æ£å¸¸ 1åç¨ï¼ |
| | | */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.framework.config.properties;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | | import java.util.Optional;
|
| | | import java.util.regex.Pattern;
|
| | | import org.apache.commons.lang3.RegExUtils;
|
| | | import org.springframework.beans.BeansException;
|
| | | import org.springframework.beans.factory.InitializingBean;
|
| | | import org.springframework.context.ApplicationContext;
|
| | | import org.springframework.context.ApplicationContextAware;
|
| | | import org.springframework.context.annotation.Configuration;
|
| | | import org.springframework.core.annotation.AnnotationUtils;
|
| | | import org.springframework.web.method.HandlerMethod;
|
| | | import org.springframework.web.servlet.mvc.method.RequestMappingInfo;
|
| | | import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
|
| | | import com.ruoyi.common.annotation.Anonymous;
|
| | |
|
| | | /**
|
| | | * 设置Anonymous注解å
许å¿å访é®çurl
|
| | | * |
| | | * @author ruoyi
|
| | | */
|
| | | @Configuration
|
| | | public class PermitAllUrlProperties implements InitializingBean, ApplicationContextAware
|
| | | {
|
| | | private static final Pattern PATTERN = Pattern.compile("\\{(.*?)\\}");
|
| | |
|
| | | private ApplicationContext applicationContext;
|
| | |
|
| | | private List<String> urls = new ArrayList<>();
|
| | |
|
| | | public String ASTERISK = "*";
|
| | |
|
| | | @Override
|
| | | public void afterPropertiesSet()
|
| | | {
|
| | | RequestMappingHandlerMapping mapping = applicationContext.getBean(RequestMappingHandlerMapping.class);
|
| | | Map<RequestMappingInfo, HandlerMethod> map = mapping.getHandlerMethods();
|
| | |
|
| | | map.keySet().forEach(info -> {
|
| | | HandlerMethod handlerMethod = map.get(info);
|
| | |
|
| | | // è·åæ¹æ³ä¸è¾¹ç注解 æ¿ä»£path variable 为 *
|
| | | Anonymous method = AnnotationUtils.findAnnotation(handlerMethod.getMethod(), Anonymous.class);
|
| | | Optional.ofNullable(method).ifPresent(anonymous -> info.getPatternsCondition().getPatterns()
|
| | | .forEach(url -> urls.add(RegExUtils.replaceAll(url, PATTERN, ASTERISK))));
|
| | |
|
| | | // è·åç±»ä¸è¾¹ç注解, æ¿ä»£path variable 为 *
|
| | | Anonymous controller = AnnotationUtils.findAnnotation(handlerMethod.getBeanType(), Anonymous.class);
|
| | | Optional.ofNullable(controller).ifPresent(anonymous -> info.getPatternsCondition().getPatterns()
|
| | | .forEach(url -> urls.add(RegExUtils.replaceAll(url, PATTERN, ASTERISK))));
|
| | | });
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void setApplicationContext(ApplicationContext context) throws BeansException
|
| | | {
|
| | | this.applicationContext = context;
|
| | | }
|
| | |
|
| | | public List<String> getUrls()
|
| | | {
|
| | | return urls;
|
| | | }
|
| | |
|
| | | public void setUrls(List<String> urls)
|
| | | {
|
| | | this.urls = urls;
|
| | | }
|
| | | }
|
| | |
| | | </sql> |
| | | |
| | | <select id="selectPageUserList" resultMap="SysUserResult"> |
| | | select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, |
| | | select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, |
| | | u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from |
| | | sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | |
| | | </select> |
| | | |
| | | <select id="selectUserList" resultMap="SysUserResult"> |
| | | select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, |
| | | select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, |
| | | u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from |
| | | sys_user u |
| | | left join sys_dept d on u.dept_id = d.dept_id |
| | |
| | | export default class DictMeta {
|
| | | constructor(options) {
|
| | | this.type = options.type
|
| | | this.request = options.request,
|
| | | this.request = options.request
|
| | | this.responseConverter = options.responseConverter
|
| | | this.labelField = options.labelField
|
| | | this.valueField = options.valueField
|
| | |
| | | return search; |
| | | } |
| | | |
| | | // åæ¾æ°æ®åå
¸ |
| | | // åæ¾æ°æ®åå
¸ |
| | | export function selectDictLabel(datas, value) { |
| | | if (value === undefined) { |
| | | return ""; |
| | |
| | | for (const propName of Object.keys(params)) { |
| | | const value = params[propName]; |
| | | var part = encodeURIComponent(propName) + "="; |
| | | if (value !== null && typeof (value) !== "undefined") { |
| | | if (value !== null && value !== "" && typeof (value) !== "undefined") { |
| | | if (typeof value === 'object') { |
| | | for (const key of Object.keys(value)) { |
| | | if (value[key] !== null && typeof (value[key]) !== 'undefined') { |
| | | if (value[key] !== null && value !== "" && typeof (value[key]) !== 'undefined') { |
| | | let params = propName + '[' + key + ']'; |
| | | var subPart = encodeURIComponent(params) + "="; |
| | | result += subPart + encodeURIComponent(value[key]) + "&"; |
| | |
| | | } catch (error) { |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | |
| | | </el-tree>
|
| | | </template>
|
| | |
|
| | | <template v-if="activeData.layout === 'colFormItem'">
|
| | | <template v-if="activeData.layout === 'colFormItem' && activeData.tag !== 'el-button'">
|
| | | <el-divider>æ£åæ ¡éª</el-divider>
|
| | | <div
|
| | | v-for="(item, index) in activeData.regList"
|