Browse Source

请求头中的ProjectId 改为 projectId

niuheng 3 years ago
parent
commit
408b5a14b2

+ 6 - 3
src/api/relation/api.js

@@ -92,7 +92,8 @@ export function businessSpaceAll(param) {
     method: 'POST',
     url: `${baseUrl}${dataCenter}/relation-calc/` + relation_type + objectTypes,
     data: proId,
-    headers: { 'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName }
+    //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+    headers: { 'projectId': ProjectId, 'Comming': 'adm', 'Account': userName }
   })
 }
 
@@ -119,7 +120,8 @@ export function dectInfo(param) {
     method: 'POST',
     url: `${baseUrl}${dictCustom}/project-dict-info`,
     data,
-    headers: { 'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName }
+    //头信息中的  ProjectId 改为 projectId    nh-2021.11.25
+    headers: { 'projectId': ProjectId, 'Comming': 'adm', 'Account': userName }
   })
 }
 
@@ -163,7 +165,8 @@ export function relAdd(data) {
     // url: `${baseUrl}${dataCenter}/relation-manual-calc/rel-add`,
     url: `${baseUrl}${dataCenter}/rel-manual-calc/add`,
     data,
-    headers: { 'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName }
+    //头信息中的  ProjectId 改为 projectId    nh-2021.11.25
+    headers: { 'projectId': ProjectId, 'Comming': 'adm', 'Account': userName }
   })
 }
 

+ 4 - 2
src/api/scan/request.js

@@ -1412,7 +1412,8 @@ export function pointTest(data) {
     method: 'POST',
     url: `/pointconfig/datasource/pointTest2`,
     data,
-    headers: { 'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName }
+    //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+    headers: { 'projectId': ProjectId, 'Comming': 'adm', 'Account': userName }
   })
 }
 
@@ -1432,7 +1433,8 @@ export function getHistoryData(query, param, success) {
     url: url,
     method: 'post',
     data: param,
-    headers: { 'ProjectId': query.projectId, 'Comming': 'adm', 'Account': query.userInfo.username }
+    //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+    headers: { 'projectId': query.projectId, 'Comming': 'adm', 'Account': query.userInfo.username }
   }).then((response) => {
     success(response.data);
   }).catch(error => {

+ 2 - 1
src/components/ledger/lib/dynamicDialog.vue

@@ -76,7 +76,8 @@ export default {
         ...mapGetters("layout", ["projectId"]),
         headers() {
             return {
-                ProjectId: this.projectId,
+                //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+                projectId: this.projectId,
                 Comming: "adm",
                 Account: storage.get("user_name"),
             };

+ 2 - 1
src/components/ledger/lib/staticDialog.vue

@@ -76,7 +76,8 @@ export default {
         ...mapGetters("layout", ["projectId"]),
         headers() {
             return {
-                ProjectId: this.projectId,
+                //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+                projectId: this.projectId,
                 Comming: "adm",
                 Account: storage.get("user_name"),
             };

+ 2 - 1
src/components/model/file/addFloorDialog.vue

@@ -138,7 +138,8 @@ export default {
             ],
             //请求头
             headers: {
-                ProjectId: "",
+                //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+                projectId: "",
             },
             updataData: {
                 model: {},

+ 2 - 1
src/components/point/report/tabControlTest.vue

@@ -220,7 +220,8 @@ export default {
         url: `/pointconfig/datasource/pointset-present-download`,
         responseType: 'blob',
         headers: {
-          ProjectId: this.projectId
+          //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+          projectId: this.projectId
         },
         data: {},
       }

+ 2 - 1
src/components/point/report/tabFunDetail.vue

@@ -164,7 +164,8 @@ export default {
         url: `/pointconfig/datasource/pointdetail-download`,
         responseType: 'blob',
         headers: {
-          ProjectId: this.projectId
+          //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+          projectId: this.projectId
         },
         data: {},
       }

+ 2 - 1
src/components/relation/overview/Modal/RelationMaintain.vue

@@ -321,7 +321,8 @@ export default {
     ...mapGetters('layout', ['projectId']),
     headers() {
       return {
-        'ProjectId': this.projectId,
+        //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+        'projectId': this.projectId,
         'Comming': 'adm',
         'Account': storage.get("user_name")
       }

+ 2 - 1
src/components/relation/relationShip/Modal/exportExcel.vue

@@ -116,7 +116,8 @@ export default {
     ...mapGetters('layout', ['projectId']),
     headers() {
       return {
-        'ProjectId': this.projectId,
+        //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+        'projectId': this.projectId,
         'Comming': 'adm',
         'Account': storage.get("user_name")
       }

+ 2 - 1
src/fetch/fetch.js

@@ -19,7 +19,8 @@ instance.interceptors.request.use(config => {
         config.headers.Authorization = token;
     }
     if (projectId) {
-        config.headers.ProjectId = projectId;
+        //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+        config.headers.projectId = projectId;
     }
     return config
 }, error => {

+ 2 - 1
src/views/model/file/index.vue

@@ -115,7 +115,8 @@ export default {
       uploadFloorModelIdList: [], //上传楼层文件得数组,上传完成则为空
       //请求头
       headers: {
-        ProjectId: ""
+        //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+        projectId: ""
       },
       updataData: {
         model: {}

+ 2 - 1
src/views/model/report/index.vue

@@ -413,7 +413,8 @@ export default {
             ProjectId: this.projectId
           },
           headers: {
-            ProjectId: this.projectId
+            //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+            projectId: this.projectId
           },
           responseType: 'blob'
         }).then(function (res) {

+ 4 - 2
src/views/point/config_point/steps/step1.vue

@@ -182,7 +182,8 @@
                     },
                     responseType: 'blob',
                     headers: {
-                        ProjectId: this.projectId
+                        //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+                        projectId: this.projectId
                     }
                 }
                 axios(param).then(function(res) {
@@ -248,7 +249,8 @@
                         DataSourceId: this.datasourceId
                     },
                     headers: {
-                        ProjectId: this.projectId
+                        //头信息中的 ProjectId 改为 projectId    nh-2021.11.25
+                        projectId: this.projectId
                     },
                     responseType: 'blob'
                 }).then(function(res) {