Browse Source

接口路径修复

seimin 3 years ago
parent
commit
d5158f0665

+ 4 - 4
src/views/againAssign.vue

@@ -281,7 +281,7 @@ export default {
281
       var that = this;
281
       var that = this;
282
       that.$http
282
       that.$http
283
         .get(
283
         .get(
284
-          "service/common/common/listAttachment/incident/" +
284
+          "/service/common/common/listAttachment/incident/" +
285
             that.processInstanceId,
285
             that.processInstanceId,
286
           {}
286
           {}
287
         )
287
         )
@@ -338,7 +338,7 @@ export default {
338
     getHandlerUser() {
338
     getHandlerUser() {
339
       var that = this;
339
       var that = this;
340
       this.$http
340
       this.$http
341
-        .post("service/user/data/fetchDataList/user", {
341
+        .post("/service/user/data/fetchDataList/user", {
342
           idx: 0,
342
           idx: 0,
343
           sum: 1000,
343
           sum: 1000,
344
           user: {
344
           user: {
@@ -359,7 +359,7 @@ export default {
359
     getCandidateGroups() {
359
     getCandidateGroups() {
360
       var that = this;
360
       var that = this;
361
       this.$http
361
       this.$http
362
-        .post("service/user/data/fetchDataList/group", {
362
+        .post("/service/user/data/fetchDataList/group", {
363
           idx: 0,
363
           idx: 0,
364
           sum: 1000,
364
           sum: 1000,
365
           group: { selectType: "nouser" }
365
           group: { selectType: "nouser" }
@@ -401,7 +401,7 @@ export default {
401
       }
401
       }
402
       that.$http
402
       that.$http
403
         .post(
403
         .post(
404
-          "service/bpm/bpm/completeTask/" +
404
+          "/service/bpm/bpm/completeTask/" +
405
             that.model.incident.taskId +
405
             that.model.incident.taskId +
406
             "/" +
406
             "/" +
407
             that.loginUser.id,
407
             that.loginUser.id,

+ 11 - 3
src/views/closed.vue

@@ -81,8 +81,16 @@
81
             </p>
81
             </p>
82
             <p>
82
             <p>
83
               <span class="fl">联系电话</span>
83
               <span class="fl">联系电话</span>
84
-              <span class="fr" v-if="!model.incident.contactsInformation"></span>
85
-              <span class="fr" v-if="model.incident.contactsInformation"><a :href="'tel:' + model.incident.contactsInformation"><i class="iconfont icon-shouji"></i>{{ model.incident.contactsInformation }}</a></span>
84
+              <span
85
+                class="fr"
86
+                v-if="!model.incident.contactsInformation"
87
+              ></span>
88
+              <span class="fr" v-if="model.incident.contactsInformation"
89
+                ><a :href="'tel:' + model.incident.contactsInformation"
90
+                  ><i class="iconfont icon-shouji"></i
91
+                  >{{ model.incident.contactsInformation }}</a
92
+                ></span
93
+              >
86
             </p>
94
             </p>
87
             <p>
95
             <p>
88
               <span class="fl">联系地址</span>
96
               <span class="fl">联系地址</span>
@@ -321,7 +329,7 @@ export default {
321
       var that = this;
329
       var that = this;
322
       that.$http
330
       that.$http
323
         .get(
331
         .get(
324
-          "service/common/common/listAttachment/incident/" +
332
+          "/service/common/common/listAttachment/incident/" +
325
             that.processInstanceId,
333
             that.processInstanceId,
326
           {}
334
           {}
327
         )
335
         )

+ 3 - 2
src/views/grabSheet.vue

@@ -251,7 +251,7 @@ export default {
251
       var that = this;
251
       var that = this;
252
       that.$http
252
       that.$http
253
         .get(
253
         .get(
254
-          "service/common/common/listAttachment/incident/" +
254
+          "/service/common/common/listAttachment/incident/" +
255
             that.processInstanceId,
255
             that.processInstanceId,
256
           {}
256
           {}
257
         )
257
         )
@@ -296,7 +296,8 @@ export default {
296
       var that = this;
296
       var that = this;
297
       that.$http
297
       that.$http
298
         .post(
298
         .post(
299
-          "service/bpm/bpm/claimAndCompletedTask/" + that.model.incident.taskId,
299
+          "/service/bpm/bpm/claimAndCompletedTask/" +
300
+            that.model.incident.taskId,
300
           { receive_code: "handler", userId: that.loginUser.id }
301
           { receive_code: "handler", userId: that.loginUser.id }
301
         )
302
         )
302
         .then(function(res) {
303
         .then(function(res) {

+ 1 - 1
src/views/incidentList.vue

@@ -281,7 +281,7 @@ export default {
281
       }
281
       }
282
 
282
 
283
       that.$http
283
       that.$http
284
-        .post("service/bpm/bpm/fetchTask/bpm_incident", postData)
284
+        .post("/service/bpm/bpm/fetchTask/bpm_incident", postData)
285
         .then(function(res) {
285
         .then(function(res) {
286
           if (res.data.data.length > 0) {
286
           if (res.data.data.length > 0) {
287
             that.wushuju = false;
287
             that.wushuju = false;

+ 18 - 18
src/views/newIncident.vue

@@ -244,7 +244,7 @@ const solution = {
244
     getTree() {
244
     getTree() {
245
       let that = this;
245
       let that = this;
246
       that.$http
246
       that.$http
247
-        .post("service/solution/fetchDataList/solutionType", {
247
+        .post("/service/solution/fetchDataList/solutionType", {
248
           idx: 0,
248
           idx: 0,
249
           sum: 100
249
           sum: 100
250
         })
250
         })
@@ -498,7 +498,7 @@ export default {
498
               var that = this;
498
               var that = this;
499
               if (this.model.emergency) {
499
               if (this.model.emergency) {
500
                 this.$http
500
                 this.$http
501
-                  .post("service/bpm/data/fetchDataList/prioritymatrix", {
501
+                  .post("/service/bpm/data/fetchDataList/prioritymatrix", {
502
                     idx: 0,
502
                     idx: 0,
503
                     sum: 1000,
503
                     sum: 1000,
504
                     prioritymatrix: {
504
                     prioritymatrix: {
@@ -534,7 +534,7 @@ export default {
534
               var that = this;
534
               var that = this;
535
               if (this.model.influence) {
535
               if (this.model.influence) {
536
                 this.$http
536
                 this.$http
537
-                  .post("service/bpm/data/fetchDataList/prioritymatrix", {
537
+                  .post("/service/bpm/data/fetchDataList/prioritymatrix", {
538
                     idx: 0,
538
                     idx: 0,
539
                     sum: 1000,
539
                     sum: 1000,
540
                     prioritymatrix: {
540
                     prioritymatrix: {
@@ -730,7 +730,7 @@ export default {
730
     // 获取事件单号
730
     // 获取事件单号
731
     getsjnum() {
731
     getsjnum() {
732
       var that = this;
732
       var that = this;
733
-      this.$http.get("service/bpm/bpm/restful/sj", {}).then(function(res) {
733
+      this.$http.get("/service/bpm/bpm/restful/sj", {}).then(function(res) {
734
         that.modelData.incident.incidentsign = res.data.data;
734
         that.modelData.incident.incidentsign = res.data.data;
735
       });
735
       });
736
     },
736
     },
@@ -738,7 +738,7 @@ export default {
738
     getSource() {
738
     getSource() {
739
       var that = this;
739
       var that = this;
740
       this.$http
740
       this.$http
741
-        .post("service/common/common/getDictionary", {
741
+        .post("/service/common/common/getDictionary", {
742
           key: "incident_source",
742
           key: "incident_source",
743
           type: "list"
743
           type: "list"
744
         })
744
         })
@@ -756,7 +756,7 @@ export default {
756
     getPriority() {
756
     getPriority() {
757
       var that = this;
757
       var that = this;
758
       this.$http
758
       this.$http
759
-        .post("service/common/common/getDictionary", {
759
+        .post("/service/common/common/getDictionary", {
760
           key: "incident_priority",
760
           key: "incident_priority",
761
           type: "list"
761
           type: "list"
762
         })
762
         })
@@ -774,7 +774,7 @@ export default {
774
     getMergency() {
774
     getMergency() {
775
       var that = this;
775
       var that = this;
776
       this.$http
776
       this.$http
777
-        .post("service/common/common/getDictionary", {
777
+        .post("/service/common/common/getDictionary", {
778
           key: "incident_emergency",
778
           key: "incident_emergency",
779
           type: "list"
779
           type: "list"
780
         })
780
         })
@@ -792,7 +792,7 @@ export default {
792
     getInfluence() {
792
     getInfluence() {
793
       var that = this;
793
       var that = this;
794
       this.$http
794
       this.$http
795
-        .post("service/common/common/getDictionary", {
795
+        .post("/service/common/common/getDictionary", {
796
           key: "incident_influence",
796
           key: "incident_influence",
797
           type: "list"
797
           type: "list"
798
         })
798
         })
@@ -810,7 +810,7 @@ export default {
810
     getHandleCategory() {
810
     getHandleCategory() {
811
       var that = this;
811
       var that = this;
812
       this.$http
812
       this.$http
813
-        .post("service/common/common/getDictionary", {
813
+        .post("/service/common/common/getDictionary", {
814
           key: "incident_handleCategory",
814
           key: "incident_handleCategory",
815
           type: "list"
815
           type: "list"
816
         })
816
         })
@@ -828,7 +828,7 @@ export default {
828
     getClosecode() {
828
     getClosecode() {
829
       var that = this;
829
       var that = this;
830
       this.$http
830
       this.$http
831
-        .post("service/common/common/getDictionary", {
831
+        .post("/service/common/common/getDictionary", {
832
           key: "incident_closecode",
832
           key: "incident_closecode",
833
           type: "list"
833
           type: "list"
834
         })
834
         })
@@ -846,7 +846,7 @@ export default {
846
     getHandlerUser() {
846
     getHandlerUser() {
847
       var that = this;
847
       var that = this;
848
       this.$http
848
       this.$http
849
-        .post("service/user/data/fetchDataList/user", {
849
+        .post("/service/user/data/fetchDataList/user", {
850
           idx: 0,
850
           idx: 0,
851
           sum: 1000,
851
           sum: 1000,
852
           user: {
852
           user: {
@@ -868,7 +868,7 @@ export default {
868
     getCandidateGroups() {
868
     getCandidateGroups() {
869
       var that = this;
869
       var that = this;
870
       this.$http
870
       this.$http
871
-        .post("service/user/data/fetchDataList/group", {
871
+        .post("/service/user/data/fetchDataList/group", {
872
           idx: 0,
872
           idx: 0,
873
           sum: 1000,
873
           sum: 1000,
874
           group: { selectType: "nouser" }
874
           group: { selectType: "nouser" }
@@ -1101,7 +1101,7 @@ export default {
1101
         "2020年4月25日14:09:29"
1101
         "2020年4月25日14:09:29"
1102
       );
1102
       );
1103
       that.$http
1103
       that.$http
1104
-        .post("service/bpm/bpm/start/bpm_incident", that.modelData)
1104
+        .post("/service/bpm/bpm/start/bpm_incident", that.modelData)
1105
         .then(function(res) {
1105
         .then(function(res) {
1106
           if (res.data) {
1106
           if (res.data) {
1107
             that.action.target = that.action.target + res.data.id;
1107
             that.action.target = that.action.target + res.data.id;
@@ -1273,7 +1273,7 @@ export default {
1273
     getIncidentcategory() {
1273
     getIncidentcategory() {
1274
       var that = this;
1274
       var that = this;
1275
       this.$http
1275
       this.$http
1276
-        .post("service/bpm/data/fetchDataList/incidentcategory", {
1276
+        .post("/service/bpm/data/fetchDataList/incidentcategory", {
1277
           idx: 0,
1277
           idx: 0,
1278
           sum: 1000
1278
           sum: 1000
1279
         })
1279
         })
@@ -1395,7 +1395,7 @@ export default {
1395
     getAreaData() {
1395
     getAreaData() {
1396
       var that = this;
1396
       var that = this;
1397
       this.$http
1397
       this.$http
1398
-        .post("service/user/data/fetchDataList/area", {
1398
+        .post("/service/user/data/fetchDataList/area", {
1399
           idx: 0,
1399
           idx: 0,
1400
           sum: 1000,
1400
           sum: 1000,
1401
           area: {
1401
           area: {
@@ -1416,7 +1416,7 @@ export default {
1416
     getPlaceData() {
1416
     getPlaceData() {
1417
       var that = this;
1417
       var that = this;
1418
       this.$http
1418
       this.$http
1419
-        .post("service/user/data/fetchDataList/place", {
1419
+        .post("/service/user/data/fetchDataList/place", {
1420
           idx: 0,
1420
           idx: 0,
1421
           sum: 1000,
1421
           sum: 1000,
1422
           area: {
1422
           area: {
@@ -1450,7 +1450,7 @@ export default {
1450
     getFaultLocation(type) {
1450
     getFaultLocation(type) {
1451
       var that = this;
1451
       var that = this;
1452
       this.$http
1452
       this.$http
1453
-        .post("service/apply/bpm/searchFaultLocation", {
1453
+        .post("/service/apply/bpm/searchFaultLocation", {
1454
           searchKey: this.inpLocalVal || ""
1454
           searchKey: this.inpLocalVal || ""
1455
         })
1455
         })
1456
         .then(function(res) {
1456
         .then(function(res) {
@@ -1500,7 +1500,7 @@ export default {
1500
     getDept(type) {
1500
     getDept(type) {
1501
       var that = this;
1501
       var that = this;
1502
       this.$http
1502
       this.$http
1503
-        .post("service/user/data/fetchDataList/department", {
1503
+        .post("/service/user/data/fetchDataList/department", {
1504
           idx: 0,
1504
           idx: 0,
1505
           sum: 50,
1505
           sum: 50,
1506
           department: { dept: that.deptInpVal || "" }
1506
           department: { dept: that.deptInpVal || "" }

+ 2 - 2
src/views/order.vue

@@ -320,7 +320,7 @@ export default {
320
       var that = this;
320
       var that = this;
321
       that.$http
321
       that.$http
322
         .get(
322
         .get(
323
-          "service/common/common/listAttachment/incident/" +
323
+          "/service/common/common/listAttachment/incident/" +
324
             that.processInstanceId,
324
             that.processInstanceId,
325
           {}
325
           {}
326
         )
326
         )
@@ -389,7 +389,7 @@ export default {
389
       console.log(that.model);
389
       console.log(that.model);
390
       that.$http
390
       that.$http
391
         .post(
391
         .post(
392
-          "service/bpm/bpm/completeTask/" +
392
+          "/service/bpm/bpm/completeTask/" +
393
             that.model.incident.taskId +
393
             that.model.incident.taskId +
394
             "/" +
394
             "/" +
395
             that.loginUser.id,
395
             that.loginUser.id,

+ 13 - 13
src/views/processing.vue

@@ -413,7 +413,7 @@ const solution = {
413
     getTree() {
413
     getTree() {
414
       let that = this;
414
       let that = this;
415
       that.$http
415
       that.$http
416
-        .post("service/solution/fetchDataList/solutionType", {
416
+        .post("/service/solution/fetchDataList/solutionType", {
417
           idx: 0,
417
           idx: 0,
418
           sum: 100
418
           sum: 100
419
         })
419
         })
@@ -793,7 +793,7 @@ export default {
793
     getAreaList() {
793
     getAreaList() {
794
       return new Promise((resolve, reject) => {
794
       return new Promise((resolve, reject) => {
795
         this.$http
795
         this.$http
796
-          .post("service/user/data/fetchDataList/area", { idx: 0, sum: 1000 })
796
+          .post("/service/user/data/fetchDataList/area", { idx: 0, sum: 1000 })
797
           .then(res => {
797
           .then(res => {
798
             if (res.data.status == 200) {
798
             if (res.data.status == 200) {
799
               let arr = res.data.list.map(item => {
799
               let arr = res.data.list.map(item => {
@@ -815,7 +815,7 @@ export default {
815
     getPlaceList(id) {
815
     getPlaceList(id) {
816
       return new Promise((resolve, reject) => {
816
       return new Promise((resolve, reject) => {
817
         this.$http
817
         this.$http
818
-          .post("service/user/data/fetchDataList/place", {
818
+          .post("/service/user/data/fetchDataList/place", {
819
             idx: 0,
819
             idx: 0,
820
             sum: 1000,
820
             sum: 1000,
821
             place: { area: { id } }
821
             place: { area: { id } }
@@ -862,7 +862,7 @@ export default {
862
       var that = this;
862
       var that = this;
863
       that.$http
863
       that.$http
864
         .get(
864
         .get(
865
-          "service/common/common/listAttachment/incident/" +
865
+          "/service/common/common/listAttachment/incident/" +
866
             that.processInstanceId,
866
             that.processInstanceId,
867
           {}
867
           {}
868
         )
868
         )
@@ -1007,7 +1007,7 @@ export default {
1007
     getHandleCategory() {
1007
     getHandleCategory() {
1008
       var that = this;
1008
       var that = this;
1009
       this.$http
1009
       this.$http
1010
-        .post("service/common/common/getDictionary", {
1010
+        .post("/service/common/common/getDictionary", {
1011
           key: "incident_handleCategory",
1011
           key: "incident_handleCategory",
1012
           type: "list"
1012
           type: "list"
1013
         })
1013
         })
@@ -1025,7 +1025,7 @@ export default {
1025
     getClosecode() {
1025
     getClosecode() {
1026
       var that = this;
1026
       var that = this;
1027
       this.$http
1027
       this.$http
1028
-        .post("service/common/common/getDictionary", {
1028
+        .post("/service/common/common/getDictionary", {
1029
           key: "incident_closecode",
1029
           key: "incident_closecode",
1030
           type: "list"
1030
           type: "list"
1031
         })
1031
         })
@@ -1052,7 +1052,7 @@ export default {
1052
         }
1052
         }
1053
       };
1053
       };
1054
       this.$http
1054
       this.$http
1055
-        .post("service/user/data/fetchDataList/user", postData)
1055
+        .post("/service/user/data/fetchDataList/user", postData)
1056
         .then(function(res) {
1056
         .then(function(res) {
1057
           var handlerUserArr = [];
1057
           var handlerUserArr = [];
1058
           res.data.list.forEach(function(v, i) {
1058
           res.data.list.forEach(function(v, i) {
@@ -1076,7 +1076,7 @@ export default {
1076
         }
1076
         }
1077
       };
1077
       };
1078
       this.$http
1078
       this.$http
1079
-        .post("service/user/data/fetchDataList/user", postData)
1079
+        .post("/service/user/data/fetchDataList/user", postData)
1080
         .then(function(res) {
1080
         .then(function(res) {
1081
           var handlerUserArr = [];
1081
           var handlerUserArr = [];
1082
           res.data.list.forEach(function(v, i) {
1082
           res.data.list.forEach(function(v, i) {
@@ -1100,7 +1100,7 @@ export default {
1100
         }
1100
         }
1101
       };
1101
       };
1102
       this.$http
1102
       this.$http
1103
-        .post("service/user/data/fetchDataList/user", postData)
1103
+        .post("/service/user/data/fetchDataList/user", postData)
1104
         .then(function(res) {
1104
         .then(function(res) {
1105
           var handlerUserArr = [];
1105
           var handlerUserArr = [];
1106
           res.data.list.forEach(function(v, i) {
1106
           res.data.list.forEach(function(v, i) {
@@ -1120,7 +1120,7 @@ export default {
1120
         sum: 1000
1120
         sum: 1000
1121
       };
1121
       };
1122
       this.$http
1122
       this.$http
1123
-        .post("service/user/data/fetchDataList/user", postData)
1123
+        .post("/service/user/data/fetchDataList/user", postData)
1124
         .then(function(res) {
1124
         .then(function(res) {
1125
           var handlerUserArr = [];
1125
           var handlerUserArr = [];
1126
           res.data.list.forEach(function(v, i) {
1126
           res.data.list.forEach(function(v, i) {
@@ -1183,7 +1183,7 @@ export default {
1183
     getIncidentcategory() {
1183
     getIncidentcategory() {
1184
       var that = this;
1184
       var that = this;
1185
       this.$http
1185
       this.$http
1186
-        .post("service/bpm/data/fetchDataList/incidentcategory", {
1186
+        .post("/service/bpm/data/fetchDataList/incidentcategory", {
1187
           idx: 0,
1187
           idx: 0,
1188
           sum: 1000
1188
           sum: 1000
1189
         })
1189
         })
@@ -1427,7 +1427,7 @@ export default {
1427
       if (this.order == 5) {
1427
       if (this.order == 5) {
1428
         that.$http
1428
         that.$http
1429
           .post(
1429
           .post(
1430
-            "service/bpm/bpm/delegateTask/" + that.modelData.incident.taskId,
1430
+            "/service/bpm/bpm/delegateTask/" + that.modelData.incident.taskId,
1431
             { assginee: that.model.handlerUser }
1431
             { assginee: that.model.handlerUser }
1432
           )
1432
           )
1433
           .then(function(res) {
1433
           .then(function(res) {
@@ -1479,7 +1479,7 @@ export default {
1479
       } else {
1479
       } else {
1480
         that.$http
1480
         that.$http
1481
           .post(
1481
           .post(
1482
-            "service/bpm/bpm/completeTask/" +
1482
+            "/service/bpm/bpm/completeTask/" +
1483
               that.modelData.incident.taskId +
1483
               that.modelData.incident.taskId +
1484
               "/" +
1484
               "/" +
1485
               that.loginUser.id,
1485
               that.loginUser.id,

+ 2 - 2
src/views/solved.vue

@@ -355,7 +355,7 @@ export default {
355
       var that = this;
355
       var that = this;
356
       that.$http
356
       that.$http
357
         .get(
357
         .get(
358
-          "service/common/common/listAttachment/incident/" +
358
+          "/service/common/common/listAttachment/incident/" +
359
             that.processInstanceId,
359
             that.processInstanceId,
360
           {}
360
           {}
361
         )
361
         )
@@ -478,7 +478,7 @@ export default {
478
 
478
 
479
       that.$http
479
       that.$http
480
         .post(
480
         .post(
481
-          "service/bpm/bpm/completeTask/" +
481
+          "/service/bpm/bpm/completeTask/" +
482
             that.model.incident.taskId +
482
             that.model.incident.taskId +
483
             "/" +
483
             "/" +
484
             that.loginUser.id,
484
             that.loginUser.id,