App.vue 7.6 KB

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