考试名称
Showing
1 changed file
with
24 additions
and
24 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <view> | 2 | <view> |
| 3 | 3 | ||
| 4 | 4 | ||
| 5 | <scroll-view scroll-y class="detail-content"> | 5 | <scroll-view class="detail-content" scroll-y> |
| 6 | <!-- 考段基本信息 --> | 6 | <!-- 考段基本信息 --> |
| 7 | <view class="card"> | 7 | <view class="card"> |
| 8 | <view class="card-header"> | 8 | <view class="card-header"> |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | </view> | 10 | </view> |
| 11 | <view class="card-body"> | 11 | <view class="card-body"> |
| 12 | <view class="info-row"> | 12 | <view class="info-row"> |
| 13 | <text class="label">考段名称</text> | 13 | <text class="label">考试名称</text> |
| 14 | <text class="value">{{ form.name || '' }}</text> | 14 | <text class="value">{{ form.name || '' }}</text> |
| 15 | </view> | 15 | </view> |
| 16 | <view class="info-row"> | 16 | <view class="info-row"> |
| ... | @@ -38,7 +38,7 @@ | ... | @@ -38,7 +38,7 @@ |
| 38 | <text class="label">考段地点</text> | 38 | <text class="label">考段地点</text> |
| 39 | <text class="value">{{ form.address || '--' }}</text> | 39 | <text class="value">{{ form.address || '--' }}</text> |
| 40 | </view> | 40 | </view> |
| 41 | <view class="info-row" v-if="userType == '2' || userType == '1'"> | 41 | <view v-if="userType == '2' || userType == '1'" class="info-row"> |
| 42 | <text class="label">总金额</text> | 42 | <text class="label">总金额</text> |
| 43 | <text class="value text-red">¥{{ (Number(form.totalAmount) || 0).toFixed(2) }}</text> | 43 | <text class="value text-red">¥{{ (Number(form.totalAmount) || 0).toFixed(2) }}</text> |
| 44 | </view> | 44 | </view> |
| ... | @@ -46,7 +46,7 @@ | ... | @@ -46,7 +46,7 @@ |
| 46 | </view> | 46 | </view> |
| 47 | 47 | ||
| 48 | <!-- 收货地址 --> | 48 | <!-- 收货地址 --> |
| 49 | <view class="card" v-if="addressForm.name || addressForm.phone || addressForm.address"> | 49 | <view v-if="addressForm.name || addressForm.phone || addressForm.address" class="card"> |
| 50 | <view class="card-header"> | 50 | <view class="card-header"> |
| 51 | <view class="header-left">收货地址</view> | 51 | <view class="header-left">收货地址</view> |
| 52 | </view> | 52 | </view> |
| ... | @@ -76,8 +76,8 @@ | ... | @@ -76,8 +76,8 @@ |
| 76 | </view> | 76 | </view> |
| 77 | 77 | ||
| 78 | <!-- 级别统计 --> | 78 | <!-- 级别统计 --> |
| 79 | <view class="level-summary" v-if="tablePersonInfo.levelArr?.length > 0"> | 79 | <view v-if="tablePersonInfo.levelArr?.length > 0" class="level-summary"> |
| 80 | <view class="level-tag" v-for="l in tablePersonInfo.levelArr" :key="l.level"> | 80 | <view v-for="l in tablePersonInfo.levelArr" :key="l.level" class="level-tag"> |
| 81 | {{ szToHz(l.level) }}级 {{ l.num }}人 | 81 | {{ szToHz(l.level) }}级 {{ l.num }}人 |
| 82 | </view> | 82 | </view> |
| 83 | </view> | 83 | </view> |
| ... | @@ -87,20 +87,20 @@ | ... | @@ -87,20 +87,20 @@ |
| 87 | <view v-else-if="list.length === 0" class="state-tip">暂无考生信息</view> | 87 | <view v-else-if="list.length === 0" class="state-tip">暂无考生信息</view> |
| 88 | 88 | ||
| 89 | <!-- 考生列表(去字段名,美观布局) --> | 89 | <!-- 考生列表(去字段名,美观布局) --> |
| 90 | <view class="student-list" v-else> | 90 | <view v-else class="student-list"> |
| 91 | <view class="student-card" v-for="n in list" :key="n.id"> | 91 | <view v-for="n in list" :key="n.id" class="student-card"> |
| 92 | <view class="student-top"> | 92 | <view class="student-top"> |
| 93 | <view class="student-name"> | 93 | <view class="student-name"> |
| 94 | <text class="name">{{ n.realName || '--' }}</text> | 94 | <text class="name">{{ n.realName || '--' }}</text> |
| 95 | <text class="unit">{{ n.memName || '' }}</text> | 95 | <text class="unit">{{ n.memName || '' }}</text> |
| 96 | </view> | 96 | </view> |
| 97 | <view class="pass-tag" :class="n.isPass == 1 ? 'pass' : 'fail'"> | 97 | <view :class="n.isPass == 1 ? 'pass' : 'fail'" class="pass-tag"> |
| 98 | {{ n.isPass == 1 ? '通过' : '未通过' }} | 98 | {{ n.isPass == 1 ? '通过' : '未通过' }} |
| 99 | </view> | 99 | </view> |
| 100 | </view> | 100 | </view> |
| 101 | <view class="student-info"> | 101 | <view class="student-info"> |
| 102 | <view class="info-col"> | 102 | <view class="info-col"> |
| 103 | <text class="info-text" >{{ n.idcCode || '--' }}</text> | 103 | <text class="info-text">{{ n.idcCode || '--' }}</text> |
| 104 | </view> | 104 | </view> |
| 105 | <view class="info-col"> | 105 | <view class="info-col"> |
| 106 | <text class="info-text">{{ !n.levelOld || n.levelOld == 0 ? '十级' : szToHz(n.levelOld) + '级' }}</text> | 106 | <text class="info-text">{{ !n.levelOld || n.levelOld == 0 ? '十级' : szToHz(n.levelOld) + '级' }}</text> |
| ... | @@ -108,7 +108,7 @@ | ... | @@ -108,7 +108,7 @@ |
| 108 | <view class="info-col"> | 108 | <view class="info-col"> |
| 109 | <text class="info-text">{{ n.levelNew ? szToHz(n.levelNew) + '级' : '--' }}</text> | 109 | <text class="info-text">{{ n.levelNew ? szToHz(n.levelNew) + '级' : '--' }}</text> |
| 110 | </view> | 110 | </view> |
| 111 | <view class="info-col" v-if="userType == '2' || userType == '1'"> | 111 | <view v-if="userType == '2' || userType == '1'" class="info-col"> |
| 112 | <text class="info-text text-red">¥{{ (Number(n.examFee) || 0).toFixed(2) }}</text> | 112 | <text class="info-text text-red">¥{{ (Number(n.examFee) || 0).toFixed(2) }}</text> |
| 113 | </view> | 113 | </view> |
| 114 | </view> | 114 | </view> |
| ... | @@ -116,7 +116,7 @@ | ... | @@ -116,7 +116,7 @@ |
| 116 | </view> | 116 | </view> |
| 117 | 117 | ||
| 118 | <!-- 加载更多 --> | 118 | <!-- 加载更多 --> |
| 119 | <view class="load-more" v-if="list.length > 0 && hasMore" @click="loadMore"> | 119 | <view v-if="list.length > 0 && hasMore" class="load-more" @click="loadMore"> |
| 120 | {{ loadingMore ? '加载中...' : '加载更多' }} | 120 | {{ loadingMore ? '加载中...' : '加载更多' }} |
| 121 | </view> | 121 | </view> |
| 122 | <!-- <view class="no-more" v-if="!hasMore && list.length > 0">没有更多了</view> --> | 122 | <!-- <view class="no-more" v-if="!hasMore && list.length > 0">没有更多了</view> --> |
| ... | @@ -127,7 +127,7 @@ | ... | @@ -127,7 +127,7 @@ |
| 127 | <view class="wBox"> | 127 | <view class="wBox"> |
| 128 | <view v-if="loadingAudit" class="state-tip">加载中...</view> | 128 | <view v-if="loadingAudit" class="state-tip">加载中...</view> |
| 129 | <view v-else-if="recordList.length === 0" class="state-tip">暂无审核记录</view> | 129 | <view v-else-if="recordList.length === 0" class="state-tip">暂无审核记录</view> |
| 130 | <view class="stepItem" v-else v-for="(n, index) in recordList" :key="index"> | 130 | <view v-for="(n, index) in recordList" v-else :key="index" class="stepItem"> |
| 131 | <view class="time">{{ n.auditTime || '待审批' }}</view> | 131 | <view class="time">{{ n.auditTime || '待审批' }}</view> |
| 132 | <view class="content"> | 132 | <view class="content"> |
| 133 | <view class="status"> | 133 | <view class="status"> |
| ... | @@ -148,9 +148,9 @@ | ... | @@ -148,9 +148,9 @@ |
| 148 | <script setup> | 148 | <script setup> |
| 149 | import * as api from '@/common/api.js' | 149 | import * as api from '@/common/api.js' |
| 150 | import _ from 'underscore' | 150 | import _ from 'underscore' |
| 151 | import { ref } from 'vue' | 151 | import {ref} from 'vue' |
| 152 | import { onLoad } from '@dcloudio/uni-app' | 152 | import {onLoad} from '@dcloudio/uni-app' |
| 153 | import { szToHz } from '@/common/utils.js' | 153 | import {szToHz} from '@/common/utils.js' |
| 154 | 154 | ||
| 155 | const app = getApp() | 155 | const app = getApp() |
| 156 | const userType = ref('') | 156 | const userType = ref('') |
| ... | @@ -174,7 +174,7 @@ let examType = ref('2') | ... | @@ -174,7 +174,7 @@ let examType = ref('2') |
| 174 | 174 | ||
| 175 | onLoad((option) => { | 175 | onLoad((option) => { |
| 176 | if (!option.examId) { | 176 | if (!option.examId) { |
| 177 | uni.showToast({ title: '参数错误', icon: 'none' }) | 177 | uni.showToast({title: '参数错误', icon: 'none'}) |
| 178 | setTimeout(() => uni.navigateBack(), 1500) | 178 | setTimeout(() => uni.navigateBack(), 1500) |
| 179 | return | 179 | return |
| 180 | } | 180 | } |
| ... | @@ -186,7 +186,7 @@ onLoad((option) => { | ... | @@ -186,7 +186,7 @@ onLoad((option) => { |
| 186 | }) | 186 | }) |
| 187 | 187 | ||
| 188 | function initData() { | 188 | function initData() { |
| 189 | uni.showLoading({ title: '加载中' }) | 189 | uni.showLoading({title: '加载中'}) |
| 190 | userType.value = app.globalData.userType || '3' | 190 | userType.value = app.globalData.userType || '3' |
| 191 | getForm() | 191 | getForm() |
| 192 | getList() | 192 | getList() |
| ... | @@ -200,12 +200,12 @@ function getForm() { | ... | @@ -200,12 +200,12 @@ function getForm() { |
| 200 | form.value = res.data || {} | 200 | form.value = res.data || {} |
| 201 | addressForm.value = res.data?.postAddress || {} | 201 | addressForm.value = res.data?.postAddress || {} |
| 202 | } else { | 202 | } else { |
| 203 | uni.showToast({ title: res.msg || '获取详情失败', icon: 'none' }) | 203 | uni.showToast({title: res.msg || '获取详情失败', icon: 'none'}) |
| 204 | } | 204 | } |
| 205 | }).catch(err => { | 205 | }).catch(err => { |
| 206 | uni.hideLoading() | 206 | uni.hideLoading() |
| 207 | console.error('getForm error:', err) | 207 | console.error('getForm error:', err) |
| 208 | uni.showToast({ title: '网络请求失败', icon: 'none' }) | 208 | uni.showToast({title: '网络请求失败', icon: 'none'}) |
| 209 | }) | 209 | }) |
| 210 | } | 210 | } |
| 211 | 211 | ||
| ... | @@ -235,7 +235,7 @@ function getList() { | ... | @@ -235,7 +235,7 @@ function getList() { |
| 235 | 235 | ||
| 236 | function calcPersonInfo(rows) { | 236 | function calcPersonInfo(rows) { |
| 237 | if (!rows || rows.length === 0) { | 237 | if (!rows || rows.length === 0) { |
| 238 | tablePersonInfo.value = { total: 0, levelArr: [] } | 238 | tablePersonInfo.value = {total: 0, levelArr: []} |
| 239 | return | 239 | return |
| 240 | } | 240 | } |
| 241 | const total = rows.length | 241 | const total = rows.length |
| ... | @@ -246,7 +246,7 @@ function calcPersonInfo(rows) { | ... | @@ -246,7 +246,7 @@ function calcPersonInfo(rows) { |
| 246 | if (temp) { | 246 | if (temp) { |
| 247 | temp.num++ | 247 | temp.num++ |
| 248 | } else { | 248 | } else { |
| 249 | levelArr.push({ level: d.levelNew, num: 1 }) | 249 | levelArr.push({level: d.levelNew, num: 1}) |
| 250 | } | 250 | } |
| 251 | }) | 251 | }) |
| 252 | tablePersonInfo.value = { | 252 | tablePersonInfo.value = { |
| ... | @@ -288,7 +288,7 @@ function loadMore() { | ... | @@ -288,7 +288,7 @@ function loadMore() { |
| 288 | 288 | ||
| 289 | function getAuditResultText(result, statusStr) { | 289 | function getAuditResultText(result, statusStr) { |
| 290 | if (statusStr) return statusStr | 290 | if (statusStr) return statusStr |
| 291 | const map = { 0: '审核拒绝', 1: '审核通过' } | 291 | const map = {0: '审核拒绝', 1: '审核通过'} |
| 292 | return map[result] || '审核中' | 292 | return map[result] || '审核中' |
| 293 | } | 293 | } |
| 294 | 294 | ||
| ... | @@ -314,7 +314,7 @@ function goBack() { | ... | @@ -314,7 +314,7 @@ function goBack() { |
| 314 | } | 314 | } |
| 315 | </script> | 315 | </script> |
| 316 | 316 | ||
| 317 | <style scoped lang="scss"> | 317 | <style lang="scss" scoped> |
| 318 | // 颜色变量 - 小程序主色系 | 318 | // 颜色变量 - 小程序主色系 |
| 319 | $primary-color: #e8341d; | 319 | $primary-color: #e8341d; |
| 320 | $success-color: #52c41a; | 320 | $success-color: #52c41a; | ... | ... |
-
Please register or sign in to post a comment