فهرست منبع

shiftline选中用户当前省份

shilipojs 2 سال پیش
والد
کامیت
df31930f67
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/views/career/components/UniversitiesLine.vue

+ 5 - 1
src/views/career/components/UniversitiesLine.vue

@@ -64,6 +64,7 @@ import {
 } from '@/api/webApi/shiftLine'
   import UniversitiesLineTable from '@/views/career/components/UniversitiesLineTable'
   import MxSearchGroup from '@/components/MxSearch/mx-search-group'
+import { mapGetters } from 'vuex'
 
   export default {
     name: "UniversitiesLine",
@@ -109,6 +110,9 @@ import {
         }
       }
     },
+    computed:{
+      ...mapGetters(['currentUser']),
+    },
     created() {
       this.getUniversityLocations()
       this.getUniversityYears()
@@ -119,7 +123,7 @@ import {
       },
       getUniversityLocations() {
         selectUniversityLocations().then(res => {
-          this.universityParams.location = res.rows[0]
+          this.universityParams.location = this.currentUser.provinceName
           this.locations = res.rows
         })
       },