liudong
2024-08-24 cd8ea3d115de633ecf0f65febe51013e762ecb8f
多文件上传解析方法修改
2个文件已修改
15 ■■■■■ 已修改文件
src/views/sessionManager/components/updataFile.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sessionManager/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sessionManager/components/updataFile.vue
@@ -5,7 +5,6 @@
    trigger="click"
    position="tl">
    <a-button
      :disabled="onFileSelectedLoading"
      type="text"
      style="border-radius: 24px"
      @click="visibleChange"
@@ -83,8 +82,8 @@
  img2txt_id: 'qwen-vl-max',
  llm_id: 'qwen-plus',
  name: 'wanghaos Kingdom',
  parser_ids:
    'naive:General,qa:Q&A,resume:Resume,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One',
  // parser_ids: 'naive:General,qa:Q&A,resume:Resume,manual:Manual,table:Table,paper:Paper,book:Book,laws:Laws,presentation:Presentation,picture:Picture,one:One',
  parser_ids: 'naive:通用,qa:Q&A,resume:简历,manual:说明书,table:表格,paper:多模态,book:书籍,laws:法律文件,presentation:PPT,picture:图片,one:整体',
  rerank_id: 'BAAI/bge-reranker-v2-m3',
  role: 'owner',
  tenant_id: '948fc6fa41ab11ef8fb80242ac120004',
@@ -155,9 +154,9 @@
    formData.append('parser_config', '');
  }
  uploadWithoutKb(formData).then((res) => {
    onFileSelectedLoading.value = false;
    if (res.code == 200) {
      cancel()
      onFileSelectedLoading.value = false;
      cancel();
      // uploaditemList.value = [];
      emit('selectFileCallback', uploaditemList.value);
      Message.success('上传成功');
@@ -172,7 +171,10 @@
const cancel = () => {
  visible.value = false;
  if(!onFileSelectedLoading.value){
    visible.value = false;
    parser_id.value = "";
  }
};
defineExpose({
src/views/sessionManager/index.vue
@@ -535,6 +535,7 @@
  };
  const selectFileCallback = (data) => {
    console.log(data, 'selectFileCallback');
    uploaditemList.value = data;
  };