feige
2023-05-17 4efd39b4696db81789d3d92a54d197f1e85ecdf2
把所有模块的导入模板和导出问题都解决了
9个文件已修改
272 ■■■■ 已修改文件
ruoyi-ui/src/views/bignote/index.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/clean/index.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/collection/index.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/contacts/index.vue 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/device/index.vue 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/doctor/index.vue 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/economy/index.vue 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/note/index.vue 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/pet/index.vue 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/bignote/index.vue
@@ -120,7 +120,7 @@
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          @click="handleExportTemplate"
          v-hasPermi="['family:note:export']"
        >导入模板下载</el-button>
      </el-col>
@@ -144,8 +144,8 @@
    </el-row>
    <!-- 序号、时间、人物、地点、大事标题、电子文件、备注 -->
    <!-- 这里有个familyList数组 是在data()中定义的 -->
    <el-table v-loading="loading"  :data="familyList" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName">
      <el-table-column type="selection" width="55"  align="center" />
    <el-table v-loading="loading"  :data="familyList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName">
      <el-table-column type="selection"  :reserve-selection="true" width="55"  align="center" />
      <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
      <el-table-column label="发生时间" prop="happenTime" sortable width="100" align="center">
@@ -443,7 +443,10 @@
      this.open = false;
      this.reset();
    },
    getRowId(row)
    {
      return row.id
    },
    //隔行变色
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 == 0) {
@@ -523,7 +526,7 @@
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      console.log(this.ids)
    //  alert(this.ids)
      this.single = selection.length!=1
      this.multiple = !selection.length
    },
@@ -606,17 +609,35 @@
    /** 删除按钮操作 */
    handleDelete(row) {
      const Ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除所选中数据项?').then(function() {
        return delFamilyevent(Ids);
      }).then(() => {
        this.getList();
        this.ids = []
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
        const Ids = this.ids;
      if(Ids.length==0)
      {
      this.download('/family/zfEvent/export', {
        ...this.queryParams
      }, `zfEvent_${new Date().getTime()}.xlsx`)
      }
      else{
        this.download('/family/zfEvent/export1/'+Ids, {
        }, `zfEvent_${new Date().getTime()}.xlsx`)
      }
      },
        /** 导入模板下载操作*/
    handleExportTemplate()
    {
     this.download('/family/zfEvent/model', {
      }, `zfEvent_${new Date().getTime()}.xlsx`)
    },
    /** 导入操作*/
@@ -635,6 +656,7 @@
      }
    }
  }
};
</script>
ruoyi-ui/src/views/clean/index.vue
@@ -93,7 +93,7 @@
              plain
              icon="el-icon-download"
              size="mini"
              @click="handleExport"
              @click="handleExportTemplate"
              v-hasPermi="['family:note:export']"
            >导入模板下载</el-button>
          </el-col>
@@ -114,14 +114,15 @@
        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
      </el-row>
  
      <el-table v-loading="loading" :data="cleanList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
        <el-table-column type="selection" width="55"  align="center" />
      <el-table v-loading="loading" :data="cleanList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
        <el-table-column type="selection" :reserve-selection="true"  width="55"  align="center" />
        <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/>
        <el-table-column label="类型" prop="kind" sortable width="120" >
          <template slot-scope="scope">
          {{ getSrc1(scope.row.kind) }}
           </template>
          </el-table-column>
        <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
        <el-table-column label="适用人" prop="suitable" sortable :show-overflow-tooltip="true" width="150" />
        <el-table-column label="类别" prop="type" sortable width="100" />
        <el-table-column label="保洁方法" prop="method" sortable width="100" />
