Browse Source

背景色兼容问题

wangtao 3 years ago
parent
commit
4921bb9ba4

+ 28 - 0
.history/public/static/config_20220704150954.js

@@ -0,0 +1,28 @@
+/*
+ * @Author: wt 1241351815@qq.com
+ * @Date: 2022-04-25 10:21:18
+ * @LastEditors: wt 1241351815@qq.com
+ * @LastEditTime: 2022-05-13 15:02:51
+ * @FilePath: \securityHtml\public\static\config.js
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
+
+// api 请求路径
+var PLATFROM_CONFIG = {};
+//PLATFROM_CONFIG.baseUrl = "https://smartpark.caih.com/spapi"
+//PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/af"
+
+//PLATFROM_CONFIG.baseUrl = "http://101.133.214.75:81/af"
+PLATFROM_CONFIG.baseUrl = "http://172.16.120.213:8082"
+    //PLATFROM_CONFIG.baseUrl = "http://10.21.39.1:8082" //生产
+    //alarming WEBSOCKET
+let userInfo = window.localStorage.getItem("key");
+var PLATFROM_WEBSOCKET = {};
+PLATFROM_WEBSOCKET.wsUrl = `ws://10.21.39.1:8080/afws/uskyWS?${userInfo}`
+    // PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
+
+
+//iframe 请求路径
+//http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
+var PLATFROM_IFRAME = {};
+PLATFROM_IFRAME.iframeUrl = `https://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 141 - 0
.history/src/App_20220704153705.vue

@@ -0,0 +1,141 @@
+<!--
+ * @Author: wt 1241351815@qq.com
+ * @Date: 2022-04-25 10:21:18
+ * @LastEditors: wt 1241351815@qq.com
+ * @LastEditTime: 2022-05-12 18:36:47
+ * @FilePath: \securityHtml\src\App.vue
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+-->
+<template>
+  <div id="app" @mouseenter="mouseenter()" @mouseout="mouseout()">
+    <router-view />
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'App',
+  data(){
+    return{
+      adh:{}
+    }
+  },
+  methods: {
+    mouseenter(){
+      clearTimeout(this.adh);
+      this.timeout();
+    },
+    mouseout(){
+      clearTimeout(this.adh);
+      this.timeout();
+    },
+    timeout(){
+      this.adh = setTimeout(()=>{
+        localStorage.clear();
+        this.$store.dispatch('logout').then(() => {
+          this.$router.push('/login')
+        }).catch(err => {
+          this.$message.error(err); //登录失败提示错误
+        });
+      },1000*60*15)
+    }
+  }
+}
+</script>
+<style>
+::-webkit-scrollbar-track-piece {
+    background: #d3dce6;
+  }
+
+::-webkit-scrollbar {
+    width: 4px;
+  }
+
+  ::-webkit-scrollbar-thumb {
+    background: #99a9bf;
+    border-radius: 20px;
+  }
+  .el-dialog .el-form-item{
+    width:auto !important;
+  }
+
+  .el-input__inner{
+  height:28px !important;
+  line-height: 28px !important;
+}
+.el-input-number--small{
+  height:26px !important;
+  line-height: 26px !important;
+}
+.el-textarea .el-input__count,.el-input .el-input__count .el-input__count-inner{
+  font-size: 8px;
+  height: 12px;
+  line-height: 12px;
+  background: transparent !important
+}
+
+.el-input-number--medium{
+  width:auto;
+  line-height:28px;
+}
+.el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease] {
+    line-height: 13px;
+}
+/* .el-textarea .el-input__count, .el-input .el-input__count .el-input__count-inner{
+  margin-top:4px;
+} */
+.el-dialog .el-form-item__content, .el-dialog .el-form-item__label{
+  line-height: 40px;
+}
+
+.el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease]{
+  line-height:13px;
+}
+
+
+/* 下拉框底部颜色 */
+::-webkit-scrollbar-track-piece{
+background: transparent !important;
+}
+</style>
+<style>
+/* 时间选择器图标位置 */
+.el-input__prefix{
+  margin-top:0px !important;
+}
+/* 页面下拉框箭头 */
+.el-select .el-input .el-select__caret{
+  display: block;
+  margin-top:-2px;
+}
+/* 页面弹框input间距 */
+.roleDialog .el-dialog .el-form-item{
+  margin:10px auto;
+}
+/* 数字加减图标位置 */
+.el-input-number{
+  line-height: 28px !important;
+}
+.el-input-number.is-controls-right .el-input-number__increase, .el-input-number.is-controls-right .el-input-number__decrease{
+  line-height:10px;
+}
+/* 部门框高度 */
+.vue-treeselect--searchable .vue-treeselect__input-container{
+  height:28px !important;
+  line-height: 20px !important;
+}
+.vue-treeselect__control{
+  height:28px !important;
+  margin-top:4px;
+}
+
+.vue-treeselect__placeholder, .vue-treeselect__single-value{
+  top:-2px !important;
+}
+.filter-item .el-select .el-input .el-select__caret{
+  margin-top:1px !important;
+}
+.el-tree-node__content{
+  background: none !important;
+}
+</style>

