通知公告
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
export {default as add} from "./add"
|
||||
export {default as detail} from "./detail"
|
||||
export {default as read} from "./read"
|
||||
Reference in New Issue
Block a user