From 1f1fe4dec60141c0f3f164f474ebc0b5b519e3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=98=81=E8=BE=89?= Date: Thu, 20 Jan 2022 10:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE=20?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/setting.js | 24 +++ pages/about/index.vue | 1 + pages/account-management/index.vue | 180 ++++++++++++++++++-- pages/add-account/index.vue | 262 +++++++++++++++++++++++++++-- pages/add-paper/index.vue | 2 +- 5 files changed, 446 insertions(+), 23 deletions(-) diff --git a/apis/setting.js b/apis/setting.js index 4ea84ee..742b965 100644 --- a/apis/setting.js +++ b/apis/setting.js @@ -6,3 +6,27 @@ export function employeeName(data) { data }) } +// 新增员工 +export function addEmployee(data) { + return http.post({ + url: '/yyt-uec/enterprise/add/employee?userId='+data.userId +'&enterpriseId=' +data.enterpriseId, + data + }) +} +// 员工列表 +export function employeeList(data) { + return http.get({ + url: '/yyt-uec/enterprise/get/employee-list', + data + }) +} +// 删除员工 +export function deleteEmployee(data) { + return http.post({ + url: '/yyt-uec/enterprise/delete/employee?enterpriseId='+data.enterpriseId, + data + }) +} + + + diff --git a/pages/about/index.vue b/pages/about/index.vue index c608e22..48c4e6c 100644 --- a/pages/about/index.vue +++ b/pages/about/index.vue @@ -51,6 +51,7 @@ export default { font-size: 64rpx; color: #000000; font-weight: 400; + margin-top: 40rpx; } .about-subtext { font-size: 28rpx; diff --git a/pages/account-management/index.vue b/pages/account-management/index.vue index 03dc090..5c417d9 100644 --- a/pages/account-management/index.vue +++ b/pages/account-management/index.vue @@ -7,26 +7,137 @@ 添加账号 + + + + + + + + + + diff --git a/pages/add-account/index.vue b/pages/add-account/index.vue index 8183fd0..81f751d 100644 --- a/pages/add-account/index.vue +++ b/pages/add-account/index.vue @@ -1,22 +1,262 @@ - diff --git a/pages/add-paper/index.vue b/pages/add-paper/index.vue index 643de8b..0700d46 100644 --- a/pages/add-paper/index.vue +++ b/pages/add-paper/index.vue @@ -589,7 +589,7 @@ export default { } .add-paper-border { border-bottom: 2rpx solid #d8d8d8; - margin-left: 16px; + margin-left: 32rpx; } .paper-price { background-color: #ffffff;