weieryang 1 ay önce
ebeveyn
işleme
bb7620dd34

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

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