From 37f55d869ebb0ead4ac34361dfd67ea53a15f64f Mon Sep 17 00:00:00 2001
From: chendaze <1824191732@qq.com>
Date: Tue, 2 Apr 2024 17:32:50 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=BC=81=E4=B8=9A?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=BA=E5=91=98=E8=AE=BE=E5=A4=87=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/admin/customer.js | 30 +++++
src/views/admin/CustomerEdit.vue | 209 +++++++++++++++++++++++--------
2 files changed, 187 insertions(+), 52 deletions(-)
diff --git a/src/api/admin/customer.js b/src/api/admin/customer.js
index 1241fee..f99b2ff 100644
--- a/src/api/admin/customer.js
+++ b/src/api/admin/customer.js
@@ -33,6 +33,36 @@ export function selectCustomerStaffList (parameter) {
}
+//获取企业下用户设备信息
+export function selectUserDeviceList (data) {
+ return axios({
+ url: api.icsCustomerStaff + '/selectUserDeviceList',
+ method: 'post',
+ data: data
+ })
+}
+
+export function selectEquipmentListById (data) {
+ return axios({
+ url: api.icsCustomerStaff + '/selectEquipmentListById',
+ method: 'post',
+ data: data
+ })
+}
+
+// 保存用户和设备关联
+export function saveUserEquipment (parameter) {
+ return axios({
+ url: api.icsCustomerStaff + '/saveUserEquipment',
+ method: 'post',
+ data: parameter,
+ headers: {
+ 'Content-Type': 'application/json;charset=UTF-8'
+ }
+ })
+}
+
+
export function getStaffListNotId (parameter) {
return axios({
diff --git a/src/views/admin/CustomerEdit.vue b/src/views/admin/CustomerEdit.vue
index 0bfd631..7e22d35 100644
--- a/src/views/admin/CustomerEdit.vue
+++ b/src/views/admin/CustomerEdit.vue
@@ -110,7 +110,8 @@
-
+
@@ -294,11 +295,21 @@
导入用户
-
+
+
+ {{ record.gender === '1' ? '女' : '男' }}
+
+
+ {{ record.num }}
+
- 编辑
-
+ 编辑
+
+
确定删除 {{ record.name }} 吗?
@@ -315,26 +326,57 @@
-
+
- 导入用户数据
+ :fileList='fileList'
+ :headers='headers'
+ accept='.xlsx,.xls'
+ @change='customChange'
+ :customRequest='customRequest'>
+ 导入用户数据
-
导出用户模板
+
导出用户模板
+
+
+
+
+
+
+
+ 查询
+ (deviceQueryParam = {})'>重置
+
+
+
+
+
+
+
+
+
+ {{ record.buildName + record.roomName }}
+
+
+
+
+