Upload 上传(图片/文件),回显(图片),下载(文件)

1.前端技术:V3 +  Ant Design Vue

2.后端技术:Java

图片上传/回显:

文件上传回显:

表结构:单文件/图片上传为A表对文件C表 (A表field字段 对应 C表id字段)

如图:A表中的 vehicle_driving_license  和 driver_license 存的是C表中的id字段

表结构:多文件/图片上传为A表对文件B表 中的Biz字段,B表中的file_id字段对应C表中的id字段,(B表的 Biz 字段和 file_id 字段是一对多的存在关系)

如图:A表中的 house_type_file_id 和 house_type_balcony_close_file_id 、house_type_balcony_bisect_file_id、house_type_shearwall_file_id 存的是B表中的Biz_id字段,B表中的 field_id 字段对应 C表中的 id 字段,(B表中的Biz_id字段 与 field_id 字段是一对多的关系)

上传:(上传功能不分单个多个)java后台代码(controller):

  @OperationLog
    @ApiOperation("上传文件")
    @PostMapping("/upload")
    public ApiResult<FileInfo> upload(@RequestParam MultipartFile file, HttpServletRequest request) {
        FileInfo result = null;
        try {
            String dir = getUploadDir();
            File upload = FileServerUtil.upload(file, dir, config.getUploadUuidName());
            String path = upload.getAbsolutePath().replace("\\", "/").substring(dir.length() - 1);
            String requestURL = StrUtil.removeSuffix(request.getRequestURL(), "/upload");
            requestURL = "/api/file-info/file/";
            String requestURL2 = "/api/file-info";
            /*if(requestURL.contains("10.1.140.88")){
                requestURL = "https://10.1.140.88/api/file";
            }
            if(requestURL.contains("djshemei.com")){
                requestURL = "https://10.1.140.88/api/file";
            }*/
            String originalName = file.getOriginalFilename();
            result = new FileInfo();
            result.setId(SnowFlakeGenerator.nextId());
            String contentType = FileServerUtil.getContentType(upload);
            result.setFileType(contentType);
            result.setFileName(StrUtil.isBlank(originalName) ? upload.getName() : originalName);
            result.setFilePath(path);
            result.setUrlPath(requestURL+result.getId());
            result.setUrl(requestURL2 + "/" + path);
            //这个用户应该是这个找登录用户
            User loginUser = getLoginUser();
            result.setCreUserId(Long.valueOf(loginUser.getUserId()));
            result.setCreUserName(loginUser.getUsername());
            result.setCreateTime(LocalDateTime.now());
            fileInfoService.save(result);
            return success(result);
        } catch (Exception e) {
            e.printStackTrace();
            return fail("上传失败", result).setError(e.toString());
        }
    }

前端:api代码:

/**
 * 上传文件
 */
export async function uploadFile(file, opt) {
  const formData = new FormData();
  formData.append('file', file);
  const res = await request.post('/community/file-info/upload', formData, opt);
  if (res.data.code === 0 && res.data.data) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}

在页面引入使用

 <a-row>
        <a-col :span="12">
          <a-form-item label="行驶证">
            <ele-image-upload
              class="imagestype"
              :limit="1"
              v-model:value="form1.vehicleDrivingLicenseField"
              @upload="onUpload1"
              @remove="onRemove1"
            />
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item label="驾驶证">
            <ele-image-upload
              class="imagestype"
              :limit="1"
              v-model:value="form1.driverLicenseField"
              @upload="onUpload2"
              @remove="onRemove2"
            />
          </a-form-item>
        </a-col>
      </a-row>

使用方法:

  const onUpload1 = ({ file }) => {
    uploadFile(file)
      .then((data) => {
        console.log(data, 'data');
        form1.vehicleDrivingLicenseFieldId1 = data.id;
      })

      .catch((e) => {
        item.status = 'exception';
        message.error(e.message);
      });
  };

数据结构:

  // 图片
  const form1 = reactive({
    vehicleDrivingLicenseField: [],
    vehicleDrivingLicenseFieldId1: '',
    driverLicenseField: [],
    driverLicenseFieldId2: ''
  });

