lex 1 рік тому
батько
коміт
ed29afa8ca

+ 1 - 0
src/components/layout/index.tsx

@@ -360,6 +360,7 @@ export default defineComponent({
         '/classStudentDetail',
         '/notation',
         '/xiaoku-ai',
+        '/studentDetail',
         '/classStudentRecode',
         '/afterWorkDetail'
       ];

+ 4 - 4
src/views/attend-class/model/train-settings/index.tsx

@@ -210,7 +210,7 @@ export default defineComponent({
               ]}>
               {trainForms.trainList.length > 0 && (
                 <div class={styles.list}>
-                  {trainForms.trainList.map((item: any) => (
+                  {trainForms.trainList.map((item: any, index: number) => (
                     <TrainType
                       item={item}
                       type="homework"
@@ -229,9 +229,9 @@ export default defineComponent({
                       }}
                       onDelete={() => {
                         // 删除
-                        const index = trainForms.trainList.findIndex(
-                          (c: any) => c.id === item.id
-                        );
+                        // const index = trainForms.trainList.findIndex(
+                        //   (c: any) => c.id === item.id
+                        // );
                         trainForms.trainList.splice(index, 1);
                       }}
                     />

+ 1 - 0
src/views/attend-class/model/train-type/index.tsx

@@ -257,6 +257,7 @@ export default defineComponent({
                 round
                 type="primary"
                 onClick={() => {
+                  removeVisiable.value = false;
                   emit('delete', props.item);
                 }}>
                 确定