@@ -445,7 +446,10 @@
        this.open = false;
        this.reset();
      },
    getRowId(row)
    {
      return row.id
    },
      //隔行变色
      tableRowClassName({ row, rowIndex }) {
        if (rowIndex % 2 == 0) {
@@ -637,10 +641,25 @@
      },
      /** 导出按钮操作 */
      handleExport() {
        this.download('/zfEconomy/export', {
        const Ids = this.ids;
        if(Ids.length==0)
        {
        this.download('/zfClean/export', {
          ...this.queryParams
        }, `clean_${new Date().getTime()}.xlsx`)
        }else{
          this.download('/zfClean/export1/'+Ids, {
          }, `clean_${new Date().getTime()}.xlsx`)
        }
      },
      handleExportTemplate() {
        this.download('/zfClean/model', {
        }, `clean_${new Date().getTime()}.xlsx`)
      },
      /** 导入操作*/
      handleEnport(params){
      var file = params.file;
@@ -671,4 +690,3 @@
  
  }
  </style>
ruoyi-ui/src/views/collection/index.vue
@@ -196,8 +196,8 @@
        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
      </el-row>
    </div>
    <el-table v-loading="loading" :data="collectionList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" width="25"  align="center" />
    <el-table v-loading="loading" :data="collectionList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" :reserve-selection="true" width="25"  align="center" />
      <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/>
      <el-table-column label="获得时间" prop="happenTime" sortable width="100" align="center">
        <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '————'}}</template>
@@ -214,7 +214,7 @@
      <el-table-column label="来源" prop="source" sortable width="90" align="center" >
        <template slot-scope="scope">{{scope.row.source? scope.row.source: '————'}}</template>
      </el-table-column>
      <el-table-column label="持有者" prop="owner" sortable width="110" align="center">
      <el-table-column label="拥有者" prop="owner" sortable width="110" align="center">
        <template slot-scope="scope">{{scope.row.owner? scope.row.owner: '————'}}</template>
      </el-table-column>
      <el-table-column label="价值" prop="price" sortable width="90" align="center">
@@ -223,7 +223,10 @@
      <el-table-column label="存放位置" prop="location" sortable width="130" align="center">
        <template slot-scope="scope">{{scope.row.location? scope.row.location: '————'}}</template>
      </el-table-column>
      <el-table-column label="电子文件" prop="url" width="80" >
      <el-table-column label="备注" prop="remark" sortable width="90" align="center">
        <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '————'}}</template>
      </el-table-column>
      <el-table-column label="电子文件" prop="url" width="180" >
        <template slot-scope="scope" >
          <img
            class="el-upload-list__item-thumbnail"
@@ -244,9 +247,7 @@
        </template>
      </el-table-column>
      <el-table-column label="备注" prop="remark" sortable width="90" align="center">
        <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '————'}}</template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
        <template slot-scope="scope" v-if="scope.row.roleId !== 1">
          <el-button
@@ -307,8 +308,8 @@
          <el-input v-model="formDat.source" placeholder="请输入来源" clearable :style="{width: '100%'}" >
          </el-input>
        </el-form-item>
        <el-form-item label="持有者" prop="owner">
          <el-input v-model="formDat.owner" placeholder="请输入持有者" clearable :style="{width: '100%'}" >
        <el-form-item label="拥有者" prop="owner">
          <el-input v-model="formDat.owner" placeholder="请输入拥有者" clearable :style="{width: '100%'}" >
          </el-input>
        </el-form-item>
        <el-form-item label="价格" prop="price">
