From fa0fc3195858a592d2ad1bdad0fa6126602ebf55 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 07 Jun 2024 14:17:10 +0800
Subject: [PATCH] 路径配置修改

---
 src/views/article/components/deitDiscussion.vue |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/src/views/article/components/deitDiscussion.vue b/src/views/article/components/deitDiscussion.vue
index 1f9795d..e6f987c 100644
--- a/src/views/article/components/deitDiscussion.vue
+++ b/src/views/article/components/deitDiscussion.vue
@@ -51,17 +51,17 @@
     addPd,
     updatePd,
     removePd
-  } from "@/api/discuss/publicDiscuss"
+  } from "@/ssoapi/discuss/publicDiscuss"
 
   import {
     getPage
-  } from "@/api/discuss/userTopics"
+  } from "@/ssoapi/discuss/userTopics"
   import NProgress from 'nprogress'
   import 'nprogress/nprogress.css'
   import Qs from "qs"
   import {
     exportBlob
-  } from "@/api/common"
+  } from "@/ssoapi/common"
   import {
     getToken
   } from '@/util/auth'
@@ -81,7 +81,7 @@
     add,
     update,
     remove
-  } from "@/api/discuss/topics"
+  } from "@/ssoapi/discuss/topics"
 
   export default {
     data() {
@@ -203,7 +203,7 @@
               prop: "attachment",
               type: "upload",
               listType: "text",
-              action: "/api/blade-resource/oss/endpoint/put-pdfFile",
+              action: "/ssoapi/blade-resource/oss/endpoint/put-pdfFile",
               accept: "application/pdf",
               propsHttp: {
                 res: "data",
@@ -424,11 +424,13 @@
           }
           data = Qs.stringify(data)
           exportBlob(
-            `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data).then(
-            res => {
-              downloadXls(res.data, `投票人员${dateNow()}.xlsx`)
-              NProgress.done()
-            })
+              `/ssoapi/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data)
+            .then(
+              res => {
+                downloadXls(res.data, `投票人员${dateNow()}.xlsx`)
+                NProgress.done()
+              })
+
         })
       },
 
@@ -461,7 +463,7 @@
         done()
       },
 
-      openUser(row, type = 0) {
+      openUser(row, type) {
         this.type = type
         this.popupTableUserShow = true
         this.query = {}
@@ -661,7 +663,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 +686,4 @@
   }
 </script>
 
-<style lang="scss" scoped></style>
\ No newline at end of file
+<style lang="scss" scoped></style>

--
Gitblit v1.9.3