From 59bef840be5148dc69eb4864528a969d02e50f5e Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期五, 05 十二月 2025 18:46:00 +0800
Subject: [PATCH] 修改了代码
---
src/views/archiveManager/archiveMaterial/index.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/views/archiveManager/archiveMaterial/index.vue b/src/views/archiveManager/archiveMaterial/index.vue
index 6603f55..49f2e7f 100644
--- a/src/views/archiveManager/archiveMaterial/index.vue
+++ b/src/views/archiveManager/archiveMaterial/index.vue
@@ -796,7 +796,7 @@
</template>
<script>
- import { getFileCount,islegal, listMaterials, enload, getMaterials, delMaterials, addMaterials, updateMaterials } from "@/api/system/materials"
+ import {insertFile, getFileCount,islegal, listMaterials, enload, getMaterials, delMaterials, addMaterials, updateMaterials } from "@/api/system/materials"
import { getToken } from '@/utils/auth'
import store from '@/store'
import { updateStatusById } from "@/api/system/records"
@@ -806,6 +806,7 @@
name: "Materials",
data() {
return {
+ totalPageCount: 0,
// 璁板綍鍏冪礌鍒濆浣嶇疆鍜岀姸鎬�
originalOffsetLeft: 0,
originalWidth: 0,
@@ -1000,6 +1001,9 @@
created() {
//const roleId = this.$route.params && this.$route.params.roleId
const recordId = this.$route.params && this.$route.params.recordId
+
+ this.totalPageCount = this.$route.params && this.$route.params.pageCount
+ //alert(this.totalPageCount)
//alert(recordId)
this.recordId = recordId;
this.uploadUrl = process.env.VUE_APP_BASE_API +'/system/materials/upload/'+this.recordId
@@ -1044,6 +1048,11 @@
},
// 鎵撳紑瀵煎叆瀵硅瘽妗�
handleImport() {
+ //鐢熸垚鏂扮殑璁板綍
+ insertFile(this.recordId, this.totalPageCount).then(response => {
+ console.log(response)
+ // alert(3245)
+ })
this.importDialogVisible = true
},
// 鏂囦欢绉婚櫎
@@ -1073,8 +1082,9 @@
islegal(this.recordId).then(response => {
console.log(response.data)
var res = response.data.res
+
//alert(response.data.total)
- if(fileCount!==response.data.total)
+ if(fileCount!=this.totalPageCount)
{
this.$modal.msgWarning('璇烽�夋嫨涓庤褰曟暟涓�鑷寸殑鏂囦欢')
return
--
Gitblit v1.9.1