فهرست منبع

管理端考试

wangxy 3 ماه پیش
والد
کامیت
d829b9282e
1فایلهای تغییر یافته به همراه15 افزوده شده و 2 حذف شده
  1. 15 2
      pages/admin/Kaoshi/list.vue

+ 15 - 2
pages/admin/Kaoshi/list.vue

@@ -32,7 +32,7 @@
 									<text class="ks-score">总分: {{item.ksScore}}</text>
 									<text class="ks-score">总分: {{item.ksScore}}</text>
 									<text class="ks-okScore">及格分: {{item.okScore}}</text>
 									<text class="ks-okScore">及格分: {{item.okScore}}</text>
 								</view>
 								</view>
-								<button type="primary" size="mini" @click="checkKaoshi(item)" class="kaoshi-btn">查看内容</button>
+								<button type="primary" size="mini" @click="checkKsXz(item)" class="kaoshi-btn">查看内容</button>
 							</view>
 							</view>
 						</template>
 						</template>
 					</uni-list-item>
 					</uni-list-item>
@@ -43,11 +43,14 @@
 		</view>
 		</view>
 		<!-- 页面底端 -->
 		<!-- 页面底端 -->
 		<customTabbarAdminVue></customTabbarAdminVue>
 		<customTabbarAdminVue></customTabbarAdminVue>
+		<!-- 考试须知 -->
+		<kaoshixuzhiVue ref="ksxzRef" @confirm="handleConfirmKs"></kaoshixuzhiVue>
 	</view>
 	</view>
 </template>
 </template>
 
 
 <script setup>
 <script setup>
 	import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
 	import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
+	import kaoshixuzhiVue from "@/components/kaoshixuzhi/kaoshixuzhi.vue";
 	import {
 	import {
 		ref,
 		ref,
 		reactive
 		reactive
@@ -57,7 +60,9 @@
 	} from "@dcloudio/uni-app";
 	} from "@dcloudio/uni-app";
 	import {
 	import {
 		getKaoshiList
 		getKaoshiList
-	} from "@/api/kaoshi.js"
+	} from "@/api/kaoshi.js";
+	
+	const ksxzRef = ref(null);
 
 
 	const data = reactive({
 	const data = reactive({
 		zyName: '', // 职业名称
 		zyName: '', // 职业名称
@@ -72,6 +77,14 @@
 			contentnomore: '没有更多'
 			contentnomore: '没有更多'
 		}
 		}
 	})
 	})
+	
+	function handleConfirmKs(ksId) {
+		checkKaoshi({ksId})
+	}
+	
+	function checkKsXz(data) {
+		ksxzRef.value.showDialog(data)
+	}
 
 
 	function handleSearch() {
 	function handleSearch() {
 		data.page = 0;
 		data.page = 0;