From a0f40c39abc6b26e101f54433c150af5bbbc240a Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期三, 21 一月 2026 21:43:25 +0800
Subject: [PATCH] 修改了相关代码
---
src/views/archiveManager/archiveMaterial/index.vue | 81 ++++++++++++++++++++++++++--------------
1 files changed, 53 insertions(+), 28 deletions(-)
diff --git a/src/views/archiveManager/archiveMaterial/index.vue b/src/views/archiveManager/archiveMaterial/index.vue
index 0ca1e00..903b75d 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
@@ -288,7 +280,7 @@
>瀵煎嚭鍗峰唴鐩綍</el-button>
</el-col>
- <el-col :span="1.5">
+ <el-col :span="1.2">
<el-button
type="warning"
plain
@@ -324,7 +316,7 @@
>瀵煎叆妯℃澘涓嬭浇</el-button>
</el-col>
- <el-col v-if="sho" :span="1.5">
+ <el-col v-if="sho" :span="1.2">
<el-upload
action=""
@@ -341,7 +333,16 @@
</el-upload>
</el-col>
- <el-col :span="1.5">
+ <el-col :span="1.1">
+ <el-button type="success"
+ plain
+ icon="el-icon-edit"
+ size="mini"
+ @click="handleImport"
+ v-hasPermi="['system:materials:edit']"
+ >鏌ョ湅闄勪欢</el-button>
+ </el-col>
+ <el-col :span="1.2">
<el-button
v-if="sho"
type="success"
@@ -379,6 +380,8 @@
</el-upload>
</el-dialog>
</el-col>
+
+
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -465,15 +468,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 +827,11 @@
import { updateStatusById } from "@/api/system/records"
import {delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser"
+
+
+
export default {
- name: "Materials",
+ name: "ArchiveMaterialManager",
data() {
return {
//闄勪欢鏁伴噺
@@ -894,6 +902,7 @@
],
recordId: null,
inquiryNumber: '',
+ filingNumber: '',
recordStrId: '',
// 閬僵灞�
loading: true,
@@ -925,7 +934,7 @@
// 鏌ヨ鍙傛暟
queryParams: {
pageNum: 1,
- pageSize: 10,
+ pageSize: 50,
creator: null,
title: null,
date: null,
@@ -1041,6 +1050,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 +1080,18 @@
}
},
methods: {
+ handleTabKey (event) {
+ // 榛樿琛屼负
+ event.preventDefault()
+
+ // 鎵嬪姩鍏ㄩ��
+ const textarea = event.target
+ textarea.select()
+
+ // 濡傛灉闇�瑕佸垏鎹㈠埌涓嬩竴涓厓绱狅紝鍙互鎵嬪姩瑙﹀彂
+ // const focusableElements = getFocusableElements()
+ // moveFocusToNextElement()
+ },
// 杈撳叆浜嬩欢锛堢ず渚嬶細鍙牴鎹緭鍏ュ唴瀹硅繃婊ゅ缓璁垪琛級
handleCreatorInput(val) {
// 閲嶇疆閫変腑绱㈠紩
@@ -1135,12 +1157,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();
+
}
},
// 鎵撳紑瀵煎叆瀵硅瘽妗�
@@ -1642,14 +1667,14 @@
this.download('system/materials/exportDir', {
ids: this.ids.join(','),
// exportType: 'selected'
- }, `materiaDir_selected_${new Date().getTime()}.xls`)
+ }, this.recordStrId+ ` 鍗峰唴鐩綍.xls`)
} else {
// 鏄剧ず瀵煎嚭鍏ㄩ儴鏁版嵁鐨勬彁绀�
this.$message.info('姝e湪瀵煎嚭绗﹀悎褰撳墠鏌ヨ鏉′欢鐨勬墍鏈夋暟鎹�...');
// 娌℃湁閫変腑琛屾椂锛屽鍑哄綋鍓嶆煡璇㈡潯浠剁殑鏁版嵁
this.download('system/materials/exportDir', {
...this.queryParams
- }, `materiaDir_${new Date().getTime()}.xls`)
+ }, this.recordStrId+` 鍗峰唴鐩綍.xls`)
}
},
/** 瀵煎嚭鎸夐挳鎿嶄綔 - 鏀寔瀵煎嚭閫変腑琛屾垨鍏ㄩ儴鏁版嵁 */
@@ -1662,14 +1687,14 @@
this.download('system/materials/export', {
ids: this.ids.join(','),
// exportType: 'selected'
- }, `materials_selected_${new Date().getTime()}.xls`)
+ }, this.recordStrId+` 鐢靛瓙鏂囦欢淇℃伅.xls`)
} else {
// 鏄剧ず瀵煎嚭鍏ㄩ儴鏁版嵁鐨勬彁绀�
this.$message.info('姝e湪瀵煎嚭绗﹀悎褰撳墠鏌ヨ鏉′欢鐨勬墍鏈夋暟鎹�...');
// 娌℃湁閫変腑琛屾椂锛屽鍑哄綋鍓嶆煡璇㈡潯浠剁殑鏁版嵁
this.download('system/materials/export', {
...this.queryParams
- }, `materials_${new Date().getTime()}.xls`)
+ }, this.recordStrId+` 鐢靛瓙鏂囦欢淇℃伅.xls`)
}
},
@@ -1724,7 +1749,7 @@
// alert(userId)
// alert(this.queryParams.archiveRecordsId)
// alert(row.sysUser.userName)
- this.$modal.confirm('纭瑕佸彇娑堣鐢ㄦ埛鐨�"' + '' + '"鎺堟潈鍚楋紵').then(function() {
+ this.$modal.confirm('纭瑕佸彇娑堣鐢ㄦ埛鐨勬巿鏉冨悧锛�').then(function() {
return delArchiverecordstouserByReIdAndUid({ recordId: recordId, userId: userId })
}).then(() => {
// this.getList()
--
Gitblit v1.9.1