浏览代码

区域地点修复

seimin 3 年之前
父节点
当前提交
d9b45d9d7b
共有 2 个文件被更改,包括 6 次插入9 次删除
  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
     // https://webpack.js.org/configuration/devtool/#development
47
     // https://webpack.js.org/configuration/devtool/#development
48
     // 住了一行
48
     // 住了一行
49
-    // devtool: 'cheap-module-eval-source-map',
49
+    devtool: 'source-map',
50
 
50
 
51
     // If you have problems debugging vue-files in devtools,
51
     // If you have problems debugging vue-files in devtools,
52
     // set this to false - it *may* help
52
     // set this to false - it *may* help

+ 5 - 8
src/views/newIncident.vue

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