| | |
| | | return this.context.getters['localStorage/isUserLogin']; |
| | | } |
| | | |
| | | get strictResultList(): AgentOfStrictQuery[] { |
| | | const perfectMatchList = this.strictQueryList.filter((i) => i.suitability === 100); |
| | | return perfectMatchList.length > 5 |
| | | ? perfectMatchList |
| | | : this.strictQueryList; |
| | | } |
| | | |
| | | @Mutation |
| | | updateRecommend(data: Consultant[]) { |
| | | this.recommendList = data; |
| | |
| | | |
| | | @Mutation |
| | | updateStrictQueryList(data: AgentOfStrictQuery[]) { |
| | | this.strictQueryList = data; |
| | | this.strictQueryList = data.sort((a, b) => b.suitability - a.suitability); |
| | | } |
| | | |
| | | @Mutation |