Browse Source

fix:按钮类型修复

韩帛霖 1 year ago
parent
commit
c349adfa04

+ 2 - 1
ruoyi-common/src/main/java/com/ruoyi/common/utils/SecurityUtils.java

@@ -68,7 +68,8 @@ public class SecurityUtils {
      **/
     public static LoginUser getLoginUser() {
         try {
-            return (LoginUser) getAuthentication().getPrincipal();
+            LoginUser llo = (LoginUser) getAuthentication().getPrincipal();
+            return llo;
         } catch (Exception e) {
             throw new ServiceException("获取用户信息异常", HttpStatus.UNAUTHORIZED);
         }

+ 2 - 1
ruoyi-ui/src/views/tablelist/commonTable/listInfo.vue

@@ -713,7 +713,7 @@ export default {
       try {
         let payLoad = {
           basicMap: {
-            btnType: UPDATE,
+            btnType: "UPDATE",
             btnKey: this.currentBtnData.btnKey,
             visible: "false",
             sqlKey: this.templateInfo.template.sqlKey,
@@ -1318,6 +1318,7 @@ export default {
 
     // 操作列回调
     excuteHandler(btnData, row) {
+      console.log(btnData)
       let { btnType, btnParams } = btnData;
       this.currentBtnData = btnData;
       this.currentRow = JSON.parse(JSON.stringify(row));