图片回显:java代码 (controller)

 @ApiOperation("查询文件")
    @GetMapping("/queryFile/{id}")
    public ApiResult<?> getFileInfoByRoomCar (@PathVariable("id") Long id, HttpServletRequest request ) {
        List<RoomCar>  roomCarServiceList = roomCarService.list(new QueryWrapper<RoomCar>().eq("car_id", id));
        if(roomCarServiceList.size() == 0){
            return success(new ArrayList<>());
        }else{
            List<FileInfo> fileIdList = fileInfoService.list(new QueryWrapper<FileInfo>().in("id",  roomCarServiceList.stream().map(RoomCar::getVehicleDrivingLicense).collect(Collectors.toList())));

            if (fileIdList.size() > 0) {
                String requestURL = StrUtil.removeSuffix(request.getRequestURL(), "/room-car/queryFile/"+id);
                for (FileInfo record : fileIdList) {
                    if (StrUtil.isNotBlank(record.getFilePath())) {
                        record.setDownloadUrl(requestURL + "/file-info/" + record.getFilePath());
                        record.setUrl(requestURL + "/file-info/" + record.getFilePath());
                    }
                }
            }
            List<FileInfo> fileIdList1 = fileInfoService.list(new QueryWrapper<FileInfo>().in("id",  roomCarServiceList.stream().map(RoomCar::getDriverLicense).collect(Collectors.toList())));

            if (fileIdList1.size() > 0) {
                String requestURL = StrUtil.removeSuffix(request.getRequestURL(), "/room-car/queryFile/"+id);
                for (FileInfo record : fileIdList1) {
                    if (StrUtil.isNotBlank(record.getFilePath())) {
                        record.setDownloadUrl(requestURL + "/file-info/" + record.getFilePath());
                        record.setUrl(requestURL + "/file-info/" + record.getFilePath());
                    }
                }
            }
            HashMap<String, List<FileInfo>> data = new HashMap<>();
            data.put("vehicleDrivingLicenseField", fileIdList);
            data.put("driverLicenseField", fileIdList1);
            return success(data);
        }
    }

前端api:

export async function  queryItem(id) {
  const res = await request.get('/community/decoration-manage/queryFile/' + id);
  if (res.data.code === 0) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.message));
}

页面引入使用:

 watch(
    () => props.visible,
    (visible) => {
      if (visible) {
        if (props.data) {
          assignObject(form, {
            ...props.data
          });
          isUpdate.value = true;
          showFile.value = true;
          changeRoomType(props.data.roomTypeId);
          // driverLicense
          // vehicleDrivingLicense
          queryItem(props.data.carId)
            .then((res) => {
              form1.vehicleDrivingLicenseField =
                res.data.vehicleDrivingLicenseField;
              form1.driverLicenseField = res.data.driverLicenseField;
            })
            .catch((e) => {
              message.error(e.message);
            });
          loadingData();
        } else {
          showFile.value = false;
          isUpdate.value = false;
          loadingData();
        }
      } else {
        form1.vehicleDrivingLicenseField = [];
        form1.driverLicenseField = [];
        resetFields();
      }
    }
  );

 多文件上传跟单文件上传一样的,不一样的是显示的方式:

