From e81f448084ab4f340860598498f035df23a9d014 Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期二, 20 一月 2026 12:46:42 +0800
Subject: [PATCH] 修改了相关代码
---
src/views/archiveManager/archiveMaterial/index.vue | 54 ++++++++++++++++++++++++++++++++++--------------------
1 files changed, 34 insertions(+), 20 deletions(-)
diff --git a/src/views/archiveManager/archiveMaterial/index.vue b/src/views/archiveManager/archiveMaterial/index.vue
index 0ca1e00..b27238d 100644
--- a/src/views/archiveManager/archiveMaterial/index.vue
+++ b/src/views/archiveManager/archiveMaterial/index.vue
@@ -2,7 +2,7 @@
<div class="app-container">
<div v-if="sho">
- <h2 class="title-border">娣诲姞妗堝嵎璇︾粏璁板綍 {褰撳墠褰曞叆浜唟{total}}鏉 {褰撳墠妗e彿涓猴細 {{recordStrId}} } {褰撳墠鏂囧彿涓猴細 {{inquiryNumber}} } </h2>
+ <h2 class="title-border">娣诲姞妗堝嵎璇︾粏璁板綍 {褰曞叆浜唟{total}}鏉 { {{recordStrId}} } { {{inquiryNumber}} } { {{filingNumber}} } </h2>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-row>
@@ -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
@@ -465,15 +457,17 @@
<el-input v-model="forms.documentNumber" placeholder="璇疯緭鍏ユ枃浠剁紪鍙�" />
</el-form-item>
<el-row>
- <el-col :span="16">
+ <el-col >
<el-form-item label="璐d换鑰�" prop="creator">
- <el-input type="textarea" rows="1" v-model="forms.creator" placeholder="璇疯緭鍏ヨ矗浠昏��" />
+ <el-input type="textarea" rows="2"
+ v-auto-height="{ minRows: 2, maxRows: 10 }" v-model="forms.creator" placeholder="璇疯緭鍏ヨ矗浠昏��" />
</el-form-item>
</el-col>
</el-row>
<el-form-item label="鏂囦欢棰樺悕" prop="title">
- <el-input type="textarea" rows="1" v-model="forms.title" placeholder="璇疯緭鍏ユ枃浠堕鍚�" />
+ <el-input type="textarea" rows="2"
+ v-auto-height="{ minRows: 2, maxRows: 10 }" v-model="forms.title" placeholder="璇疯緭鍏ユ枃浠堕鍚�" />
</el-form-item>
<el-form-item label="鏃ユ湡" prop="date">
<el-input v-model="forms.date" placeholder="璇疯緭鍏ユ棩鏈� (鏍煎紡锛歽yyy-mm-dd)" style="width: 200px;" />
@@ -822,8 +816,11 @@
import { updateStatusById } from "@/api/system/records"
import {delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser"
+
+
+
export default {
- name: "Materials",
+ name: "ArchiveMaterialManager",
data() {
return {
//闄勪欢鏁伴噺
@@ -894,6 +891,7 @@
],
recordId: null,
inquiryNumber: '',
+ filingNumber: '',
recordStrId: '',
// 閬僵灞�
loading: true,
@@ -925,7 +923,7 @@
// 鏌ヨ鍙傛暟
queryParams: {
pageNum: 1,
- pageSize: 10,
+ pageSize: 50,
creator: null,
title: null,
date: null,
@@ -1041,6 +1039,7 @@
const recordId = this.$route.params && this.$route.params.recordId
this.recordStrId = this.$route.params && this.$route.params.recordStrId
this.inquiryNumber = this.$route.params && this.$route.params.inquiryNumber
+ this.filingNumber = this.$route.params && this.$route.params.filingNumber
this.totalPageCount = this.$route.params && this.$route.params.pageCount
this.sho = this.$route.params && this.$route.params.sho
@@ -1070,6 +1069,18 @@
}
},
methods: {
+ handleTabKey (event) {
+ // 榛樿琛屼负
+ event.preventDefault()
+
+ // 鎵嬪姩鍏ㄩ��
+ const textarea = event.target
+ textarea.select()
+
+ // 濡傛灉闇�瑕佸垏鎹㈠埌涓嬩竴涓厓绱狅紝鍙互鎵嬪姩瑙﹀彂
+ // const focusableElements = getFocusableElements()
+ // moveFocusToNextElement()
+ },
// 杈撳叆浜嬩欢锛堢ず渚嬶細鍙牴鎹緭鍏ュ唴瀹硅繃婊ゅ缓璁垪琛級
handleCreatorInput(val) {
// 閲嶇疆閫変腑绱㈠紩
@@ -1135,12 +1146,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();
+
}
},
// 鎵撳紑瀵煎叆瀵硅瘽妗�
--
Gitblit v1.9.1