zx 3 年 前
コミット
96f15b7d95
2 ファイル変更9 行追加9 行削除
  1. 2 3
      config/index.js
  2. 7 6
      src/views/RMS/components/addPersonnel.vue

+ 2 - 3
config/index.js

@@ -64,15 +64,14 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-    target: "http://localhost:8019",
+    target: "http://localhost:8080",
     ws: true,
     pathRewrite: {
       "^/api/v1": "/api/v1"
     }
   },
   "/views/api/v1": {
-    target: "http://localhost:8019",
-    // target: "http://192.168.1.109:8080",
+    target: "http://localhost:8080",
     ws: true,
     pathRewrite: {
       "^/views/api/v1": "/api/v1"

+ 7 - 6
src/views/RMS/components/addPersonnel.vue

@@ -196,6 +196,7 @@ export default {
             this.form1.shipperId=='' ||
             this.form1.personnelShifts=='' ||
             this.form1.personnelTeam=='' ||
+            this.form1.ConcatTelephone==''||
             userInfo.orgName=='' ||
             userInfo.orgCode=='' ||
             userInfo.orgId=='' ||
@@ -218,7 +219,7 @@ export default {
               //保存权限表中的用户主键Id
               this.personnelSsoId = res.data.userId;
               //再新增RMS_PERSONNEL表信息
-              let rmsPersonnel = {
+              let map1 = {
                 personnelJobNumber : this.form1.personnelJobNumber,
                 personnelPost : this.form1.personnelPost,
                 personnelName : this.form1.personnelName,
@@ -226,21 +227,21 @@ export default {
                 // personnelWorkshopid : this.form1.personnelWorkshopid,
                 personnelShifts : this.form1.personnelShifts,
                 personnelTeam : this.form1.personnelTeam,
-                personnelSsoId : this.personnelSsoId
+                personnelSsoId : this.personnelSsoId,
+                //联系电话
+                ConcatTelephone : this.form1.ConcatTelephone,
+                userId: getCookie("userId"),
               }
               //  console.log("rmsPersonnel",rmsPersonnel)
-                  this.axios.post('/api/v1/rms/addPersonnel',rmsPersonnel)
+                  this.axios.post('/api/v1/rms/addPersonnel',map1)
                   .then((res)=>{
-                              // console.log("Personnel",res)
                         if (res.data.code == 200) {
                         this.$message({
                           type: "success",
                           message: "新增成功!",
                         });
                         // this.$refs.table.refreshData();
-                        
                         //最后新增角色赋权表
-
                           this.axios.post('pass/v1/sysuserroles/addUserroles?userId='
                           +this.personnelSsoId+'&userCode='+this.form1.personnelJobNumber+'&roleId='+this.value3)
                           .then((res)=>{