考点申请
Showing
6 changed files
with
64 additions
and
21 deletions
| ... | @@ -85,7 +85,7 @@ | ... | @@ -85,7 +85,7 @@ |
| 85 | import * as api from '@/common/api.js' | 85 | import * as api from '@/common/api.js' |
| 86 | import config from '@/config.js' | 86 | import config from '@/config.js' |
| 87 | import { ref } from 'vue' | 87 | import { ref } from 'vue' |
| 88 | import { onLoad } from '@dcloudio/uni-app' | 88 | import { onLoad,onShow } from '@dcloudio/uni-app' |
| 89 | import customModal from '@/components/custom-modal.vue' | 89 | import customModal from '@/components/custom-modal.vue' |
| 90 | 90 | ||
| 91 | const app = getApp(); | 91 | const app = getApp(); |
| ... | @@ -116,6 +116,9 @@ | ... | @@ -116,6 +116,9 @@ |
| 116 | console.log('pageType.value',pageType.value) | 116 | console.log('pageType.value',pageType.value) |
| 117 | getList() | 117 | getList() |
| 118 | }) | 118 | }) |
| 119 | onShow(()=> { | ||
| 120 | getList() | ||
| 121 | }) | ||
| 119 | 122 | ||
| 120 | function getList() { | 123 | function getList() { |
| 121 | loading.value = true | 124 | loading.value = true |
| ... | @@ -235,11 +238,15 @@ | ... | @@ -235,11 +238,15 @@ |
| 235 | 238 | ||
| 236 | // 打开添加考官弹窗 | 239 | // 打开添加考官弹窗 |
| 237 | function openAddExaminer() { | 240 | function openAddExaminer() { |
| 238 | addForm.value.name = '' | 241 | // addForm.value.name = '' |
| 239 | addForm.value.certCode = '' | 242 | // addForm.value.certCode = '' |
| 240 | searchResult.value = null | 243 | // searchResult.value = null |
| 241 | searchNoData.value = false | 244 | // searchNoData.value = false |
| 242 | addPopup.value.open() | 245 | // addPopup.value.open() |
| 246 | const chosenStr = JSON.stringify(list.value) | ||
| 247 | uni.navigateTo({ | ||
| 248 | url: `/myCenter/chooseExaminer?memId=${app.globalData.memberInfo.memId}&chosen=${chosenStr}` | ||
| 249 | }) | ||
| 243 | } | 250 | } |
| 244 | 251 | ||
| 245 | // 搜索并添加考官 | 252 | // 搜索并添加考官 |
| ... | @@ -281,7 +288,7 @@ | ... | @@ -281,7 +288,7 @@ |
| 281 | modalAction = 'add' | 288 | modalAction = 'add' |
| 282 | modalConfig.value = { | 289 | modalConfig.value = { |
| 283 | title: '提示', | 290 | title: '提示', |
| 284 | content: `确定添加 "${row.perName}" 为考官吗?`, | 291 | content: `确定添加 "${row.perName || row.name}" 为考官吗?`, |
| 285 | showCancel: true, | 292 | showCancel: true, |
| 286 | cancelText: '取消', | 293 | cancelText: '取消', |
| 287 | confirmText: '确定' | 294 | confirmText: '确定' | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <view class="audit-page"> | 2 | <view class="audit-page"> |
| 3 | <!-- 提示信息 --> | 3 | <!-- 提示信息 --> |
| 4 | <view class="tips-box"> | 4 | <!-- <view class="tips-box"> |
| 5 | <uni-icons color="#13B5B1" size="18" type="info"></uni-icons> | 5 | <uni-icons color="#AD181F" size="18" type="info"></uni-icons> |
| 6 | <text v-if="type === 'batch'" class="tips-text">批量审核 {{ ids.split(',').length }} 条记录</text> | 6 | <text v-if="type === 'batch'" class="tips-text">批量审核 {{ ids.split(',').length }} 条记录</text> |
| 7 | <text v-else class="tips-text">单个审核</text> | 7 | <text v-else class="tips-text">单个审核</text> |
| 8 | </view> | 8 | </view> --> |
| 9 | 9 | ||
| 10 | <!-- 审核表单 --> | 10 | <!-- 审核表单 --> |
| 11 | <view class="form-section"> | 11 | <view class="form-section"> |
| ... | @@ -254,7 +254,7 @@ async function confirmDel() { | ... | @@ -254,7 +254,7 @@ async function confirmDel() { |
| 254 | min-height: 100vh; | 254 | min-height: 100vh; |
| 255 | background-color: #f5f5f5; | 255 | background-color: #f5f5f5; |
| 256 | padding: 20rpx; | 256 | padding: 20rpx; |
| 257 | padding-bottom: 120rpx; | 257 | // padding-bottom: 120rpx; |
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | .tips-box { | 260 | .tips-box { |
| ... | @@ -268,7 +268,7 @@ async function confirmDel() { | ... | @@ -268,7 +268,7 @@ async function confirmDel() { |
| 268 | 268 | ||
| 269 | .tips-text { | 269 | .tips-text { |
| 270 | font-size: 26rpx; | 270 | font-size: 26rpx; |
| 271 | color: #13B5B1; | 271 | color: #AD181F; |
| 272 | } | 272 | } |
| 273 | } | 273 | } |
| 274 | 274 | ||
| ... | @@ -332,8 +332,8 @@ async function confirmDel() { | ... | @@ -332,8 +332,8 @@ async function confirmDel() { |
| 332 | 332 | ||
| 333 | &.selected { | 333 | &.selected { |
| 334 | .radio-circle { | 334 | .radio-circle { |
| 335 | background-color: #13B5B1; | 335 | background-color: #AD181F; |
| 336 | border-color: #13B5B1; | 336 | border-color: #AD181F; |
| 337 | } | 337 | } |
| 338 | } | 338 | } |
| 339 | } | 339 | } |
| ... | @@ -381,7 +381,7 @@ async function confirmDel() { | ... | @@ -381,7 +381,7 @@ async function confirmDel() { |
| 381 | } | 381 | } |
| 382 | 382 | ||
| 383 | .btn-submit { | 383 | .btn-submit { |
| 384 | background: linear-gradient(135deg, #13B5B1, #15c5c1); | 384 | background: #C4121B; |
| 385 | color: #fff; | 385 | color: #fff; |
| 386 | 386 | ||
| 387 | &[disabled] { | 387 | &[disabled] { | ... | ... |
| ... | @@ -476,7 +476,7 @@ function formatDate(dateStr) { | ... | @@ -476,7 +476,7 @@ function formatDate(dateStr) { |
| 476 | margin-bottom: 20rpx; | 476 | margin-bottom: 20rpx; |
| 477 | box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05); | 477 | box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05); |
| 478 | position: relative; | 478 | position: relative; |
| 479 | border-top: 4rpx solid #C4121B; | 479 | // border-top: 4rpx solid #C4121B; |
| 480 | display: flex; | 480 | display: flex; |
| 481 | flex-direction: column; | 481 | flex-direction: column; |
| 482 | gap: 24rpx; | 482 | gap: 24rpx; | ... | ... |
| ... | @@ -4,6 +4,8 @@ | ... | @@ -4,6 +4,8 @@ |
| 4 | <view class="empty" v-else-if="infoList.length === 0"> | 4 | <view class="empty" v-else-if="infoList.length === 0"> |
| 5 | <image class="empty-img" mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image> | 5 | <image class="empty-img" mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image> |
| 6 | <text class="empty-text">暂无考官数据</text> | 6 | <text class="empty-text">暂无考官数据</text> |
| 7 | |||
| 8 | <button class="go-lib-btn" @click="goPath('/level/chooseExaminer?pageType=1')">去考官库添加考官吧</button> | ||
| 7 | </view> | 9 | </view> |
| 8 | <!-- <view class="empty-tip" v-else-if="infoList.length === 0">暂无可添加的考官</view> --> | 10 | <!-- <view class="empty-tip" v-else-if="infoList.length === 0">暂无可添加的考官</view> --> |
| 9 | 11 | ||
| ... | @@ -32,7 +34,7 @@ | ... | @@ -32,7 +34,7 @@ |
| 32 | 34 | ||
| 33 | <script setup> | 35 | <script setup> |
| 34 | import {ref} from 'vue' | 36 | import {ref} from 'vue' |
| 35 | import { onLoad } from '@dcloudio/uni-app' | 37 | import { onLoad ,onShow} from '@dcloudio/uni-app' |
| 36 | import * as api from '@/common/api.js' | 38 | import * as api from '@/common/api.js' |
| 37 | import config from '@/config.js' | 39 | import config from '@/config.js' |
| 38 | 40 | ||
| ... | @@ -46,8 +48,13 @@ onLoad((option) => { | ... | @@ -46,8 +48,13 @@ onLoad((option) => { |
| 46 | memId.value = option.memId || '' | 48 | memId.value = option.memId || '' |
| 47 | chosen.value = option.chosen ? JSON.parse(option.chosen) : [] | 49 | chosen.value = option.chosen ? JSON.parse(option.chosen) : [] |
| 48 | getList() | 50 | getList() |
| 51 | console.log('onLoad',memId.value,chosen.value) | ||
| 52 | }) | ||
| 53 | onShow(() => { | ||
| 54 | console.log('onShow',memId.value) | ||
| 55 | console.log('222',chosen.value) | ||
| 56 | getList() | ||
| 49 | }) | 57 | }) |
| 50 | |||
| 51 | async function getList() { | 58 | async function getList() { |
| 52 | loading.value = true | 59 | loading.value = true |
| 53 | try { | 60 | try { |
| ... | @@ -69,6 +76,11 @@ function onCheckboxChange(e) { | ... | @@ -69,6 +76,11 @@ function onCheckboxChange(e) { |
| 69 | selectedIds.value = e.detail.value | 76 | selectedIds.value = e.detail.value |
| 70 | } | 77 | } |
| 71 | 78 | ||
| 79 | function goPath(url) { | ||
| 80 | if (!url) return | ||
| 81 | uni.navigateTo({url}) | ||
| 82 | } | ||
| 83 | |||
| 72 | function handleAdd() { | 84 | function handleAdd() { |
| 73 | if (selectedIds.value.length === 0) { | 85 | if (selectedIds.value.length === 0) { |
| 74 | uni.showToast({title: '请先选择考官', icon: 'none'}) | 86 | uni.showToast({title: '请先选择考官', icon: 'none'}) |
| ... | @@ -106,6 +118,30 @@ function handleAdd() { | ... | @@ -106,6 +118,30 @@ function handleAdd() { |
| 106 | color: #666; | 118 | color: #666; |
| 107 | } | 119 | } |
| 108 | 120 | ||
| 121 | /* .empty { | ||
| 122 | min-height: calc(100vh - 220rpx); | ||
| 123 | display: flex; | ||
| 124 | flex-direction: column; | ||
| 125 | align-items: center; | ||
| 126 | justify-content: center; | ||
| 127 | } */ | ||
| 128 | |||
| 129 | .go-lib-btn { | ||
| 130 | margin-top: 32rpx; | ||
| 131 | padding: 0 36rpx; | ||
| 132 | height: 72rpx; | ||
| 133 | line-height: 72rpx; | ||
| 134 | background: #C4121B; | ||
| 135 | color: #fff; | ||
| 136 | font-size: 26rpx; | ||
| 137 | border-radius: 36rpx; | ||
| 138 | border: none; | ||
| 139 | } | ||
| 140 | |||
| 141 | .go-lib-btn::after { | ||
| 142 | border: none; | ||
| 143 | } | ||
| 144 | |||
| 109 | .examiner-list { | 145 | .examiner-list { |
| 110 | background: #fff; | 146 | background: #fff; |
| 111 | } | 147 | } | ... | ... |
| ... | @@ -159,7 +159,7 @@ async function handelSubmit() { | ... | @@ -159,7 +159,7 @@ async function handelSubmit() { |
| 159 | modalAction = 'success' | 159 | modalAction = 'success' |
| 160 | modalConfig.value = { | 160 | modalConfig.value = { |
| 161 | title: '提示', | 161 | title: '提示', |
| 162 | content: '友情提示:非考点无法申请级位考试,是否确认提交申请?', | 162 | content: '是否确认提交申请?', |
| 163 | showCancel: true, | 163 | showCancel: true, |
| 164 | cancelText: '暂不申请', | 164 | cancelText: '暂不申请', |
| 165 | confirmText: '确认提交' | 165 | confirmText: '确认提交' | ... | ... |
| ... | @@ -97,7 +97,7 @@ | ... | @@ -97,7 +97,7 @@ |
| 97 | <view class="arrow"></view> | 97 | <view class="arrow"></view> |
| 98 | </view> | 98 | </view> |
| 99 | <view class="level-item" @click="goPath('/level/chooseExaminer?pageType=1')"> | 99 | <view class="level-item" @click="goPath('/level/chooseExaminer?pageType=1')"> |
| 100 | <image :src="config.loginImage_api + '/fs/static/dg/icon10@3x.png'" class="level-icon"></image> | 100 | <image :src="config.loginImage_api + '/fs/static/dg/icon11@2x.png'" class="level-icon"></image> |
| 101 | <text>考官库</text> | 101 | <text>考官库</text> |
| 102 | <view class="arrow"></view> | 102 | <view class="arrow"></view> |
| 103 | </view> | 103 | </view> |
| ... | @@ -678,7 +678,7 @@ onLoad(option => { | ... | @@ -678,7 +678,7 @@ onLoad(option => { |
| 678 | }); | 678 | }); |
| 679 | } | 679 | } |
| 680 | 680 | ||
| 681 | if (app.globalData.changePassFlag === '1' && memberInfo.value.activeStatus == '1' && app.globalData | 681 | if (app.globalData.changePassFlag == '1' && memberInfo.value.activeStatus == '1' && app.globalData |
| 682 | .authenticationStatus == 2) { | 682 | .authenticationStatus == 2) { |
| 683 | uni.showModal({ | 683 | uni.showModal({ |
| 684 | content: "密码长期未更新,请及时更新", | 684 | content: "密码长期未更新,请及时更新", | ... | ... |
-
Please register or sign in to post a comment