RealTimeInfo.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <template>
  2. <div>
  3. <div class="autoBox boxs">
  4. <div>
  5. <el-breadcrumb separator="/" style="float: left; margin: 15px">
  6. <el-breadcrumb-item :to="{ path: 'home' }">{{
  7. $t("common.Home")
  8. }}</el-breadcrumb-item>
  9. <el-breadcrumb-item>{{ $t("common.GlobalData") }}</el-breadcrumb-item>
  10. <el-breadcrumb-item>{{ $t(Screens) }}</el-breadcrumb-item>
  11. </el-breadcrumb>
  12. <el-breadcrumb
  13. separator="/"
  14. style="float: right; margin: 14px 15px 0 0"
  15. v-if="screenIndex == '0'"
  16. >
  17. <span
  18. class="cursor"
  19. :class="screenIndex == index ? 'screen1' : 'screen2'"
  20. @click="realTimeInfoScreen(item, index)"
  21. v-for="(item, index) in realTimeInfoScreens"
  22. >
  23. &nbsp;&nbsp;{{ $t(item.lable) }} &nbsp;&nbsp;</span
  24. >
  25. </el-breadcrumb>
  26. <el-breadcrumb
  27. separator="/"
  28. style="float: right; margin: 14px 15px 0 0"
  29. v-if="screenIndex == '1'"
  30. >
  31. <span
  32. class="cursor"
  33. :class="screenIndex == index ? 'screen1' : 'screen2'"
  34. @click="realTimeInfoScreen(item, item.value)"
  35. v-for="(item, index) in realTimeInfoScreens2"
  36. >
  37. &nbsp;&nbsp;{{ $t(item.lable) }} &nbsp;&nbsp;
  38. </span>
  39. </el-breadcrumb>
  40. <!-- 联盟介绍 -->
  41. <el-breadcrumb
  42. separator="/"
  43. style="float: right; margin: 14px 15px 0 0"
  44. v-if="screenIndex == '2'"
  45. >
  46. <span
  47. class="cursor"
  48. :class="screenIndex == index ? 'screen1' : 'screen2'"
  49. @click="realTimeInfoScreen(item, item.value)"
  50. v-for="(item, index) in realTimeInfoScreens3"
  51. >
  52. &nbsp;&nbsp;{{ $t(item.lable) }} &nbsp;&nbsp;
  53. </span>
  54. </el-breadcrumb>
  55. </div>
  56. </div>
  57. <!-- <RealTimeInfoMoreInfo v-if="screenIndex==0"></RealTimeInfoMoreInfo> -->
  58. <RealTimeInfoDataInfo v-if="screenIndex == 0"></RealTimeInfoDataInfo
  59. ><!-- 数据 -->
  60. <!-- <RealTimeInfoPeriodical v-if="screenIndex==2"></RealTimeInfoPeriodical>期刊 -->
  61. </div>
  62. </template>
  63. <script>
  64. import HeaderItem from "@/components/headerItem";
  65. import tabers from "@/components/taber";
  66. import footers from "@/components/footers";
  67. import Screen from "@/components/screen";
  68. import RealTimeInfoMoreInfo from "@/views/realTimeInfo/RealTimeInfoMoreInfo";
  69. import RealTimeInfoDataInfo from "@/views/realTimeInfo/RealTimeInfoDataInfo";
  70. import RealTimeInfoPeriodical from "@/views/realTimeInfo/RealTimeInfoPeriodical";
  71. export default {
  72. name: "RealTimeInfo",
  73. components: {
  74. tabers,
  75. HeaderItem,
  76. footers,
  77. Screen,
  78. RealTimeInfoMoreInfo,
  79. RealTimeInfoDataInfo,
  80. RealTimeInfoPeriodical,
  81. },
  82. data() {
  83. return {
  84. screenIndex: this.$route.query.key ? this.$route.query.key : 0,
  85. Screens: "common.isData",
  86. realTimeInfoScreens: [
  87. // {
  88. // lable: "common.Information",
  89. // value: "0",
  90. // },
  91. {
  92. lable: "common.DataInformation",
  93. value: "0",
  94. },
  95. // {
  96. // lable: "common.JournalInformation",
  97. // value: "2",
  98. // },
  99. ],
  100. realTimeInfoScreens2: [
  101. {
  102. lable: "common.Information",
  103. value: "0",
  104. },
  105. {
  106. lable: "common.DataInformation",
  107. value: "1",
  108. },
  109. {
  110. lable: "common.JournalInformation",
  111. value: "2",
  112. },
  113. ],
  114. realTimeInfoScreens3: [
  115. {
  116. lable: "common.Information",
  117. value: "0",
  118. },
  119. {
  120. lable: "common.DataInformation",
  121. value: "1",
  122. },
  123. {
  124. lable: "common.JournalInformation",
  125. value: "2",
  126. },
  127. ],
  128. realTimeInfoScreenItem: "0",
  129. };
  130. },
  131. mounted() {
  132. if (this.$route.query.key) {
  133. this.Screens = this.$route.query.key;
  134. if (this.screenIndex == "0") {
  135. return (this.Screens = "common.Information");
  136. } else if (this.screenIndex == "1") {
  137. return (this.Screens = "common.DataInformation");
  138. } else if (this.screenIndex == "2") {
  139. return (this.Screens = "common.JournalInformation");
  140. }
  141. }
  142. },
  143. methods: {
  144. getIconUrl(url) {
  145. return require("@/assets/img/realTimeInfo/" + url);
  146. },
  147. toView(router, json) {
  148. this.$router.push({ name: router, params: json });
  149. },
  150. screenBack(data) {
  151. console.log(data, "screenBackscreenBackscreenBackscreenBack");
  152. },
  153. realTimeInfoScreen(i, index) {
  154. this.screenIndex = index;
  155. this.Screens = i.lable;
  156. },
  157. screen(i) {
  158. this.index = i;
  159. },
  160. realTimeInfoScreensChange(i, index) {
  161. this.realTimeInfoScreenItem = index;
  162. },
  163. },
  164. };
  165. </script>
  166. <!-- Add "scoped" attribute to limit CSS to this component only -->
  167. <style scoped>
  168. ul {
  169. margin: 0;
  170. padding: 0;
  171. }
  172. .box,
  173. .boxs {
  174. margin-top: 10px;
  175. background: #fff;
  176. /* height: 500px; */
  177. padding-bottom: 10px;
  178. }
  179. .boxs {
  180. padding-bottom: 40px;
  181. }
  182. body {
  183. margin: 0;
  184. }
  185. .screen1 {
  186. background: linear-gradient(180deg, #3280e2 0%, #144e97 100%);
  187. border-radius: 20px 20px 20px 20px;
  188. padding: 8px 12px;
  189. color: #f0f3f8;
  190. margin-left: 10px;
  191. }
  192. .screen2 {
  193. font-size: 14px;
  194. background: linear-gradient(180deg, #b4d5ff 0%, #4f81bf 100%);
  195. border-radius: 20px;
  196. padding: 8px 12px;
  197. color: #165099;
  198. margin-left: 10px;
  199. }
  200. li {
  201. display: inline-block;
  202. margin-left: 6px;
  203. padding: 0 2px;
  204. color: #1251a7;
  205. }
  206. .realTimeInfo_scree .span1,
  207. .realTimeInfo_scree .span2 {
  208. color: #fff;
  209. padding: 0 10px;
  210. font-size: 13px;
  211. display: inline-block;
  212. height: 100%;
  213. background: #2c5589;
  214. /* margin-right: 30px; */
  215. width: 70px;
  216. text-align: center;
  217. }
  218. .realTimeInfo_scree .span2 {
  219. background: #fff;
  220. color: #1251a7;
  221. }
  222. .RealTimeInfo >>> .el-input__inner {
  223. height: 50px !important;
  224. }
  225. .RealTimeInfo >>> .el-input-group__prepend {
  226. background-color: #fff;
  227. color: #000;
  228. }
  229. .Information {
  230. border-bottom: 1px solid #bebebe;
  231. }
  232. .Information span {
  233. font-size: 14px;
  234. display: inline-block;
  235. padding: 6px 0;
  236. }
  237. .Information .dcp_infor {
  238. margin-right: 500px;
  239. color: #2c5589;
  240. font-weight: 700;
  241. font-size: 15px;
  242. }
  243. .Information .dcp_infor2 {
  244. margin-right: 30px;
  245. }
  246. .lableStyle li {
  247. display: block;
  248. }
  249. .lableStyle1,
  250. .lableStyle2 {
  251. color: #666;
  252. font-size: 14px;
  253. line-height: 29px;
  254. padding-left: 10px;
  255. }
  256. .lableStyle1 {
  257. font-size: 16px;
  258. font-weight: 600;
  259. }
  260. .spot {
  261. display: inline-block;
  262. width: 6px;
  263. height: 6px;
  264. background-color: #999;
  265. margin-right: 5px;
  266. margin-bottom: 2px;
  267. }
  268. </style>