| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | import { updateStatusById } from "@/api/system/records" |
| | | |
| | | import {delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser" |
| | | |
| | | |
| | | |
| | | export default { |
| | | name: "Materials", |
| | | data() { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | handleTabKey (event) { |
| | | // 默认行为 |
| | | event.preventDefault() |
| | | |
| | | // 手动全选 |
| | | const textarea = event.target |
| | | textarea.select() |
| | | |
| | | // 如果需要切换到下一个元素,可以手动触发 |
| | | // const focusableElements = getFocusableElements() |
| | | // moveFocusToNextElement() |
| | | }, |
| | | // 输入事件(示例:可根据输入内容过滤建议列表) |
| | | handleCreatorInput(val) { |
| | | // 重置选中索引 |
| | |
| | | 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(); |
| | | |
| | | } |
| | | }, |
| | | // 打开导入对话框 |