App.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <div id="app">
  3. <router-view v-if="isRouterAlive"></router-view>
  4. </div>
  5. </template>
  6. <script>
  7. import store from '@/store'
  8. import { setTagNavListInLocalstorage } from '@/libs/base/util'
  9. import {mapActions} from "vuex";
  10. export default {
  11. name: 'App',
  12. provide () {
  13. return{
  14. reload: this.reload
  15. }
  16. },
  17. data() {
  18. return {
  19. isRouterAlive: true
  20. }
  21. },
  22. methods: {
  23. reload(){
  24. this.isRouterAlive = false
  25. this.$nextTick(function(){
  26. this.isRouterAlive = true
  27. })
  28. },
  29. ...mapActions([
  30. 'saveSetting'
  31. ]),
  32. },
  33. mounted(){
  34. this.$Message.config({
  35. top: 50,
  36. duration: 5
  37. })
  38. this.saveSetting()
  39. }
  40. }
  41. </script>
  42. <style lang="less">
  43. body{
  44. //transform: scale(0.5);
  45. //width: 200% !important;
  46. //height: 200% !important;
  47. //post: absolute !important;
  48. //top: -50% !important;
  49. //left: -50% !important;
  50. }
  51. .size {
  52. width: 100%;
  53. height: 100%;
  54. }
  55. html,
  56. body {
  57. .size;
  58. overflow: hidden;
  59. margin: 0;
  60. padding: 0;
  61. font-family:"iconfont";
  62. // font-size:12px!important;
  63. // font-family:"Helvetica Neue",Helvetica,Arial,"Microsoft Yahei","Hiragino Sans GB","Heiti SC","WenQuanYi Micro Hei",sans-serif !important;
  64. // font-family:"webfont"!important;
  65. }
  66. //修改select控件disable样式
  67. .ivu-select-disabled .ivu-select-selection{
  68. // background-color: unset!important;
  69. color: unset!important;
  70. }
  71. //修改input控件disable样式
  72. .ivu-input[disabled], fieldset[disabled] .ivu-input{
  73. // background-color: unset!important;
  74. color: unset!important;
  75. }
  76. .ivu-input-number-input[disabled]{
  77. color: black!important;
  78. }
  79. //修改button控件disable样式
  80. .ivu-btn-primary[disabled]{
  81. color: unset!important;
  82. }
  83. //修改地址栏内街道 select disable样式
  84. .ivu-select-input[disabled]{
  85. -webkit-text-fill-color:unset!important;
  86. color: unset!important;
  87. }
  88. //修改inputNumber控件disable样式
  89. // .ivu-input-number-disabled{
  90. // background-color: unset!important;
  91. // }
  92. //修改table内button控件disable样式
  93. // .ivu-btn[disabled]{
  94. // color: unset!important;
  95. // }
  96. #app {
  97. .size;
  98. }
  99. .fade-enter {
  100. opacity:0;
  101. }
  102. .fade-leave{
  103. opacity:1;
  104. }
  105. .fade-enter-active{
  106. transition:opacity .5s;
  107. }
  108. .fade-leave-active{
  109. opacity:0;
  110. transition:opacity .5s;
  111. }
  112. </style>
  113. <style>
  114. /* 去掉授权信息 */
  115. #hot-display-license-info{
  116. display: none !important;
  117. }
  118. .icon-huoche {
  119. font-family:'iconfont' !important;
  120. }
  121. .Poptip {
  122. margin-right: 10px;
  123. }
  124. .formItem {
  125. margin-right: 10px;
  126. margin-bottom: 10px !important;
  127. }
  128. .searchForm {
  129. display: flex;
  130. }
  131. .form_outer{
  132. padding: 0 20% 0 1%;
  133. border-radius: 15px;
  134. }
  135. .form_inner{
  136. box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  137. }
  138. .searchForm-no-inline{
  139. display: inline-block;
  140. }
  141. .formItem-no-inline {
  142. margin-bottom: 5px !important;
  143. /*margin-top: 5px !important;*/
  144. padding-left: 10px;
  145. display: block;
  146. float: left;
  147. }
  148. </style>
  149. <style>
  150. /*iview table 选中颜色*/
  151. .ivu-table-row-highlight td, .ivu-table-stripe .ivu-table-body tr.ivu-table-row-highlight:nth-child(2n) td, .ivu-table-stripe .ivu-table-fixed-body tr.ivu-table-row-highlight:nth-child(2n) td, tr.ivu-table-row-highlight.ivu-table-row-hover td{
  152. background-color:#BFEFFF !important
  153. }
  154. /*iview table 悬停颜色*/
  155. /*tr.ivu-table-row-hover td{*/
  156. /* background-color: #BFEFFF !important*/
  157. /*}*/
  158. .my-btn-color1 {
  159. border-color: #9f4fff !important;
  160. background-color: #9f4fff !important;
  161. color: white !important;
  162. border:2px #9f4fff solid;
  163. }
  164. .my-btn-color1:hover {
  165. opacity: 0.9
  166. }
  167. .my-btn-color2 {
  168. border-color: #ff71c9 !important;
  169. background-color: #ff71c9 !important;
  170. color: white !important
  171. }
  172. .my-btn-color2:hover {
  173. opacity: 0.9
  174. }
  175. .my-btn-color3 {
  176. border-color: #78cdd1 !important;
  177. background-color: #78cdd1 !important;
  178. color: white !important
  179. }
  180. .my-btn-color3:hover {
  181. opacity: 0.9
  182. }
  183. .my-btn-color4 {
  184. border-color: #e0a089 !important;
  185. background-color: #e0a089 !important;
  186. color: white !important
  187. }
  188. .my-btn-color4:hover {
  189. opacity: 0.9
  190. }
  191. .my-btn-color5 {
  192. border-color: #999d9c !important;
  193. background-color: #999d9c !important;
  194. color: white !important
  195. }
  196. .my-btn-color5:hover {
  197. opacity: 0.9
  198. }
  199. </style>