Selaa lähdekoodia

接口路径修复

seimin 3 vuotta sitten
vanhempi
commit
d5158f0665

+ 4 - 4
src/views/againAssign.vue

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

+ 11 - 3
src/views/closed.vue

@@ -81,8 +81,16 @@
81 81
             </p>
82 82
             <p>
83 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 94
             </p>
87 95
             <p>
88 96
               <span class="fl">联系地址</span>
@@ -321,7 +329,7 @@ export default {
321 329
       var that = this;
322 330
       that.$http
323 331
         .get(
324
-          "service/common/common/listAttachment/incident/" +
332
+          "/service/common/common/listAttachment/incident/" +
325 333
             that.processInstanceId,
326 334
           {}
327 335
         )

+ 3 - 2
src/views/grabSheet.vue

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

+ 1 - 1
src/views/incidentList.vue

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

+ 18 - 18
src/views/newIncident.vue

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

+ 2 - 2
src/views/order.vue

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

+ 13 - 13
src/views/processing.vue

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

+ 2 - 2
src/views/solved.vue

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