多文件回显后端 Java代码(controller):

 @ApiOperation("查询文件")
    @GetMapping("/queryFile/{id}")
    public ApiResult<?> getFileInfoByRegionalHouseTypeId(@PathVariable("id") Long id, HttpServletRequest request ) {
        BaseRegionalHouseType mainRec = baseRegionalHouseTypeService.getByIdRel(id);
        List<FileInfo> house_type_file = new ArrayList<>();
        List<FileInfo> house_type_balcony_close_file = new ArrayList<>();
        List<FileInfo> house_type_balcony_bisect_file = new ArrayList<>();
        List<FileInfo> house_type_shearwall_file = new ArrayList<>();
        Long bizId;
        bizId = mainRec.getHouseTypeFileId();
        if (bizId != null) {
            house_type_file = fileInfoService.getfileinfobybiz(bizId);
            String requestURL = StrUtil.removeSuffix(request.getRequestURL(), "/base-regional-house-type/queryFile/"+id);
            for (FileInfo record : house_type_file) {
                if (StrUtil.isNotBlank(record.getFilePath())) {
                    record.setDownloadUrl(requestURL + "/file-info/download/" + record.getFilePath());
                }
            }
        }
        bizId = mainRec.getHouseTypeBalconyCloseFileId();
        if (bizId != null) {
            house_type_balcony_close_file = fileInfoService.getfileinfobybiz(bizId);
            String requestURL = StrUtil.removeSuffix(request.getRequestURL(), "/base-regional-house-type/queryFile/"+id);
            for (FileInfo record : house_type_balcony_close_file) {
                if (StrUtil.isNotBlank(record.getFilePath())) {
                    record.setDownloadUrl(requestURL + "/file-info/download/" + record.getFilePath());

                }
            }
        }
        bizId = mainRec.getHouseTypeBalconyBisectFileId();
        if (bizId != null) {
            house_type_balcony_bisect_file = fileInfoService.getfileinfobybiz(bizId);
            String requestURL = StrUtil.removeSuffix(request.getRequestURL(), "/base-regional-house-type/queryFile/"+id);
            for (FileInfo record : house_type_balcony_bisect_file) {
                if (StrUtil.isNotBlank(record.getFilePath())) {
                    record.setDownloadUrl(requestURL + "/file-info/download/" + record.getFilePath());

                }
            }
        }
        bizId = mainRec.getHouseTypeShearwallFileId();
        if (bizId != null) {
            house_type_shearwall_file = fileInfoService.getfileinfobybiz(bizId);
            String requestURL = StrUtil.removeSuffix(request.getRequestURL(), "/base-regional-house-type/queryFile/"+id);
            for (FileInfo record : house_type_shearwall_file) {
                if (StrUtil.isNotBlank(record.getFilePath())) {
                    record.setDownloadUrl(requestURL + "/file-info/download/" + record.getFilePath());

                }
            }
        }

        HashMap<String, List<FileInfo>> data = new HashMap<>();
        data.put("house_type_file", house_type_file);
        data.put("house_type_balcony_close_file", house_type_balcony_close_file);
        data.put("house_type_balcony_bisect_file", house_type_balcony_bisect_file);
        data.put("house_type_shearwall_file", house_type_shearwall_file);
        return success(data);
    }

前端api:

export async function  queryHouse(id) {
  const res = await request.get('/community/base-regional-house-type/queryFile/' + id);
  if (res.data.code === 0) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.message));
}

页面使用:

<template>
  <ele-modal
    :width="1200"
    :visible="visible"
    :confirm-loading="loading"
    title="文件管理"
    :body-style="{ paddingBottom: '8px' }"
    @update:visible="updateVisible"
    @ok="save"
  >
    <div class="ele-body">
      <a-card :bordered="false">
        <div class="content">
          <div class="loudong">
            <div>
              <div
                style="font-size: 18px; font-weight: 600; margin-bottom: 25px"
                >文件上传</div
              >
              <a-row type="flex" style="margin: 20px -15px">
                <a-col :span="24">
                  <a-button
                    type="text"
                    @click="typeclick(0)"
                    :class="btn == 0 ? 'btnColor' : ''"
                    style="width: 150px"
                    >户型图</a-button
                  >
                </a-col>
              </a-row>
              <a-row type="flex" style="margin: 20px -15px">
                <a-col :span="24">
                  <a-button
                    type="text"
                    @click="typeclick(1)"
                    :class="btn == 1 ? 'btnColor' : ''"
                    style="width: 150px"
                    >封闭阳台方案</a-button
                  >
                </a-col>
              </a-row>
              <a-row type="flex" style="margin: 20px -15px">
                <a-col :span="24">
                  <a-button
                    type="text"
                    @click="typeclick(2)"
                    :class="btn == 2 ? 'btnColor' : ''"
                    style="width: 150px"
                    >封闭阳台剖面图</a-button
                  >
                </a-col>
              </a-row>
              <a-row type="flex" style="margin: 20px -15px">
                <a-col :span="24">
                  <a-button
                    type="text"
                    @click="typeclick(3)"
                    :class="btn == 3 ? 'btnColor' : ''"
                    style="width: 150px"
                    >剪力墙标识图</a-button
                  >
                </a-col>
              </a-row>
            </div>
          </div>
          <div class="content-right">
            <div class="ele-body" style="margin-top: -40px">
              <div class="content">
                <div class="content-right">
                  <div class="content-right-header" style="margin-top: 30px">
                    <a-upload
                      :show-upload-list="false"
                      :customRequest="onUploadCardf"
                    >
                      <a-button type="primary" class="ele-btn-icon">
                        <template #icon>
                          <upload-outlined />
                        </template>
                        <span>上传</span>
                      </a-button>
                    </a-upload>
                  </div>
                  <!-- 表格 -->
                  <ele-pro-table
                    bordered
                    ref="tableRef"
                    row-key="id"
                    :columns="columns"
                    :datasource="datasource"
                    :toolkit="false"
                    :scroll="{ x: 800 }"
                  >
                    <template #bodyCell="{ column, record, index }">
                      <template v-if="column.key === 'action'">
                        <a-space>
                          <a
                            :href="record.downloadUrl"
                            target="_blank"
                            :disabled="
                              record.downloadUrl != null ? disabled : true
                            "
                            >下载</a
                          >
                          <a-divider type="vertical" />
                          <a-popconfirm
                            placement="topRight"
                            title="确定要删除此文件吗?"
                            @confirm="remove(record, index)"
                          >
                            <a class="ele-text-danger">删除</a>
                          </a-popconfirm>
                        </a-space>
                      </template>
                    </template>
                  </ele-pro-table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </a-card>

      <!-- <spbuilding-edit
        v-model:visible="showEdit"
        :data="current"
        @done="reload"
      />
      <bar-code :data="barcodedata" v-model:visible="showBarcode" /> -->
    </div>
  </ele-modal>
