Explorar o código

区域地点修复

seimin %!s(int64=3) %!d(string=hai) anos
pai
achega
d9b45d9d7b
Modificáronse 2 ficheiros con 6 adicións e 9 borrados
  1. 1 1
      config/index.js
  2. 5 8
      src/views/newIncident.vue

+ 1 - 1
config/index.js

@@ -46,7 +46,7 @@ module.exports = {
46 46
 
47 47
     // https://webpack.js.org/configuration/devtool/#development
48 48
     // 住了一行
49
-    // devtool: 'cheap-module-eval-source-map',
49
+    devtool: 'source-map',
50 50
 
51 51
     // If you have problems debugging vue-files in devtools,
52 52
     // set this to false - it *may* help

+ 5 - 8
src/views/newIncident.vue

@@ -484,14 +484,11 @@ export default {
484 484
     // 获取事件来源
485 485
     getSource() {
486 486
       var that = this;
487
-      http.bpmFetchDataList('incidentsource',{
488
-        idx:0,
489
-        sum:1000
490
-      })
487
+      http.getDictionary('list','incident_source')
491 488
       .then(function(res) {
492
-        res.data.list.forEach(function(v, i) {
489
+        res.data.forEach(function(v, i) {
493 490
           that.sourceArr.push({
494
-            text: v.source,
491
+            text: v.name,
495 492
             value: v.id
496 493
           });
497 494
         });
@@ -898,7 +895,7 @@ export default {
898 895
           var data = res.data.list;
899 896
           for (var i = 0; i < data.length; i++) {
900 897
             for (var j = 0; j < that.placeSelectData.length; j++) {
901
-              if (data[i].areaId == that.placeSelectData[j].value) {
898
+              if (data[i].area.id == that.placeSelectData[j].value) {
902 899
                 that.placeSelectData[j].children.push({
903 900
                   text: data[i].place,
904 901
                   value: data[i].id
@@ -952,7 +949,7 @@ export default {
952 949
           var data = res.data.list;
953 950
           for (var i = 0; i < data.length; i++) {
954 951
             that.requesterSelectData.push({
955
-              text: data[i].account+'  '+data[i].name+'  '+data[i].deptName,
952
+              text: data[i].account+'  '+data[i].name+'  '+data[i].dept.dept,
956 953
               value: data[i].id
957 954
             });
958 955
           }