|
@@ -32,11 +32,11 @@
|
|
|
<div class="text-center ml-5">潘青海先生(Peter Pan)</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="text-center">
|
|
|
- <v-btn class="mt-16 mr-3 buttons" color="primary" @click="handleBackToFlame">回到火苗儿校企</v-btn>
|
|
|
- <v-btn v-if="applyInfo?.authStatus === '2'" class="mt-16 buttons" color="primary" @click="handleConfirm">{{ $t('common.resubmit') }}</v-btn>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="text-center mb-15">
|
|
|
+ <v-btn class="mt-16 mr-3 buttons" color="primary" @click="handleBackToFlame">回到火苗儿校企</v-btn>
|
|
|
+ <v-btn v-if="getToken()" class="mt-16 mr-3 buttons" color="primary" @click="handleRefreshApproved">刷新审核进度</v-btn>
|
|
|
+ <v-btn v-if="applyInfo?.authStatus === '2'" class="mt-16 buttons" color="primary" @click="handleConfirm">{{ $t('common.resubmit') }}</v-btn>
|
|
|
</div>
|
|
|
</v-card>
|
|
|
</div>
|
|
@@ -46,10 +46,12 @@
|
|
|
defineOptions({ name: 'register-schoolForm'})
|
|
|
import { ref, onMounted } from 'vue'
|
|
|
import { webContentStore } from '@/store/webContent'
|
|
|
-// import navBar from '@/layout/personal/navBar.vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
+import { getToken } from '@/utils/auth'
|
|
|
+import { getSchoolInformation } from '@/api/school'
|
|
|
+import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
|
const userStore = useUserStore()
|
|
|
const applyInfo = ref(localStorage.getItem('registerSchoolInfo') ? JSON.parse(localStorage.getItem('registerSchoolInfo')) : {})
|
|
@@ -72,6 +74,28 @@ const handleBackToFlame = async () => {
|
|
|
const handleConfirm = async () => {
|
|
|
router.push('/register/schoolIndex')
|
|
|
}
|
|
|
+
|
|
|
+// 刷新审核状态
|
|
|
+const handleRefreshApproved = async () => {
|
|
|
+ const data = await getSchoolInformation()
|
|
|
+ if (!data) return
|
|
|
+ localStorage.setItem('schoolInfo', data ? JSON.stringify(data) : '{}')
|
|
|
+
|
|
|
+ if (data?.authStatus === '1') {
|
|
|
+ Snackbar.success('您的账号审核已通过')
|
|
|
+ router.push('/recruit/teacher/studentList/index')
|
|
|
+ }
|
|
|
+ if (data?.authStatus === '0') {
|
|
|
+ Snackbar.warning('您的账号还在审核中,请耐心等待')
|
|
|
+ }
|
|
|
+ if (data?.authStatus === '2') {
|
|
|
+ Snackbar.warning('您的账号审核未通过,请重新提交')
|
|
|
+ }
|
|
|
+
|
|
|
+ applyInfo.value = data
|
|
|
+ localStorage.setItem('registerSchoolInfo', JSON.stringify(data))
|
|
|
+ console.log('刷新审核状态', applyInfo.value)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|