jiangbiao hace 1 año
padre
commit
03cd11f57d

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/branch/TApproveDangerController.java

@@ -694,7 +694,7 @@ public class TApproveDangerController extends BaseController {
 //        return toAjax(tApproveDangerService.deleteTApproveDangerByIds(ids));
 //    }
 //
-    @GetMapping("processImg/{processId}")
+    @GetMapping("/processImg/{processId}")
     public void currentProcessInstanceImage(@PathVariable("processId") String processId, HttpServletResponse response) throws IOException {
         InputStream inputStream = currentProcessInstanceImage(processId);
         OutputStream outputStream = response.getOutputStream();

+ 4 - 3
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

@@ -22,7 +22,7 @@ import com.ruoyi.framework.security.handle.LogoutSuccessHandlerImpl;
 
 /**
  * spring security配置
- * 
+ *
  * @author ruoyi
  */
 @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
@@ -33,7 +33,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
      */
     @Autowired
     private UserDetailsService userDetailsService;
-    
+
     /**
      * 认证失败处理类
      */
@@ -51,7 +51,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
      */
     @Autowired
     private JwtAuthenticationTokenFilter authenticationTokenFilter;
-    
+
     /**
      * 跨域过滤器
      */
@@ -115,6 +115,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 // 静态资源,可匿名访问
                 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
                 .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
+                .antMatchers("/ehs/approvedanger/processImg/**").anonymous()
                 // 除上面外的所有请求全部需要鉴权认证
                 .anyRequest().authenticated()
                 .and()

+ 1 - 1
ruoyi-ui/src/views/branch/approve/processImg/index.vue

@@ -3,7 +3,7 @@
     title="流程图"
     :visible.sync="visible">
   <div style="padding-top: 0px;">
-    <img :src=getUrl() style="width: 100%">
+    <img :src=getUrl() style="width: 100%"/>
   </div>
     <span slot="footer" class="dialog-footer">
       <el-button @click="visible = false">返回</el-button>