|
@@ -207,7 +207,7 @@ export default {
|
|
//新增用户
|
|
//新增用户
|
|
this.$store.dispatch('system/usersManage/addUser',formData)
|
|
this.$store.dispatch('system/usersManage/addUser',formData)
|
|
.then((res)=>{
|
|
.then((res)=>{
|
|
-
|
|
|
|
|
|
+ console.log("role",res)
|
|
//再新增RMS_PERSONNEL表信息
|
|
//再新增RMS_PERSONNEL表信息
|
|
let rmsPersonnel = {
|
|
let rmsPersonnel = {
|
|
personnelJobNumber : this.form1.personnelJobNumber,
|
|
personnelJobNumber : this.form1.personnelJobNumber,
|
|
@@ -219,8 +219,10 @@ export default {
|
|
personnelTeam : this.form1.personnelTeam,
|
|
personnelTeam : this.form1.personnelTeam,
|
|
personnelSsoId : res.data.userId
|
|
personnelSsoId : res.data.userId
|
|
}
|
|
}
|
|
|
|
+ // console.log("rmsPersonnel",rmsPersonnel)
|
|
this.axios.post('/api/v1/rms/addPersonnel',rmsPersonnel)
|
|
this.axios.post('/api/v1/rms/addPersonnel',rmsPersonnel)
|
|
.then((res)=>{
|
|
.then((res)=>{
|
|
|
|
+ // console.log("Personnel",res)
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
@@ -238,6 +240,7 @@ export default {
|
|
this.axios.post('pass/v1/sysuserroles/addUserroles?userId='
|
|
this.axios.post('pass/v1/sysuserroles/addUserroles?userId='
|
|
+res.data.userId+'&userCode='+this.form1.personnelJobNumber+'&roleId='+this.value3)
|
|
+res.data.userId+'&userCode='+this.form1.personnelJobNumber+'&roleId='+this.value3)
|
|
.then((res)=>{
|
|
.then((res)=>{
|
|
|
|
+ // console.log("success")
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
})
|
|
})
|
|
|
|
|