diff --git a/src/views/em/mpoint.vue b/src/views/em/mpoint.vue
index c11ab022..7e1f3d26 100644
--- a/src/views/em/mpoint.vue
+++ b/src/views/em/mpoint.vue
@@ -23,11 +23,31 @@
>
+
+
+
+
+
+
+
+
@@ -363,6 +383,7 @@ export default {
paramsM: {},
apiObj: this.$API.enm.mpoint.list,
apiObjMplog: null,
+ apiObjEm: this.$API.em.equipment.list,
params: {},
params1: {},
query: {},
diff --git a/src/views/em/mpoint_form.vue b/src/views/em/mpoint_form.vue
index 067fc59a..f802c2f4 100644
--- a/src/views/em/mpoint_form.vue
+++ b/src/views/em/mpoint_form.vue
@@ -91,25 +91,7 @@
-
-
- { form.ep_belong=null } "
- >
-
-
-
-
+
-
+
+
+
+ { form.ep_belong=null } "
+ >
+
+
+
+
+
+
-
+
+
+
+
+
{
+ this.isSaveing = false;
+ this.limitedVisible = false;
+ this.$refs.table.refresh();
+ }).catch(e=>{
+ this.isSaveing = false;
+ })
}else{
- res = this.$API.mtm.team.update.req(that.form.id,that.form);
- }
- if(res.err_msg){
- this.$message.error(res.err_msg);
- }else{
- this.isSaveing = false;
- this.limitedVisible = false;
- this.$refs.table.refresh();
+ this.$API.mtm.team.update.req(that.form.id,that.form).then(res=>{
+ this.isSaveing = false;
+ this.limitedVisible = false;
+ this.$refs.table.refresh();
+ }).catch(e=>{
+ this.isSaveing = false;
+ })
}
}
})
@@ -154,7 +159,7 @@
//编辑班组
handleEdit(row){
this.type='edit';
- this.form=row;
+ this.form=Object.assign({},row);
this.limitedVisible = true;
},
//删除班组