From 4522ab3fe8bd45ee753ef187448c1e884bbc601f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 18 Apr 2024 11:09:27 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_web

---
 src/views/article/components/deitDiscussion.vue |   30 ++++++++++--------------------
 1 files changed, 10 insertions(+), 20 deletions(-)

diff --git a/src/views/article/components/deitDiscussion.vue b/src/views/article/components/deitDiscussion.vue
index bb8fb6d..cfa2392 100644
--- a/src/views/article/components/deitDiscussion.vue
+++ b/src/views/article/components/deitDiscussion.vue
@@ -423,24 +423,14 @@
             ...this.query
           }
           data = Qs.stringify(data)
-          if (this.newData.type === 4) {
-            exportBlob(
-                `/api/blade-userTopics/userTopics/exportDataIndex?${this.website.tokenHeader}=${getToken()}&` + data
-              )
-              .then(
-                res => {
-                  downloadXls(res.data, `投票人员${dateNow()}.xlsx`)
-                  NProgress.done()
-                })
-          } else {
-            exportBlob(
-                `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data)
-              .then(
-                res => {
-                  downloadXls(res.data, `投票人员${dateNow()}.xlsx`)
-                  NProgress.done()
-                })
-          }
+          exportBlob(
+              `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data)
+            .then(
+              res => {
+                downloadXls(res.data, `投票人员${dateNow()}.xlsx`)
+                NProgress.done()
+              })
+
         })
       },
 
@@ -473,7 +463,7 @@
         done()
       },
 
-      openUser(row, type = 0) {
+      openUser(row, type) {
         this.type = type
         this.popupTableUserShow = true
         this.query = {}
@@ -696,4 +686,4 @@
   }
 </script>
 
-<style lang="scss" scoped></style>
\ No newline at end of file
+<style lang="scss" scoped></style>

--
Gitblit v1.9.3