Browse Source

Merge branch 'iteration-temp-http' of http://git.dayaedu.com/huangqiyong/classroom into dev

黄琪勇 10 months ago
parent
commit
7b1b11ed50
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/views/cloudPractice/cloudPractice.tsx

+ 10 - 2
src/views/cloudPractice/cloudPractice.tsx

@@ -548,6 +548,11 @@ export default defineComponent({
                   sysMusicScoreCategoriesList: item.sysMusicScoreCategoriesList || []
                   sysMusicScoreCategoriesList: item.sysMusicScoreCategoriesList || []
                }
                }
             })
             })
+
+            state.categoryId = null
+            state.categoryName = null
+            state.levelId = null
+            state.typeId = -1
          }
          }
          if (state.categoryList.length > 0 && !["level", "type"].includes(type as any)) {
          if (state.categoryList.length > 0 && !["level", "type"].includes(type as any)) {
             let result: any = []
             let result: any = []
@@ -608,6 +613,8 @@ export default defineComponent({
                   musicSheetCategoriesList: item.musicSheetCategoriesList || []
                   musicSheetCategoriesList: item.musicSheetCategoriesList || []
                }
                }
             })
             })
+            state.levelId = null
+            state.typeId = -1
          }
          }
 
 
          if (state.levelList.length > 0) {
          if (state.levelList.length > 0) {
@@ -679,6 +686,7 @@ export default defineComponent({
       }
       }
 
 
       const handleGetList = async () => {
       const handleGetList = async () => {
+         if (loading.value) return
          state.listActive = 0
          state.listActive = 0
          state.showPlayer = false
          state.showPlayer = false
          state.playState = "pause"
          state.playState = "pause"
@@ -1017,7 +1025,7 @@ export default defineComponent({
                            ))}
                            ))}
 
 
                            {!state.list.length && !loading.value && (
                            {!state.list.length && !loading.value && (
-                              <ElEmpty class={styles.empty} image={require("@/img/layout/empty.png")} description="暂无结果" />
+                              <ElEmpty class={styles.empty} image={require("@/img/layout/empty.png")} description="暂无内容" />
                            )}
                            )}
 
 
                            <div ref={spinRef} class={[styles.loadingWrap, state.finshed && styles.showLoading]}>
                            <div ref={spinRef} class={[styles.loadingWrap, state.finshed && styles.showLoading]}>
@@ -1050,7 +1058,7 @@ export default defineComponent({
                         )}
                         )}
 
 
                         {!loading.value && !activeItem.value?.id && (
                         {!loading.value && !activeItem.value?.id && (
-                           <ElEmpty class={styles.empty} image={require("@/img/layout/empty.png")} description="暂无结果" />
+                           <ElEmpty class={styles.empty} image={require("@/img/layout/empty.png")} description="暂无内容" />
                         )}
                         )}
                      </div>
                      </div>
                   </NSpin>
                   </NSpin>