weieryang 1 miesiąc temu
rodzic
commit
bb7620dd34

+ 7 - 5
wxproject/groupGreen/pages/InspectorAdd/InspectorAdd.js

@@ -470,7 +470,7 @@ Page({
470 470
         pestId = this.data.wormList[this.data.wormIndex].id;
471 471
         if (pestId == -1) {
472 472
           // if(!this.data.pestNewName){
473
-          //   return app.toast('请输入病虫名称');
473
+          //   return app.toast('请输入病虫名称');
474 474
           // }
475 475
           pestName = this.data.pestNewName;
476 476
           if (!pestName) {
@@ -483,6 +483,8 @@ Page({
483 483
       if (this.data.dangerLevelIndex == null) {
484 484
         return app.toast('请选择危害程度');
485 485
       }
486
+
487
+      console.log(this.data.dangerLevelLIst[this.data.dangerLevelIndex], 'this.data.dangerLevelLIst[this.data.dangerLevelIndex]')
486 488
       let data = {
487 489
         patrolId: this.data.InspectionInfo.id,
488 490
         pestName: pestName,
@@ -556,11 +558,11 @@ Page({
556 558
         // 选择行道树
557 559
         v.number4 = this.data.XDSflag;
558 560
         if (this.data.XDSflag == 3) {
559
-          v.number5 = this.data.huatanList[
560
-            this.data.huatanIndex
561
-          ].id; // id
561
+          // v.number5 = this.data.huatanList[
562
+          //   this.data.huatanIndex
563
+          // ].id; // id
562 564
 
563
-          v.string5 = this.data.huatanList[this.data.huatanIndex].address;
565
+          // v.string5 = this.data.huatanList[this.data.huatanIndex].address;
564 566
           // v.string5 =
565 567
           //   this.data.huatanList[this.data.huatanIndex].fAttractionsName +
566 568
           //   '--' +