Tcsm
2023-09-26 5237e021227744cdcb60c10c10d840ee57175435
全局搜索实现点击详情课跳转详细信息
1个文件已修改
60 ■■■■■ 已修改文件
ruoyi-ui/src/views/search/index.vue 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/search/index.vue
@@ -138,7 +138,8 @@
        createTime:undefined,
        by5:undefined,
        remark:undefined,
        location:undefined,
        ctId:undefined
      },
      // 查询参数
      queryParams: {
@@ -187,7 +188,6 @@
        }
      );
    },
    // 取消按钮
    cancel() {
      this.open = false;
@@ -243,33 +243,43 @@
      this.single = selection.length!=1
      this.multiple = !selection.length
    },
    // //每次改变input框值时就改变this.myTableData的值
    // inputChange() { //循环每一项 只要content的值含有输入的searchVal值,就加进newList;反之,就无东西加进newList
    //   let newlist = this.formDat.filter(
    //     (item) => item.content.indexOf(this.searchVal) > -1
    //   );
    //   this.contactList = newlist;
    // },
    /** 查看详细信息 */
    handleCheck(row){
      const id = row.id;
      this.$router.push("/self/Honor/honorInfo/" + id);
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      const id = row.id;
      let jd = true
      // const id = row.id;
      console.log(row.by5 +'/' + row.ctId);
      var path = row.by5
      if (row.by5=="/family/zfEvent" ){ //家大事记
        path = "/familymodel/bignote/familyeventInfo/"
      this.$router.push({
        path:"/self/Honor/honorInfo/" + id,
        query:{
          detail:jd
        }
      });
    },
      }else if(row.by5=="/family/zfProperty"){//家庭资产管理
        path ="/familymodel/property/propertyInfo/"
      }else if(row.by5=="/family/zfEquipment"){//家庭设备
        path ="/familymodel/Device/equipmentInfo/"
      }else if(row.by5=="/family/zfCollection"){//收藏和荣誉
        path = "/familymodel/collection/collectionInfo/"
      }else if(row.by5=="/family/zfDoctor"){//家庭小医生
        path ="/familymodel/Doctor/doctorInfo/"
      }else if(row.by5=="/family/zfClea"){ // 保洁收纳  -----------有问题
        path = "/familymodel/clean/cleanInfo/"
      }else if(row.by5=="/family/zfContact"){  //通讯录
        path ="/familymodel/Contact/contactsInfo/"
      }else if(row.by5=="/familymodel/zfPet"){ // 魅宠
        path = "/familymodel/pet/petInfo/"
      }else if(row.by5=="/family/zfEconomy"){ // 家庭收支台账
        path = "/familymodel/economy/economyInfo/"
      }
      this.$router.push(path + row.ctId);
    },
  },