</template>
<script setup>
  import { ref, watch, onMounted } from 'vue';
  import {
    getfileinfobybiz,
    uploadFile,
    removeFile
  } from '@/api/system/file-info';
  import useFormData from '@/utils/use-form-data';
  import { Form, message } from 'ant-design-vue/es';
  import { messageLoading } from 'ele-admin-pro/es';
  import {
    saveHouse,
    queryHouse
  } from '@/api/baseRegionalPark/base-regional-house-type';
  import { CloudUploadOutlined, FileTextOutlined } from '@ant-design/icons-vue';

  // import FileUpload from './file-upload.vue';
  const emit = defineEmits(['done', 'update:visible']);
  const useForm = Form.useForm;

  const props = defineProps({
    data: Object,
    visible: Boolean
  });

  // 表单
  const { form, resetFields, assignFields } = useFormData({
    regionalHouseTypeId: '',
    // 户型图id
    houseTypeFileId: '',
    // 封闭阳台方案id
    houseTypeBalconyCloseFileId: '',
    // 封闭阳台剖面图id
    houseTypeBalconyBisectFileId: '',
    // 剪力墙标识图id
    houseTypeShearwallFileId: '',
    house_type_file: [],
    house_type_balcony_close_file: [],
    house_type_balcony_bisect_file: [],
    house_type_shearwall_file: []
  });

  // 按钮颜色
  const btn = ref(0);
  // 确定数据
  const datas = ref({
    regionalHouseTypeId: '',
    house_type_file: [],
    house_type_balcony_close_file: [],
    house_type_balcony_bisect_file: [],
    house_type_shearwall_file: [],
    downloadUrl:"",
    // 户型图id
    houseTypeFileId: '',
    // 封闭阳台方案id
    houseTypeBalconyCloseFileId: '',
    // 封闭阳台剖面图id
    houseTypeBalconyBisectFileId: '',
    // 剪力墙标识图id
    houseTypeShearwallFileId: '',

  });

  const typeclick = (type) => {
    switch (type) {
      case 0:
        btn.value = 0;
        datasource.value = datas.value.house_type_file;        
        break;
      case 1:
        btn.value = 1;
        datasource.value = datas.value.house_type_balcony_close_file; 
        break;
      case 2:
        btn.value = 2;
        datasource.value = datas.value.house_type_balcony_bisect_file; 
        break;
      case 3:
        btn.value = 3;
        datasource.value = datas.value.house_type_shearwall_file; 
        break;
    }    
  };

 

  const findPicIds = ref([]);
  // 表格实例
  const tableRef = ref(null);

  // 导入请求状态
  const loading = ref(false);
  const isAdmin = ref(false);
  // 保存按钮
  const save = () => {
    saveHouse(datas.value).then((res) => {
      if (res.code == 0) {
        message.success('保存成功');
        emit('done');
        emit('update:visible', false);
      } else {
        message.error(res.msg);
      }
    });
  };


  // 表格列配置
  const columns = ref([
    {
      title: '序号',
      key: 'index',
      width: 48,
      align: 'center',
      fixed: 'left',
      hideInSetting: true,
      customRender: ({ index }) => index + (tableRef.value?.tableIndex ?? 0)
    },
    {
      title: '文件名',
      dataIndex: 'fileName'
    },
    {
      title: '文件类型',
      dataIndex: 'fileType'
    },
    {
      title: '创建人',
      dataIndex: 'creUserName'
    },
    {
      title: '创建时间',
      dataIndex: 'createTime'
    },
    {
      title: '操作',
      key: 'action',
      width: 160,
      align: 'center',
      hideInSetting: true
    }
  ]);

  //上传文件
  const onUploadCardf = (d) => {
    uploadFile(d.file, {
      onUploadProgress: (e) => {
        if (e.lengthComputable) {
          d.progress = (e.loaded / e.total) * 100;
        }
      }
    })
      .then((data) => {
        d.status = 'done';
  
        if (btn.value == 0) {        
          datas.value.house_type_file.push(data);
        } else if (btn.value == 1) {
          datas.value.house_type_balcony_close_file.push(data);
        } else if (btn.value == 2) {
          datas.value.house_type_balcony_bisect_file.push(data);
        } else if (btn.value == 3) {
          datas.value.house_type_shearwall_file.push(data);
        }
     
        message.success('上传成功');
      })
      .catch((e) => {
        message.error(e.message);
      });
  };

  //     /* 删除单个 */
  const remove = (row, index) => {
    const hide = message.loading('请求中..', 0);
    removeFile(row.id)
      .then((msg) => {
        var arr = [];
        if(btn.value ==0 ){
          arr = datas.value.house_type_file.filter((d) => d.id != row.id);
          datas.value.house_type_file = arr;
        }
        if(btn.value ==1 ){
          arr = datas.value.house_type_balcony_close_file.filter((d) => d.id != row.id);
          datas.value.house_type_balcony_close_file = arr;
        }
        if(btn.value ==2 ){
          arr = datas.value.house_type_balcony_bisect_file.filter((d) => d.id != row.id);
          datas.value.house_type_balcony_bisect_file = arr;
        }
        if(btn.value ==3 ){
          arr = datas.value.house_type_shearwall_file.filter((d) => d.id != row.id);
          datas.value.house_type_shearwall_file = arr;
        }
        typeclick(btn.value);
   
        hide();
        message.success(msg);
 
      })
      .catch((e) => {
        hide();
        message.error(e.message);
      });
  };

  //   // 表格数据源
  const datasource = ref([]);

   /* 更新visible */
   const updateVisible = (value) => {
    emit('update:visible', value);
  };


  watch(
    () => props.visible,
    (visible) => {
      if (visible) {
        if (!props.data) {
          alert('数据为空,请确保传递正确数据');
          return;
        }
        console.log(props.data);
        datas.value.regionalHouseTypeId = props.data.regionalHouseTypeId;   

        queryHouse(datas.value.regionalHouseTypeId).then((res) => {
          datas.value.house_type_file = res.data.house_type_file;
          datas.value.house_type_balcony_close_file = res.data.house_type_balcony_close_file;
          datas.value.house_type_balcony_bisect_file = res.data.house_type_balcony_bisect_file;
          datas.value.house_type_shearwall_file = res.data.house_type_shearwall_file;
          // 默认选中第一个
          typeclick(0);
        });        
      }
    }
  );
