a463bd31 by lttnew

考点申请

1 parent 1ed26d6f
......@@ -85,7 +85,7 @@
import * as api from '@/common/api.js'
import config from '@/config.js'
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { onLoad,onShow } from '@dcloudio/uni-app'
import customModal from '@/components/custom-modal.vue'
const app = getApp();
......@@ -116,6 +116,9 @@
console.log('pageType.value',pageType.value)
getList()
})
onShow(()=> {
getList()
})
function getList() {
loading.value = true
......@@ -235,11 +238,15 @@
// 打开添加考官弹窗
function openAddExaminer() {
addForm.value.name = ''
addForm.value.certCode = ''
searchResult.value = null
searchNoData.value = false
addPopup.value.open()
// addForm.value.name = ''
// addForm.value.certCode = ''
// searchResult.value = null
// searchNoData.value = false
// addPopup.value.open()
const chosenStr = JSON.stringify(list.value)
uni.navigateTo({
url: `/myCenter/chooseExaminer?memId=${app.globalData.memberInfo.memId}&chosen=${chosenStr}`
})
}
// 搜索并添加考官
......@@ -281,7 +288,7 @@
modalAction = 'add'
modalConfig.value = {
title: '提示',
content: `确定添加 "${row.perName}" 为考官吗?`,
content: `确定添加 "${row.perName || row.name}" 为考官吗?`,
showCancel: true,
cancelText: '取消',
confirmText: '确定'
......
<template>
<view class="audit-page">
<!-- 提示信息 -->
<view class="tips-box">
<uni-icons color="#13B5B1" size="18" type="info"></uni-icons>
<!-- <view class="tips-box">
<uni-icons color="#AD181F" size="18" type="info"></uni-icons>
<text v-if="type === 'batch'" class="tips-text">批量审核 {{ ids.split(',').length }} 条记录</text>
<text v-else class="tips-text">单个审核</text>
</view>
</view> -->
<!-- 审核表单 -->
<view class="form-section">
......@@ -254,7 +254,7 @@ async function confirmDel() {
min-height: 100vh;
background-color: #f5f5f5;
padding: 20rpx;
padding-bottom: 120rpx;
// padding-bottom: 120rpx;
}
.tips-box {
......@@ -268,7 +268,7 @@ async function confirmDel() {
.tips-text {
font-size: 26rpx;
color: #13B5B1;
color: #AD181F;
}
}
......@@ -332,8 +332,8 @@ async function confirmDel() {
&.selected {
.radio-circle {
background-color: #13B5B1;
border-color: #13B5B1;
background-color: #AD181F;
border-color: #AD181F;
}
}
}
......@@ -381,7 +381,7 @@ async function confirmDel() {
}
.btn-submit {
background: linear-gradient(135deg, #13B5B1, #15c5c1);
background: #C4121B;
color: #fff;
&[disabled] {
......
......@@ -476,7 +476,7 @@ function formatDate(dateStr) {
margin-bottom: 20rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
position: relative;
border-top: 4rpx solid #C4121B;
// border-top: 4rpx solid #C4121B;
display: flex;
flex-direction: column;
gap: 24rpx;
......
......@@ -4,6 +4,8 @@
<view class="empty" v-else-if="infoList.length === 0">
<image class="empty-img" mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text class="empty-text">暂无考官数据</text>
<button class="go-lib-btn" @click="goPath('/level/chooseExaminer?pageType=1')">去考官库添加考官吧</button>
</view>
<!-- <view class="empty-tip" v-else-if="infoList.length === 0">暂无可添加的考官</view> -->
......@@ -32,7 +34,7 @@
<script setup>
import {ref} from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { onLoad ,onShow} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
......@@ -46,8 +48,13 @@ onLoad((option) => {
memId.value = option.memId || ''
chosen.value = option.chosen ? JSON.parse(option.chosen) : []
getList()
console.log('onLoad',memId.value,chosen.value)
})
onShow(() => {
console.log('onShow',memId.value)
console.log('222',chosen.value)
getList()
})
async function getList() {
loading.value = true
try {
......@@ -69,6 +76,11 @@ function onCheckboxChange(e) {
selectedIds.value = e.detail.value
}
function goPath(url) {
if (!url) return
uni.navigateTo({url})
}
function handleAdd() {
if (selectedIds.value.length === 0) {
uni.showToast({title: '请先选择考官', icon: 'none'})
......@@ -106,6 +118,30 @@ function handleAdd() {
color: #666;
}
/* .empty {
min-height: calc(100vh - 220rpx);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
} */
.go-lib-btn {
margin-top: 32rpx;
padding: 0 36rpx;
height: 72rpx;
line-height: 72rpx;
background: #C4121B;
color: #fff;
font-size: 26rpx;
border-radius: 36rpx;
border: none;
}
.go-lib-btn::after {
border: none;
}
.examiner-list {
background: #fff;
}
......
......@@ -159,7 +159,7 @@ async function handelSubmit() {
modalAction = 'success'
modalConfig.value = {
title: '提示',
content: '友情提示:非考点无法申请级位考试,是否确认提交申请?',
content: '是否确认提交申请?',
showCancel: true,
cancelText: '暂不申请',
confirmText: '确认提交'
......
......@@ -97,7 +97,7 @@
<view class="arrow"></view>
</view>
<view class="level-item" @click="goPath('/level/chooseExaminer?pageType=1')">
<image :src="config.loginImage_api + '/fs/static/dg/icon10@3x.png'" class="level-icon"></image>
<image :src="config.loginImage_api + '/fs/static/dg/icon11@2x.png'" class="level-icon"></image>
<text>考官库</text>
<view class="arrow"></view>
</view>
......@@ -678,7 +678,7 @@ onLoad(option => {
});
}
if (app.globalData.changePassFlag === '1' && memberInfo.value.activeStatus == '1' && app.globalData
if (app.globalData.changePassFlag == '1' && memberInfo.value.activeStatus == '1' && app.globalData
.authenticationStatus == 2) {
uni.showModal({
content: "密码长期未更新,请及时更新",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!