App.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <template>
  2. <div id="app"
  3. v-cloak>
  4. <router-view v-if="isRouterAlive" />
  5. </div>
  6. </template>
  7. <script>
  8. import version from '@/utils/version.js'
  9. import Vue from 'vue'
  10. Vue.use(version)
  11. export default {
  12. name: 'App',
  13. provide () {
  14. return {
  15. reloads: this.reloads
  16. }
  17. },
  18. data () {
  19. return {
  20. isRouterAlive: true,
  21. ver: '1.0.0'
  22. }
  23. },
  24. created () {
  25. let version = this.version
  26. if (version !== this.ver) {
  27. this.$confirm("网站有更新请点击确定刷新页面?", "更新提示", {
  28. confirmButtonText: "确定",
  29. cancelButtonText: "取消",
  30. type: "warning"
  31. })
  32. .then(() => {
  33. // router.replace(targetPath);
  34. location.reload()
  35. })
  36. .catch(() => {
  37. return
  38. });
  39. }
  40. },
  41. methods: {
  42. reloads () {
  43. this.isRouterAlive = false
  44. this.$nextTick(function () {
  45. this.isRouterAlive = true
  46. })
  47. }
  48. }
  49. }
  50. </script>
  51. <style >
  52. * {
  53. margin: 0;
  54. padding: 0;
  55. touch-action: none !important;
  56. }
  57. [v-cloak] {
  58. display: none !important;
  59. }
  60. body {
  61. background-color: #eef4f9;
  62. }
  63. /* 出去多选框中的关闭按钮 */
  64. .el-select__tags .el-tag__close.el-icon-close {
  65. display: none;
  66. }
  67. .el-checkbox__input.is-focus {
  68. visibility: hidden;
  69. }
  70. .el-checkbox__inner:hover {
  71. background-color: rgb(19, 129, 122);
  72. }
  73. .el-checkbox__input.is-checked .el-checkbox__inner,
  74. .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  75. background-color: #14928a;
  76. border-color: #14928a;
  77. }
  78. .el-select__tags .el-tag__close.el-icon-close {
  79. display: inline-block;
  80. }
  81. .el-checkbox__input.is-checked + .el-checkbox__label {
  82. color: #606266;
  83. }
  84. </style>
  85. <style lang="scss">
  86. .el-table {
  87. width: 99.9% !important;
  88. }
  89. .el-tabs__content {
  90. overflow: auto;
  91. }
  92. .el-tabs__item:focus.is-active.is-focus:not(:active) {
  93. box-shadow: none;
  94. border-top-left-radius: 20px;
  95. border-top-right-radius: 20px;
  96. }
  97. input::-webkit-outer-spin-button,
  98. input::-webkit-inner-spin-button {
  99. -webkit-appearance: none;
  100. }
  101. input[type="number"] {
  102. -moz-appearance: textfield;
  103. }
  104. .el-tabs__item.is-active {
  105. color: #14928a !important;
  106. // font-size: 14px;
  107. font-weight: 600;
  108. }
  109. .el-tabs__item:hover {
  110. color: #14928a !important;
  111. // font-size: 14px;
  112. font-weight: 600;
  113. }
  114. // 选择框组件
  115. .el-form-item__content {
  116. font-size: 14px !important;
  117. }
  118. .el-select {
  119. width: 180px !important;
  120. }
  121. .multiple.el-select {
  122. width: 180px !important;
  123. }
  124. .searchBtn {
  125. width: 100px;
  126. height: 36px;
  127. line-height: 36px;
  128. background-color: #f85043;
  129. color: #fff;
  130. font-size: 14px;
  131. text-align: center;
  132. border-radius: 4px;
  133. position: relative;
  134. top: 3px;
  135. cursor: pointer;
  136. }
  137. .newBand {
  138. min-width: 100px;
  139. max-width: 120px;
  140. padding: 0 10px;
  141. height: 36px;
  142. line-height: 36px;
  143. margin-bottom: 20px;
  144. background-color: #14928a;
  145. border: 1px solid #14928a;
  146. cursor: pointer;
  147. color: #fff;
  148. font-size: 14px;
  149. text-align: center;
  150. border-radius: 4px;
  151. position: relative;
  152. top: 3px;
  153. }
  154. .btn-primary {
  155. background-color: #14928a;
  156. border-color: #14928a;
  157. color: #fff;
  158. margin-bottom: 20px;
  159. min-width: 100px;
  160. &:focus,
  161. &:hover {
  162. background-color: #0e726c;
  163. border-color: #0e726c;
  164. color: #fff;
  165. }
  166. }
  167. // 公用的搜索组件
  168. .searchWrap {
  169. display: flex;
  170. flex-direction: row;
  171. justify-content: flex-start;
  172. align-items: center;
  173. font-size: 14px;
  174. font-weight: 500;
  175. color: rgba(119, 119, 119, 1);
  176. height: 30px;
  177. margin-bottom: 30px;
  178. p {
  179. font-size: 14px;
  180. padding-left: 4px;
  181. }
  182. .searchItem {
  183. margin-left: 20px;
  184. position: relative;
  185. box-sizing: border-box;
  186. min-width: 116px;
  187. padding: 0 25px;
  188. height: 30px;
  189. line-height: 30px;
  190. background: rgba(246, 246, 246, 1);
  191. border-radius: 15px;
  192. color: #777;
  193. font-size: 14px;
  194. .el-icon-close {
  195. position: absolute;
  196. right: 5px;
  197. top: 8px;
  198. }
  199. }
  200. }
  201. .headWrap {
  202. padding: 40px 0;
  203. display: flex;
  204. flex-direction: row;
  205. justify-content: space-between;
  206. align-items: center;
  207. .left {
  208. width: 1100px;
  209. display: flex;
  210. flex-direction: row;
  211. justify-content: flex-start;
  212. align-items: center;
  213. flex-wrap: wrap;
  214. .headItem {
  215. width: 320px;
  216. height: 30px;
  217. color: #444;
  218. border-right: 1px solid #979797;
  219. p {
  220. font-size: 14px;
  221. line-height: 30px;
  222. span {
  223. font-size: 22px;
  224. line-height: 30px;
  225. }
  226. }
  227. &:nth-child(1) {
  228. width: 256px;
  229. }
  230. &:nth-child(2n) {
  231. text-align: center;
  232. }
  233. &:nth-child(3n) {
  234. border-right: 1px solid #fff;
  235. text-align: center;
  236. }
  237. &:nth-child(4n) {
  238. text-align: left !important;
  239. width: 256px;
  240. }
  241. &:nth-child(5n) {
  242. text-align: center;
  243. }
  244. }
  245. }
  246. }
  247. // 公用编剧模板
  248. .m-container {
  249. box-sizing: border-box;
  250. background-color: #fff;
  251. padding: 18px 30px 40px;
  252. // height: calc(100vh- 80px) !important;
  253. // height: calc(100vh - 70px);
  254. width: 100%;
  255. // min-width: 1440px;
  256. // overflow: auto;
  257. .m-core {
  258. margin-top: 10px;
  259. background-color: #fff;
  260. position: relative;
  261. }
  262. h2 {
  263. height: 48px;
  264. line-height: 48px;
  265. position: relative;
  266. // padding-left: 20px;
  267. font-size: 32px;
  268. font-weight: 600;
  269. margin-bottom: 10px;
  270. display: flex;
  271. flex-direction: row;
  272. justify-content: flex-start;
  273. align-items: center;
  274. .term {
  275. height: 32px;
  276. line-height: 32px;
  277. border-radius: 24px;
  278. width: 100px;
  279. color: #14928a;
  280. border: 1px solid rgba(20, 146, 138, 1);
  281. font-size: 14px;
  282. text-align: center;
  283. margin-right: 12px;
  284. &:nth-child(1) {
  285. margin-left: 47px;
  286. }
  287. }
  288. .term.active {
  289. color: #fff;
  290. background-color: #14928a;
  291. }
  292. .squrt {
  293. // position: absolute;
  294. // left: 0;
  295. // top: 8px;
  296. margin-right: 15px;
  297. height: 34px;
  298. width: 8px;
  299. background-color: #14928a;
  300. }
  301. }
  302. }
  303. .btnWrap {
  304. display: flex;
  305. flex-direction: row;
  306. justify-content: flex-end;
  307. div {
  308. line-height: 40px;
  309. text-align: center;
  310. color: #fff;
  311. border-radius: 4px;
  312. margin-right: 20px;
  313. cursor: pointer;
  314. }
  315. .nextBtn {
  316. width: 120px;
  317. height: 40px;
  318. background-color: #444;
  319. }
  320. .okBtn {
  321. width: 120px;
  322. height: 40px;
  323. background-color: #f97215;
  324. }
  325. .closeBtn {
  326. width: 120px;
  327. height: 40px;
  328. background-color: #777;
  329. }
  330. }
  331. ::-webkit-scrollbar {
  332. width: 8px; /* 纵向滚动条*/
  333. height: 8px; /* 横向滚动条 */
  334. background-color: #fff;
  335. }
  336. /*定义滚动条轨道 内阴影*/
  337. ::-webkit-scrollbar-track {
  338. -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  339. background-color: #fff;
  340. }
  341. /*定义滑块 内阴影*/
  342. ::-webkit-scrollbar-thumb {
  343. -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  344. background-color: #d5d5d5;
  345. }
  346. .el-input.is-disabled .el-input__inner {
  347. color: #333;
  348. opacity: 1;
  349. }
  350. </style>