App.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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. $--color-primary: teal;
  87. .el-table {
  88. width: 99.9% !important;
  89. }
  90. .el-tabs__content {
  91. overflow: auto;
  92. }
  93. .el-tabs__item:focus.is-active.is-focus:not(:active) {
  94. box-shadow: none;
  95. border-top-left-radius: 20px;
  96. border-top-right-radius: 20px;
  97. }
  98. input::-webkit-outer-spin-button,
  99. input::-webkit-inner-spin-button {
  100. -webkit-appearance: none;
  101. }
  102. input[type="number"] {
  103. -moz-appearance: textfield;
  104. }
  105. .el-dialog{
  106. margin-bottom: 10vh;
  107. }
  108. .el-tabs__item.is-active {
  109. color: #14928a !important;
  110. // font-size: 14px;
  111. font-weight: 600;
  112. }
  113. .el-tabs__item:hover {
  114. color: #14928a !important;
  115. // font-size: 14px;
  116. font-weight: 600;
  117. }
  118. // 选择框组件
  119. .el-form-item__content {
  120. font-size: 14px !important;
  121. }
  122. .el-select {
  123. width: 180px !important;
  124. }
  125. .multiple.el-select {
  126. width: 180px !important;
  127. }
  128. .searchBtn {
  129. width: 100px;
  130. height: 36px;
  131. line-height: 36px;
  132. background-color: #f85043;
  133. color: #fff;
  134. font-size: 14px;
  135. text-align: center;
  136. border-radius: 4px;
  137. position: relative;
  138. top: 3px;
  139. cursor: pointer;
  140. }
  141. .newBand {
  142. min-width: 100px;
  143. max-width: 120px;
  144. padding: 0 10px;
  145. height: 36px;
  146. line-height: 36px;
  147. margin-bottom: 20px;
  148. background-color: #14928a;
  149. border: 1px solid #14928a;
  150. cursor: pointer;
  151. color: #fff;
  152. font-size: 14px;
  153. text-align: center;
  154. border-radius: 4px;
  155. position: relative;
  156. top: 3px;
  157. }
  158. .btn-primary {
  159. background-color: #14928a;
  160. border-color: #14928a;
  161. color: #fff;
  162. margin-bottom: 20px;
  163. min-width: 100px;
  164. &:focus,
  165. &:hover {
  166. background-color: #0e726c;
  167. border-color: #0e726c;
  168. color: #fff;
  169. }
  170. }
  171. // 公用的搜索组件
  172. .searchWrap {
  173. display: flex;
  174. flex-direction: row;
  175. justify-content: flex-start;
  176. align-items: center;
  177. font-size: 14px;
  178. font-weight: 500;
  179. color: rgba(119, 119, 119, 1);
  180. height: 30px;
  181. margin-bottom: 30px;
  182. p {
  183. font-size: 14px;
  184. padding-left: 4px;
  185. }
  186. .searchItem {
  187. margin-left: 20px;
  188. position: relative;
  189. box-sizing: border-box;
  190. min-width: 116px;
  191. padding: 0 25px;
  192. height: 30px;
  193. line-height: 30px;
  194. background: rgba(246, 246, 246, 1);
  195. border-radius: 15px;
  196. color: #777;
  197. font-size: 14px;
  198. .el-icon-close {
  199. position: absolute;
  200. right: 5px;
  201. top: 8px;
  202. }
  203. }
  204. }
  205. .headWrap {
  206. padding: 40px 0;
  207. display: flex;
  208. flex-direction: row;
  209. justify-content: space-between;
  210. align-items: center;
  211. .left {
  212. width: 1100px;
  213. display: flex;
  214. flex-direction: row;
  215. justify-content: flex-start;
  216. align-items: center;
  217. flex-wrap: wrap;
  218. .headItem {
  219. width: 320px;
  220. height: 30px;
  221. color: #444;
  222. border-right: 1px solid #979797;
  223. p {
  224. font-size: 14px;
  225. line-height: 30px;
  226. span {
  227. font-size: 22px;
  228. line-height: 30px;
  229. }
  230. }
  231. &:nth-child(1) {
  232. width: 256px;
  233. }
  234. &:nth-child(2n) {
  235. text-align: center;
  236. }
  237. &:nth-child(3n) {
  238. border-right: 1px solid #fff;
  239. text-align: center;
  240. }
  241. &:nth-child(4n) {
  242. text-align: left !important;
  243. width: 256px;
  244. }
  245. &:nth-child(5n) {
  246. text-align: center;
  247. }
  248. }
  249. }
  250. }
  251. // 公用编剧模板
  252. .m-container {
  253. box-sizing: border-box;
  254. background-color: #fff;
  255. padding: 18px 30px 40px;
  256. // height: calc(100vh- 80px) !important;
  257. // height: calc(100vh - 70px);
  258. width: 100%;
  259. // min-width: 1440px;
  260. // overflow: auto;
  261. .m-core {
  262. margin-top: 10px;
  263. background-color: #fff;
  264. position: relative;
  265. }
  266. h2 {
  267. height: 48px;
  268. line-height: 48px;
  269. position: relative;
  270. // padding-left: 20px;
  271. font-size: 32px;
  272. font-weight: 600;
  273. margin-bottom: 10px;
  274. display: flex;
  275. flex-direction: row;
  276. justify-content: flex-start;
  277. align-items: center;
  278. .term {
  279. height: 32px;
  280. line-height: 32px;
  281. border-radius: 24px;
  282. width: 100px;
  283. color: #14928a;
  284. border: 1px solid rgba(20, 146, 138, 1);
  285. font-size: 14px;
  286. text-align: center;
  287. margin-right: 12px;
  288. &:nth-child(1) {
  289. margin-left: 47px;
  290. }
  291. }
  292. .term.active {
  293. color: #fff;
  294. background-color: #14928a;
  295. }
  296. .squrt {
  297. // position: absolute;
  298. // left: 0;
  299. // top: 8px;
  300. margin-right: 15px;
  301. height: 34px;
  302. width: 8px;
  303. background-color: #14928a;
  304. }
  305. }
  306. }
  307. .btnWrap {
  308. display: flex;
  309. flex-direction: row;
  310. justify-content: flex-end;
  311. div {
  312. line-height: 40px;
  313. text-align: center;
  314. color: #fff;
  315. border-radius: 4px;
  316. margin-right: 20px;
  317. cursor: pointer;
  318. }
  319. .nextBtn {
  320. width: 120px;
  321. height: 40px;
  322. background-color: #13817a;
  323. }
  324. .okBtn {
  325. width: 120px;
  326. height: 40px;
  327. background-color: #f97215;
  328. }
  329. .closeBtn {
  330. width: 120px;
  331. height: 40px;
  332. background-color: #777;
  333. }
  334. }
  335. ::-webkit-scrollbar {
  336. width: 8px; /* 纵向滚动条*/
  337. height: 8px; /* 横向滚动条 */
  338. background-color: #fff;
  339. }
  340. /*定义滚动条轨道 内阴影*/
  341. ::-webkit-scrollbar-track {
  342. -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  343. background-color: #fff;
  344. }
  345. /*定义滑块 内阴影*/
  346. ::-webkit-scrollbar-thumb {
  347. -webkit-box-shadow: inset 0 0 8px rgba(0, 0, 0, 0);
  348. background-color: #d5d5d5;
  349. }
  350. .el-input.is-disabled .el-input__inner {
  351. color: #333;
  352. opacity: 1;
  353. }
  354. </style>