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 | 27 +++++++++++++++++++--------
1 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/src/views/archiveManager/archiveMaterial/index.vue b/src/views/archiveManager/archiveMaterial/index.vue
index b27238d..903b75d 100644
--- a/src/views/archiveManager/archiveMaterial/index.vue
+++ b/src/views/archiveManager/archiveMaterial/index.vue
@@ -280,7 +280,7 @@
>瀵煎嚭鍗峰唴鐩綍</el-button>
</el-col>
- <el-col :span="1.5">
+ <el-col :span="1.2">
<el-button
type="warning"
plain
@@ -316,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=""
@@ -333,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"
@@ -371,6 +380,8 @@
</el-upload>
</el-dialog>
</el-col>
+
+
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -1656,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`)
}
},
/** 瀵煎嚭鎸夐挳鎿嶄綔 - 鏀寔瀵煎嚭閫変腑琛屾垨鍏ㄩ儴鏁版嵁 */
@@ -1676,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`)
}
},
@@ -1738,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