technology.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div id="technology">
  3. <el-row>
  4. <el-col :span="24">
  5. <el-col :span="24" class="shaixuan">
  6. 技术领域:
  7. <el-select v-model="field" filterable clearable placeholder="请选择所属领域" @change="changeField">
  8. <el-option label="先进制造" value="0"></el-option>
  9. <el-option label="新材料" value="1"></el-option>
  10. <el-option label="光电子" value="2"></el-option>
  11. <el-option label="信息技术" value="3"></el-option>
  12. <el-option label="文化和科技融合" value="4"></el-option>
  13. </el-select>
  14. </el-col>
  15. <el-col :span="24">
  16. <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
  17. <el-col :span="24" class="name">
  18. {{ item.name }}
  19. </el-col>
  20. <el-col :span="24" class="text">
  21. 技术领域
  22. <span>
  23. {{
  24. item.field == '0'
  25. ? '先进制造'
  26. : item.field == '1'
  27. ? '新材料'
  28. : item.field == '2'
  29. ? '光电子'
  30. : item.field == '3'
  31. ? '信息技术'
  32. : item.field == '4'
  33. ? '文化和科技融合'
  34. : '暂无'
  35. }}
  36. </span>
  37. </el-col>
  38. <el-col :span="24" class="text">
  39. 合作方式
  40. <span>
  41. {{
  42. item.coopermode == '0'
  43. ? '技术转让'
  44. : item.coopermode == '1'
  45. ? '技术服务'
  46. : item.coopermode == '2'
  47. ? '技术许可'
  48. : item.coopermode == '3'
  49. ? '技术融资'
  50. : item.coopermode == '4'
  51. ? '其他'
  52. : '暂无'
  53. }}
  54. </span>
  55. </el-col>
  56. <el-col :span="24" class="text">
  57. 交易方式:
  58. <span>
  59. {{ item.business == '0' ? '公用' : item.business == '1' ? '竞价' : item.business == '2' ? '转让' : '暂无' }}
  60. </span>
  61. </el-col>
  62. </el-col>
  63. </el-col>
  64. </el-col>
  65. </el-row>
  66. </div>
  67. </template>
  68. <script>
  69. import { mapState, createNamespacedHelpers } from 'vuex';
  70. export default {
  71. name: 'technology',
  72. props: {},
  73. components: {},
  74. data: function() {
  75. return {
  76. // 筛选
  77. field: '',
  78. list: [
  79. {
  80. name: '产品名称产品名称产品名称产品名称',
  81. field: '0',
  82. coopermode: '0',
  83. business: '0',
  84. },
  85. ],
  86. };
  87. },
  88. created() {},
  89. methods: {
  90. // 筛选技术领域
  91. changeField(value) {
  92. var arr = this.applyList.filter(item => item.field === value);
  93. this.$set(this, `list`, arr);
  94. },
  95. },
  96. computed: {
  97. ...mapState(['user']),
  98. pageTitle() {
  99. return `${this.$route.meta.title}`;
  100. },
  101. },
  102. metaInfo() {
  103. return { title: this.$route.meta.title };
  104. },
  105. };
  106. </script>
  107. <style lang="less" scoped>
  108. .shaixuan {
  109. padding: 0 0 10px 10px;
  110. }
  111. .list {
  112. margin: 0 5px 10px 5px;
  113. width: 97%;
  114. padding: 0 10px;
  115. border-radius: 10px;
  116. background: #f9fafc;
  117. .name {
  118. padding: 5px 0px;
  119. font-size: 16px;
  120. }
  121. .text {
  122. padding: 5px 0;
  123. font-size: 14px;
  124. color: #ccc;
  125. span {
  126. color: #000;
  127. }
  128. }
  129. }
  130. </style>