@@ -567,7 +568,10 @@
      this.open = false;
      this.reset();
    },
    getRowId(row)
    {
      return row.id
    },
    //隔行变色
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 == 0) {
@@ -752,15 +756,23 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      const Ids = this.ids;
      if(Ids.length==0)
      {
      this.download('zfCollection/export', {
        ...this.queryParams
      }, `zfCollection_${new Date().getTime()}.xlsx`)
      }else{
        this.download('zfCollection/export1/'+Ids, {
        }, `zfCollection_${new Date().getTime()}.xlsx`)
      }
    },
    /** 导入模板下载按钮操作 */
    handleExportModel() {
      this.downloadModel('zfCollection/model', {
        ...this.queryParams
      this.download('/zfCollection/model', {
      }, `zfCollection_model_${new Date().getTime()}.xlsx`)
    },
ruoyi-ui/src/views/contacts/index.vue
@@ -120,7 +120,7 @@
            plain
            icon="el-icon-download"
            size="mini"
            @click="handleExport"
            @click="handleExportTemplate"
            v-hasPermi="['family:note:export']"
          >导入模板下载</el-button>
        </el-col>
@@ -144,8 +144,8 @@
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
  </div>
    <el-table v-loading="loading" :data="contactList"  @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" width="25"  align="center" />
    <el-table v-loading="loading" :data="contactList"  :row-key="getRowId" ref="multipleTable"  @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" :reserve-selection="true" width="25"  align="center" />
      <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/>
      <el-table-column label="成员姓名" prop="myName" sortable width="100" >
@@ -549,7 +549,10 @@
      this.open = false;
      this.reset();
    },
    getRowId(row)
    {
      return row.id
    },
    //隔行变色
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 == 0) {
@@ -734,9 +737,22 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      const Ids = this.ids;
      if(Ids.length==0)
      {
      this.download('zfContact/export', {
        ...this.queryParams
      }, `zfContact_${new Date().getTime()}.xlsx`)
      }else{
        this.download('zfContact/export1/'+Ids, {
        }, `zfContact_${new Date().getTime()}.xlsx`)
      }
    },
    handleExportTemplate(){
      this.download('zfContact/model', {
        ...this.queryParams
      }, `zfContact_${new Date().getTime()}.xlsx`)
    },
    /** 导入操作*/
    handleEnport(params){
ruoyi-ui/src/views/device/index.vue
@@ -99,7 +99,7 @@
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          @click="handleExportTemplate"
          v-hasPermi="['family:note:export']"
        >导入模板下载</el-button>
      </el-col>
@@ -123,8 +123,8 @@
    </el-row>
    <!-- 序号、设备名称、时间、购买人、事项内容、存放地点、电子文件、备注 操作-->
    <!-- 这里有个familyList数组 是在data()中定义的 -->
    <el-table v-loading="loading" :data="equipmentList"  @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" width="55"  align="center" />
    <el-table v-loading="loading" :data="equipmentList"  :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" :reserve-selection="true" width="55"  align="center" />
      <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
      <el-table-column label="设备名称" prop="name" sortable width="120" />
@@ -137,7 +137,7 @@
        </template>
      </el-table-column>
      <el-table-column label="购买人" prop="buyer" sortable width="100" />
      <el-table-column label="标题" prop="content" sortable :show-overflow-tooltip="true" width="150" />
      <el-table-column label="事项内容" prop="content" sortable :show-overflow-tooltip="true" width="150" />
      <el-table-column label="存放地点" prop="location" sortable width="100" />
      <el-table-column label="备注" prop="remark" sortable width="100" >
@@ -221,7 +221,7 @@
          <el-input v-model="formDat.buyer" placeholder="请输入购买人" clearable :style="{width: '100%'}" >
          </el-input>
        </el-form-item>
        <el-form-item label="标题" prop="content">
        <el-form-item label="事项内容" prop="content">
          <el-input v-model="formDat.content" placeholder="请输入事项内容" clearable :style="{width: '100%'}" ></el-input>
        </el-form-item>
        <el-form-item label="存放地点" prop="location">
@@ -569,7 +569,10 @@
        }
      });
    },
