update 优化 oss 增加创建人回显

feature/model
疯狂的狮子li 2 years ago
parent 2787212362
commit 922a8345e2

@ -1,5 +1,7 @@
package com.ruoyi.system.domain.vo; package com.ruoyi.system.domain.vo;
import com.ruoyi.common.translation.annotation.Translation;
import com.ruoyi.common.translation.constant.TransConstant;
import lombok.Data; import lombok.Data;
import java.io.Serial; import java.io.Serial;
@ -52,6 +54,12 @@ public class SysOssVo implements Serializable {
*/ */
private Long createBy; private Long createBy;
/**
*
*/
@Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
private String createByName;
/** /**
* *
*/ */

@ -40,15 +40,6 @@
end-placeholder="结束日期" end-placeholder="结束日期"
></el-date-picker> ></el-date-picker>
</el-form-item> </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-form-item label="服务商" prop="service">
<el-input <el-input
v-model="queryParams.service" v-model="queryParams.service"
@ -144,7 +135,7 @@
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </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" <el-table-column label="服务商" align="center" prop="service"
sortable="custom"/> sortable="custom"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@ -236,9 +227,7 @@ export default {
fileName: undefined, fileName: undefined,
originalName: undefined, originalName: undefined,
fileSuffix: undefined, fileSuffix: undefined,
url: undefined,
createTime: undefined, createTime: undefined,
createBy: undefined,
service: undefined service: undefined
}, },
// //

Loading…
Cancel
Save