seven.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
  5. <el-col :span="24" class="one">
  6. <el-image class="image" :src="news" fit="fill" />
  7. </el-col>
  8. <el-col :span="24" class="two">
  9. <div class="w_1200">
  10. <el-col :span="24" class="two_1">
  11. <el-row class="two_1_1">
  12. <el-col :span="2" class="left">服务分类:</el-col>
  13. <el-col :span="22" class="right">
  14. <a-checkbox-group v-model:value="value" style="width: 100%">
  15. <a-row>
  16. <a-col :span="8" v-for="(item, index) in typeList" :key="index">
  17. <a-checkbox class="custom-checkbox" :value="item.value">{{
  18. item.label
  19. }}</a-checkbox>
  20. </a-col>
  21. </a-row>
  22. </a-checkbox-group>
  23. </el-col>
  24. </el-row>
  25. <el-row class="two_1_1">
  26. <el-col :span="2" class="left">机构名称:</el-col>
  27. <el-col :span="22" class="right">
  28. <el-input
  29. size="large"
  30. class="input"
  31. v-model:value="value"
  32. placeholder="请输入机构名称"
  33. />
  34. <el-button size="large" class="button" type="primary">检索</el-button>
  35. </el-col>
  36. </el-row>
  37. </el-col>
  38. <el-col :span="24" class="two_2">
  39. <a-table :columns="columns" :data-source="data" bordered>
  40. <template #bodyCell="{ column, text, record }">
  41. <template v-if="column.dataIndex === 'operation'">
  42. <a @click="toView(record.key)">查看</a>
  43. </template>
  44. </template>
  45. </a-table>
  46. </el-col>
  47. </div>
  48. </el-col>
  49. </el-col>
  50. </el-row>
  51. </div>
  52. </template>
  53. <script setup>
  54. // 图片引入
  55. import news from '/images/news.png'
  56. // 路由
  57. const router = useRouter()
  58. // 加载中
  59. const loading = ref(false)
  60. const typeList = ref([
  61. { label: '科技信息', value: '0' },
  62. { label: '中介咨询', value: '1' },
  63. { label: '科技金融', value: '2' },
  64. { label: '仪器设备', value: '3' },
  65. { label: '创新创业', value: '4' },
  66. { label: '法律服务', value: '5' },
  67. { label: '技术转移与推广', value: '6' },
  68. { label: '知识产权', value: '7' },
  69. { label: '人才培训', value: '8' },
  70. { label: '产品研发', value: '9' },
  71. { label: '财税服务', value: '10' },
  72. { label: '信息化服务', value: '11' }
  73. ])
  74. const columns = [
  75. {
  76. title: '序号',
  77. dataIndex: 'key'
  78. },
  79. {
  80. title: '公司名称',
  81. dataIndex: 'name'
  82. },
  83. {
  84. title: '服务领域',
  85. dataIndex: 'field'
  86. },
  87. {
  88. title: '登记时间',
  89. dataIndex: 'time'
  90. },
  91. {
  92. title: '操作',
  93. dataIndex: 'operation'
  94. }
  95. ]
  96. const data = [
  97. {
  98. key: '1',
  99. name: '长春市XXX有限公司',
  100. field: '科技金融',
  101. time: '2020-07-01'
  102. },
  103. {
  104. key: '2',
  105. name: '长春市XXX有限公司',
  106. field: '科技金融',
  107. time: '2021-02-09'
  108. },
  109. {
  110. key: '3',
  111. name: '长春市XXX有限公司',
  112. field: '科技金融',
  113. time: '2023-11-11'
  114. },
  115. {
  116. key: '4',
  117. name: '长春市XXX有限公司',
  118. field: '科技金融',
  119. time: '2021-04-21'
  120. },
  121. {
  122. key: '5',
  123. name: '长春市XXX有限公司',
  124. field: '科技金融',
  125. time: '2022-09-11'
  126. },
  127. {
  128. key: '6',
  129. name: '长春市XXX有限公司',
  130. field: '科技金融',
  131. time: '2023-07-51'
  132. }
  133. ]
  134. // 请求
  135. onMounted(async () => {
  136. loading.value = true
  137. await search()
  138. loading.value = false
  139. })
  140. const search = async () => {}
  141. // 查看
  142. const toView = (item) => {
  143. router.push({ path: '/server/detail', query: { id: item.id || item._id } })
  144. }
  145. </script>
  146. <style scoped lang="scss">
  147. .main {
  148. .one {
  149. .image {
  150. width: 100%;
  151. height: 200px;
  152. }
  153. }
  154. .two {
  155. .two_1 {
  156. background: #ffffff;
  157. border-radius: 10px;
  158. padding: 15px;
  159. margin: 10px 0 0 0;
  160. .two_1_1 {
  161. display: flex;
  162. align-items: center;
  163. padding: 10px 0;
  164. .left {
  165. font-size: $global-font-size-18;
  166. }
  167. .right {
  168. display: flex;
  169. align-items: center;
  170. justify-content: space-between;
  171. .button {
  172. margin: 0 0 0 5px;
  173. }
  174. }
  175. }
  176. }
  177. }
  178. }
  179. </style>