From 0dcfa315a2b8b6950e86406b8c183ba9a70ecffe Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Sat, 4 Apr 2020 19:05:24 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A1=E6=A3=80=E8=AE=A1?=
=?UTF-8?q?=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../departmentSelect2/departmentSelect2.js | 3 ++
.../editInspectionPlan.html | 26 ++++++--------
.../editInspectionPlan/editInspectionPlan.js | 28 ++++++++-------
.../inspectionRouteSelect2.html | 2 +-
.../inspectionRouteSelect2.js | 35 +++----------------
public/components/orgSelect2/orgSelect2.js | 4 +++
6 files changed, 40 insertions(+), 58 deletions(-)
diff --git a/public/components/departmentSelect2/departmentSelect2.js b/public/components/departmentSelect2/departmentSelect2.js
index 59988de28..b99f2d42a 100644
--- a/public/components/departmentSelect2/departmentSelect2.js
+++ b/public/components/departmentSelect2/departmentSelect2.js
@@ -10,7 +10,9 @@
orgName: '',
companyId:'',
departmentId:'',
+ departmentName:'',
staffId: '',
+ staffName:'',
departmentSelector: {}
}
},
@@ -40,6 +42,7 @@
companyId:'',
staffId: '',
departmentId:'',
+ departmentName:'',
departmentSelector: {}
};
});
diff --git a/public/components/editInspectionPlan/editInspectionPlan.html b/public/components/editInspectionPlan/editInspectionPlan.html
index 0ca62dd24..a49d0c05f 100644
--- a/public/components/editInspectionPlan/editInspectionPlan.html
+++ b/public/components/editInspectionPlan/editInspectionPlan.html
@@ -14,21 +14,17 @@
placeholder="必填,请填写计划名称" class="form-control">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/public/components/editInspectionPlan/editInspectionPlan.js b/public/components/editInspectionPlan/editInspectionPlan.js
index 152c37cf3..5172a6f1b 100644
--- a/public/components/editInspectionPlan/editInspectionPlan.js
+++ b/public/components/editInspectionPlan/editInspectionPlan.js
@@ -49,26 +49,30 @@
vc.emit('editInspectionPlan', 'orgSelect2', 'setOrg', {
orgId: vc.component.editInspectionPlanInfo.companyId,
orgName: vc.component.editInspectionPlanInfo.companyName,
- });
-
- //部门select2
- vc.emit('editInspectionPlan', 'departmentSelect2', 'setDepartment', {
departmentId: vc.component.editInspectionPlanInfo.departmentId,
departmentName: vc.component.editInspectionPlanInfo.departmentName,
- });
-
- //员工select2
- vc.emit('editInspectionPlan', 'staffSelect2', 'setStaff', {
staffId: vc.component.editInspectionPlanInfo.staffId,
staffName: vc.component.editInspectionPlanInfo.staffName,
});
- // //传输数据到machineSelect2组件
- // vc.emit('editInspectionPlan', 'inspectionRouteSelect2', 'setInspectionRoute', {
- // inspectionRouteId: vc.component.editInspectionPlanInfo.inspectionRouteId,
- // routeName: vc.component.editInspectionPlanInfo.inspectionRouteName,
+ //部门select2
+ // vc.emit('editInspectionPlan', 'departmentSelect2', 'setDepartment', {
+ // departmentId: vc.component.editInspectionPlanInfo.departmentId,
+ // departmentName: vc.component.editInspectionPlanInfo.departmentName,
// });
+ //员工select2
+ // vc.emit('editInspectionPlan', 'staffSelect2', 'setStaff', {
+ // staffId: vc.component.editInspectionPlanInfo.staffId,
+ // staffName: vc.component.editInspectionPlanInfo.staffName,
+ // });
+
+ // //传输数据到machineSelect2组件
+ vc.emit('editInspectionPlan', 'inspectionRouteSelect2', 'setInspectionRoute', {
+ inspectionRouteId: vc.component.editInspectionPlanInfo.inspectionRouteId,
+ routeName: vc.component.editInspectionPlanInfo.inspectionRouteName,
+ });
+
diff --git a/public/components/inspectionRouteSelect2/inspectionRouteSelect2.html b/public/components/inspectionRouteSelect2/inspectionRouteSelect2.html
index b66ae49e5..942e5221f 100644
--- a/public/components/inspectionRouteSelect2/inspectionRouteSelect2.html
+++ b/public/components/inspectionRouteSelect2/inspectionRouteSelect2.html
@@ -1,4 +1,4 @@
-