|
@@ -441,7 +441,8 @@ export default {
|
|
|
messages: [],
|
|
messages: [],
|
|
|
inputText: '',
|
|
inputText: '',
|
|
|
conversationId: '',
|
|
conversationId: '',
|
|
|
- usedToday: false
|
|
|
|
|
|
|
+ usedToday: false,
|
|
|
|
|
+ checkingMembership: false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -542,12 +543,16 @@ riskGroupAbnormalCount: function() {
|
|
|
openQuickAnalyze: function() {
|
|
openQuickAnalyze: function() {
|
|
|
this.quickAnalyze.show = true
|
|
this.quickAnalyze.show = true
|
|
|
var self = this
|
|
var self = this
|
|
|
|
|
+ if (self.quickAnalyze.checkingMembership) return
|
|
|
|
|
+ self.quickAnalyze.checkingMembership = true
|
|
|
getMyMembership().then(function(res) {
|
|
getMyMembership().then(function(res) {
|
|
|
var level = res.data && res.data.memberLevel
|
|
var level = res.data && res.data.memberLevel
|
|
|
if (level && level !== 'FREE') {
|
|
if (level && level !== 'FREE') {
|
|
|
self.quickAnalyze.usedToday = false
|
|
self.quickAnalyze.usedToday = false
|
|
|
}
|
|
}
|
|
|
- }).catch(function() {})
|
|
|
|
|
|
|
+ }).catch(function() {}).finally(function() {
|
|
|
|
|
+ self.quickAnalyze.checkingMembership = false
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
closeQuickAnalyze: function() {
|
|
closeQuickAnalyze: function() {
|
|
|
this.quickAnalyze.show = false
|
|
this.quickAnalyze.show = false
|