|
|
@ -34,7 +34,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="头像"> |
|
|
|
<!-- <el-form-item label="头像"> |
|
|
|
<el-upload |
|
|
|
class="avatar-uploader" |
|
|
|
action="http://localhost:8070/base-fast/file/fileController/upload" |
|
|
@ -44,7 +44,7 @@ |
|
|
|
<img v-if="imageUrl" :src="imageUrl" class="avatar" style="width: 50px;height: 50px;"> |
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i> |
|
|
|
</el-upload> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> --> |
|
|
|
<el-form-item label="角色" size="mini" prop="roleIdList"> |
|
|
|
<el-checkbox-group v-model="dataForm.roleIdList"> |
|
|
|
<el-checkbox v-for="role in roleList" :key="role.roleId" :label="role.roleId">{{ role.roleName }}</el-checkbox> |
|
|
@ -189,7 +189,17 @@ |
|
|
|
handleAvatarSuccess(res){ |
|
|
|
this.dataForm.img = res; |
|
|
|
this.imageUrl = "http://localhost:8070/base-fast/file/fileController/download?fileName="+res; |
|
|
|
},handleDownload(path){ |
|
|
|
}, |
|
|
|
beforeAvatarUpload(file) { |
|
|
|
let isLt2M = true |
|
|
|
isLt2M = file.size / 1024 / 1024 < 100 |
|
|
|
if (!isLt2M) { |
|
|
|
this.$message.error('上传文件大小不能超过 100MB!') |
|
|
|
return |
|
|
|
} |
|
|
|
return isLt2M |
|
|
|
}, |
|
|
|
handleDownload(path){ |
|
|
|
// 处理文件的下载操作 |
|
|
|
window.location.href = "http://localhost:8070/base-fast/file/fileController/downloadFile?fileName="+path; |
|
|
|
|
|
|
|