|
@@ -405,6 +405,7 @@ import shoreApi from "../../api/organization/shore";
|
|
import {
|
|
import {
|
|
staffInfo,
|
|
staffInfo,
|
|
changeInfo,
|
|
changeInfo,
|
|
|
|
+ saveRole,
|
|
companyVessels,
|
|
companyVessels,
|
|
getDeptListByCompId
|
|
getDeptListByCompId
|
|
} from "../../api/shoreBasedMembers";
|
|
} from "../../api/shoreBasedMembers";
|
|
@@ -1230,7 +1231,6 @@ export default {
|
|
},
|
|
},
|
|
// 编辑
|
|
// 编辑
|
|
editSave () {
|
|
editSave () {
|
|
- debugger
|
|
|
|
this.ruleForm.staffId = this.id;
|
|
this.ruleForm.staffId = this.id;
|
|
changeInfo(this.ruleForm)
|
|
changeInfo(this.ruleForm)
|
|
.then(() => {
|
|
.then(() => {
|
|
@@ -1240,6 +1240,15 @@ export default {
|
|
type: "success",
|
|
type: "success",
|
|
showClose: true
|
|
showClose: true
|
|
});
|
|
});
|
|
|
|
+ for(var i =0;i<this.zhiwu2.length;i++){
|
|
|
|
+ var param = {
|
|
|
|
+ staffId:this.id,
|
|
|
|
+ roleId:this.zhiwu2[i].roleId,
|
|
|
|
+ roleMajor:'0'
|
|
|
|
+ }
|
|
|
|
+ saveRole(param).then(() => {
|
|
|
|
+ })
|
|
|
|
+ }
|
|
// this.getMemberInfo();
|
|
// this.getMemberInfo();
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
this.loading = false;
|
|
this.loading = false;
|