|
@@ -110,6 +110,12 @@ export default defineComponent({
|
|
|
|
|
|
onMounted(() => {
|
|
|
forms.value = { ...JSON.parse(sessionStorage.getItem('unit-create') || '{}') } as any
|
|
|
+
|
|
|
+ // 缓存的截止日期
|
|
|
+ if (unitData.expiryDate) {
|
|
|
+ forms.value.expiryDate = unitData.expiryDate
|
|
|
+ }
|
|
|
+ activeName.value = unitData.level
|
|
|
const query = route.query
|
|
|
// api-teacher/lessonCoursewareExaminationMapper/detailByCourseId
|
|
|
// 判断是从课程结束后,还是正常创建
|
|
@@ -149,21 +155,6 @@ export default defineComponent({
|
|
|
}
|
|
|
try {
|
|
|
// 合并参数
|
|
|
- // "passScore": 48,
|
|
|
- // "questionList": [
|
|
|
- // {
|
|
|
- // "musicSheetId": "539",
|
|
|
- // "musicName": "长笛教程1-2",
|
|
|
- // "questionTypeCode": "PLAY",
|
|
|
- // "level": 1,
|
|
|
- // "score": 30,
|
|
|
- // "totalScore": 10,
|
|
|
- // "difficulty": "ONE",
|
|
|
- // "start": "1",
|
|
|
- // "end": "5",
|
|
|
- // "mediaUrls": "539"
|
|
|
- // }
|
|
|
- // ]
|
|
|
const params = {
|
|
|
classGroupId: forms.value.classGroupId,
|
|
|
lessonCoursewareExaminationMapperId: forms.value.testId,
|
|
@@ -261,6 +252,9 @@ export default defineComponent({
|
|
|
/>
|
|
|
<Field
|
|
|
v-model={forms.value.expiryDate}
|
|
|
+ onUpdate:modelValue={() => {
|
|
|
+ unitData.expiryDate = forms.value.expiryDate
|
|
|
+ }}
|
|
|
type="number"
|
|
|
center
|
|
|
class={styles.inputControl}
|
|
@@ -289,6 +283,9 @@ export default defineComponent({
|
|
|
/>
|
|
|
<Tabs
|
|
|
v-model:active={activeName.value}
|
|
|
+ onUpdate:active={() => {
|
|
|
+ unitData.level = activeName.value
|
|
|
+ }}
|
|
|
class={styles.rankTabs}
|
|
|
background={'#F8F8F8'}
|
|
|
title-active-color={'#333333'}
|