From 6429b95aa66bfbb214bcadb248b8b7ca5e754368 Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期日, 18 一月 2026 23:17:41 +0800
Subject: [PATCH] 修改相关代码
---
src/utils/request.js | 6 +-
src/views/archiveManager/archiveMaterial/index.vue | 38 ++++++++++++-------
src/views/archiveManager/index.vue | 43 +++++++++++++++++----
3 files changed, 61 insertions(+), 26 deletions(-)
diff --git a/src/utils/request.js b/src/utils/request.js
index a2e5d1e..c4af68b 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -17,7 +17,7 @@
// axios涓姹傞厤缃湁baseURL閫夐」锛岃〃绀鸿姹俇RL鍏叡閮ㄥ垎
baseURL: process.env.VUE_APP_BASE_API,
// 瓒呮椂
- timeout: 100000
+ timeout: 300000
})
// request鎷︽埅鍣�
@@ -43,7 +43,7 @@
time: new Date().getTime()
}
const requestSize = Object.keys(JSON.stringify(requestObj)).length // 璇锋眰鏁版嵁澶у皬
- const limitSize = 5 * 1024 * 1024 // 闄愬埗瀛樻斁鏁版嵁5M
+ const limitSize = 50 * 1024 * 1024 // 闄愬埗瀛樻斁鏁版嵁5M
if (requestSize >= limitSize) {
console.warn(`[${config.url}]: ` + '璇锋眰鏁版嵁澶у皬瓒呭嚭鍏佽鐨�5M闄愬埗锛屾棤娉曡繘琛岄槻閲嶅鎻愪氦楠岃瘉銆�')
return config
@@ -55,7 +55,7 @@
const s_url = sessionObj.url // 璇锋眰鍦板潃
const s_data = sessionObj.data // 璇锋眰鏁版嵁
const s_time = sessionObj.time // 璇锋眰鏃堕棿
- const interval = 1000 // 闂撮殧鏃堕棿(ms)锛屽皬浜庢鏃堕棿瑙嗕负閲嶅鎻愪氦
+ const interval = 6000 // 闂撮殧鏃堕棿(ms)锛屽皬浜庢鏃堕棿瑙嗕负閲嶅鎻愪氦
if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) {
const message = '鏁版嵁姝e湪澶勭悊锛岃鍕块噸澶嶆彁浜�'
console.warn(`[${s_url}]: ` + message)
diff --git a/src/views/archiveManager/archiveMaterial/index.vue b/src/views/archiveManager/archiveMaterial/index.vue
index 0ca1e00..c2b232c 100644
--- a/src/views/archiveManager/archiveMaterial/index.vue
+++ b/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();
+
}
},
// 鎵撳紑瀵煎叆瀵硅瘽妗�
diff --git a/src/views/archiveManager/index.vue b/src/views/archiveManager/index.vue
index 950aa35..b04ef15 100644
--- a/src/views/archiveManager/index.vue
+++ b/src/views/archiveManager/index.vue
@@ -378,7 +378,7 @@
<el-table-column label="鎿嶄綔" align="center" width="190" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
- v-if="scope.row.ownData"
+ v-if="scope.row.ownData && scope.row.recordStatus!='褰曞叆瀹屾垚'"
size="mini"
type="text"
@@ -396,7 +396,7 @@
v-hasPermi="['system:records:edit']"
>鏌ョ湅鍗峰唴鐩綍</el-button>
<el-button
- v-if="userId===1"
+
size="mini"
type="text"
@@ -406,7 +406,7 @@
>瀵煎嚭澶囪�冭〃</el-button>
<el-button
- v-if="userId===1"
+
size="mini"
type="text"
@@ -417,7 +417,7 @@
<el-button
- v-if="userId===1"
+
size="mini"
type="text"
@@ -723,6 +723,9 @@
<el-form-item label="澶囨敞" prop="remarks">
<el-input v-model="form.remarks" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" disabled/>
</el-form-item>
+ <el-form-item label="澶囪�冭〃澶囨敞" prop="noteRemark">
+ <el-input v-model="form.noteRemark" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
+ </el-form-item>
<el-form-item label="鍘嗗彶鐩稿叧鍙戞枃鍙�" prop="historicalReferenceNumber">
<el-input v-model="form.historicalReferenceNumber" placeholder="璇疯緭鍏ュ巻鍙茬浉鍏冲彂鏂囧彿" disabled/>
</el-form-item>
@@ -907,6 +910,9 @@
</el-form-item>
<el-form-item label="澶囨敞" prop="remarks">
<el-input v-model="form.remarks" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
+ </el-form-item>
+ <el-form-item label="澶囪�冭〃澶囨敞" prop="noteRemark">
+ <el-input v-model="form.noteRemark" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
</el-form-item>
<el-form-item label="鍘嗗彶鐩稿叧鍙戞枃鍙�" prop="historicalReferenceNumber">
<el-input v-model="form.historicalReferenceNumber" placeholder="璇疯緭鍏ュ巻鍙茬浉鍏冲彂鏂囧彿" />
@@ -1093,8 +1099,8 @@
"鍏紑灞炴�у繀椤诲綍鍏ワ紝涓诲姩鍏紑銆佷緷鐢宠鍏紑銆佸厤浜堝叕寮�",
"淇濈鏈熼檺:30骞存垨姘镐箙",
"椤靛彿鎸夌収姝e紡褰曞叆椤电爜涓哄噯"], // 閫変腑鐨勬敞瑙e垪琛�
- includeSignature: false, // 鏄惁鍖呭惈绛惧悕鏍�
- selectedSignatures: ['涓氬姟绉戝绉讳氦浜�:', '瀹℃壒绉戠Щ浜や汉:', '妗f鏁寸悊鍏徃:'], // 閫変腑鐨勭鍚嶆爮鍒楄〃
+ includeSignature: false, // 鏄惁鍖呭惈绛惧悕鏍�
+ selectedSignatures: ['涓氬姟绉戝绉讳氦浜�:','瀹℃壒绉�/娉曡绉戠Щ浜や汉:', '瀹℃壒绉戠Щ浜や汉:', '妗f鏁寸悊鍏徃:'], // 閫変腑鐨勭鍚嶆爮鍒楄〃
subselectedSignatures: [],
subselectedAnnotations: [],
signaturePosition: 'bottom' // 绛惧悕鏍忎綅缃細top/bottom
@@ -1496,10 +1502,20 @@
/*鏌ョ湅璇︽儏*/
CheckInfo(row)
{
+ var recordStrId = row.recordId
- if(row.pageCount==null)
+
+ console.log(recordStrId==='')
+ console.log("+---------------------")
+ if(recordStrId===''||recordStrId==null)
{
- this.$modal.msgWarning("璇峰厛琛ュ厖椤电爜淇℃伅锛�")
+ this.$modal.msgWarning("璇疯ˉ鍏呮。妗堝彿淇℃伅锛屽啀缂栬緫鍗峰唴鐩綍锛�")
+
+ return
+ }
+ if( row.projectName==null||row.pageCount==null||row.caseTitle==null||row.constructionUnit==null)
+ {
+ this.$modal.msgWarning("璇峰厛琛ュ厖椤电爜绛夌浉鍏充俊鎭紒")
return;
}
var mid = row.id
@@ -1565,8 +1581,17 @@
var valid = false;
var pageCount = row.pageCount
var recordStrId = row.recordId
+
var inquiryNumber = row.inquiryNumber
- if(row.projectName!=null&&row.pageCount!=null&&row.caseTitle!=null&&row.constructionUnit)
+ console.log(recordStrId==='')
+ console.log("+---------------------")
+ if(recordStrId===''||recordStrId==null)
+ {
+ this.$modal.msgWarning("璇疯ˉ鍏呮。妗堝彿淇℃伅锛屽啀缂栬緫鍗峰唴鐩綍锛�")
+
+ return
+ }
+ if( row.projectName!=null&&row.pageCount!=null&&row.caseTitle!=null&&row.constructionUnit!=null)
valid = true;
if (valid) {
var mid = row.id
--
Gitblit v1.9.1