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,7 +142,12 @@
      formDat: {
        ctTableName:undefined,
        createTime:undefined,
        by1:undefined,
        by2:undefined,
        by3:undefined,
        by4:undefined,
        by5:undefined,
        by6:undefined,
        remark:undefined,
        location:undefined,
        ctId:undefined
@@ -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) {
@@ -263,7 +278,7 @@
      }else if(row.by5=="/family/zfDoctor"){//家庭小医生
        path ="/familymodel/Doctor/doctorInfo/"
      }else if(row.by5=="/family/zfClea"){ // 保洁收纳  -----------有问题
      }else if(row.by5=="/family/zfClean"){ // 保洁收纳  -----------有问题----已解决
        path = "/familymodel/clean/cleanInfo/"
      }else if(row.by5=="/family/zfContact"){  //通讯录