From 202f69ff07a2840a9746cda72361f0f67a20a85a Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期二, 30 十一月 2021 19:47:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 PAMapp/pages/recommendConsultant/index.vue |   62 +++++++++++++++++++++----------
 1 files changed, 42 insertions(+), 20 deletions(-)

diff --git a/PAMapp/pages/recommendConsultant/index.vue b/PAMapp/pages/recommendConsultant/index.vue
index 30e1745..a05a2f7 100644
--- a/PAMapp/pages/recommendConsultant/index.vue
+++ b/PAMapp/pages/recommendConsultant/index.vue
@@ -86,22 +86,26 @@
   import {
     Vue,
     Component,
-    Mutation
+    Mutation,
+    namespace
   } from 'nuxt-property-decorator';
-  import {strictQuery} from '~/assets/ts/api/consultant';
   import * as _ from 'lodash';
+import { strictQuery } from '~/assets/ts/api/consultant';
+
+  const localStorage = namespace('localStorage');
+
   @Component
   export default class RecommendConsultant extends Vue {
     isVisiblePopUp = false;
-    strictQueryDto={
+    strictQueryDto: StrictQueryDto ={
       gender:'',
       area:'',
       status:'',
-      requirements:[],
+      requirements: [],
       otherRequirement:'',
       seniority:'',
       avgScore:0,
-      popularTags:[],
+      popularTags: [],
       otherPopularTags:'',
     };
     genderOptions=[
@@ -194,41 +198,45 @@
     queaAboutList = [
       {
         title: '�摨瑁����',
-        content: '蝒���������敺����犖��振摨剜����������������������靘��'
+        content: '����澈擃憿批末嚗�靽�兢蝳�嚗��������嚗��飩������摮拙��粥銝��頝荔�犖����迤閬����'
       },
       {
         title: '摮戊��',
-        content: '������嚗������� ���摮戊雿�����暑�������'
+        content: '摮拙���������葦銋摮貊��撠靘�蒂�雿嚗飛���������������瓷嚗��楝銝���韏瑕飛��'
       },
       {
         title: '鞈閬��',
-        content: '�鞎∪�痊隞餃�������雲������������風嚗鈭箇����撥�����'
+        content: '��迤��瓷撖��雓寡�����嚗鈭箇�����蝳西瓷��◢�����Ⅱ靽�蝛拙��嚗�摰嗆��靘�末��皞���'
       },
       {
         title: '璅暑��隡�',
-        content: '��靽�������嚗��暑����車������犖�����挾���暑��閬��'
+        content: '�銝�頛拙����隡��摮���翰瘣鳴�停敺�����������隡瓷����撌勗�帘摰�嚗蝎曉蔗���僑鈭箇�������'
       },
       {
         title: '靽�瑼�/閬��',
-        content: '��瑼Z�撌梁������蝚血����靘�◢�蝘餉��瘙�������������銝��'
+        content: '��瑼Z�撌梁������蝚血����靘�◢�蝘餉��瘙��'
       },
       {
-        title: '��靽',
-        content: '���漲��������翰�祟�敺����雿�憿批����脰�������蝯行�����潘��隞乩������“������潦��'
-      },
-      {
-        title: '�隞�',
-        content: '���漲��������翰�祟�敺����雿�憿批����脰�������蝯行�����潘��隞乩������“������潦��'
-      },
+        title: '����',
+        content: '���� ���������憸券�����鈭怒�����嚗���摰帘摰漲嚗��隞亙��澈��ˊ�靽���嚗�'
+      }
     ];
     showDialog = false;
     showAddress = false;
 
     @Mutation updateStrictQueryList!: (data: any) => void;
+    @localStorage.Mutation storageRecommendConsultant!: (data: any) => void;
+    @localStorage.State recommendConsultantItem!: string;
 
+    mounted() {
+      if (!!this.recommendConsultantItem) {
+        this.strictQueryDto = JSON.parse(this.recommendConsultantItem);
+      }
+    }
     makePair():void{
       strictQuery(this.strictQueryDto).then(res=>{
         console.log('resultData',res.data);
+        this.storageRecommendConsultant(JSON.stringify(this.strictQueryDto));
         this.updateStrictQueryList(res.data);
         if (res.data.length === 0) {
           this.isVisiblePopUp = true;
@@ -239,7 +247,9 @@
     }
     get notFinishByRequireRules():boolean{
       const area = this.strictQueryDto.area;
-      const requirementLength = this.strictQueryDto.requirements.length;
+      const requirementLength = this.strictQueryDto.requirements
+        ? this.strictQueryDto.requirements.length
+        : 0;
       return !(area && requirementLength >0)
     }
 
@@ -253,9 +263,21 @@
     MALE="male",
     FEMALE="female",
   }
+
+  export interface StrictQueryDto {
+    gender: string,
+    area: string,
+    status: string,
+    requirements: string[],
+    otherRequirement: string,
+    seniority: string,
+    avgScore: number,
+    popularTags: string[],
+    otherPopularTags: string
+  }
 </script>
 
-<style lang="scss" >
+<style lang="scss">
 
 .pam-rec-cosultant-page {
   .rec-pop-container{
@@ -339,6 +361,7 @@
     overflow-y: auto;
     height: 500px;
     margin-top: 20px;
+    text-align: justify;
   }
 
   .qaTextTitle {
@@ -544,7 +567,6 @@
       flex-wrap: wrap;
     }
   }
-
   }
 }
 

--
Gitblit v1.8.0