Pārlūkot izejas kodu

feat: cooperation

Casper Dai 3 gadi atpakaļ
vecāks
revīzija
ff2569c46b

+ 0 - 1
src/components/service/EventPicker/index.vue

@@ -299,7 +299,6 @@ export default {
     },
     onDateTimeChange (type) {
       const { start, until } = this.eventOptions
-      console.log(start, until)
       if (start && until && start > until) {
         if (type === 'start') {
           this.eventOptions.until = start

+ 7 - 0
src/router/index.js

@@ -325,6 +325,13 @@ export const asyncRoutes = [
         path: 'ai/timing',
         component: () => import('@/views/realm/ai-timing/index'),
         meta: { title: 'AI抽帧检测' }
+      },
+      {
+        name: 'cooperation',
+        path: 'cooperation',
+        component: () => import('@/views/platform/cooperation/index'),
+        access: Access.MANAGE_TENANTS,
+        meta: { title: '合作意向' }
       }
     ]
   },

+ 13 - 0
src/views/platform/cooperation/api.js

@@ -0,0 +1,13 @@
+import request from '@/utils/request'
+
+export function getCooperations (query) {
+  const { pageNum: pageIndex, pageSize } = query
+  return request({
+    url: `/portal/cooperation/queryPage`,
+    method: 'GET',
+    params: {
+      pageIndex,
+      pageSize
+    }
+  })
+}

+ 41 - 0
src/views/platform/cooperation/index.vue

@@ -0,0 +1,41 @@
+<template>
+  <div>
+    <div>
+      <wrapper
+        fill
+        margin
+        padding
+        background
+      >
+        <schema-table
+          ref="table"
+          :schema="schema"
+        />
+      </wrapper>
+    </div>
+  </div>
+</template>
+
+<script>
+import { getCooperations } from './api'
+
+export default {
+  name: 'Cooperations',
+  data () {
+    return {
+      schema: {
+        condition: { name: '' },
+        list: getCooperations,
+        cols: [
+          { type: 'refresh' },
+          { prop: 'name', label: '姓名' },
+          { prop: 'phone', label: '手机' },
+          { prop: 'email', label: '邮箱' },
+          { prop: 'company', label: '公司' },
+          { prop: 'summary', label: '需求' }
+        ]
+      }
+    }
+  }
+}
+</script>