|
@@ -1,4 +1,11 @@
|
|
|
-import { defineComponent, onMounted, reactive, watch, ref } from 'vue';
|
|
|
+import {
|
|
|
+ defineComponent,
|
|
|
+ onMounted,
|
|
|
+ reactive,
|
|
|
+ watch,
|
|
|
+ ref,
|
|
|
+ PropType
|
|
|
+} from 'vue';
|
|
|
import styles from './index.module.less';
|
|
|
import {
|
|
|
NButton,
|
|
@@ -36,6 +43,10 @@ export default defineComponent({
|
|
|
lessonPreTraining: {
|
|
|
type: Object,
|
|
|
default: () => ({})
|
|
|
+ },
|
|
|
+ cardType: {
|
|
|
+ type: String as PropType<'' | 'homeworkRecord'>,
|
|
|
+ default: ''
|
|
|
}
|
|
|
},
|
|
|
emits: ['change'],
|
|
@@ -44,7 +55,6 @@ export default defineComponent({
|
|
|
const prepareStore = usePrepareStore();
|
|
|
const dialog = useDialog();
|
|
|
const message = useMessage();
|
|
|
- console.log(props.lessonPreTraining, ' props.lessonPreTraining');
|
|
|
const forms = reactive({
|
|
|
title: props.lessonPreTraining?.title,
|
|
|
preBtnLoading: false,
|