|
@@ -53,7 +53,8 @@ const confMap = {
|
|
toPushSettingDialogMessage:
|
|
toPushSettingDialogMessage:
|
|
'您可前往“工作台-商机-项目进度监控”查看项目最新招标/采购进度。',
|
|
'您可前往“工作台-商机-项目进度监控”查看项目最新招标/采购进度。',
|
|
successDialogMessage: '监控成功,您可前往“工作台-商机-项目进度监控”查看',
|
|
successDialogMessage: '监控成功,您可前往“工作台-商机-项目进度监控”查看',
|
|
- monitorListLink: LINKS.项目进度监控
|
|
|
|
|
|
+ monitorListLink: LINKS.项目进度监控,
|
|
|
|
+ monitorListLinkBusiness: LINKS.商机管理项目进度监控
|
|
},
|
|
},
|
|
ent: {
|
|
ent: {
|
|
key: '企业',
|
|
key: '企业',
|
|
@@ -173,12 +174,25 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapGetters('user', ['isLogin', 'isMember', 'isBusiness']),
|
|
|
|
|
|
+ ...mapGetters('user', [
|
|
|
|
+ 'isLogin',
|
|
|
|
+ 'isMember',
|
|
|
|
+ 'isBusiness',
|
|
|
|
+ 'isNewBusiness',
|
|
|
|
+ 'isEntService'
|
|
|
|
+ ]),
|
|
isMemberOrBusiness() {
|
|
isMemberOrBusiness() {
|
|
return this.isMember || this.isBusiness
|
|
return this.isMember || this.isBusiness
|
|
},
|
|
},
|
|
conf() {
|
|
conf() {
|
|
- return confMap[this.type] || confMap.project
|
|
|
|
|
|
+ const conf = confMap[this.type] || confMap.project
|
|
|
|
+ // 项目监控跳转 - 商机管理跳转单独计算
|
|
|
|
+ if (this.type === 'project' && conf.monitorListLinkBusiness) {
|
|
|
|
+ if (this.isEntService || this.isNewBusiness) {
|
|
|
|
+ conf.monitorListLink = conf.monitorListLinkBusiness
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return conf
|
|
},
|
|
},
|
|
calcOffset() {
|
|
calcOffset() {
|
|
if (this.placement === 'top-start') {
|
|
if (this.placement === 'top-start') {
|
|
@@ -277,7 +291,7 @@ export default {
|
|
this.doMonitor()
|
|
this.doMonitor()
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.doMonitor()
|
|
|
|
|
|
+ this.doCancelMonitor()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async successMonitorAndToPushSettingDialog() {
|
|
async successMonitorAndToPushSettingDialog() {
|