Commit 150845c3 authored by 徐一鸣's avatar 徐一鸣

消息管理列表筛选fixed

parent 1920d2ea
......@@ -197,6 +197,10 @@ export default {
this.currentPage = value;
this.listAction();
},
resetCurrentPage(value = 1) {
this.currentPage = value;
this.listAction();
},
listAction() {
if (this.timer) {
clearTimeout(this.timer);
......
......@@ -329,6 +329,7 @@ export default {
this.getTemplateList();
},
topFilterAction() {
this.currentPage = 1;
this.getTemplateList();
},
topFilterClear() {
......
......@@ -268,8 +268,11 @@ export default {
});
});
},
resetCurrentPage() {
this.$refs.list.resetCurrentPage();
},
topFilterAction() {
this.initList(this.tempFilter);
this.resetCurrentPage();
},
topFilterClear() {
this.topFilter = {
......@@ -279,7 +282,7 @@ export default {
down_time: "",
};
this.initList(this.tempFilter);
this.resetCurrentPage();
},
showDialog() {
this.$refs.dialog.show();
......
......@@ -260,8 +260,11 @@ export default {
});
});
},
resetCurrentPage() {
this.$refs.list.resetCurrentPage();
},
topFilterAction() {
this.initList(this.tempFilter);
this.resetCurrentPage();
},
topFilterClear() {
this.topFilter = {
......@@ -270,7 +273,7 @@ export default {
push_time: "",
};
this.initList(this.tempFilter);
this.resetCurrentPage();
},
addNew() {
this.$router.push("/message/directed_push/add");
......
......@@ -33,8 +33,9 @@
<span class="filter_title">状态:</span>
<el-select v-model="topFilter.state" placeholder="请选择">
<el-option label="全部" value=""> </el-option>
<el-option label="推送成功" value="1"> </el-option>
<el-option label="推送失败" value="0"> </el-option>
<el-option label="推送成功" value="success"> </el-option>
<el-option label="推送失败" value="fail"> </el-option>
<el-option label="推送中" value="pushing"> </el-option>
</el-select>
</div>
<div class="filter_item">
......@@ -259,8 +260,11 @@ export default {
});
});
},
resetCurrentPage() {
this.$refs.list.resetCurrentPage();
},
topFilterAction() {
this.initList(this.tempFilter);
this.resetCurrentPage();
},
topFilterClear() {
this.topFilter = {
......@@ -269,7 +273,7 @@ export default {
push_time: "",
};
this.initList(this.tempFilter);
this.resetCurrentPage();
},
addNew() {
this.$router.push("/message/message_alert/add");
......
......@@ -235,8 +235,11 @@ export default {
});
});
},
resetCurrentPage() {
this.$refs.list.resetCurrentPage();
},
topFilterAction() {
this.initList(this.tempFilter);
this.resetCurrentPage();
},
topFilterClear() {
this.topFilter = {
......@@ -245,7 +248,7 @@ export default {
update_time: "",
};
this.initList(this.tempFilter);
this.resetCurrentPage();
},
showDialog() {
this.$refs.dialog.show();
......
......@@ -196,8 +196,11 @@ export default {
});
});
},
resetCurrentPage() {
this.$refs.list.resetCurrentPage();
},
topFilterAction() {
this.initList(this.tempFilter);
this.resetCurrentPage();
},
topFilterClear() {
this.topFilter = {
......@@ -206,7 +209,7 @@ export default {
time: "",
};
this.initList(this.tempFilter);
this.resetCurrentPage();
},
detailAction(item) {
this.$router.push(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment