feige
2024-11-28 7fc578dc2032fac935267e92208f7f11384e3800
ruoyi-ui/src/views/search/index.vue
@@ -15,7 +15,7 @@
      <el-form-item label="时间" prop="happenTime">
        <el-date-picker
          v-model="dateRange"
          style="width:  197px;
          style="width:  240px;
          height: 30px;
          background: #FFFFFF;
          border-radius: 14px 14px 14px 14px;
@@ -30,7 +30,7 @@
      </el-form-item>
      <el-form-item>
        <el-button size="mini" @click="getList" style=" width: 67px;height: 27px;background: #FFDDE3;
        <el-button size="mini" @click="handleQuery" style=" width: 67px;height: 27px;background: #FFDDE3;
            border-radius: 7px 7px 7px 7px;opacity: 1; " >搜索</el-button>
        <el-button  size="mini" @click="resetQuery" style=" width: 67px;height: 27px;background: #FFDDE3;
            border-radius: 7px 7px 7px 7px;opacity: 1; ">重置</el-button>
@@ -47,14 +47,20 @@
        <template slot-scope="scope">{{scope.row.ctTableName? scope.row.ctTableName: '————'}}</template>
        <!--        <template slot-scope="scope">{{ getSrc1(scope.row.type) }}</template>-->
      </el-table-column>
      <el-table-column label="字段" prop="remark" sortable  width="120" align="center" >
        <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '————'}}</template>
      <el-table-column label=" " prop="by1" sortable  width="120" align="center" >
        <template slot-scope="scope">{{scope.row.by1? scope.row.by1: '————'}}</template>
      </el-table-column>
      <el-table-column label="时间" prop="getDate" sortable width="170" align="center" >
        <template slot-scope="scope">{{scope.row.getDate? scope.row.getDate: '————'}}</template>
      <el-table-column label=" " prop="by2" sortable width="170" align="center" >
        <template slot-scope="scope">{{scope.row.by2? scope.row.by2: '————'}}</template>
      </el-table-column>
      <el-table-column label="位置" prop="by5" sortable width="170" align="center" >
        <template slot-scope="scope">{{scope.row.by5 ? scope.row.by5: '————'}}</template>
      <el-table-column label=" " prop="by3" sortable width="170" align="center" >
        <template slot-scope="scope">{{scope.row.by3 ? scope.row.by3: '————'}}</template>
      </el-table-column>
      <el-table-column label=" " prop="by4" sortable width="170" align="center" >
        <template slot-scope="scope">{{scope.row.by4? scope.row.by4: '————'}}</template>
      </el-table-column>
      <el-table-column label=" " prop="by6" sortable width="170" align="center" >
        <template slot-scope="scope">{{scope.row.by6 ? scope.row.by6: '————'}}</template>
      </el-table-column>
      <!--      </el-table-column>-->
@@ -136,9 +142,15 @@
      formDat: {
        ctTableName:undefined,
        createTime:undefined,
        by1:undefined,
        by2:undefined,
        by3:undefined,
        by4:undefined,
        by5:undefined,
        by6:undefined,
        remark:undefined,
        location:undefined,
        ctId:undefined
      },
      // 查询参数
      queryParams: {
@@ -187,7 +199,6 @@
        }
      );
    },
    // 取消按钮
    cancel() {
      this.open = false;
@@ -222,19 +233,23 @@
          deptCheckStrictly: true,
          remark: undefined
        };
      this.resetForm("form");
      this.resetForm("elForm");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
     if(this.keyword!=''||this.dateRange.length!=0)
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.dateRange = [];
      this.keyword = '';
      this.getList();
     this.queryParams.pageNum = 1;
            this.searchList = []
     // this.getList();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
@@ -243,33 +258,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/zfClean"){ // 保洁收纳  -----------有问题----已解决
        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);
    },
  },