From 922a8345e2b7e2b52c629fffe81d6b5af91a81ec Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期五, 03 二月 2023 11:06:52 +0800
Subject: [PATCH] update 优化 oss 增加创建人回显
---
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/SysOssVo.java | 8 ++++++++
ruoyi-ui/src/views/system/oss/index.vue | 13 +------------
2 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/SysOssVo.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/SysOssVo.java
index 6aab773..bbbbf87 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/SysOssVo.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/SysOssVo.java
@@ -1,5 +1,7 @@
package com.ruoyi.system.domain.vo;
+import com.ruoyi.common.translation.annotation.Translation;
+import com.ruoyi.common.translation.constant.TransConstant;
import lombok.Data;
import java.io.Serial;
@@ -53,6 +55,12 @@
private Long createBy;
/**
+ * 涓婁紶浜哄悕绉�
+ */
+ @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
+ private String createByName;
+
+ /**
* 鏈嶅姟鍟�
*/
private String service;
diff --git a/ruoyi-ui/src/views/system/oss/index.vue b/ruoyi-ui/src/views/system/oss/index.vue
index 9f8557c..ae6e4d8 100644
--- a/ruoyi-ui/src/views/system/oss/index.vue
+++ b/ruoyi-ui/src/views/system/oss/index.vue
@@ -40,15 +40,6 @@
end-placeholder="缁撴潫鏃ユ湡"
></el-date-picker>
</el-form-item>
- <el-form-item label="涓婁紶浜�" prop="createBy">
- <el-input
- v-model="queryParams.createBy"
- placeholder="璇疯緭鍏ヤ笂浼犱汉"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
<el-form-item label="鏈嶅姟鍟�" prop="service">
<el-input
v-model="queryParams.service"
@@ -144,7 +135,7 @@
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
- <el-table-column label="涓婁紶浜�" align="center" prop="createBy" />
+ <el-table-column label="涓婁紶浜�" align="center" prop="createByName" />
<el-table-column label="鏈嶅姟鍟�" align="center" prop="service"
sortable="custom"/>
<el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
@@ -236,9 +227,7 @@
fileName: undefined,
originalName: undefined,
fileSuffix: undefined,
- url: undefined,
createTime: undefined,
- createBy: undefined,
service: undefined
},
// 琛ㄥ崟鍙傛暟
--
Gitblit v1.9.3