wangxy il y a 1 mois
Parent
commit
829f8c090b
2 fichiers modifiés avec 3 ajouts et 18 suppressions
  1. 1 11
      pages/admin/Kecheng/list.vue
  2. 2 7
      pages/admin/Kecheng/study.vue

+ 1 - 11
pages/admin/Kecheng/list.vue

@@ -4,13 +4,6 @@
 			<view @click="goUpPage" class="nav-bar-icon"></view>
 			<text class="nav-bar-title">课程管理</text>
 		</view>
-		<!-- 查询职业 -->
-		<view class="phone-search-box">
-			<input class="search-input" placeholder="请输入职业名称" v-model="data.zyName" />
-			<view class="search-icon" @click="handleSearch">
-				<uni-icons type="search" size="24" color="#fff"></uni-icons>
-			</view>
-		</view>
 		<!-- 课程列表 -->
 			<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
 				:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh"
@@ -23,7 +16,7 @@
 								<view class="item-card-row">
 									<!-- 数量 -->
 									<view class="ks-item-top">
-										<view class="kc-name">{{item.zyName}} [{{item.zyLevelName}}]</view>
+										<view class="kc-name">{{item.name}}</view>
 									</view>
 									<view class="ks-totalTm kc-totalTm">
 										<icon class="phone-time-icon" />时间:{{formatDuration(item.period)}}分钟
@@ -56,7 +49,6 @@
 	import {formatDuration} from "@/utils/common.js"
 
 	const data = reactive({
-		zyName: '', // 职业名称
 		list: [], // 考试列表
 		loading: false,
 		page: 0,
@@ -97,7 +89,6 @@
 		const opt = {
 			page: 1,
 			size: 10, // 固定查询10条
-			zyName: data.zyName
 		}
 		data.list = [];
 		// 数学
@@ -126,7 +117,6 @@
 		const opt = {
 			page: 1,
 			size: 10, // 固定查询10条
-			zyName: data.zyName
 		}
 		if (data.state == 'no-more') return;
 		data.state = 'loading';

+ 2 - 7
pages/admin/Kecheng/study.vue

@@ -16,7 +16,7 @@
 		<!-- 中间区域 -->
 		<view class="kc-name-box">
 			<icon @click="goUpPage"></icon>
-			<view>{{zyName}} {{zyLevelName}}</view>
+			<view>{{name}}</view>
 		</view>
 		<view class="kc-info-box">
 			<view>时长:{{period}}</view>
@@ -68,10 +68,9 @@
 				intro: '',
 				curPlayData: null,
 				kechengFlag: null,
-				zyName: '',
-				zyLevelName: '',
 				operId: '', // 课程
 				pageFrom:'',
+				name: '',
 			}
 		},
 		onLoad(options) {
@@ -160,14 +159,10 @@
 						intro,
 						kechengFlag,
 						operId,
-						zyName,
-						zyLevelName,
 					} = res.data;
 					this.userCount = userCount;
 					this.period = formatSecondsToCnhms(period,true);
 					this.name = name;
-					this.zyName = zyName;
-					this.zyLevelName = zyLevelName;
 					this.kechengFlag = kechengFlag;
 					this.formatData(kejianUserVo.zhangList)
 					this.list = kejianUserVo.zhangList;