fei
13 小时以前 6429b95aa66bfbb214bcadb248b8b7ca5e754368
src/views/archiveManager/archiveMaterial/index.vue
@@ -21,20 +21,14 @@
                type="textarea"
                rows="2"
                    v-auto-height="{ minRows: 2, maxRows: 10 }"
                v-model="form.creator"
                placeholder="请输入责任者"
                @input="handleCreatorInput"
                @focus="showCreatorSuggestions = true"
                  @focus="(e) => e.target.select()"
                        @keydown.up.prevent="handleKeyUp"
                        @keydown.down.prevent="handleKeyDown"
                        @keydown.enter.prevent="handleKeyEnter"
                        ref="creatorInput"
              />
              <!-- 下拉建议框 -->
              <div
                v-if="showCreatorSuggestions && creatorSuggestions.length > 0"
                v-if="showCreatorSuggestions && creatorSuggestions.length > 0 && false"
                class="title-suggestions"
              >
                <div
@@ -60,13 +54,11 @@
                rows="2"
                v-model="form.title"
                placeholder="请输入文件题名"
                @input="handleTitleInput"
                @focus="showTitleSuggestions = true"
                @blur="handleTitleBlur"
                @focus="(e) => e.target.select()"
              />
              <!-- 下拉建议框 -->
              <div
                v-if="showTitleSuggestions && titleSuggestions.length > 0"
                v-if="showTitleSuggestions && titleSuggestions.length > 0  && false"
                class="title-suggestions"
              >
                <div
@@ -822,6 +814,9 @@
import { updateStatusById } from "@/api/system/records"
import {delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser"
  export default {
    name: "Materials",
    data() {
@@ -1070,6 +1065,18 @@
      }
    },
    methods: {
    handleTabKey (event) {
     // 默认行为
     event.preventDefault()
     // 手动全选
     const textarea = event.target
     textarea.select()
     // 如果需要切换到下一个元素,可以手动触发
     // const focusableElements = getFocusableElements()
     // moveFocusToNextElement()
   },
      // 输入事件(示例:可根据输入内容过滤建议列表)
          handleCreatorInput(val) {
            // 重置选中索引
@@ -1135,12 +1142,15 @@
        this.$refs.upload.clearFiles();
        // 关闭上传对话框
        this.importDialogVisible = false;
      //  alert(123)
        // 刷新列表数据
        getFileCount(recordId).then(response=>{
        getFileCount(this.recordId).then(response=>{
          this.fileCut = response.length
    //      alert(98)
         // alert(this.fileCut)
         this.getList();
        })
        this.getList();
      }
    },
     // 打开导入对话框