Jelajahi Sumber

补贴统计新增行政区划,调整验证码辨识度

skcj 2 tahun lalu
induk
melakukan
72c1c11e7e

+ 5 - 5
ruoyi-gateway/src/main/java/com/ruoyi/gateway/config/CaptchaConfig.java

@@ -11,7 +11,7 @@ import static com.google.code.kaptcha.Constants.*;
 
 /**
  * 验证码配置
- * 
+ *
  * @author ruoyi
  */
 @Configuration
@@ -39,12 +39,12 @@ public class CaptchaConfig
         // 验证码文本字体样式 默认为new Font("Arial", 1, fontSize), new Font("Courier", 1, fontSize)
         properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial,Courier");
         // 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy
-        properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy");
+        properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.WaterRipple");
         Config config = new Config(properties);
         defaultKaptcha.setConfig(config);
         return defaultKaptcha;
     }
-    
+
     @Bean(name = "captchaProducerMath")
     public DefaultKaptcha getKaptchaBeanMath()
     {
@@ -77,9 +77,9 @@ public class CaptchaConfig
         // 干扰实现类
         properties.setProperty(KAPTCHA_NOISE_IMPL, "com.google.code.kaptcha.impl.NoNoise");
         // 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy
-        properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy");
+        properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.WaterRipple");
         Config config = new Config(properties);
         defaultKaptcha.setConfig(config);
         return defaultKaptcha;
     }
-}
+}

+ 1 - 1
ruoyi-ui/src/views/search/xxtj/dwxztj/index.vue

@@ -3,7 +3,7 @@
     <!-- 地区搜索和图标区域 -->
     <div class="ssqh">
       <p class="sxzd">行政区划</p>
-      <dept-tree :userId="user.userData.dept.parentId" @handleNodeClick="handleNodeClick"> </dept-tree>
+      <dept-tree :isTj="true" :userId="user.userData.dept.parentId" @handleNodeClick="handleNodeClick"> </dept-tree>
     </div>
     <!-- table区域 -->
     <div class="echarts">

+ 2 - 2
ruoyi-ui/src/views/search/xxtj/jlytj/index.vue

@@ -3,7 +3,7 @@
     <!-- 地区搜索和图标区域 -->
     <div class="ssqh">
       <p class="sxzd">行政区划</p>
-      <dept-tree :userId="user.userData.dept.parentId" @handleNodeClick="handleNodeClick"> </dept-tree>
+      <dept-tree :isTj="true" :userId="user.userData.dept.parentId" @handleNodeClick="handleNodeClick"> </dept-tree>
     </div>
     <!-- table区域 -->
     <div class="echarts">
@@ -64,7 +64,7 @@ export default {
         dictType: 'TJ100',
         para1: '1',
         para2: null,
-        
+
       },
       formData: {
         unit: null,