Browse Source

bug-文物库点击重置

shaogen1995 2 years ago
parent
commit
06417fc14a
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/pages/cultural-relic/index.vue

+ 8 - 1
src/pages/cultural-relic/index.vue

@@ -23,7 +23,7 @@
             <el-radio v-model="sortType" :label="1">按总浏览量排序</el-radio>
 
             <el-button type="primary" @click="getInformation">查找</el-button>
-            <el-button @click="inputKey = ''">重置</el-button>
+            <el-button @click="resetSreach">重置</el-button>
             <el-select style="margin-left: 20px" @change="piliang" :value="'批量导入 '" placeholder="请选择" v-if="0">
               <el-option label="模板下载" value="模板下载"> </el-option>
               <el-option label="批量导入" value="批量导入"> </el-option>
@@ -154,6 +154,13 @@ export default {
     this.refresh()
   },
   methods: {
+    // 点击重置
+    resetSreach () {
+      this.inputKey = ''
+      this.timeId = ''
+      this.typeId = ''
+      this.refresh()
+    },
     // 点击导出
     async derive () {
       this.getInformation()