list.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <template>
  2. <div id="list">
  3. <el-row>
  4. <div class="w_1200">
  5. <el-col :span="24" class="main">
  6. <el-col :span="4" class="menu">
  7. <el-image :src="squareImage"></el-image>
  8. <span class="topMenu">Menu</span>
  9. <!-- <el-col class="menuList" :span="24" v-for="(item, index) in menuList" :key="index">
  10. <p @click="changeMenu(item.name, index)" :style="`color:${menuIndex == index ? menuColor : ''}`">{{ item.name }}</p>
  11. </el-col> -->
  12. <el-col :span="24">
  13. <el-collapse v-model="activeNames" accordion>
  14. <el-collapse-item name="1">
  15. <template slot="title">本地服务</template>
  16. <el-col class="menuList" :span="24" v-for="(item, index) in menuList" :key="index">
  17. <p @click="changeMenu(item.name, index)" :style="`color:${menuIndex == index ? menuColor : ''}`">
  18. <i :class="item.icon"></i>
  19. <span :style="`color:${menuIndex == index ? menuColor : ''}`"> {{ item.name }}</span>
  20. </p>
  21. </el-col>
  22. </el-collapse-item>
  23. <el-collapse-item name="2">
  24. <template slot="title">合作服务</template>
  25. <el-col class="menuList" :span="24" v-for="(item, index) in menuLists" :key="index">
  26. <p @click="changeMenus(item.name, index)" :style="`color:${menuIndexs == index ? menuColor : ''}`">
  27. <i :class="item.icon"></i>
  28. <span :style="`color:${menuIndexs == index ? menuColor : ''}`">{{ item.name }}</span>
  29. </p>
  30. </el-col>
  31. </el-collapse-item>
  32. </el-collapse>
  33. </el-col>
  34. </el-col>
  35. <el-col :span="19" class="info">
  36. <el-col :span="24" class="infoTop">
  37. <span>|</span> <span>{{ columnName }}</span>
  38. </el-col>
  39. <el-col :span="24" class="infoDown">
  40. <span v-if="columnName == '智慧推荐'">
  41. <wisdom></wisdom>
  42. </span>
  43. <span v-else-if="columnName == '展会管理'">
  44. <exhibition></exhibition>
  45. </span>
  46. <span v-else-if="columnName == '科技评估'">
  47. <assessment></assessment>
  48. </span>
  49. <span v-else-if="columnName == '合同在线'">
  50. <contract></contract>
  51. </span>
  52. <span v-else-if="columnName == '信用认证'">
  53. <credit></credit>
  54. </span>
  55. <span v-else-if="columnName == '绩效评价'">
  56. <achievements></achievements>
  57. </span>
  58. <span v-else-if="columnName == '知识产权'">
  59. <el-col :span="24" class="kaifaMain">
  60. <el-image :src="kaifaInfo.pic"></el-image>
  61. <p>{{ kaifaInfo.title }}</p>
  62. </el-col>
  63. </span>
  64. <span v-else-if="columnName == '科技文献'">
  65. <el-col :span="24" class="kaifaMain">
  66. <el-image :src="kaifaInfo.pic"></el-image>
  67. <p>{{ kaifaInfo.title }}</p>
  68. </el-col>
  69. </span>
  70. <span v-else-if="columnName == '项目申报'">
  71. <el-col :span="24" class="kaifaMain">
  72. <el-image :src="kaifaInfo.pic"></el-image>
  73. <p>{{ kaifaInfo.title }}</p>
  74. </el-col>
  75. </span>
  76. <span v-else-if="columnName == '科技金融'">
  77. <el-col :span="24" class="kaifaMain">
  78. <el-image :src="kaifaInfo.pic"></el-image>
  79. <p>{{ kaifaInfo.title }}</p>
  80. </el-col>
  81. </span>
  82. <span v-else-if="columnName == '科技孵化'">
  83. <el-col :span="24" class="kaifaMain">
  84. <el-image :src="kaifaInfo.pic"></el-image>
  85. <p>{{ kaifaInfo.title }}</p>
  86. </el-col>
  87. </span>
  88. <span v-else-if="columnName == '成果登记'">
  89. <el-col :span="24" class="kaifaMain">
  90. <el-image :src="kaifaInfo.pic"></el-image>
  91. <p>{{ kaifaInfo.title }}</p>
  92. </el-col>
  93. </span>
  94. <span v-else-if="columnName == '技术合同'">
  95. <el-col :span="24" class="kaifaMain">
  96. <el-image :src="kaifaInfo.pic"></el-image>
  97. <p>{{ kaifaInfo.title }}</p>
  98. </el-col>
  99. </span>
  100. <span v-else-if="columnName == '高企认证'">
  101. <el-col :span="24" class="kaifaMain">
  102. <el-image :src="kaifaInfo.pic"></el-image>
  103. <p>{{ kaifaInfo.title }}</p>
  104. </el-col>
  105. </span>
  106. </el-col>
  107. </el-col>
  108. </el-col>
  109. </div>
  110. </el-row>
  111. </div>
  112. </template>
  113. <script>
  114. import wisdom from './detail/wisdom.vue';
  115. import exhibition from './detail/exhibition.vue';
  116. import assessment from './detail/assessment.vue';
  117. import contract from './detail/contract.vue';
  118. import credit from './detail/credit.vue';
  119. import achievements from './detail/achievements.vue';
  120. export default {
  121. name: 'list',
  122. props: {},
  123. components: {
  124. wisdom, //智慧推荐
  125. exhibition, //展会管理
  126. assessment, //科技评估
  127. contract, //合同在线
  128. credit, //信用认证
  129. achievements, //绩效评价
  130. },
  131. data: () => ({
  132. squareImage: require('@/assets/live/square_big.png'),
  133. activeNames: '1',
  134. menuList: [
  135. { icon: 'el-icon-trophy-1', name: '智慧推荐' },
  136. { icon: 'el-icon-pie-chart', name: '展会管理' },
  137. { icon: 'el-icon-news', name: '科技评估' },
  138. { icon: 'el-icon-guide', name: '合同在线' },
  139. { icon: 'el-icon-notebook-2', name: '信用认证' },
  140. { icon: 'el-icon-files', name: '绩效评价' },
  141. ],
  142. menuLists: [
  143. { icon: 'el-icon-trophy-1', name: '知识产权' },
  144. { icon: 'el-icon-football', name: '科技文献' },
  145. { icon: 'el-icon-bangzhu', name: '项目申报' },
  146. { icon: 'el-icon-aim', name: '科技金融' },
  147. { icon: 'el-icon-odometer', name: '科技孵化' },
  148. { icon: 'el-icon-coin', name: '成果登记' },
  149. { icon: 'el-icon-notebook-1', name: '技术合同' },
  150. { icon: 'el-icon-office-building', name: '高企认证' },
  151. ],
  152. menuColor: 'rgb(254, 149, 14)',
  153. backColor: 'rgb(204,204,204)',
  154. menuIndex: '0',
  155. menuIndexs: '0',
  156. columnName: '',
  157. // 功能开发中
  158. kaifaInfo: {
  159. pic: require('@/assets/timg.gif'),
  160. title: '功能开发中',
  161. },
  162. }),
  163. created() {
  164. this.searchInfo();
  165. if (this.activeName) {
  166. this.$set(this, `activeNames`, this.activeName);
  167. }
  168. console.log(this.activeName);
  169. },
  170. computed: {
  171. column_name() {
  172. return this.$route.query.column_name;
  173. },
  174. activeName() {
  175. return this.$route.query.activeNames;
  176. },
  177. },
  178. methods: {
  179. searchInfo() {
  180. if (this.column_name == '智慧推荐') this.changeMenu(this.$route.query.column_name, 0);
  181. if (this.column_name == '展会管理') this.changeMenu(this.$route.query.column_name, 1);
  182. if (this.column_name == '科技评估') this.changeMenu(this.$route.query.column_name, 2);
  183. if (this.column_name == '合同在线') this.changeMenu(this.$route.query.column_name, 3);
  184. if (this.column_name == '信用认证') this.changeMenu(this.$route.query.column_name, 4);
  185. if (this.column_name == '绩效评价') this.changeMenu(this.$route.query.column_name, 5);
  186. if (this.column_name == '知识产权') this.changeMenus(this.$route.query.column_name, 0);
  187. if (this.column_name == '科技文献') this.changeMenus(this.$route.query.column_name, 1);
  188. if (this.column_name == '项目申报') this.changeMenus(this.$route.query.column_name, 2);
  189. if (this.column_name == '科技金融') this.changeMenus(this.$route.query.column_name, 3);
  190. if (this.column_name == '科技孵化') this.changeMenus(this.$route.query.column_name, 4);
  191. if (this.column_name == '成果登记') this.changeMenus(this.$route.query.column_name, 5);
  192. if (this.column_name == '技术合同') this.changeMenus(this.$route.query.column_name, 6);
  193. if (this.column_name == '高企认证') this.changeMenus(this.$route.query.column_name, 7);
  194. },
  195. changeMenu(name, index) {
  196. this.menuIndex = index;
  197. this.columnName = name;
  198. this.menuColor = 'rgb(254, 149, 14)';
  199. // if (index == 1) {
  200. // this.menuIndex = index;
  201. // this.columnName = name;
  202. // this.menuColor = 'rgb(254, 149, 14)';
  203. // } else {
  204. // this.$message({
  205. // message: '功能开发中',
  206. // type: 'warning',
  207. // });
  208. },
  209. changeMenus(name, index) {
  210. console.log(name, index);
  211. this.menuIndexs = index;
  212. this.columnName = name;
  213. this.menuColor = 'rgb(254, 149, 14)';
  214. // this.$message({
  215. // message: '功能开发中',
  216. // type: 'warning',
  217. // });
  218. },
  219. },
  220. };
  221. </script>
  222. <style lang="less" scoped>
  223. .w_1200 {
  224. width: 80%;
  225. margin: 0 auto;
  226. }
  227. .main {
  228. min-height: 900px;
  229. margin: 20px 0;
  230. }
  231. .menu {
  232. float: left;
  233. min-height: 900px;
  234. background: no-repeat bottom right;
  235. background-image: url(/img/menu_back.81f4b7e7.jpg);
  236. padding: 10px 0 0 10px;
  237. box-sizing: border-box;
  238. box-shadow: 0 0 10px #bbbaba;
  239. }
  240. .menu .el-image {
  241. width: 30px;
  242. display: inline-table;
  243. margin: 10px 5px;
  244. }
  245. .menu .topMenu {
  246. font-size: 24px;
  247. color: #92959a;
  248. font-weight: 600;
  249. margin-left: 3px;
  250. position: relative;
  251. top: 10px;
  252. }
  253. .menuList {
  254. i {
  255. padding: 0 15px 0 0;
  256. font-size: 25px;
  257. }
  258. span {
  259. font-size: 20px;
  260. }
  261. }
  262. .menuList p {
  263. line-height: 50px;
  264. font-size: 16px;
  265. cursor: pointer;
  266. border-bottom: 1px solid #2d64b3;
  267. color: #044b79;
  268. font-weight: 600;
  269. padding: 0 0 0 15px;
  270. }
  271. .info {
  272. float: right;
  273. width: 82%;
  274. min-height: 900px;
  275. padding: 20px;
  276. box-shadow: 0 0 10px #2d64b3;
  277. .infoTop {
  278. font-size: 18px;
  279. height: 40px;
  280. line-height: 40px;
  281. border-bottom: 1px solid #e5e5e5;
  282. font-weight: bold;
  283. color: #22529a;
  284. }
  285. .infoDown {
  286. margin: 15px 0 0 0;
  287. }
  288. }
  289. /deep/.el-collapse-item__header {
  290. font-size: 18px;
  291. font-weight: bold;
  292. }
  293. .kaifaMain {
  294. text-align: center;
  295. p {
  296. font-size: 35px;
  297. padding: 15px 0;
  298. }
  299. }
  300. </style>