瀏覽代碼

小二账号编辑功能修复

zhangqiang 8 月之前
父節點
當前提交
3789c980f4

+ 5 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/account/entity/OkkiAccount.java

@@ -50,6 +50,10 @@ public class OkkiAccount implements Serializable {
     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
     @ApiModelProperty(value = "更新日期")
     private java.util.Date updateTime;
+    /**名称*/
+    @Excel(name = "名称", width = 15)
+    @ApiModelProperty(value = "名称")
+    private java.lang.String name;
     /**邮箱账号*/
     @Excel(name = "邮箱账号", width = 15)
     @ApiModelProperty(value = "邮箱账号")
@@ -78,7 +82,7 @@ public class OkkiAccount implements Serializable {
     @ApiModelProperty(value = "所属人员")
     private java.lang.String sysUserCode;
     /**状态*/
-    @Excel(name = "状态", width = 15)
+    @Excel(name = "状态", width = 15, dicCode = "account_status")
     @Dict(dicCode = "account_status")
     @ApiModelProperty(value = "状态")
     private java.lang.Integer status;

+ 2 - 0
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/account/service/impl/OkkiAccountServiceImpl.java

@@ -85,6 +85,8 @@ public class OkkiAccountServiceImpl extends ServiceImpl<OkkiAccountMapper, OkkiA
     public void updateAccount(OkkiAccount okkiAccountParam) {
         final OkkiAccount okkiAccount = this.getById(okkiAccountParam.getId());
         okkiAccount.setUserId(okkiAccountParam.getUserId());
+        okkiAccount.setName(okkiAccountParam.getName());
+        okkiAccount.setSysUserCode(okkiAccountParam.getSysUserCode());
         this.updateById(okkiAccount);
     }
 

+ 1 - 1
jeecgboot-vue3/src/views/okki/account/OkkiAccountList.vue

@@ -191,7 +191,7 @@
   function getTableAction(record) {
     return [
       {
-        label: '分配账号',
+        label: '编辑',
         onClick: handleEdit.bind(null, record),
       },
     ];