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