|
|
@@ -12,7 +12,7 @@
|
|
|
<el-button size="mini" type="danger" @click="share">分享</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-select v-model="searchForm.fileType" placeholder="文件类型" @change="search">
|
|
|
+ <el-select v-model="searchForm.fileType" placeholder="文件类型" @change="onSelect">
|
|
|
<el-option label="全部" value="0" />
|
|
|
<el-option label="图片" value="1001" />
|
|
|
<el-option label="视频" value="1002" />
|
|
|
@@ -329,6 +329,11 @@ export default {
|
|
|
},
|
|
|
cache(row) {
|
|
|
},
|
|
|
+ onSelect() {
|
|
|
+ this.currentPage = 1
|
|
|
+ this.searchForm.page = this.currentPage
|
|
|
+ this.getData(this.searchForm)
|
|
|
+ },
|
|
|
search() {
|
|
|
this.currentPage = 1
|
|
|
this.searchForm.page = this.currentPage
|