WINDOWS-7IFQK7E\EDY vor 1 Jahr
Ursprung
Commit
39ca77cbbc
2 geänderte Dateien mit 42 neuen und 21 gelöschten Zeilen
  1. 2 0
      src/pages/jsd/wcydtd/index.vue
  2. 40 21
      src/pages/jsd/wddz/index.vue

+ 2 - 0
src/pages/jsd/wcydtd/index.vue

@@ -7,6 +7,8 @@
         placeholder="切换类别"
         size="large"
         @change="filterData"
+        clearable
+        filterable
       >
         <el-option
           v-for="item in typeList"

+ 40 - 21
src/pages/jsd/wddz/index.vue

@@ -9,6 +9,8 @@
         placeholder="全部类别"
         size="large"
         @change="filterData"
+        clearable
+        filterable
       >
         <el-option value="">全部学科</el-option>
         <el-option
@@ -154,28 +156,45 @@ function filterData() {
 }
 getListData();
 function toDetail(item) {
-    if (item.td_kclx_option_k == '1') {
-        router.push({ name: 'home_mszx_detail', params: { tmk_id: item.dzdx_info.tmk_id, tmz_id: item.td_dz_id } })
-    } else if (item.td_kclx_option_k == '2') {
-        router.push({ name: 'home_tskc_detail', params: { ttk_id: item.dzdx_info.ttk_id, ttz_id: item.td_dz_id } });
-    } else if (item.td_kclx_option_k == '3') {
-        switch (item.td_dz_content) {
-            case '1':
-                ElMessage.error("直播还未开始,请耐心等待!");
-                break;
-            case '2':
-                router.push({ name: 'home_zbkc_isLive', params: { tz_id: item.dzdx_info.tz_id, tzk_id: item.td_dz_id } });
-                break
-            case '3':
-                router.push({ name: 'home_zbkc_detail', params: { tz_id: item.dzdx_info.tz_id, tzk_id: item.td_dz_id } });
-                break
-        }
-        
-    } else if (item.td_kclx_option_k == '4') {
-        router.push({ name: 'home_zyfd_detail', params: { ttk_id: item.dzdx_info.ttk_id, tz_id: item.td_dz_id } });
-    } else if (item.td_kclx_option_k == '5') {
-        router.push({ name: 'home_jtjy_detail', params: { tjk_id: item.dzdx_info.tjk_id, tjz_id: item.td_dz_id } });
+  if (item.td_kclx_option_k == "1") {
+    router.push({
+      name: "home_mszx_detail",
+      params: { tmk_id: item.dzdx_info.tmk_id, tmz_id: item.td_dz_id },
+    });
+  } else if (item.td_kclx_option_k == "2") {
+    router.push({
+      name: "home_tskc_detail",
+      params: { ttk_id: item.dzdx_info.ttk_id, ttz_id: item.td_dz_id },
+    });
+  } else if (item.td_kclx_option_k == "3") {
+    switch (item.td_dz_content) {
+      case "1":
+        ElMessage.error("直播还未开始,请耐心等待!");
+        break;
+      case "2":
+        router.push({
+          name: "home_zbkc_isLive",
+          params: { tz_id: item.dzdx_info.tz_id, tzk_id: item.td_dz_id },
+        });
+        break;
+      case "3":
+        router.push({
+          name: "home_zbkc_detail",
+          params: { tz_id: item.dzdx_info.tz_id, tzk_id: item.td_dz_id },
+        });
+        break;
     }
+  } else if (item.td_kclx_option_k == "4") {
+    router.push({
+      name: "home_zyfd_detail",
+      params: { ttk_id: item.dzdx_info.ttk_id, tz_id: item.td_dz_id },
+    });
+  } else if (item.td_kclx_option_k == "5") {
+    router.push({
+      name: "home_jtjy_detail",
+      params: { tjk_id: item.dzdx_info.tjk_id, tjz_id: item.td_dz_id },
+    });
+  }
 }
 </script>