From 7c20fd15b7fbc2bd5756b39d5ab655cc849ffcc3 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 16 七月 2025 22:39:23 +0800
Subject: [PATCH] 添加时间筛选

---
 src/views/systemSetting/platform/portalSetting/index.vue |   48 +++++++++++++++++++++++++-----------------------
 1 files changed, 25 insertions(+), 23 deletions(-)

diff --git a/src/views/systemSetting/platform/portalSetting/index.vue b/src/views/systemSetting/platform/portalSetting/index.vue
index 3bac3e2..e30f0f1 100644
--- a/src/views/systemSetting/platform/portalSetting/index.vue
+++ b/src/views/systemSetting/platform/portalSetting/index.vue
@@ -1,9 +1,9 @@
 <template>
     <div class="log">
         <header>
-            <div clas="headerTitle">
+            <!-- <div class="headerTitle">
                 绯荤粺璁剧疆 >> 闂ㄦ埛绠$悊 > logo绠$悊
-            </div>
+            </div> -->
         </header>
         <main>
             <div class="mainTitle">LOGO</div>
@@ -65,9 +65,9 @@
 
     },
     methods: {
-        setPicUrl({obj, value}) {
+        setPicUrl({ obj, value }) {
             const { icon } = this;
-            const baseUrl = 'http://140.143.152.226:8410/';
+            const baseUrl = '';
             for (let key in icon) {
                 if (key === value) {
                     icon[key] = baseUrl + obj.url1;
@@ -77,15 +77,15 @@
         },
         // 鏇存敼logo鍏ュ彛
         async changeLogo() {
-            const {icon} = this;
+            const { icon } = this;
             console.log(icon);
             const preIcon = await this.getIcon();
             if (preIcon.length === 0) {
                 this.handleChangeLogo();
                 return;
             }
-            for(let key in icon){
-                if(icon[key]!==''){
+            for (let key in icon) {
+                if (icon[key] !== '') {
                     preIcon[key] = icon[key];
                 }
             }
@@ -119,32 +119,34 @@
                         url: 'sccg/system/portal/logo/add',
                         data: icon
                     }).then(res => {
-                        console.log(res);
-                        if (res.code == 200) {
-                            this.$message({
-                                message: res.message,
-                                type: 'success'
+                        if (res.code === 200) {
+                            this.$axios({
+                                method: 'get',
+                                url: 'sccg/system/portal/logo/search',
+                            }).then(res => {
+                                this.$message({
+                                    message: res.message,
+                                    type: 'success'
+                                })
+                                sessionStorage.setItem('pic', JSON.stringify(result));
                             })
                         }
                     })
                 }
             } else {
-                console.log(obj);
                 // 鍙戦�佽姹�
                 this.$axios({
                     method: 'put',
                     url: 'sccg/system/portal/logo/update',
                     data: obj
                 }).then(res => {
-                    console.log(res);
                     this.$message({
                         message: res.message,
                         type: 'success'
                     })
                 })
             }
-            localStorage.removeItem('pic');
-            window.location.href='';
+            window.location.href = '';
 
         }
     },
@@ -152,7 +154,7 @@
 </script>
 <style lang="scss" scoped>
 .log {
-    color: #4b9bb7;
+    // color: #4b9bb7;
     text-align: left;
     padding: 20px;
 
@@ -162,7 +164,7 @@
 
     header {
         line-height: 60px;
-        border-bottom: 1px solid #4b9bb7;
+        // border-bottom: 1px solid #4b9bb7;
     }
 
     main {
@@ -224,11 +226,11 @@
                     width: 496px;
                 }
 
-                &::v-deep .el-input__inner {
-                    background-color: #09152f;
-                    border: 1px solid #17324c;
-                    ;
-                }
+                // &::v-deep .el-input__inner {
+                //     background-color: #09152f;
+                //     border: 1px solid #17324c;
+                //     ;
+                // }
             }
         }
 

--
Gitblit v1.8.0