From e753bbdd0c0513f0d29d0f6845b1ecab519f422a Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 24 Nov 2023 12:01:38 +0800
Subject: [PATCH] Merge branch 'feature_1.0'
---
src/views/toCarryOutLegislativeReforms/reform/index.vue | 7 ++++++-
src/mixins/downLoadNotice.js | 39 ++++++++++++++++++++++++++++-----------
2 files changed, 34 insertions(+), 12 deletions(-)
diff --git a/src/mixins/downLoadNotice.js b/src/mixins/downLoadNotice.js
index 16801eb..a5d202d 100644
--- a/src/mixins/downLoadNotice.js
+++ b/src/mixins/downLoadNotice.js
@@ -2,7 +2,8 @@
export const mixins = {
data: function () {
return {
- notify: {} // ������������������������������������������
+ notify: {}, // ������������������������������������������
+ downLoading: false
}
},
computed: {
@@ -21,8 +22,13 @@
if (domList.find(i => i.className === item.path)) {
// ���������������������������������������������������������������������progress
if (item.progress) {
- domList.find(i => i.className === item.path).innerHTML =
- item.progress + '%'
+ // if (this.downLoadingNumber >= 90) {
+ // this.downLoadingNumber = 99
+ // } else {
+ // this.downLoadingNumber += 1
+ // }
+ domList.find(i => i.className === item.path).innerHTML = ''
+ // this.downLoadingNumber + '%'
}
if (item.progress === null) {
// ���������������������������������������������������������������������������������
@@ -33,19 +39,25 @@
})
}
} else {
- // ������������������������������������������������������������������������������������notify���������������������������������������������������������path(������������path������������)���������������$notify(element ui������������������)������������
- this.notify[item.path] = this.$notify.success({
- // title: 'info',
- dangerouslyUseHTMLString: true,
- customClass: 'progress-notify',
- message: `<p style="width: 100px;">������������<span class="${item.path}" style="float: right">${item.progress}%</span></p>`, // ������������������������������������������������path(���������������������������������)
- duration: 0
- })
+ if (!this.downLoading) {
+ // ������������������������������������������������������������������������������������notify���������������������������������������������������������path(������������path������������)���������������$notify(element ui������������������)������������
+ this.notify[item.path] = this.$notify.success({
+ // title: 'info',
+ dangerouslyUseHTMLString: true,
+ customClass: 'progress-notify',
+ message: `<div style="width: 100px;">������������<span class="${item.path}" style="float: right"></span></div>`, // ������������������������������������������������path(���������������������������������)
+ duration: 5000,
+ onClose: () => {
+ this.downLoading = true
+ }
+ })
+ }
}
if (item.progress == 100) {
// ������������������������100%������������������������������notify������������������������
this.notify[item.path].close()
+ this.downLoading = false
// delete this.notify[item.path] ���������close()���������������������������������������������������������setTimeout���������������������������������
setTimeout(() => {
delete this.notify[item.path]
@@ -56,5 +68,10 @@
},
deep: true
}
+ },
+ methods: {
+ onClose() {
+ console.log('������')
+ }
}
}
diff --git a/src/views/toCarryOutLegislativeReforms/reform/index.vue b/src/views/toCarryOutLegislativeReforms/reform/index.vue
index a0d5e7d..b12d231 100644
--- a/src/views/toCarryOutLegislativeReforms/reform/index.vue
+++ b/src/views/toCarryOutLegislativeReforms/reform/index.vue
@@ -433,7 +433,12 @@
link.click()
// ������������������������
url.revokeObjectURL(link.href)
- this.$message.success('���������������')
+ this.$message({
+ showClose: true,
+ duration: 0,
+ message: '���������������',
+ type: 'success'
+ })
this.loading = false
}
},
--
Gitblit v1.8.0