通知公告
This commit is contained in:
@@ -68,7 +68,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {add, detail, read} from "./components";
|
import add from "./add";
|
||||||
|
import detail from "./detail";
|
||||||
|
import read from "./read";
|
||||||
import {mapActions} from "vuex";
|
import {mapActions} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -135,30 +137,23 @@ export default {
|
|||||||
this.$dict.load("announcementStatus");
|
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: {
|
methods: {
|
||||||
...mapActions(['injectJWeixin']),
|
...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() {
|
changeState() {
|
||||||
this.$http.post(this.content == '删除' ? '/app/appannouncement/delete' : "/app/appannouncement/update-status", null, {
|
this.$http.post(this.content == '删除' ? '/app/appannouncement/delete' : "/app/appannouncement/update-status", null, {
|
||||||
params: {
|
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