|
@@ -161,6 +161,7 @@ var vNode = {
|
|
|
if (storageId && storageId !== eId) {
|
|
|
sessionStorage.removeItem('winner_high_set')
|
|
|
sessionStorage.removeItem('winner_high_eid')
|
|
|
+ sessionStorage.removeItem('is-click-set')
|
|
|
}
|
|
|
},
|
|
|
mounted: function () {
|
|
@@ -177,35 +178,45 @@ var vNode = {
|
|
|
_this.getStickyTop()
|
|
|
})
|
|
|
},
|
|
|
+ beforeUpdate: function(){
|
|
|
+ // console.log($('.win-analyse').length)
|
|
|
+ var storageClick = JSON.parse(sessionStorage.getItem('is-click-set'))
|
|
|
+ if ($('.win-analyse').length && $('.win-analyse').length > 0 && storageClick) {
|
|
|
+ this.$nextTick(function(){
|
|
|
+ document.querySelector('.win-analyse').scrollIntoView()
|
|
|
+ // sessionStorage.removeItem('is-click-set')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
watch: {
|
|
|
tabActiveName: function (newVal, oldVal) {
|
|
|
- var _this = this
|
|
|
- if (newVal == '2') {
|
|
|
- this.$nextTick(function () {
|
|
|
- if (_this.gotTab2) {
|
|
|
- // 初始化图表
|
|
|
- if (_this.entPortraitInfo && _this.conf.showPortraitAll && !_this.singleTab) {
|
|
|
- _this.initChartsData();
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (_this.conf._4) {
|
|
|
- // 获取企业画像信息-4
|
|
|
- _this.getEntPortrait(function () {
|
|
|
- _this.initChartsData()
|
|
|
- })
|
|
|
- _this.gotTab2 = true
|
|
|
- console.log('获取企业全景分析...')
|
|
|
- }
|
|
|
- // 获取企业中标动态-13
|
|
|
- if (_this.conf._13) {
|
|
|
- // _this.getProjectNews()
|
|
|
- _this.gotTab2 = true
|
|
|
- console.log('获取企业中标动态...')
|
|
|
- }
|
|
|
+ var _this = this
|
|
|
+ if (newVal == '2') {
|
|
|
+ this.$nextTick(function () {
|
|
|
+ if (_this.gotTab2) {
|
|
|
+ // 初始化图表
|
|
|
+ if (_this.entPortraitInfo && _this.conf.showPortraitAll && !_this.singleTab) {
|
|
|
+ _this.initChartsData();
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
+ } else {
|
|
|
+ if (_this.conf._4) {
|
|
|
+ // 获取企业画像信息-4
|
|
|
+ _this.getEntPortrait(function () {
|
|
|
+ _this.initChartsData()
|
|
|
+ })
|
|
|
+ _this.gotTab2 = true
|
|
|
+ console.log('获取企业全景分析...')
|
|
|
+ }
|
|
|
+ // 获取企业中标动态-13
|
|
|
+ if (_this.conf._13) {
|
|
|
+ // _this.getProjectNews()
|
|
|
+ _this.gotTab2 = true
|
|
|
+ console.log('获取企业中标动态...')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
computed: {
|
|
|
// 3个权限有1个就为true(取反为3个权限1个都没有)
|
|
@@ -1163,6 +1174,7 @@ var vNode = {
|
|
|
var url = this.getProjectNewsUrl()
|
|
|
var reqSign = url.indexOf('subVipPortrait') === -1 ? 'bigmember' : 'svip'
|
|
|
if (this.conf._4) {
|
|
|
+ sessionStorage.setItem('is-click-set', 1)
|
|
|
location.href = './free_high_set?header=中标信息高级分析设置&eid=' + utils.getParam('eId') + '&reqSign=' + reqSign
|
|
|
} else {
|
|
|
this.$dialog.confirm({
|