Pārlūkot izejas kodu

Merge branch 'master' of http://1.71.9.215:3000/feiyi/cbjsxt-front-master

shiyanyu 1 nedēļu atpakaļ
vecāks
revīzija
073e6750ec

+ 1 - 1
src/api/properties.js

@@ -4,6 +4,6 @@ const portal = window.context.portal
 
 //获取系统属性值
 export function getSysPropertiesAlias(code) {
-  const url = `${portal}/sys/sysProperties/v1/getDecryptByAlias?alias=` + code
+  const url = `${portal}/sys/sysProperties/v1/getByAlias?alias=` + code
   return request.get(url)
 }

+ 7 - 6
src/views/costAudit/auditInfo/archivesManage/archiveList.vue

@@ -222,7 +222,8 @@
         sysKkUrl: '',
         // 预览对话框
         previewDialogVisible: false,
-        previewUrl: '',
+        previewUrl:
+          'http://1.71.9.215:8012/onlinePreview?url=aHR0cDovLzEuNzEuOS4yMTU6ODAxMi9kZW1vL%2BWNt%2BWul18xOTk5MzA5NDM3MzY2NTQyMzM2XzIwMjUxMjEyMTQwNjI4XzM5MygxKS5kb2N4',
       }
     },
     created() {
@@ -303,9 +304,8 @@
       async getSysKkUrl() {
         try {
           const response = await getSysPropertiesAlias('sys_kk_url')
-          alert(response.value)
-          if (response && response.value) {
-            this.sysKkUrl = response.value
+          if (response) {
+            this.sysKkUrl = response
           }
         } catch (error) {
           console.error('获取系统属性值失败:', error)
@@ -346,11 +346,12 @@
           this.$message.error('文件预览地址不存在')
           return
         }
-        alert(this.sysKkUrl)
         // 拼接预览URL
         this.previewUrl =
           this.sysKkUrl +
-          `onlinePreview?url=${encodeURIComponent(row.archiveUrl)}`
+          encodeURIComponent(
+            Base64.encode('http://1.71.9.215:9506' + row.archiveUrl)
+          )
         // 打开预览弹窗
         this.previewDialogVisible = true
       },