+ 141 - 0
.history/src/App_20220704153706.vue

@@ -0,0 +1,141 @@
+<!--
+ * @Author: wt 1241351815@qq.com
+ * @Date: 2022-04-25 10:21:18
+ * @LastEditors: wt 1241351815@qq.com
+ * @LastEditTime: 2022-05-12 18:36:47
+ * @FilePath: \securityHtml\src\App.vue
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+-->
+<template>
+  <div id="app" @mouseenter="mouseenter()" @mouseout="mouseout()">
+    <router-view />
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'App',
+  data(){
+    return{
+      adh:{}
+    }
+  },
+  methods: {
+    mouseenter(){
+      clearTimeout(this.adh);
+      this.timeout();
+    },
+    mouseout(){
+      clearTimeout(this.adh);
+      this.timeout();
+    },
+    timeout(){
+      this.adh = setTimeout(()=>{
+        localStorage.clear();
+        this.$store.dispatch('logout').then(() => {
+          this.$router.push('/login')
+        }).catch(err => {
+          this.$message.error(err); //登录失败提示错误
+        });
+      },1000*60*15)
+    }
+  }
+}
+</script>
+<style>
+::-webkit-scrollbar-track-piece {
+    background: #d3dce6;
+  }
+
+::-webkit-scrollbar {
+    width: 4px;
+  }
+
+  ::-webkit-scrollbar-thumb {
+    background: #99a9bf;
+    border-radius: 20px;
+  }
+  .el-dialog .el-form-item{
+    width:auto !important;
+  }
+
+  .el-input__inner{
+  height:28px !important;
+  line-height: 28px !important;
+}
+.el-input-number--small{
+  height:26px !important;
+  line-height: 26px !important;
+}
+.el-textarea .el-input__count,.el-input .el-input__count .el-input__count-inner{
+  font-size: 8px;
+  height: 12px;
+  line-height: 12px;
+  background: transparent !important
+}
+
+.el-input-number--medium{
+  width:auto;
+  line-height:28px;
+}
+.el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease] {
+    line-height: 13px;
+}
+/* .el-textarea .el-input__count, .el-input .el-input__count .el-input__count-inner{
+  margin-top:4px;
+} */
+.el-dialog .el-form-item__content, .el-dialog .el-form-item__label{
+  line-height: 40px;
+}
+
+.el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease]{
+  line-height:13px;
+}
+
+
+/* 下拉框底部颜色 */
+::-webkit-scrollbar-track-piece{
+background: transparent !important;
+}
+</style>
+<style>
+/* 时间选择器图标位置 */
+.el-input__prefix{
+  margin-top:0px !important;
+}
+/* 页面下拉框箭头 */
+.el-select .el-input .el-select__caret{
+  display: block;
+  margin-top:-2px;
+}
+/* 页面弹框input间距 */
+.roleDialog .el-dialog .el-form-item{
+  margin:10px auto;
+}
+/* 数字加减图标位置 */
+.el-input-number{
+  line-height: 28px !important;
+}
+.el-input-number.is-controls-right .el-input-number__increase, .el-input-number.is-controls-right .el-input-number__decrease{
+  line-height:10px;
+}
+/* 部门框高度 */
+.vue-treeselect--searchable .vue-treeselect__input-container{
+  height:28px !important;
+  line-height: 20px !important;
+}
+.vue-treeselect__control{
+  height:28px !important;
+  margin-top:4px;
+}
+
+.vue-treeselect__placeholder, .vue-treeselect__single-value{
+  top:-2px !important;
+}
+.filter-item .el-select .el-input .el-select__caret{
+  margin-top:1px !important;
+}
+.el-tree-node__content{
+  background: none !important;
+}
+</style>

+ 141 - 0
.history/src/App_20220704153707.vue

