|
@@ -284,7 +284,6 @@ import {
|
|
getNoticeDetail,
|
|
getNoticeDetail,
|
|
confirmCheck,
|
|
confirmCheck,
|
|
getRebateOrderList,
|
|
getRebateOrderList,
|
|
- getRebateOrderMsg,
|
|
|
|
} from "@/api/dashboard";
|
|
} from "@/api/dashboard";
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
import { getInfo, getOrder, getGoodsRank } from "@/api/dashboard";
|
|
import { getInfo, getOrder, getGoodsRank } from "@/api/dashboard";
|
|
@@ -293,62 +292,11 @@ import { dateFormat } from "@/utils/util";
|
|
export default {
|
|
export default {
|
|
name: "Dashboard",
|
|
name: "Dashboard",
|
|
created() {
|
|
created() {
|
|
- localStorage.setItem("tcmessage", true);
|
|
|
|
this.getDataList({
|
|
this.getDataList({
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
pageNum: this.currentPage,
|
|
pageNum: this.currentPage,
|
|
readFlag: false,
|
|
readFlag: false,
|
|
});
|
|
});
|
|
-
|
|
|
|
- // console.log(this.showMessages, 564456564);
|
|
|
|
- // let that = this.$notify;
|
|
|
|
- // let aa = function () {
|
|
|
|
- // that.info({
|
|
|
|
- // title: "自定义位置",
|
|
|
|
- // message: "右下角弹出的消息",
|
|
|
|
- // position: "bottom-right",
|
|
|
|
- // duration: 0,
|
|
|
|
- // onClose() {
|
|
|
|
- // console.log("关闭回调");
|
|
|
|
- // clearInterval(intivalId);
|
|
|
|
- // aa();
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
- // clearInterval(intivalId);
|
|
|
|
- // };
|
|
|
|
- // if (this.showMessages || localStorage.getItem("tcmessage")) {
|
|
|
|
- // // let intivalId = setInterval(() => {
|
|
|
|
- // // this.$notify.info({
|
|
|
|
- // // title: "自定义位置",
|
|
|
|
- // // message: "右下角弹出的消息",
|
|
|
|
- // // position: "bottom-right",
|
|
|
|
- // // duration: 0,
|
|
|
|
- // // onClose() {
|
|
|
|
- // // console.log("关闭回调");
|
|
|
|
- // // console.log(that);
|
|
|
|
- // // clearInterval(intivalId);
|
|
|
|
- // // aa();
|
|
|
|
- // // },
|
|
|
|
- // // });
|
|
|
|
- // // clearInterval(intivalId);
|
|
|
|
- // // }, 3000);
|
|
|
|
- // // aa();
|
|
|
|
- // let intivalId = setInterval(async () => {
|
|
|
|
- // let res = await getRebateOrderMsg();
|
|
|
|
- // console.log(res, 7888777);
|
|
|
|
- // if (res.data.hasMessage) {
|
|
|
|
- // this.$notify.info({
|
|
|
|
- // title: "消息",
|
|
|
|
- // message: res.data.messages,
|
|
|
|
- // position: "bottom-right",
|
|
|
|
- // duration: 0,
|
|
|
|
- // onClose() {
|
|
|
|
- // console.log("关闭回调");
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
- // }, 3000);
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(["showMessages"]),
|
|
...mapGetters(["showMessages"]),
|