</script>
<style lang="less" scoped>
  // .ele-body {
  //   height: 100%;
  // }
  .btnColor {
    background-color: #f4fbf8;
    color: #1677ff;
  }

  .content {
    display: flex;


    .loudong {
      width: 280px;
      margin-right: 15px;
      padding: 15px;
      // height: 80vh;
      background: #fff;
      overflow: auto;
      box-sizing: border-box;
    }

    .search {
      width: 100%;
      padding: 20px 10px 0px 20px;
      background: #f6f5f5;
      margin-bottom: 5px;
    }

    .content-right {
      flex: 1;
    }
  }
</style>

还有一个小细节,java存储文件id的字段一定不要忽略修改的时候传来的null

 

用注解:

@TableField(updateStrategy = FieldStrategy.IGNORED)

就ok啦,暂时先做个笔记,后面有空再慢慢写注解

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/448462.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

【测试工具系列】压测用Jmeter还是LoadRunner?还是其他?

说起JMeter&#xff0c;估计很多测试人员都耳熟能详。它小巧、开源&#xff0c;还能支持多种协议的接口和性能测试&#xff0c;所以在测试圈儿里很受欢迎&#xff0c;也是测试人员常用的工具&#xff0c;但是在企业级性能场景下可能会有性能瓶颈&#xff0c;更适合测试自己使用…