@@ -0,0 +1,141 @@
+<!--
+ * @Author: wt 1241351815@qq.com
+ * @Date: 2022-04-25 10:21:18
+ * @LastEditors: wt 1241351815@qq.com
+ * @LastEditTime: 2022-05-12 18:36:47
+ * @FilePath: \securityHtml\src\App.vue
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+-->
+<template>
+  <div id="app" @mouseenter="mouseenter()" @mouseout="mouseout()">
+    <router-view />
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'App',
+  data(){
+    return{
+      adh:{}
+    }
+  },
+  methods: {
+    mouseenter(){
+      clearTimeout(this.adh);
+      this.timeout();
+    },
+    mouseout(){
+      clearTimeout(this.adh);
+      this.timeout();
+    },
+    timeout(){
+      this.adh = setTimeout(()=>{
+        localStorage.clear();
+        this.$store.dispatch('logout').then(() => {
+          this.$router.push('/login')
+        }).catch(err => {
+          this.$message.error(err); //登录失败提示错误
+        });
+      },1000*60*15)
+    }
+  }
+}
+</script>
+<style>
+::-webkit-scrollbar-track-piece {
+    background: #d3dce6;
+  }
+
+::-webkit-scrollbar {
+    width: 4px;
+  }
+
+  ::-webkit-scrollbar-thumb {
+    background: #99a9bf;
+    border-radius: 20px;
+  }
+  .el-dialog .el-form-item{
+    width:auto !important;
+  }
+
+  .el-input__inner{
+  height:28px !important;
+  line-height: 28px !important;
+}
+.el-input-number--small{
+  height:26px !important;
+  line-height: 26px !important;
+}
+.el-textarea .el-input__count,.el-input .el-input__count .el-input__count-inner{
+  font-size: 8px;
+  height: 12px;
+  line-height: 12px;
+  background: transparent !important
+}
+
+.el-input-number--medium{
+  width:auto;
+  line-height:28px;
+}
+.el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease] {
+    line-height: 13px;
+}
+/* .el-textarea .el-input__count, .el-input .el-input__count .el-input__count-inner{
+  margin-top:4px;
+} */
+.el-dialog .el-form-item__content, .el-dialog .el-form-item__label{
+  line-height: 40px;
+}
+
+.el-input-number.is-controls-right[class*=medium] [class*=increase], .el-input-number.is-controls-right[class*=medium] [class*=decrease]{
+  line-height:13px;
+}
+
+
+/* 下拉框底部颜色 */
+::-webkit-scrollbar-track-piece{
+background: transparent !important;
+}
+</style>
+<style>
+/* 时间选择器图标位置 */
+.el-input__prefix{
+  margin-top:0px !important;
+}
+/* 页面下拉框箭头 */
+.el-select .el-input .el-select__caret{
+  display: block;
+  margin-top:-2px;
+}
+/* 页面弹框input间距 */
+.roleDialog .el-dialog .el-form-item{
+  margin:10px auto;
+}
+/* 数字加减图标位置 */
+.el-input-number{
+  line-height: 28px !important;
+}
+.el-input-number.is-controls-right .el-input-number__increase, .el-input-number.is-controls-right .el-input-number__decrease{
+  line-height:10px;
+}
+/* 部门框高度 */
+.vue-treeselect--searchable .vue-treeselect__input-container{
+  height:28px !important;
+  line-height: 20px !important;
+}
+.vue-treeselect__control{
+  height:28px !important;
+  margin-top:4px;
+}
+
+.vue-treeselect__placeholder, .vue-treeselect__single-value{
+  top:-2px !important;
+}
+.filter-item .el-select .el-input .el-select__caret{
+  margin-top:1px !important;
+}
+.el-tree-node__content{
+  background: none !important;
+}
+</style>

+ 3 - 3
public/static/config.js

@@ -13,8 +13,8 @@ var PLATFROM_CONFIG = {};
 //PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/af"
 
 //PLATFROM_CONFIG.baseUrl = "http://101.133.214.75:81/af"
-//PLATFROM_CONFIG.baseUrl = "http://172.16.120.213:8082"
-PLATFROM_CONFIG.baseUrl = "http://10.21.39.1:8082" //生产
+PLATFROM_CONFIG.baseUrl = "http://172.16.120.213:8082"
+    //PLATFROM_CONFIG.baseUrl = "http://10.21.39.1:8082" //生产
     //alarming WEBSOCKET
 let userInfo = window.localStorage.getItem("key");
 var PLATFROM_WEBSOCKET = {};
@@ -25,4 +25,4 @@ PLATFROM_WEBSOCKET.wsUrl = `ws://10.21.39.1:8080/afws/uskyWS?${userInfo}`
 //iframe 请求路径
 //http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
 var PLATFROM_IFRAME = {};
-PLATFROM_IFRAME.iframeUrl = `https://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`
+PLATFROM_IFRAME.iframeUrl = `https://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`

+ 3 - 0
src/App.vue

@@ -135,4 +135,7 @@ background: transparent !important;
 .filter-item .el-select .el-input .el-select__caret{
   margin-top:1px !important;
 }
+.el-tree-node__content{
+  background: none !important;
+}
 </style>