|
@@ -23,6 +23,7 @@ import styles from './practice-setting.module.less'
|
|
|
import { verifyNumberIntegerAndFloat } from '@/helpers/toolsValidate'
|
|
|
import Timer from './model/timer'
|
|
|
import ColHeader from '@/components/col-header'
|
|
|
+import { state } from '@/state'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'PracticeSetting',
|
|
@@ -33,6 +34,7 @@ export default defineComponent({
|
|
|
0: '否',
|
|
|
1: '是'
|
|
|
},
|
|
|
+ checkStatus:false, // 是否审核版本
|
|
|
classTimeStatus: false,
|
|
|
subjectStatus: false,
|
|
|
timerStatus: false,
|
|
@@ -159,6 +161,17 @@ export default defineComponent({
|
|
|
: ''
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // 判断如果是审核的则不显示
|
|
|
+ const resVersion = await request.post('/api-teacher/open/appVersion', {
|
|
|
+ data: {
|
|
|
+ platform:
|
|
|
+ state.platformType === 'STUDENT' ? 'ios-student' : 'ios-teacher',
|
|
|
+ version: state.version
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.checkStatus = resVersion.data.check ? true : false
|
|
|
+
|
|
|
} catch {}
|
|
|
},
|
|
|
methods: {
|
|
@@ -201,7 +214,7 @@ export default defineComponent({
|
|
|
if (index === -1) {
|
|
|
subjectPriceList.push({
|
|
|
subjectId: item,
|
|
|
- subjectPrice: null as any,
|
|
|
+ subjectPrice: this.checkStatus ? 0 : null as any,
|
|
|
subjectName: ''
|
|
|
})
|
|
|
}
|
|
@@ -354,7 +367,7 @@ export default defineComponent({
|
|
|
/>
|
|
|
</ColField>
|
|
|
</ColFieldGroup>
|
|
|
- {this.form.subjectPrice && this.form.subjectPrice.length > 0 && (
|
|
|
+ {this.form.subjectPrice && this.form.subjectPrice.length > 0 && !this.checkStatus && (
|
|
|
<ColFieldGroup>
|
|
|
{this.form.subjectPrice.map((item: any) => (
|
|
|
<ColField
|