index.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <template>
  2. <div class="home">
  3. <div class="main">
  4. <div class="carousel" id="step1">
  5. <carousel></carousel>
  6. </div>
  7. <!-- <div class="title">
  8. <h2>知识产权风控与组织记忆系统</h2>
  9. </div> -->
  10. <div class="home_search">
  11. <div class="input_search" id="step2">
  12. <el-input :placeholder="getPlaceholder()" v-model="queryParams.content" class="input-with-select">
  13. <el-select v-model="queryParams.select" slot="prepend" placeholder="请选择" style="width:130px">
  14. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
  15. </el-select>
  16. <el-button slot="append" icon="el-icon-search" @click="search"></el-button>
  17. </el-input>
  18. </div>
  19. </div>
  20. <div class="echart">
  21. <myEcharts></myEcharts>
  22. </div>
  23. </div>
  24. <div class="footer">
  25. <div class="footerDiv">
  26. <div>
  27. <div class="logo">
  28. <img class="img" src="@/assets/logo-4.png" />
  29. <span class="title">知识产权风控与组织记忆系统</span>
  30. </div>
  31. <div class="bei">
  32. <el-link :underline="false" class="elLink">粤<span class="en">IPC</span>备010101010101</el-link>
  33. </div>
  34. </div>
  35. <div>
  36. <div>
  37. <el-link :underline="false" class="elLink">联系我们</el-link>
  38. </div>
  39. <div>
  40. <el-link :underline="false" class="elLink">
  41. <span>
  42. <i class="iconfont icon-tubiao- font-size_20 margin-right_10"></i>
  43. <i class="iconfont icon-youxiang"></i>
  44. </span>
  45. </el-link>
  46. </div>
  47. </div>
  48. <div>
  49. <div>
  50. <el-link :underline="false" class="elLink">反馈建议</el-link>
  51. </div>
  52. <div>
  53. <el-link :underline="false" class="elLink">
  54. <span>
  55. <i class="iconfont icon-yijianfankui" @click="feedback"></i>
  56. </span>
  57. </el-link>
  58. </div>
  59. </div>
  60. <div>
  61. <div>
  62. <el-link :underline="false" class="elLink">实时动态</el-link>
  63. </div>
  64. <div class="elLink">
  65. <i class="iconfont icon-xinxi font-size_20" @click="updateLog"></i>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <feedback ref="feedback"></feedback>
  71. <updateLog ref="updateLog"></updateLog>
  72. </div>
  73. </template>
  74. <script>
  75. import carousel from './components/carousel.vue'
  76. import myEcharts from './components/echarts';
  77. import feedback from '@/views/layout/components/dialog/feedback.vue';
  78. import updateLog from './components/dialog/updateLog.vue'
  79. export default {
  80. components: {
  81. carousel,
  82. myEcharts,
  83. feedback,
  84. updateLog
  85. },
  86. data() {
  87. return {
  88. options: [
  89. {
  90. label: '专利数据库',
  91. value: 'Project',
  92. placeholder: '请输入专利数据库名称'
  93. },
  94. {
  95. label: '专利',
  96. value: 'patentNo',
  97. placeholder: '请输入专利'
  98. },
  99. {
  100. label: '产品',
  101. value: 'Product',
  102. placeholder: '请输入产品名称'
  103. },
  104. {
  105. label: '事件',
  106. value: 'Event',
  107. placeholder: '请输入事件名称'
  108. },
  109. {
  110. label: '报告',
  111. value: 'AllReport',
  112. placeholder: '请输入报告名称'
  113. },
  114. ],
  115. queryParams: {
  116. content: '',
  117. select: 'Project'
  118. },
  119. }
  120. },
  121. methods: {
  122. updateLog(){
  123. this.$refs.updateLog.open()
  124. },
  125. // 点击搜索
  126. search(){
  127. if(!this.queryParams.select){
  128. this.$message.error('请选择需要检索的信息')
  129. return false
  130. }
  131. localStorage.searchContent = this.queryParams.content
  132. this.$router.push({
  133. name:this.queryParams.select,
  134. })
  135. setTimeout(function () {
  136. localStorage.removeItem('searchContent')
  137. }, 1000);
  138. },
  139. //获取提示信息
  140. getPlaceholder() {
  141. if (this.queryParams.select) {
  142. var a = this.options.find(item => {
  143. return item.value == this.queryParams.select
  144. }).placeholder
  145. } else {
  146. var a = '请输入内容'
  147. }
  148. return a
  149. },
  150. //意见反馈q
  151. feedback(){
  152. this.$refs.feedback.open()
  153. },
  154. }
  155. }
  156. </script>
  157. <style lang="scss">
  158. .home {
  159. .el-carousel__container {
  160. height: 200px;
  161. }
  162. .input_search {
  163. .el-input-group__append, .el-input-group__prepend{
  164. background: white;
  165. }
  166. // select中选中项颜色、上下角颜色改变
  167. .el-select .el-input .el-select__caret{
  168. color:var(--color2) !important;
  169. }
  170. .el-input-group__prepend div.el-select .el-input__inner{
  171. color: var(--color2) !important;
  172. font-weight: bold;
  173. }
  174. .el-select .el-input__inner::-webkit-input-placeholder{
  175. color: var(--ph) !important;
  176. }
  177. .el-button {
  178. // all: initial !important;
  179. border-radius: 0px;
  180. width: 50px;
  181. background: rgba(79,166,255);
  182. border: 1px solid rgba(79,166,255);
  183. color: var(--color) !important;
  184. }
  185. }
  186. }
  187. </style>
  188. <style lang="scss" scoped>
  189. .home {
  190. --minHeight:150px;
  191. --marginTop:50px;
  192. .main {
  193. // width: 85%;
  194. margin: 0 auto;
  195. position: relative;
  196. min-height: calc(100% - var(--minHeight) - var(--marginTop));
  197. .carousel{
  198. // padding-top: 10px;
  199. }
  200. .echart{
  201. width:80%;
  202. min-width: 1024px;
  203. max-width: 1530px;
  204. margin: 0 auto;
  205. }
  206. .title {
  207. text-align: center;
  208. color: var(--bg);
  209. font-family: 迷你简汉真广标;
  210. }
  211. .home_search {
  212. width: 100%;
  213. background: var(--bg);
  214. z-index: 999;
  215. margin: 0 auto 20px;
  216. height: 80px;
  217. line-height: 80px;
  218. padding: 10px 0;
  219. position: sticky;
  220. top: 0;
  221. }
  222. .input_search {
  223. min-width: 654px;
  224. width: 50%;
  225. height: 100%;
  226. margin: 0 auto;
  227. }
  228. }
  229. .footer {
  230. width: 100%;
  231. min-height: var(--minHeight);
  232. margin-top: var(--marginTop);
  233. background: var(--bg);
  234. .footerDiv {
  235. max-width: 80%;
  236. width: 800px;
  237. margin: auto;
  238. padding: 10px 0 20px;
  239. display: flex;
  240. flex-wrap: wrap;
  241. &>div {
  242. min-width: 140px;
  243. padding: 10px 0;
  244. color: var(--color);
  245. font-family: 仿宋_GB2312 !important;
  246. border-right: 2px solid var(--color);
  247. div {
  248. padding: 10px 30px;
  249. text-align: center;
  250. }
  251. }
  252. &>div:last-child {
  253. border-right: none;
  254. }
  255. &>div:first-child {
  256. min-width: 330px;
  257. &:last-child {
  258. text-align: left !important;
  259. }
  260. }
  261. .bei {
  262. text-align: left !important;
  263. }
  264. .title {
  265. font-weight: bolder;
  266. }
  267. .en {
  268. font-family: Arial !important;
  269. }
  270. .logo {
  271. display: flex;
  272. align-items: center;
  273. .img {
  274. height: 20px;
  275. margin-right: 20px;
  276. // background: #fff;
  277. }
  278. }
  279. .elLink {
  280. color: var(--color);
  281. font-family: inherit;
  282. i {
  283. font-size: 16px;
  284. }
  285. .font-size_20{
  286. font-size: 20px;
  287. }
  288. }
  289. }
  290. }
  291. }
  292. </style>
  293. <style lang="scss">
  294. .home{
  295. .elLink .el-link--default:after, .elLink .el-link--primary.is-underline:hover:after, .elLink .el-link--primary:after{
  296. border: none;
  297. }
  298. }
  299. </style>