基于单片机的视觉导航小车设计

目 录 摘 要 I Abstract II 引 言 1 1 总体方案设计 3 1.1 方案论证 3 1.2 项目总体设计 3 2 项目硬件设计 4 2.1 主控模块设计 4 2.1.1单片机选型 4 2.1.2 STM32F103RCT6芯片 4 2.2单片机最小系统电路 5 2.3电机驱动模块设计 7 2.4红外模块设计 8 2.5红外遥控模块设计 9 2.6超…

一条 SQL 更新语句如何执行的

Server 层 存储引擎层 总流程 查询语句 连接器 查询缓存 分析器 优化器 执行器 更新语句 redo log&#xff08;节省的是随机写磁盘的 IO 消耗&#xff08;转成顺序写&#x…

动态规划刷题总结(入门)

目录 什么是动态规划算法 如何判断题目中将使用动态规划算法&#xff1f; 动态规划题目做题步骤 动态规划题目解析 泰波那契数模型 第 N 个泰波那契数 三步问题 使用最小花费爬楼梯 路径问题 不同路径 不同路径 Ⅱ 珠宝的最高价值 下降最短路径和 地下城游…

【Numpy】练习题100道(1-25题)

#学习笔记# 在学习神经网络的过程中发现对numpy的操作不是非常熟悉&#xff0c;遂找到了Numpy 100题。 Git-hub链接 目录 1 题目列表&#xff1a; 2 题解&#xff1a; 1 题目列表&#xff1a; 导入numpy包&#xff0c;并将其命名为np&#xff08;★☆☆&#xff09; 打印…

设计模式学习笔记 - 规范与重构 - 5.如何通过封装、抽象、模块化、中间层解耦代码?

前言 《规范与重构 - 1.什么情况下要重构&#xff1f;重构什么&#xff1f;又该如何重构&#xff1f;》讲过&#xff0c;重构可以分为大规模高层重构&#xff08;简称 “大型重构”&#xff09;和小规模低层次重构&#xff08;简称 “小型重构”&#xff09;。大型重构是对系统…

3.6研究代码(2)

指的是微电网运行参数。 在MATLAB中&#xff0c;randi([0,1],1,48) 会生成一个包含1*48个0或1的随机整数数组。这意味着数组中的每个元素都将是0或1。 MATLAB帮助中心&#xff1a;均匀分布的伪随机整数 - MATLAB randi - MathWorks 中国https://ww2.mathworks.cn/help/matlab/r…

Java零基础入门到精通_Day 1

01 Java 语言发展史 Java语言是美国Sun公司(StanfordUniversity Network)在1995年推出的 计算机语言Java之父:詹姆斯高斯林(ames Gosling) 重要的版本过度&#xff1a; 2004年 Java 5.0 2014年 Java 8.0 2018年 9月 Java 11.0 &#xff08;目前所使用的&#xff09; 02 J…

llama factory学习笔记

模型 模型名模型大小默认模块TemplateBaichuan27B/13BW_packbaichuan2BLOOM560M/1.1B/1.7B/3B/7.1B/176Bquery_key_value-BLOOMZ560M/1.1B/1.7B/3B/7.1B/176Bquery_key_value-ChatGLM36Bquery_key_valuechatglm3DeepSeek (MoE)7B/16B/67Bq_proj,v_projdeepseekFalcon7B/40B/18…

#LT8711V适用于Type-C/DP1.2/EDP转VGA应用方案,分辨率高达1080P。

