Selaa lähdekoodia

禁入类别,添加清空 小按钮

master
甘明坤 3 vuotta sitten
vanhempi
commit
60b4798fc4
1 muutettua tiedostoa jossa 9 lisäystä ja 2 poistoa
  1. +9
    -2
      src/views/off-limits-manage/off-limits-main/off-limits-type/index.vue

+ 9
- 2
src/views/off-limits-manage/off-limits-main/off-limits-type/index.vue Näytä tiedosto

@@ -1,7 +1,7 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-12-07 15:14:51 * @Date: 2021-12-07 15:14:51
* @LastEditTime: 2021-12-08 14:27:16
* @LastEditTime: 2021-12-08 15:43:52
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 自动报警分类 * @Description: 自动报警分类
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\off-limits-main\off-limits-type\newIndex.vue * @FilePath: \GpsCardAdmin\src\views\off-limits-manage\off-limits-main\off-limits-type\newIndex.vue
@@ -55,6 +55,8 @@
style="width: 200px; margin-left: 10px" style="width: 200px; margin-left: 10px"
class="filter-item" class="filter-item"
@keyup.enter.native="onSearch" @keyup.enter.native="onSearch"
@clear="onClear"
clearable
/> />
<el-button <el-button
class="filter-item" class="filter-item"
@@ -85,10 +87,10 @@
<!-- 分页 --> <!-- 分页 -->
<pagination <pagination
v-show="total > 0" v-show="total > 0"
ref="pages"
:total="total" :total="total"
:page.sync="page" :page.sync="page"
:limit.sync="limit" :limit.sync="limit"
:page-sizes="[5,10,100, 200, 300, 400]"
@pagination="getList" @pagination="getList"
/> />
</div> </div>
@@ -196,6 +198,11 @@ export default {
onSearch() { onSearch() {
this.getList(); this.getList();
}, },
// 点击清除按钮时
onClear() {
this.$refs["pages"].currentPage = 1;
this.getList();
},
// 获取分页数据 // 获取分页数据
getList() { getList() {
let reqBody = { let reqBody = {


Loading…
Peruuta
Tallenna