getRowId(row)
    {
      return row.id
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
@@ -631,9 +634,23 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      const Ids = this.ids;
      if(Ids.length==0)
      {
      this.download('/zfEquipment/export', {
        ...this.queryParams
      }, `zfEquiment_${new Date().getTime()}.xlsx`)
      }
      else{
        this.download('/zfEquipment/export1/'+Ids, {
        }, `zfEquiment_${new Date().getTime()}.xlsx`)
      }
    },
    handleExportTemplate(){
      this.download('/zfEquipment/model', {
      }, `zfEquiment_${new Date().getTime()}.xlsx`)
    },
    /** 导入操作*/
    handleEnport(params){
ruoyi-ui/src/views/doctor/index.vue
@@ -164,7 +164,7 @@
            plain
            icon="el-icon-download"
            size="mini"
            @click="handleExport"
            @click="handleExportTemplate"
            v-hasPermi="['family:note:export']"
          >导入模板下载</el-button>
        </el-col>
@@ -186,8 +186,8 @@
        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
      </el-row>
    </div>
    <el-table v-loading="loading" :data="doctorList" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" width="25"  align="center" />
    <el-table v-loading="loading" :data="doctorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange"  :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" :reserve-selection="true" width="25"  align="center" />
      <el-table-column  label="序号" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/>
      <el-table-column label="类型" prop="type" sortable width="80" align="center">
        <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template>
@@ -580,6 +580,10 @@
      this.open = false;
      this.reset();
    },
    getRowId(row)
    {
      return row.id
    },
    // 取消按钮(数据权限)
    cancelDataScope() {
      this.openDataScope = false;
@@ -720,9 +724,24 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('zfDoctor/export', {
      const Ids = this.ids;
      if(Ids.length==0)
      {
      this.download('/zfDoctor/export', {
        ...this.queryParams
      }, `zfDoctor_${new Date().getTime()}.xlsx`)
      }else{
        this.download('/zfDoctor/export1/'+Ids, {
        }, `zfDoctor_${new Date().getTime()}.xlsx`)
      }
    },
    handleExportTemplate(){
      this.download('/zfDoctor/model', {
      }, `zfDoctor_${new Date().getTime()}.xlsx`)
    },
    /** 导入操作*/
    handleEnport(params){
ruoyi-ui/src/views/economy/index.vue
@@ -86,7 +86,7 @@
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          @click="handleExportTemplate"
          v-hasPermi="['family:note:export']"
        >导入模板下载</el-button>
      </el-col>
@@ -107,8 +107,8 @@
    </el-row>
    <!-- 序号、基金/台账、时间、收入/支出、用途、使用人、现金/自动扣划、余额、电子文件、备注 操作-->
    <!-- 这里有个familyList数组 是在data()中定义的 -->
    <el-table v-loading="loading" :data="economyList"  @selection-change="handleSelectionChange" @row-click="handleCheck" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" width="55"  align="center" />
    <el-table v-loading="loading" :data="economyList"  :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" @row-click="handleCheck" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection"  :reserve-selection="true" width="55"  align="center" />
      <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
      <el-table-column label="基金/台账" prop="type" sortable width="120" >
        <template slot-scope="scope">
@@ -118,7 +118,6 @@
      <el-table-column label="发生时间" prop="createTime" sortable width="100" align="center">
        <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template>
      </el-table-column>
      <el-table-column label="台账" prop="type" sortable width="100" />
      <el-table-column label="收入/支出" prop="price" sortable width="100" />
      <el-table-column label="用途" prop="useFor" sortable width="100" />
@@ -129,6 +128,7 @@
        </template>
      </el-table-column>
      <el-table-column label="余额" prop="balance" sortable width="100" />
            <el-table-column label="备注" prop="remark" sortable width="100" />
      <el-table-column label="电子文件" prop="url" align="center" sortable  width="110" >
        <template slot-scope="scope" >
          <img
@@ -149,7 +149,7 @@
          >
        </template>
      </el-table-column>
      <el-table-column label="备注" prop="remark" sortable width="100" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope" v-if="scope.row.roleId !== 1">
          <el-button
@@ -522,6 +522,10 @@
      this.open = false;
      this.reset();
    },
    getRowId(row)
    {
      return row.id
    },
    // 取消按钮(数据权限)
    cancelDataScope() {
      this.openDataScope = false;
@@ -656,10 +660,24 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      const Ids = this.ids;
      if(Ids.length==0)
      {
      this.download('/zfEconomy/export', {
        ...this.queryParams
      }, `zfEconomy_${new Date().getTime()}.xlsx`)
      }else
      {
        this.download('/zfEconomy/export1/'+Ids, {
        }, `zfEconomy_${new Date().getTime()}.xlsx`)
    }
    }
  ,
  handleExportTemplate(){
      this.download('/zfEconomy/model', {
      }, `zfEconomy_${new Date().getTime()}.xlsx`)
  },
  /** 导入操作*/
  handleEnport(params){
@@ -678,6 +696,7 @@
    }
  }
  }
};
</script>
ruoyi-ui/src/views/note/index.vue
@@ -106,7 +106,7 @@
            plain
            icon="el-icon-download"
            size="mini"
            @click="handleExport"
            @click="handleExportTemplate"
            v-hasPermi="['family:note:export']"
          >导入模板下载</el-button>
        </el-col>
