diff --git a/src/components/apass-list.vue b/src/components/apass-list.vue
index 2a7fb308551f0626a8a3773c4c51e5bdc04813a4..b82439c30c8c87004b6383ebeab0a5412769dfc4 100644
--- a/src/components/apass-list.vue
+++ b/src/components/apass-list.vue
@@ -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);
diff --git a/src/components/message-steps/select-template.vue b/src/components/message-steps/select-template.vue
index c4ecf23f4c41490ec7ea78e071201cc4689e5ad4..15d5536d0fe059e2287ff891a54c97208411aa87 100644
--- a/src/components/message-steps/select-template.vue
+++ b/src/components/message-steps/select-template.vue
@@ -9,6 +9,18 @@
placeholder="请输入消息模板名称/id"
>
+
+ 模板类型:
+
+
+
+
+
最后更新时间:
0) {
+ let tpl_types = [];
+
+ this.types.forEach((item) => {
+ if (this.tmpTypes.indexOf(item.value) > -1) {
+ tpl_types.push(item);
+ }
+ });
+
+ if (this.tmpTypes.length > 1) {
+ tpl_types = [
+ {
+ name: "全部",
+ value: this.tmpTypes.join(","),
+ },
+ ...tpl_types,
+ ];
+ }
+
+ this.tpl_types = tpl_types;
+ this.type = tpl_types[0].value;
+ }
+
this.getTemplateList();
},
methods: {
getTemplateList() {
let params = {
page: this.currentPage,
+ tpl_type: this.type,
size: this.pageSize,
keyword: this.keyword,
update_time_s: (this.updateTime && this.updateTime[0]) || "",
@@ -287,6 +329,7 @@ export default {
this.getTemplateList();
},
topFilterAction() {
+ this.currentPage = 1;
this.getTemplateList();
},
topFilterClear() {
@@ -358,7 +401,7 @@ export default {
...this.selected,
content: this.detail.content,
});
-
+
this.$refs.dialog.hide();
},
},
diff --git a/src/pages/message-management/banner/banner-list.vue b/src/pages/message-management/banner/banner-list.vue
index 333ea16abd03e120d2bb7a89a421dd3a0bd1d8f4..09a61cb4e7c3b358fa050a45d70dafdc69fa2196 100644
--- a/src/pages/message-management/banner/banner-list.vue
+++ b/src/pages/message-management/banner/banner-list.vue
@@ -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();
diff --git a/src/pages/message-management/directed-push/directed-push-add.vue b/src/pages/message-management/directed-push/directed-push-add.vue
index eadba63f23edade3ccb7ce28338665758a271373..9f4ac784ef8b7f22984f3bba07e705c63ece2b91 100644
--- a/src/pages/message-management/directed-push/directed-push-add.vue
+++ b/src/pages/message-management/directed-push/directed-push-add.vue
@@ -51,6 +51,7 @@
>
diff --git a/src/pages/message-management/directed-push/directed-push-list.vue b/src/pages/message-management/directed-push/directed-push-list.vue
index 6dac901cd2661be82a64e18a20f4d82014a6b6ad..e85f6d986419133fe0bcad9bb7b1f460246f6d00 100644
--- a/src/pages/message-management/directed-push/directed-push-list.vue
+++ b/src/pages/message-management/directed-push/directed-push-list.vue
@@ -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");
diff --git a/src/pages/message-management/message-alert/message-alert-add.vue b/src/pages/message-management/message-alert/message-alert-add.vue
index 9c4909d1e5b4b8b8fa12d6d045a6d4b058ddbded..7ffaad3d4a9451bac18fdef055aca7e578ba7079 100644
--- a/src/pages/message-management/message-alert/message-alert-add.vue
+++ b/src/pages/message-management/message-alert/message-alert-add.vue
@@ -32,6 +32,7 @@
@@ -98,7 +99,7 @@ export default {
step: 0,
done: false,
templateId: "",
- templateContent:"",
+ templateContent: "",
targetUserIds: "",
};
},
diff --git a/src/pages/message-management/message-alert/message-alert-list.vue b/src/pages/message-management/message-alert/message-alert-list.vue
index 93c80b379f90bd755dd40eafd07a72c98929d526..b16d9721af1c0c6e68360c01f8b032ea02c6ba36 100644
--- a/src/pages/message-management/message-alert/message-alert-list.vue
+++ b/src/pages/message-management/message-alert/message-alert-list.vue
@@ -33,8 +33,9 @@
状态:
-
-
+
+
+
@@ -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");
diff --git a/src/pages/message-management/message-template/message-template-list.vue b/src/pages/message-management/message-template/message-template-list.vue
index e3bcea1ca75322327867f1289aa28691da47a485..0f42c0e264ed4f4461026886424f28a5a12a7a4a 100644
--- a/src/pages/message-management/message-template/message-template-list.vue
+++ b/src/pages/message-management/message-template/message-template-list.vue
@@ -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();
diff --git a/src/pages/message-management/recommended/recommended-list.vue b/src/pages/message-management/recommended/recommended-list.vue
index 2c494c5ec06b7711a1372e0e91f82971c2e4d299..ace80d36f87e5b409cc48bd1de2937b8c4c1b332 100644
--- a/src/pages/message-management/recommended/recommended-list.vue
+++ b/src/pages/message-management/recommended/recommended-list.vue
@@ -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(
diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue
index b236f6e0eec01b78723ada223f03daa3d40357ee..859fd79d630756c1786eb2fd3a831d99b7381daa 100644
--- a/src/pages/workbench/fwzc_fwcs.vue
+++ b/src/pages/workbench/fwzc_fwcs.vue
@@ -365,6 +365,7 @@
:title="dialogInfo.title"
:msg="dialogInfo.msg"
:submit="dialogInfo.submit"
+ :cancelHide="true"
>
@@ -997,6 +998,7 @@ export default {
this.getOrganization();
} else {
self.is_map = 0;
+ self.getServiceType1();
}
},
goBack() {
@@ -1076,9 +1078,8 @@ export default {
}
}
});
- self.getServiceType1();
- self.getArea();
self.judgeMap();
+ self.getArea();
},
};