diff --git a/src/api/student/index.js b/src/api/student/index.js
index 186e3ed..c9a5bee 100644
--- a/src/api/student/index.js
+++ b/src/api/student/index.js
@@ -82,4 +82,28 @@ export function updateSchoolmate(data) {
})
}
+export function supplyDemandList(params) {
+ return request({
+ method: 'get',
+ url: '/api/admin/supply-demand/index',
+ params
+ })
+}
+// 供需管理 - 保存(新增/更新)
+export function supplyDemandSave(data) {
+ return request({
+ method: 'post',
+ url: '/api/admin/supply-demand/save',
+ data
+ })
+}
+
+// 供需管理 - 删除
+export function supplyDemandDestroy(params) {
+ return request({
+ method: 'get',
+ url: '/api/admin/supply-demand/destroy',
+ params
+ })
+}
diff --git a/src/views/student/components/SupplyDemandDetail.vue b/src/views/student/components/SupplyDemandDetail.vue
new file mode 100644
index 0000000..dbe1f23
--- /dev/null
+++ b/src/views/student/components/SupplyDemandDetail.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
供需类型
+
{{ detail.type === 1 ? '供应' : '需求' }}
+
+
+
标题
+
{{ detail.title }}
+
+
+
详细描述
+
{{ detail.content }}
+
+
+
行业标签
+
{{ detail.tag || '-' }}
+
+
+
联系方式
+
+
电话:{{ detail.mobile }}
+
微信:{{ detail.wechat }}
+
邮箱:{{ detail.email }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/student/components/SupplyDemandEdit.vue b/src/views/student/components/SupplyDemandEdit.vue
new file mode 100644
index 0000000..bd14935
--- /dev/null
+++ b/src/views/student/components/SupplyDemandEdit.vue
@@ -0,0 +1,150 @@
+
+
+
+
+
+ 供应
+ 需求
+
+
+
+
+
+
+
+
+
+
+
+ {{ tag }}
+
+
+ 建议添加相关行业标签,方便其他校友找到你
+
+
+
+
+ 微信
+ 电话
+ 邮箱
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/student/supply_demand.vue b/src/views/student/supply_demand.vue
index b3b7496..60cfb4f 100644
--- a/src/views/student/supply_demand.vue
+++ b/src/views/student/supply_demand.vue
@@ -16,19 +16,19 @@
-
+
-
-
-
+
+
+
-
-
+
+
@@ -55,57 +55,57 @@
{{ scope.row.title }}
- {{ scope.row.description }}
+ {{ scope.row.content }}
- {{ scope.row.typeText }}
+
+ {{ scope.row.type === 1 ? '供应' : '需求' }}
+
-
{{ scope.row.publisher.name.charAt(0) }}
+
{{ (scope.row.user && scope.row.user.name && scope.row.user.name.charAt(0)) || 'U' }}
-
{{ scope.row.publisher.name }}
-
{{ scope.row.publisher.year }}届
+
{{ (scope.row.user && scope.row.user.name) || '-' }}
+
{{ (scope.row.user && scope.row.user.company_position) || '-' }}
- {{ scope.row.statusText }}
+
+ {{ getStatusText(scope.row.status) }}
+
-
+
- {{ scope.row.priorityText }}
+
+
+ -
- {{ scope.row.publishDate }}
- {{ scope.row.publishTime }}
-
-
-
-
-
-
{{ scope.row.auditDate }}
-
{{ scope.row.auditTime }}
-
- -
+ {{ formatDate(scope.row.created_at) }}
+ {{ formatTime(scope.row.created_at) }}
- 通过
- 隐藏
+ 通过
编辑
- 拒绝
+ 拒绝
详情
@@ -125,86 +125,93 @@
:total="total"
>
+
+
+
+