From 70897b9f8935d377c9e890b4b04966c1d2cd5d82 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期六, 08 十月 2022 14:34:14 +0800
Subject: [PATCH] 对接案件池违建部分接口

---
 src/App.vue |  109 +++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 87 insertions(+), 22 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 240acf4..e8a4be3 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,32 +1,97 @@
 <template>
   <div id="app">
-    <nav>
-      <router-link to="/">Home</router-link> |
-      <router-link to="/about">About</router-link>
-    </nav>
-    <router-view/>
+    <router-view />
   </div>
 </template>
+<script>
 
+export default {
+  data() {
+    return {
+      mytitle: '',
+    }
+  },
+  async created() {
+    const imgObj = await this.getIcon();
+    this.changIcon(imgObj);
+  },
+  methods: {
+    changIcon(obj) {
+      var link = document.querySelector("link [rel*='icon']") || document.createElement("link");
+      var title = document.querySelector("title") || document.createElement("title");
+      link.type = "image/x-icon";
+      link.rel = "shortcut icon";
+      link.href = obj.chromeLinkUrl;  //icon鍥炬爣
+      title.innerHTML = obj.title;
+      document.getElementsByTagName("head")[0].appendChild(link);
+      document.getElementsByTagName("head")[0].appendChild(title);
+    },
+    // 鑾峰彇icon
+    async getIcon() {
+      let result;
+      const pic = JSON.parse(sessionStorage.getItem('pic'));
+      if (pic) {
+        result = pic;
+        // console.log('缂撳瓨')
+      } else {
+        // console.log('璇锋眰');
+        await this.$axios({
+          method: 'get',
+          url: 'sccg/system/portal/logo/search',
+        }).then(res => {
+          result = res.data;
+          sessionStorage.setItem('pic',JSON.stringify(result));
+        })
+      }
+      return result;
+    },
+  }
+};
+</script>
 <style>
-#app {
-  font-family: Avenir, Helvetica, Arial, sans-serif;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-  text-align: center;
-  color: #2c3e50;
-}
 
-nav {
-  padding: 30px;
+.el-select-dropdown__item{
+  height: 100% !important;
 }
-
-nav a {
-  font-weight: bold;
-  color: #2c3e50;
+.el-select-dropdown,.popper-class{
+  background-color: #17324c !important;
 }
-
-nav a.router-link-exact-active {
-  color: #42b983;
+.el-select-dropdown__item.hover, .el-select-dropdown__item:hover{
+  background-color: #17324c !important;
 }
-</style>
+.el-tree{
+  background-color: #09152f !important;
+}
+.el-tree-node__content:hover, .el-upload-list__item:hover{
+  background-color: #09152f !important;
+  color: #4b9bb7 !important;
+}
+.el-tree-node:focus>.el-tree-node__content{
+  background-color: #070f22 !important;
+  color:#4b9bb7
+}
+/*瀹氫箟婊氬姩鏉¢珮瀹藉強鑳屾櫙
+ 楂樺鍒嗗埆瀵瑰簲妯珫婊氬姩鏉$殑灏哄*/
+ ::-webkit-scrollbar
+{
+    width:4px;
+    height:4px;
+    background-color:#070f22;
+}
+/*瀹氫箟婊氬姩鏉¤建閬�
+ 鍐呴槾褰�+鍦嗚*/
+::-webkit-scrollbar-track
+{
+    -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);
+    border-radius:10px;
+    background-color:#070f22;
+}
+/*瀹氫箟婊戝潡
+ 鍐呴槾褰�+鍦嗚*/
+::-webkit-scrollbar-thumb
+{
+    border-radius:10px;
+    -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);
+    background-color:#555;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.8.0