通知公告

This commit is contained in:
wanglei
2021-12-13 13:54:00 +08:00
parent 24b96ec35c
commit 29e8bf8957
5 changed files with 18 additions and 26 deletions

View File

@@ -68,7 +68,9 @@
</template>
<script>
import {add, detail, read} from "./components";
import add from "./add";
import detail from "./detail";
import read from "./read";
import {mapActions} from "vuex";
export default {
@@ -135,30 +137,23 @@ export default {
this.$dict.load("announcementStatus");
},
onShow() {
this.current = 1;
this.$loading()
this.injectJWeixin(['sendChatMessage']).then(() => {
this.getList();
}).catch(() => {
this.$hideLoading()
})
},
onReachBottom() {
this.current++;
this.getList();
},
methods: {
...mapActions(['injectJWeixin']),
emitShow() {
const {id} = this.$route.query
if (id) {
this.comp = "detail";
this.params = {
id,
flag: true
};
this.showList = false;
}
this.current = 1;
this.$loading()
this.injectJWeixin(['sendChatMessage']).then(() => {
this.getList();
}).catch(() => {
this.$hideLoading()
})
},
emitReachBottom() {
this.current = this.current + 1;
this.getList()
},
changeState() {
this.$http.post(this.content == '删除' ? '/app/appannouncement/delete' : "/app/appannouncement/update-status", null, {
params: {

View File

@@ -1,3 +0,0 @@
export {default as add} from "./add"
export {default as detail} from "./detail"
export {default as read} from "./read"