RealTimeInfo1.vue 8.1 KB

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