workflowTrade.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <div class="search-platform container-height">
  3. <div v-if="!isChildRoute">
  4. <Breadcrumb />
  5. <div class="padding12 bg_color_fff border_radius_16">
  6. <!-- 搜索与创建区域 -->
  7. <div class="search-create-bar">
  8. <div class="search-input-container flex_1">
  9. <input
  10. type="text"
  11. :placeholder="$t('common.qingshuruyaosousuodegongzuoliu')"
  12. class="search-input"
  13. />
  14. <button class="search-btn bg_color_primary">
  15. <img :src="searchIcon" alt="" class="icon-search">
  16. {{$t('common.shousuo')}}
  17. </button>
  18. </div>
  19. <button class="create-btn bg_color_primary" @click.stop.prevent="goWorkflowAdd">
  20. <img :src="addIcon" alt="" class="icon-add">
  21. {{$t('common.fabuxuqiu')}}
  22. </button>
  23. </div>
  24. <div class="typeList flex-between typeborder">
  25. <div class="gray font_size14 typeName">平台:</div>
  26. <div class="flex_1 gap10">
  27. <div class="font_size14 typeItem active" v-for="item in 5" :key="item">全部</div>
  28. </div>
  29. </div>
  30. <div class="typeList flex-between">
  31. <div class="gray font_size14 typeName">需求状态:</div>
  32. <div class="flex_1 gap10">
  33. <div class="font_size14 typeItem active" v-for="item in 5" :key="item">全部</div>
  34. </div>
  35. </div>
  36. <div class="typeList flex-between">
  37. <div class="gray font_size14 typeName">发布时间:</div>
  38. <div class="flex_1 gap10">
  39. <div class="font_size14 typeItem active" v-for="item in 5" :key="item">全部</div>
  40. </div>
  41. </div>
  42. </div>
  43. <!-- 列表 -->
  44. <div class="course-list mt20">
  45. <div class="font_size20 bold mb10">共 <span class="color_theme">5</span> 条需求</div>
  46. <div class="padding16 bg_color_fff border_radius_16 mb20" v-for="item in 4" :key="item">
  47. <div class="flex-between">
  48. <div class="gap10">
  49. <el-button type="primary">免费</el-button>
  50. <div class="bold font_size30">AI智能线索富集与多渠道通知系统</div>
  51. </div>
  52. <div class="font_size24 color_price bold">¥2000.00-3000.00</div>
  53. </div>
  54. <div class="gap20 mt10">
  55. <el-button type="primary" size="large" plain>一级分类名称</el-button>
  56. <el-button type="primary" size="large" plain>二级分类名称</el-button>
  57. <div class="gap5">
  58. <img :src="yuangong" alt="员工" style="width: 16px; height: 16px;">
  59. <span class="font_size14">张三</span>
  60. </div>
  61. <div class="gap5">
  62. <img :src="riliIcon" alt="员工" style="width: 16px; height: 16px;">
  63. <span class="font_size14">2024-10-16</span>
  64. </div>
  65. <!-- <div class="gap5">
  66. <img :src="shiyongIcon" alt="员工" style="width: 16px; height: 16px;">
  67. <span class="font_size14">2,456使用</span>
  68. </div> -->
  69. <!-- <div class="gap5">
  70. <img :src="yunIcon" alt="员工" style="width: 16px; height: 16px;">
  71. <span class="font_size14">n8n平台</span>
  72. </div> -->
  73. <!-- <div class="gap5">
  74. <img :src="biaoqianIcon" alt="员工" style="width: 16px; height: 16px;">
  75. <span class="font_size14">二级分类名称-三级分类名称</span>
  76. </div> -->
  77. </div>
  78. <div class="font_size16 gray mt10">此n8n工作流是一款强大的AI驱动的潜在客户富集与通知系统,专为市场营销和销售团队设计。它通过智能表单收集线索,利用OpenAI深度分析并丰富客户数据,自动识别关键信息。系统能根据预设条件,通过多种渠道即时发送个性化通知,显著提升线索质量、转化率及团队协作效率,是优化客户关系管理的关键工具。</div>
  79. <div class="mt20">
  80. <div class="flex-between">
  81. <div class="gap10">
  82. <el-avatar :size="32" :src="appStore.userInfo?.avatar || 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'" />
  83. <div class="font_size16 bold">张三</div>
  84. <div class="font_size14 gray mt2">2024-10-16</div>
  85. </div>
  86. <el-button type="primary" size="large">
  87. <img :src="zaixianbaomingIcon" alt="" class="mr10" style="width: 16px; height: 16px;">
  88. <span class="font_size14">{{$t('common.zaixianbaoming')}}</span>
  89. </el-button>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <!-- 分页 -->
  95. <!-- 替换原有的分页代码 -->
  96. <Pagination
  97. :total="pagination.total"
  98. :page-size="pagination.pageSize"
  99. :current-page="pagination.currentPage"
  100. @page-change="handlePageChange"
  101. />
  102. </div>
  103. <router-view />
  104. </div>
  105. </template>
  106. <script setup>
  107. import searchIcon from '@/assets/imgs/search.png'
  108. import addIcon from '@/assets/imgs/add.png'
  109. import yuangong from '@/assets/imgs/yuangong.png'
  110. import riliIcon from '@/assets/imgs/rili.png'
  111. import shiyongIcon from '@/assets/imgs/shiyong.png'
  112. import yunIcon from '@/assets/imgs/yun.png'
  113. import biaoqianIcon from '@/assets/imgs/biaoqian.png'
  114. import zaixianbaomingIcon from '@/assets/imgs/zaixianbaoming.png'
  115. import Pagination from '@/components/Pagination.vue'
  116. import { useRouter, useRoute } from 'vue-router'
  117. const router = useRouter()
  118. const route = useRoute()
  119. console.log(router,route)
  120. import { ref, computed, reactive } from 'vue'
  121. import { useAppStore } from '@/pinia/appStore'
  122. const appStore = useAppStore()
  123. //获取参数
  124. const query = route.query
  125. const activePlatform = ref(query.activePlatform || '')
  126. //获取当前路由路径
  127. // const currentPath = ref(router.currentRoute.value.path)
  128. const isChildRoute = computed(() => {
  129. return route.matched.length > 1
  130. })
  131. // 添加分页相关数据
  132. const pagination = reactive({
  133. currentPage: 1,
  134. pageSize: 10,
  135. total: 100
  136. })
  137. const handlePageChange = (page) => {
  138. pagination.currentPage = page
  139. // 这里可以添加获取数据的逻辑
  140. console.log('当前页:', page)
  141. }
  142. const goWorkflowDetail = () => {
  143. //增加参数名称
  144. router.push({
  145. path: `/search-platform/workflow-detail`,
  146. query: {
  147. id:2,
  148. metaTitle: 'WorkflowDetail'
  149. }
  150. })
  151. };
  152. const goWorkflowAdd = () => {
  153. //增加参数名称
  154. router.push({
  155. path: `/search-platform/workflow-add`,
  156. query: {
  157. activePlatform: activePlatform.value,
  158. }
  159. })
  160. };
  161. </script>
  162. <style scoped lang="scss">
  163. // 2. 混合器:按钮通用样式
  164. @mixin btn-style() {
  165. padding: 0 16px;
  166. color: #ffffff;
  167. border: none;
  168. border-radius: 10px;
  169. cursor: pointer;
  170. display: flex;
  171. align-items: center;
  172. gap:8px;
  173. font-size: 18px;
  174. &:hover {
  175. opacity: 0.9;
  176. }
  177. }
  178. .search-platform {
  179. // 搜索创建栏嵌套
  180. .search-create-bar {
  181. display: flex;
  182. align-items: center;
  183. gap: 8px;
  184. background-color: rgba(255, 255, 255, 0.5);
  185. border-radius: 10px;
  186. .search-input {
  187. flex: 1;
  188. height: 60px;
  189. padding: 0 12px;
  190. outline: none;
  191. font-size: 18px;
  192. border-radius:7px;
  193. border: none;
  194. width: 100%;
  195. //占位符的颜色
  196. ::placeholder {
  197. color: #999;
  198. }
  199. }
  200. .search-btn {
  201. height: 50px;
  202. @include btn-style();
  203. }
  204. .create-btn {
  205. height: 56px;
  206. @include btn-style();
  207. }
  208. .search-input-container{
  209. position: relative;
  210. border-radius: 8px;
  211. border:2px solid $primary-color;
  212. .search-btn{
  213. position: absolute;
  214. top: 6px;
  215. right: 6px;
  216. }
  217. }
  218. }
  219. .typeList{
  220. padding: 20px 0;
  221. &.typeborder{
  222. border-bottom: 1px dashed #DCDFE6;
  223. }
  224. .typeName{
  225. margin-top: 6px;
  226. width: 80px;
  227. }
  228. .typeItem{
  229. margin: 0 8px;
  230. &.active{
  231. background: rgba(45,113,255,0.1);
  232. border-radius: 4px 4px 4px 4px;
  233. padding: 4px 8px;
  234. color: $primary-color;
  235. font-weight: 600;
  236. }
  237. }
  238. }
  239. }
  240. </style>