diff --git a/ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue b/ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue index d06aa9e5ec1c20d8b8443049f64ffc0505d6d3dc..004fd44db5755812731c9a48779ebf1677a41a62 100644 --- a/ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue +++ b/ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue @@ -15,7 +15,7 @@ @change="handleChange" @preview="handlePreview" :class="!isMultiple?'imgupload':''"> -
+
diff --git a/ant-design-vue-jeecg/src/views/examples/list/TableInnerEditList.vue b/ant-design-vue-jeecg/src/views/examples/list/TableInnerEditList.vue index 3029cf5857fe0b1b6d62c64240fc9d99d404acaa..db7d9d40753f4b4ef4bc5cbfdd32e6b0767373c8 100644 --- a/ant-design-vue-jeecg/src/views/examples/list/TableInnerEditList.vue +++ b/ant-design-vue-jeecg/src/views/examples/list/TableInnerEditList.vue @@ -62,7 +62,7 @@
- 新建 + 新建 删除 @@ -111,7 +111,14 @@
- + + + + + + + + @@ -181,7 +188,8 @@ }, selectedRowKeys: [], - selectedRows: [] + selectedRows: [], + visibleCreateModal:false } }, methods: { @@ -230,6 +238,16 @@ toggleAdvanced () { this.advanced = !this.advanced }, + //添加逻辑 + handleModalVisible(isVisible) { + this.visibleCreateModal = isVisible; + }, + handleCreateModalCancel() { + this.visibleCreateModal = false; + }, + handleCreateModalOk() { + this.visibleCreateModal = false; + }, }, watch: { /* diff --git a/ant-design-vue-jeecg/src/views/jeecg/InterfaceTest.vue b/ant-design-vue-jeecg/src/views/jeecg/InterfaceTest.vue index 117f7dca7482c8ffe5a8555e9daa49519e7a5224..8b30f73f0d7277ab3d765ddd6567a13efffb98f5 100644 --- a/ant-design-vue-jeecg/src/views/jeecg/InterfaceTest.vue +++ b/ant-design-vue-jeecg/src/views/jeecg/InterfaceTest.vue @@ -1,10 +1,12 @@ - \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/system/NewPermissionList.vue b/ant-design-vue-jeecg/src/views/system/NewPermissionList.vue index ef6d49cb2ffbab03361ac6033b92f7ec8a38eba6..55c1e1a1a31e10818fe64b2d07de7acaccdc7762 100644 --- a/ant-design-vue-jeecg/src/views/system/NewPermissionList.vue +++ b/ant-design-vue-jeecg/src/views/system/NewPermissionList.vue @@ -53,7 +53,7 @@ - + 删除 diff --git a/ant-design-vue-jeecg/src/views/user/LoginSelectTenant.vue b/ant-design-vue-jeecg/src/views/user/LoginSelectTenant.vue index c91ffc3d555402c851bbf70a935a03c812333f78..fd4b46d1f0dcf6a3ca4c69bfedac978b94e4f4c5 100644 --- a/ant-design-vue-jeecg/src/views/user/LoginSelectTenant.vue +++ b/ant-design-vue-jeecg/src/views/user/LoginSelectTenant.vue @@ -16,7 +16,7 @@ - + @@ -183,8 +183,8 @@ return false } this.departResolve().then(()=>{ + this.$store.dispatch('saveTenant', this.tenant_id); if(this.isMultiTenant){ - this.$store.dispatch('saveTenant', this.tenant_id); this.$emit('success') }else{ this.$emit('success') diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java index a54996412f319fe47d6f8fdbfb7d6c5325f9011e..d0e81dc64cf9472c9ac08cbe3225db391ad0fd02 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java @@ -889,8 +889,12 @@ public class SysUserController { return result; } } - - if (!smscode.equals(code)) { + if(null == code){ + result.setMessage("手机验证码失效,请重新获取"); + result.setSuccess(false); + return result; + } + if (!smscode.equals(code.toString())) { result.setMessage("手机验证码错误"); result.setSuccess(false); return result; @@ -1039,7 +1043,7 @@ public class SysUserController { if (oConvertUtils.isEmpty(token)) { username = JwtUtil.getUserNameByToken(request); } else { - username = JwtUtil.getUsername(token); + username = JwtUtil.getUsername(token); } log.info(" ------ 通过令牌获取部分用户信息,当前用户: " + username);