From 93c48b3c6bc2d5555accf78205cff7da83230618 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Fri, 24 Jul 2020 09:07:44 +0800
Subject: [PATCH] renyuanpeixun
---
client/src/api/train.js | 7 +-
client/src/views/employee/traincreate.vue | 104 +++---
client/src/views/employee/trainupdate.vue | 302 ++++++++++++------
client/src/views/employee/userselet.vue | 70 ++--
.../src/views/enterprise/enterprisecreate.vue | 7 +-
5 files changed, 306 insertions(+), 184 deletions(-)
diff --git a/client/src/api/train.js b/client/src/api/train.js
index 13d5ad6..8501665 100644
--- a/client/src/api/train.js
+++ b/client/src/api/train.js
@@ -7,7 +7,12 @@ export function getTrainList(query) {
params: query
})
}
-
+export function getTrain(id) {
+ return request({
+ url: `/employee/train/${id}/`,
+ method: 'get'
+ })
+}
export function createTrain(data) {
return request({
url: '/employee/train/',
diff --git a/client/src/views/employee/traincreate.vue b/client/src/views/employee/traincreate.vue
index 950cac4..1780ffb 100644
--- a/client/src/views/employee/traincreate.vue
+++ b/client/src/views/employee/traincreate.vue
@@ -18,21 +18,19 @@
+ type="datetime"
+ placeholder="选择日期时间">
+
+ type="datetime"
+ placeholder="选择日期时间">
+
@@ -55,11 +53,15 @@
-
-
-
- link跳转
-
+
+
+
+ 选择
+
+
+
+
+
@@ -76,7 +78,7 @@
-
@@ -118,6 +120,7 @@
\ No newline at end of file
+
diff --git a/client/src/views/employee/userselet.vue b/client/src/views/employee/userselet.vue
index 34d6b06..f423327 100644
--- a/client/src/views/employee/userselet.vue
+++ b/client/src/views/employee/userselet.vue
@@ -23,7 +23,9 @@
-
+
+
+
- {{ row.name }}
+ {{ row.user.name }}
-
+
- {{ row.email }}
+ {{ row.user.position }}
+
+
+
+
+ {{ row.user.dept_name }}
@@ -59,7 +66,7 @@
circle
style="margin-left: 0;margin-top: 10px;">
-
+
- {{ row.name }}
+ {{ row.user.name }}
-
-
- {{ row.email }}
-
-
-
-
@@ -101,7 +92,8 @@