mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	fix:修复上次提交导致的前端页面取值问题
This commit is contained in:
		| @@ -21,8 +21,8 @@ public class FilePageReqVO extends PageParam { | |||||||
|     @ApiModelProperty(value = "文件路径", example = "yudao", notes = "模糊匹配") |     @ApiModelProperty(value = "文件路径", example = "yudao", notes = "模糊匹配") | ||||||
|     private String path; |     private String path; | ||||||
|  |  | ||||||
|     @ApiModelProperty(value = "文件类型", example = "jpg", notes = "模糊匹配") |     @ApiModelProperty(value = "文件扩展名", example = "jpg", notes = "模糊匹配") | ||||||
|     private String type; |     private String extName; | ||||||
|  |  | ||||||
|     @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |     @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | ||||||
|     @ApiModelProperty(value = "开始创建时间") |     @ApiModelProperty(value = "开始创建时间") | ||||||
|   | |||||||
| @@ -22,8 +22,11 @@ public class FileRespVO { | |||||||
|     @ApiModelProperty(value = "文件 URL", required = true, example = "https://www.iocoder.cn/yudao.jpg") |     @ApiModelProperty(value = "文件 URL", required = true, example = "https://www.iocoder.cn/yudao.jpg") | ||||||
|     private String url; |     private String url; | ||||||
|  |  | ||||||
|     @ApiModelProperty(value = "文件类型", example = "jpg") |     @ApiModelProperty(value = "文件扩展名", example = "jpg") | ||||||
|     private String type; |     private String extName; | ||||||
|  |  | ||||||
|  |     @ApiModelProperty(value = "文件MIME类型", example = "application/octet-stream") | ||||||
|  |     private String mimeType; | ||||||
|  |  | ||||||
|     @ApiModelProperty(value = "文件大小", example = "2048", required = true) |     @ApiModelProperty(value = "文件大小", example = "2048", required = true) | ||||||
|     private Integer size; |     private Integer size; | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ public interface FileMapper extends BaseMapperX<FileDO> { | |||||||
|     default PageResult<FileDO> selectPage(FilePageReqVO reqVO) { |     default PageResult<FileDO> selectPage(FilePageReqVO reqVO) { | ||||||
|         return selectPage(reqVO, new LambdaQueryWrapperX<FileDO>() |         return selectPage(reqVO, new LambdaQueryWrapperX<FileDO>() | ||||||
|                 .likeIfPresent(FileDO::getPath, reqVO.getPath()) |                 .likeIfPresent(FileDO::getPath, reqVO.getPath()) | ||||||
|                 .likeIfPresent(FileDO::getExtName, reqVO.getType()) |                 .likeIfPresent(FileDO::getExtName, reqVO.getExtName()) | ||||||
|                 .betweenIfPresent(FileDO::getCreateTime, reqVO.getBeginCreateTime(), reqVO.getEndCreateTime()) |                 .betweenIfPresent(FileDO::getCreateTime, reqVO.getBeginCreateTime(), reqVO.getEndCreateTime()) | ||||||
|                 .orderByDesc(FileDO::getId)); |                 .orderByDesc(FileDO::getId)); | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -26,14 +26,15 @@ | |||||||
|  |  | ||||||
|     <!-- 列表 --> |     <!-- 列表 --> | ||||||
|     <el-table v-loading="loading" :data="list"> |     <el-table v-loading="loading" :data="list"> | ||||||
|       <el-table-column label="文件名" align="center" prop="name" /> |       <el-table-column  label="文件名" :show-overflow-tooltip="true" align="center" min-width="250" prop="name" /> | ||||||
|       <el-table-column label="文件路径" align="center" prop="path" /> |       <el-table-column :show-overflow-tooltip="true" label="文件路径" align="center" min-width="300" prop="path" /> | ||||||
|       <el-table-column label="文件 URL" align="center" prop="url" /> |       <el-table-column :show-overflow-tooltip="true" label="文件 URL" align="center" min-width="400" prop="url" /> | ||||||
|       <el-table-column label="文件大小" align="center" prop="size" width="120" :formatter="sizeFormat" /> |       <el-table-column label="文件大小" align="center" prop="size" width="120" :formatter="sizeFormat" /> | ||||||
|       <el-table-column label="文件类型" align="center" prop="type" width="80" /> |       <el-table-column label="文件类型" align="center" prop="mimeType" width="210" /> | ||||||
|  |       <el-table-column label="文件扩展名" align="center" prop="extName" width="80" /> | ||||||
| <!--      <el-table-column label="文件内容" align="center" prop="content">--> | <!--      <el-table-column label="文件内容" align="center" prop="content">--> | ||||||
| <!--        <template slot-scope="scope">--> | <!--        <template slot-scope="scope">--> | ||||||
| <!--          <img v-if="scope.row.type === 'jpg' || scope.row.type === 'png' || scope.row.type === 'gif'"--> | <!--          <img v-if="scope.row.extName === 'jpg' || scope.row.extName === 'png' || scope.row.extName === 'gif'"--> | ||||||
| <!--               width="200px" :src="getFileUrl + scope.row.id">--> | <!--               width="200px" :src="getFileUrl + scope.row.id">--> | ||||||
| <!--          <i v-else>非图片,无法预览</i>--> | <!--          <i v-else>非图片,无法预览</i>--> | ||||||
| <!--        </template>--> | <!--        </template>--> | ||||||
| @@ -101,7 +102,7 @@ export default { | |||||||
|         pageNo: 1, |         pageNo: 1, | ||||||
|         pageSize: 10, |         pageSize: 10, | ||||||
|         path: null, |         path: null, | ||||||
|         type: null, |         extName: null, | ||||||
|       }, |       }, | ||||||
|       // 用户导入参数 |       // 用户导入参数 | ||||||
|       upload: { |       upload: { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jiangqiang
					jiangqiang