case 'area':
          const defalut = Beforethreedefaultvalue[openType];
          this.currentdata = [...fujin];

          this.cols = '2';
          this.textValue = 'xzqmc';
          // 这里是针对级联选择picker默认值的处理.上一个版本.这个版本去掉了行政区.只有位置位置选择了
          // if (defalut[0] == '0') {
          //   console.log('杭州');
          //   // 这里是代表之前选择了杭州市
          //   this.currentdata.defaultIndex = 0;
          //   this.currentdata[0]['defaultIndex'] = defalut[1];
          //   this.currentdata[0].children[defalut[1]]['defaultIndex'] = defalut[2];
          // } else if (defalut[0] == '1') {
          //   console.log('附近');
          //   // 这里是代表之前选择了附近
          //   this.currentdata.defaultIndex = 1;
          //   this.currentdata[1]['defaultIndex'] = defalut[1];
          // }

          this.currentdata.defaultValue = 0;
          this.currentdata[0]['defaultIndex'] = defalut[1];
          this.beforeThreeDefault = '';
          break;
posted on 2023-02-10 13:52  huyadi  阅读(24)  评论(0编辑  收藏  举报