@@ -127,8 +127,8 @@
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
    <el-table v-loading="loading" :data="propertyList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
      <el-table-column type="selection" width="55"  align="center" />
    <el-table v-loading="loading" :data="propertyList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
      <el-table-column type="selection" :reserve-selection="true" width="55"  align="center" />
      <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
@@ -432,7 +432,10 @@
      this.open = false;
      this.reset();
    },
    getRowId(row)
    {
      return row.id
    },
    //隔行变色
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 == 0) {
@@ -612,8 +615,22 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      const Ids = this.ids;
      if(Ids.length==0)
      {
      this.download('family/property/export', {
        ...this.queryParams
      }, `property_${new Date().getTime()}.xlsx`)
      }else{
        this.download('family/property/export1/'+Ids, {
          ...this.queryParams
        }, `property_${new Date().getTime()}.xlsx`)
      }
    },
    handleExportTemplate(){
      this.download('family/property/model', {
      }, `property_${new Date().getTime()}.xlsx`)
    },
    /** 导入操作*/
@@ -622,7 +639,7 @@
    var formData = new FormData();
    formData.append('excelImport', file);
    let _this = this
    alert(file)
    enload(formData).then(response => {
       _this.getList();
      Message({ message: "导入成功", type: 'warning' })
ruoyi-ui/src/views/pet/index.vue
@@ -111,7 +111,7 @@
            plain
            icon="el-icon-download"
            size="mini"
            @click="handleExport"
            @click="handleExportTemplate"
            v-hasPermi="['family:note:export']"
          >导入模板下载</el-button>
        </el-col>
@@ -132,8 +132,8 @@
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
    <el-table v-loading="loading" :data="petList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
      <el-table-column type="selection" width="55"  align="center" />
    <el-table v-loading="loading" :data="petList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
      <el-table-column type="selection" :reserve-selection="true" width="55"  align="center" />
      <el-table-column  label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/>
@@ -156,7 +156,7 @@
          <span>{{ parseTime(scope.row.birth) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="宠物id" prop="id" sortable width="100" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope" v-if="scope.row.roleId !== 1">
          <el-button
@@ -423,7 +423,7 @@
  },
  created() {
    this.getList();
    this.getCateInfor()
  //  this.getCateInfor()
  },
  methods: {
@@ -456,12 +456,9 @@
      this.loading = true;
      this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0]
      this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
      // console.log(this.queryParams)
      //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
      listPet(this.queryParams).then(response => {
          //  alert(123)
          //   console.log(response.data)
          this.petList = response.data.data;
          this.total = response.data.total;
@@ -487,6 +484,10 @@
        if(this.fileListOther[i].url==file.url)
          this.$delete(this.fileListOther,i);
      }
    },
    getRowId(row)
    {
      return row.id
    },
    // 取消按钮
    cancel() {
@@ -625,9 +626,24 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('family/property/export', {
      const Ids = this.ids;
      if(Ids.length==0)
      {
      this.download('/family/property/export', {
        ...this.queryParams
      }, `property_${new Date().getTime()}.xlsx`)
      }, `pet_${new Date().getTime()}.xlsx`)
      }else{
        this.download('/family/property/export1/'+Ids, {
        }, `pet_${new Date().getTime()}.xlsx`)
      }
    },
    handleExportTemplate()
    {
        this.download('/family/property/model', {
          ...this.queryParams
        }, `pet_${new Date().getTime()}.xlsx`)
    },
    /** 导入操作*/
    handleEnport(params){