lin
2024-04-03 4c8352e5dfd520423424c689ecc35e96ca1988de
src/views/article/components/deitDiscussion.vue
@@ -423,12 +423,23 @@
            ...this.query
          }
          data = Qs.stringify(data)
          exportBlob(
            `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data).then(
            res => {
              downloadXls(res.data, `投票人员${dateNow()}.xlsx`)
              NProgress.done()
            })
          if (this.type == 0 && this.newData.articleType === 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()
                })
          }
        })
      },
@@ -661,7 +672,7 @@
          this.userPage.total = data.total
          this.userData = data.records
          this.userData.forEach(item => {
            if (item.avatar.length > 0) {
            if (item.avatar) {
              item.avatar = website.minioUrl + item.avatar
            }
            if (item.signaturePath && item.signaturePath.length > 0) {
@@ -684,4 +695,4 @@
  }
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped></style>