App.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <template>
  2. <div id="app">
  3. <router-view v-if="isRouterAlive"></router-view>
  4. </div>
  5. </template>
  6. <script>
  7. // import { loginconf } from "api/api.js";
  8. export default {
  9. name: "app",
  10. provide() {
  11. //父组件中通过provide来提供变量,在子组件中通过inject来注入变量。
  12. return {
  13. reload: this.reload,
  14. };
  15. },
  16. data() {
  17. return {
  18. isRouterAlive: true, //控制视图是否显示的变量
  19. };
  20. },
  21. methods: {
  22. reload() {
  23. this.isRouterAlive = false; //先关闭,
  24. this.$nextTick(function () {
  25. this.isRouterAlive = true; //再打开
  26. });
  27. },
  28. },
  29. };
  30. </script>
  31. <style lang="scss">
  32. @import "~scss_global";
  33. body {
  34. margin: 0px !important;
  35. padding: 0px;
  36. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
  37. Microsoft YaHei, SimSun, sans-serif;
  38. font-size: 14px;
  39. -webkit-font-smoothing: antialiased;
  40. }
  41. .fr-second-toolbar {
  42. display: none !important;
  43. }
  44. img {
  45. object-fit: contain !important;
  46. image-rendering: -moz-crisp-edges;
  47. image-rendering: -o-crisp-edges;
  48. image-rendering: -webkit-optimize-contrast;
  49. image-rendering: crisp-edges;
  50. -ms-interpolation-mode: nearest-neighbor;
  51. }
  52. #app {
  53. position: absolute;
  54. top: 0px;
  55. bottom: 0px;
  56. left:0;
  57. right:0;
  58. }
  59. .el-submenu [class^="fa"] {
  60. vertical-align: baseline;
  61. margin-right: 10px;
  62. }
  63. .el-menu-item [class^="fa"] {
  64. vertical-align: baseline;
  65. margin-right: 10px;
  66. }
  67. .toolbar {
  68. font: 14px "微软雅黑";
  69. color: $color-primary;
  70. background: #fff;
  71. padding: 10px 15px;
  72. margin: 10px 0px;
  73. .el-form-item {
  74. margin-bottom: 10px;
  75. }
  76. }
  77. .headTip {
  78. padding: 10px 15px;
  79. margin: 10px auto;
  80. font: 14px "微软雅黑";
  81. color: #fff;
  82. background: $color-primary;
  83. }
  84. .fade-enter-active,
  85. .fade-leave-active {
  86. transition: all 0.2s ease;
  87. }
  88. .fade-enter,
  89. .fade-leave-active {
  90. opacity: 0;
  91. }
  92. p[data-f-id="pbf"] {
  93. display: none;
  94. }
  95. iframe {
  96. border: none;
  97. }
  98. .el-table .success-row {
  99. background: #eaeaea;
  100. }
  101. .editsty {
  102. font-size: 14px;
  103. color: #0052D9;
  104. cursor: pointer;
  105. margin-right: 5px;
  106. }
  107. .deletesty {
  108. font-size: 14px;
  109. color: #C54322;
  110. cursor: pointer;
  111. &:hover{color:#C54322}
  112. }
  113. .disty {
  114. font-size: 14px;
  115. color: #999;
  116. cursor: not-allowed;
  117. }
  118. .warnsty {
  119. font-size: 14px;
  120. color: #ff9900;
  121. }
  122. .successty {
  123. font-size: 14px;
  124. color: #1bb940;
  125. }
  126. .el-card__header {
  127. border: none !important;
  128. box-shadow: 0 3px 6px rgba(37, 37, 239, 0.1) !important;
  129. }
  130. .el-pagination.is-background .el-pager li {
  131. background: #fff;
  132. // border: 1px solid #8F9BB3;
  133. }
  134. .el-pagination.is-background .el-pager li:not(.disabled).active {
  135. border-color: #0052D9;
  136. }
  137. .el-pagination.is-background .btn-next,
  138. .el-pagination.is-background .btn-prev {
  139. // border: 1px solid #8F9BB3;
  140. background: #fff;
  141. }
  142. .clearfix:after {
  143. content: "";
  144. height: 0;
  145. clear: both;
  146. visibility: hidden;
  147. display: block;
  148. zoom: 1;
  149. }
  150. .text_oneLine {
  151. overflow: hidden;
  152. text-overflow: ellipsis;
  153. white-space: nowrap;
  154. }
  155. /* 控制文字显示两行 */
  156. .text_twoLine {
  157. overflow: hidden;
  158. text-overflow: ellipsis;
  159. display: -webkit-box;
  160. -webkit-box-orient: vertical;
  161. -webkit-line-clamp: 2;
  162. }
  163. /* .el-popover */
  164. .el-checkbox__input.is-disabled + span.el-checkbox__label {
  165. color: #666 !important;
  166. }
  167. .el-form-item__label {
  168. font-size: 14px;
  169. }
  170. .el-collapse-item__header {
  171. border: none;
  172. font-size: 14px;
  173. color: #333;
  174. font-weight: bold;
  175. position: relative;
  176. margin-bottom: 20px;
  177. }
  178. /* 省市选择禁用统一element样式 */
  179. .distpicker-address-wrapper select:disabled {
  180. cursor: not-allowed;
  181. background: #f5f7fa;
  182. border-color: #e4e7ed;
  183. color: #c0c4cc;
  184. opacity: 1;
  185. }
  186. .distpicker-address-wrapper select {
  187. font-size: 14px !important;
  188. }
  189. /* img preview */
  190. .el-image-viewer__mask {
  191. opacity: 0.8;
  192. }
  193. .el-image-viewer__canvas .el-image-viewer__img {
  194. position: absolute;
  195. // left: 40%;
  196. // top: 40%;
  197. // transform: translate(-50%,-50%);
  198. width: 1200px;
  199. max-height: 100vh;
  200. overflow-y: scroll;
  201. }
  202. .el-image-viewer__next,
  203. .el-image-viewer__prev {
  204. width: 62px;
  205. height: 110px;
  206. border: none;
  207. font-size: 80px;
  208. background: transparent;
  209. color: #858585;
  210. }
  211. .el-image-viewer__close {
  212. width: 66px;
  213. height: 66px;
  214. color: #fff;
  215. font-size: 48px;
  216. }
  217. .el-popconfirm .el-popconfirm__action {
  218. margin-top: 10px;
  219. }
  220. /*修改滚动条样式 chrome edge safari*/
  221. div::-webkit-scrollbar {
  222. width: 7px;
  223. height: 7px;
  224. }
  225. div::-webkit-scrollbar-track {
  226. background: rgb(239, 239, 239);
  227. border-radius: 2px;
  228. }
  229. div::-webkit-scrollbar-thumb {
  230. background: #ccc;
  231. border-radius: 10px;
  232. }
  233. div::-webkit-scrollbar-thumb:hover {
  234. background: #888;
  235. }
  236. div::-webkit-scrollbar-corner {
  237. background: #666;
  238. }
  239. /*firefox*/
  240. /* div{
  241. scrollbar-width: thin;
  242. } */
  243. .customName:hover {
  244. text-decoration: underline;
  245. }
  246. /**/
  247. .el-select-dropdown__wrap {
  248. max-height: 358px !important;
  249. }
  250. /* 日期选择 */
  251. .mx-datepicker {
  252. width: 280px !important;
  253. }
  254. .mx-calendar-content .cell.active {
  255. background-color: #0052D9 !important;
  256. }
  257. .mx-datepicker .mx-input {
  258. height: 40px;
  259. border-color: #dcdfe6;
  260. box-shadow: none;
  261. }
  262. .mx-input {
  263. &::placeholder {
  264. color: #bbb;
  265. }
  266. &:hover {
  267. border-color: #c0c4cc !important;
  268. }
  269. }
  270. /*修改滚动条样式 chrome edge safari*/
  271. ul::-webkit-scrollbar {
  272. width: 7px;
  273. height: 7px;
  274. }
  275. ul::-webkit-scrollbar-track {
  276. background: rgb(239, 239, 239);
  277. border-radius: 2px;
  278. }
  279. ul::-webkit-scrollbar-thumb {
  280. background: #ccc;
  281. border-radius: 10px;
  282. }
  283. ul::-webkit-scrollbar-thumb:hover {
  284. background: #888;
  285. }
  286. ul::-webkit-scrollbar-corner {
  287. background: #666;
  288. }
  289. /*firefox*/
  290. /* ul{
  291. scrollbar-width: thin;
  292. } */
  293. textarea {
  294. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  295. "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  296. }
  297. // .el-dialog {
  298. // display: flex;
  299. // flex-direction: column;
  300. // margin: 0 !important;
  301. // position: absolute;
  302. // top: 50%;
  303. // left: 50%;
  304. // transform: translate(-50%, -50%);
  305. // max-height: calc(100% - 30px);
  306. // max-width: calc(100% - 30px);
  307. // }
  308. // .el-dialog .el-dialog__body {
  309. // flex: 1;
  310. // overflow: auto;
  311. // }
  312. .el-color-predefine {
  313. .el-color-predefine__color-selector {
  314. box-shadow: 0 0 1px 1px #999;
  315. }
  316. }
  317. //图表搜索select
  318. .chart-search-popper {
  319. min-width: 300px !important;
  320. width: auto !important;
  321. }
  322. //数据管理下的输入框
  323. .el-autocomplete-suggestion-data-entry {
  324. width: auto !important;
  325. }
  326. </style>