|
@@ -47,16 +47,18 @@ export default {
|
|
|
this.showMessage()
|
|
|
this.getDict()
|
|
|
},
|
|
|
- deactivated(){
|
|
|
- this.$s.setStr('showMessage',false)
|
|
|
+ mounted(){
|
|
|
+ },
|
|
|
+ beforeDestroy(){
|
|
|
+ // sessionStorage.setItem('showMessage','')
|
|
|
},
|
|
|
methods:{
|
|
|
showMessage(){
|
|
|
- var showMessage = this.$s.getStr('showMessage')
|
|
|
+ var showMessage = sessionStorage.getItem('showMessage')
|
|
|
if(showMessage){
|
|
|
return
|
|
|
}
|
|
|
- this.$s.setStr('showMessage',true)
|
|
|
+ sessionStorage.setItem('showMessage',true)
|
|
|
this.expirationNotice()
|
|
|
this.taskReminder()
|
|
|
|
|
@@ -71,7 +73,7 @@ export default {
|
|
|
this.$api.getExpirePersons(params).then(response=>{
|
|
|
if(response.code == 200 && response.data.total){
|
|
|
var num = response.data.total
|
|
|
- var html = `<div>您所在企业下有<span style="color:red;">${num}</span>个账号即将到期,具体详情请前往人员管理查看<div>`
|
|
|
+ var html = `<div>您所在企业下有<span style="color:red;">${num}</span>个账号即将到期,具体详情请点击前往人员管理查看<div>`
|
|
|
var that = this
|
|
|
var message = this.$notify({
|
|
|
title: '到期通知',
|
|
@@ -109,7 +111,7 @@ export default {
|
|
|
this.$api.queryAuditTask(params).then(response=>{
|
|
|
if(response.code == 200){
|
|
|
var num = response.data.total
|
|
|
- var html = `<div>您还有<span style="color:red;">${num}</span>个任务待处理,具体详情请前往任务中心查看<div>`
|
|
|
+ var html = `<div>您还有<span style="color:red;">${num}</span>个任务待处理,具体详情请点击前往任务中心查看<div>`
|
|
|
var that = this
|
|
|
var message = this.$notify({
|
|
|
title: '任务提醒',
|
|
@@ -139,10 +141,11 @@ export default {
|
|
|
},
|
|
|
getDict() {
|
|
|
var params = {
|
|
|
- type:'TENANT_TYPE'
|
|
|
+ types:['TENANT_TYPE','QIAO_BI_VERSION_STATUS','QIAO_BI_PAID_CODE_STATUS','QIAO_BI_BUSINESS_TASK_TYPE','QIAO_BI_BUSINESS_TASK_STATE','QIAO_BI_BUSINESS_TASK_RESULT','QIAO_BI_VERSION_UPDATE_TYPE']
|
|
|
}
|
|
|
this.$api.getSysDictByType(params).then(response => {
|
|
|
this.$store.commit('SET_TENANT_TYPE', response.data.TENANT_TYPE)
|
|
|
+ this.$store.commit('SET_DICTIONARIES', response.data)
|
|
|
})
|
|
|
},
|
|
|
}
|