|
@@ -41,44 +41,45 @@
|
|
|
<content-card v-if="userStore.isStudent" title="文化素质">
|
|
<content-card v-if="userStore.isStudent" title="文化素质">
|
|
|
<uv-form-item label="语文" prop="name" borderBottom>
|
|
<uv-form-item label="语文" prop="name" borderBottom>
|
|
|
<uv-input v-model="scores.chinese" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
<uv-input v-model="scores.chinese" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
|
- font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === 'OHS'">
|
|
|
|
|
|
|
+ font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === EnumExamType.OHS">
|
|
|
</uv-input>
|
|
</uv-input>
|
|
|
- <ie-image v-if="form.examType === 'OHS'" slot="right" src="/pagesSystem/static/image/icon/icon-lock.png"
|
|
|
|
|
- custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
|
|
|
|
+ <ie-image v-if="form.examType === EnumExamType.OHS" slot="right"
|
|
|
|
|
+ src="/pagesSystem/static/image/icon/icon-lock.png" custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
</uv-form-item>
|
|
</uv-form-item>
|
|
|
<uv-form-item label="数学" prop="name" borderBottom>
|
|
<uv-form-item label="数学" prop="name" borderBottom>
|
|
|
<uv-input v-model="scores.mathematics" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
<uv-input v-model="scores.mathematics" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
|
- font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === 'OHS'">
|
|
|
|
|
|
|
+ font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === EnumExamType.OHS">
|
|
|
</uv-input>
|
|
</uv-input>
|
|
|
- <ie-image v-if="form.examType === 'OHS'" slot="right" src="/pagesSystem/static/image/icon/icon-lock.png"
|
|
|
|
|
- custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
|
|
|
|
+ <ie-image v-if="form.examType === EnumExamType.OHS" slot="right"
|
|
|
|
|
+ src="/pagesSystem/static/image/icon/icon-lock.png" custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
</uv-form-item>
|
|
</uv-form-item>
|
|
|
- <uv-form-item label="外语" prop="name" :borderBottom="form.examType !== 'VHS'">
|
|
|
|
|
|
|
+ <uv-form-item label="外语" prop="name" :borderBottom="form.examType === EnumExamType.OHS">
|
|
|
<uv-input v-model="scores.foreign" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
<uv-input v-model="scores.foreign" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
|
- font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === 'OHS'">
|
|
|
|
|
|
|
+ font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === EnumExamType.OHS">
|
|
|
</uv-input>
|
|
</uv-input>
|
|
|
- <ie-image v-if="form.examType === 'OHS'" slot="right" src="/pagesSystem/static/image/icon/icon-lock.png"
|
|
|
|
|
- custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
|
|
|
|
+ <ie-image v-if="form.examType === EnumExamType.OHS" slot="right"
|
|
|
|
|
+ src="/pagesSystem/static/image/icon/icon-lock.png" custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
</uv-form-item>
|
|
</uv-form-item>
|
|
|
- <block v-if="['OHS', 'SVS'].includes(form.examType)">
|
|
|
|
|
|
|
+ <block v-if="[EnumExamType.OHS].includes(form.examType)">
|
|
|
<uv-form-item label="物理" prop="name" borderBottom>
|
|
<uv-form-item label="物理" prop="name" borderBottom>
|
|
|
<uv-input v-model="scores.physics" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
<uv-input v-model="scores.physics" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
|
- font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === 'OHS'">
|
|
|
|
|
|
|
+ font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === EnumExamType.OHS">
|
|
|
</uv-input>
|
|
</uv-input>
|
|
|
- <ie-image v-if="form.examType === 'OHS'" slot="right" src="/pagesSystem/static/image/icon/icon-lock.png"
|
|
|
|
|
- custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
|
|
|
|
+ <ie-image v-if="form.examType === EnumExamType.OHS" slot="right"
|
|
|
|
|
+ src="/pagesSystem/static/image/icon/icon-lock.png" custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
</uv-form-item>
|
|
</uv-form-item>
|
|
|
<uv-form-item label="政治" prop="name">
|
|
<uv-form-item label="政治" prop="name">
|
|
|
<uv-input v-model="scores.political" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
<uv-input v-model="scores.political" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
|
- font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === 'OHS'">
|
|
|
|
|
|
|
+ font-size="30rpx" :custom-style="customStyle" :readonly="form.examType === EnumExamType.OHS">
|
|
|
</uv-input>
|
|
</uv-input>
|
|
|
- <ie-image v-if="form.examType === 'OHS'" slot="right" src="/pagesSystem/static/image/icon/icon-lock.png"
|
|
|
|
|
- custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
|
|
|
|
+ <ie-image v-if="form.examType === EnumExamType.OHS" slot="right"
|
|
|
|
|
+ src="/pagesSystem/static/image/icon/icon-lock.png" custom-class="w-24 h-30" mode="aspectFill" />
|
|
|
</uv-form-item>
|
|
</uv-form-item>
|
|
|
</block>
|
|
</block>
|
|
|
</content-card>
|
|
</content-card>
|
|
|
|
|
|
|
|
- <content-card v-if="userStore.isStudent && (form.examType === 'OHS' || form.examType === 'SVS')" title="职业技能成绩">
|
|
|
|
|
|
|
+ <content-card v-if="userStore.isStudent && ([EnumExamType.OHS, EnumExamType.SVS].includes(form.examType))"
|
|
|
|
|
+ title="职业技能成绩">
|
|
|
<uv-form-item label="职业技能" prop="name">
|
|
<uv-form-item label="职业技能" prop="name">
|
|
|
<uv-input v-model.number="scores.skill" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
<uv-input v-model.number="scores.skill" border="none" placeholder="请输入" placeholderClass="text-30"
|
|
|
font-size="30rpx" :custom-style="customStyle">
|
|
font-size="30rpx" :custom-style="customStyle">
|
|
@@ -128,7 +129,7 @@ import { updateUserInfo } from '@/api/modules/login';
|
|
|
import { useUserStore } from '@/store/userStore';
|
|
import { useUserStore } from '@/store/userStore';
|
|
|
import { useSchool } from '@/composables/useSchool';
|
|
import { useSchool } from '@/composables/useSchool';
|
|
|
import { BindCardInfo, UserInfo } from '@/types/user';
|
|
import { BindCardInfo, UserInfo } from '@/types/user';
|
|
|
-import { EnumDictName, EnumSmsApiType } from '@/common/enum';
|
|
|
|
|
|
|
+import { EnumDictName, EnumSmsApiType, EnumExamType } from '@/common/enum';
|
|
|
import { validatePhone } from '@/hooks/useValidation';
|
|
import { validatePhone } from '@/hooks/useValidation';
|
|
|
import { validateSms } from '@/api/modules/system';
|
|
import { validateSms } from '@/api/modules/system';
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|