diff --git a/jshERP-web/src/components/tools/HeaderNotice.vue b/jshERP-web/src/components/tools/HeaderNotice.vue index 778b4a12..dfb843c0 100644 --- a/jshERP-web/src/components/tools/HeaderNotice.vue +++ b/jshERP-web/src/components/tools/HeaderNotice.vue @@ -1,7 +1,7 @@ - {{ record.titile }} - {{ record.createTime }} 发布 - - - 一般消息 - 重要消息 - 紧急消息 + {{ record.msgTitle }} + {{ record.createTimeStr }} 发布 - - - - - - - - - {{ record.titile }} - {{ record.createTime }} 发布 - - - 一般消息 - 重要消息 - 紧急消息 - - - - + 查看更多 @@ -56,37 +33,36 @@ + - - - + + + + 关闭 + 去处理 + + + + + + + + + + + + + + diff --git a/jshERP-web/src/views/dashboard/IndexChart.vue b/jshERP-web/src/views/dashboard/IndexChart.vue index f97fb548..ef48cb9a 100644 --- a/jshERP-web/src/views/dashboard/IndexChart.vue +++ b/jshERP-web/src/views/dashboard/IndexChart.vue @@ -99,7 +99,7 @@ import Trend from '@/components/Trend' import { getBuyAndSaleStatistics, buyOrSalePrice, getPlatformConfigByKey } from '@/api/api' import { handleIntroJs } from "@/utils/util" - import { getAction } from '../../api/manage' + import { getAction,postAction } from '../../api/manage' export default { name: "IndexChart", @@ -179,6 +179,27 @@ //如果距离到期还剩5天就进行提示续费 if(difftime<86400000*5) { this.hasExpire = true + //针对免费租户发送试用到期的消息提醒 + if(res.data.type === '0') { + //先检查有无发送过,只发送一次 + getAction("/msg/getMsgCountByType",{'type': '试用到期'}).then(res=>{ + if(res && res.code === 200) { + if(res.data.count === 0) { + //发送消息 + let msgParam = { + 'msgTitle': '试用到期提醒', + 'msgContent': '试用期即将结束,请您及时续费,过期将会影响正常使用!', + 'type': '试用到期' + } + postAction("/msg/add",msgParam).then(res=>{ + if(res && res.code === 200) { + + } + }) + } + } + }) + } } } }) diff --git a/jshERP-web/src/views/system/UserAnnouncementList.vue b/jshERP-web/src/views/system/MsgList.vue similarity index 51% rename from jshERP-web/src/views/system/UserAnnouncementList.vue rename to jshERP-web/src/views/system/MsgList.vue index 891880ef..09f8e320 100644 --- a/jshERP-web/src/views/system/UserAnnouncementList.vue +++ b/jshERP-web/src/views/system/MsgList.vue @@ -1,192 +1,177 @@ - - - - - - - - - - - - - - - - - - - - - 查询 - 重置 - - - - - - - - - 全部标注已读 - - - - - 查看 - - - - - - - - - \ No newline at end of file
{{ record.titile }}
{{ record.createTime }} 发布
{{ record.msgTitle }}
{{ record.createTimeStr }} 发布