1. 概述 LT8711V是一款高性能 Type-C/DP1.2 转 VGA 转换器&#xff0c;设计用于将 USB Type-C 源或 DP1.2 源连接到 VGA 接收器。 该LT8711V集成了一个符合DP1.2标准的接收器和一个高速三通道视频DAC。此外&#xff0c;还包括两个用于 CC 通信的 CC 控制器&#xff0c;以实现 …

文件服务器

文件服务器 # 构建NFS远程共享存储## 一、NFS介绍shell 文件系统级别共享&#xff08;是NAS存储&#xff09; --------- 已经做好了格式化&#xff0c;可以直接用。 速度慢比如&#xff1a;nfs&#xff0c;sambaNFS NFS&#xff1a;Network File System 网络文件系统&#xf…

C++面向对象..

1.面向对象的常见知识点 类、 对象、 成员变量(属性)、成员函数(方法)、 封装、继承、多态 2.类 在C中可以通过struct、class定义一个类 struct和class的区别&#xff1a; struct的默认权限是public(在C语言中struct内部是不可以定义函数的) 而class的默认权限是private(该权…

Windows虚拟机的安装

Windows系统 总结知识点记忆级别&#xff1a; 1级&#xff1a;熟练记忆讲过的所有知识点(按照授课顺序&#xff0c;笔记顺序来提问)2级&#xff1a;灵活应用所学知识点(不按照顺序提问&#xff0c;面临陷阱提问)3级&#xff1a;应用所学知识解决实际问题4级&#xff1a;扩展应…

24 深度卷积神经网络 AlexNet【李沐动手学深度学习v2课程笔记】(备注:含AlexNet和LeNet对比)

目录 1. 深度学习机器学习的发展 1.1 核方法 1.2 几何学 1.3 特征工程 opencv 1.4 Hardware 2. AlexNet 3. 代码 1. 深度学习机器学习的发展 1.1 核方法 2001 Learning with Kernels 核方法 &#xff08;机器学习&#xff09; 特征提取、选择核函数来计算相似性、凸优…

陈景东:集中与分布式拾音与声信号处理 | 演讲嘉宾公布

一、声音与音乐技术专题论坛 声音与音乐技术专题论坛将于3月28日同期举办&#xff01; 声音的应用领域广泛而深远&#xff0c;从场所识别到乐器音响质量评估&#xff0c;从机械故障检测到心肺疾病诊断&#xff0c;声音都发挥着重要作用。在互联网、大数据、人工智能的时代浪潮中…

【python】random库函数使用简要整理

前言 简要快速清晰整理random库 函数 函数作用random()返回0-1间的浮点小数randint(1,10)返回1到10间的整数uniform(1,10)返回1-10间的小数randrange(1,10,2)从1每隔2取一个数到10&#xff0c;在这些数中返回一个choice(列表)从列表中随机返回一个 shuffle(列表) 对列表内容…

高等数学常用公式

高等数学常用公式 文章目录 内容大纲 内容 大纲 感谢观看 期待关注 有问题的小伙伴请在下方留言&#xff0c;喜欢就点个赞吧

群晖NAS使用Docker安装WPS Office并结合内网穿透实现公网远程办公

文章目录 推荐1. 拉取WPS Office镜像2. 运行WPS Office镜像容器3. 本地访问WPS Office4. 群晖安装Cpolar5. 配置WPS Office远程地址6. 远程访问WPS Office小结 7. 固定公网地址 推荐 前些天发现了一个巨牛的人工智能学习网站&#xff0c;通俗易懂&#xff0c;风趣幽默&#xff…

C语言中的UTF-8编码转换处理

C语言UTF-8编码的转换 1.C语言简介2.什么是UTF-8编码&#xff1f;2.1 UTF-8编码特点&#xff1a; 3.C语言中的UTF-8编码转换处理步骤1&#xff1a;获取UTF-8编码的字节流步骤2&#xff1a;解析UTF-8编码步骤3&#xff1a;Unicode码点转换为汉字 4.总结 1.C语言简介 C语言是一门…

怎么做加密文件二维码?分享文件更安全

怎么做一个加密文件二维码&#xff1f;在日常的工作和生活中&#xff0c;通过扫描二维码来查看或者下载文件的方式&#xff0c;被越来越多的人所使用&#xff0c;一方面是二维码的成本低&#xff0c;另一方面有利于提升便捷性和用户体验。 为了保证内容的隐私性和安全性&#…