去除省份地址包

This commit is contained in:
朱浩 2025-01-20 10:14:05 +08:00
parent 90aafaba10
commit 2c90e96c5f
5 changed files with 20840 additions and 23 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,14 +6,14 @@
<img style="margin: 0 auto;height:85px" src="@/assets/images/shenhe.png" alt="">
<p style="color:#F59A23;font-size:22px">申请审核中</p>
<p style="color:#000;font-size:16px;font-weight:600">申请信息已提交请耐心等待审核通过即可完成申请</p>
</div>
</div>
<div style="border:1px solid #000;margin-bottom:20px;background:#DFF0D8" v-if="userregister.value.auditStatus==1">
<div style="display: flex;align-items: center;justify-content: center;">
<el-result style="padding: 17px 35px;" icon="success"></el-result>
<p style="font-size:30px;color:#67C23A">审核通过</p>
</div>
<p style="margin-bottom:10px;color:#439FFE; cursor: pointer" @click='chongxin'>重新认证</p>
</div>
</div>
<div style="border:1px solid #000;margin-bottom:20px;background:#F2DEDE" v-if="userregister.value.auditStatus==2">
<div style="display: flex;align-items: center;justify-content: center;">
<el-result style="padding: 17px 35px;" icon="error"></el-result>
@ -41,7 +41,7 @@
<el-form-item label="申请人电话" >
{{ state.user.phonenumber }}
</el-form-item>
<el-form-item >
<div style="width:100%;text-align: right;padding-right:100px">
<el-button style="width:150px" type="default" @click="closed">关闭</el-button>
@ -55,7 +55,7 @@
<script setup >
import { ref, reactive, onMounted ,watch} from 'vue'
import { regionData, codeToText } from 'element-china-area-data'
import { regionData, codeToText } from '@/plugins/china-area-data-json'
import { getUserProfile } from '@/api/system/user'
import {getDept} from '@/api/login'
import {school} from '@/api/apiService'
@ -101,7 +101,7 @@ async function getUser() {
// response.data.avatar = import.meta.env.VITE_APP_BASE_API + response.data.avatar
Object.assign(state.user,response.data)
})
}
const getSchoolList = () => {
school.deptTree().then(res=>{
@ -142,7 +142,7 @@ const submitForm = async (formEl) => {
if(res.code==200){
ElMessage.success('提交成功')
await userStore.getDeptInfo()
}
})
console.log('submit!')
@ -165,7 +165,7 @@ const getregisterinfo=()=>{
isshwoBtn.value=false
}
}
}
//
const closed=()=>{
@ -192,4 +192,4 @@ onMounted(async () => {
margin-bottom: 30px;
}
}
</style>
</style>

View File

@ -114,7 +114,7 @@ import { ref, defineExpose, reactive ,onMounted} from 'vue'
import {captchaImg,sendCode,deptTree,getDept,listClassmain,listEvaluation,signIn, retrievePwd} from '@/api/login'
import { ElMessage } from 'element-plus'
import {setToken, removeToken } from '@/utils/auth'
import { regionData, codeToText } from 'element-china-area-data'
import { regionData, codeToText } from '@/plugins/china-area-data-json'
const ruleFormRef = ref(null)
const activeIndex=ref(1)
const ruleForm = reactive({
@ -352,7 +352,7 @@ const submitForm = async (formEl) => {
schoolSubject.value=[]
gradeTree.value=[]
Object.assign(ruleForm, restValue);
dialogVisible.value=false
dialogVisible.value=false
activeIndex.value=1
}else{
ElMessage.error(res.msg)

View File

@ -22,7 +22,7 @@
<p style="margin-bottom:10px;font-size:18px;font-weight:600">申请信息已驳回请重新提交申请信息</p>
</div>
</div>
<div class="box-item" :style="userregister.value?'':'margin-top:30px'" >
<el-form ref="ruleFormRef" label-width="auto" :rules="rules" :model="ruleForm" size="large" >
<el-form-item label="学校名称" prop="schoolName" >
@ -46,7 +46,7 @@
<el-form-item label="经办人电话" >
{{ state.user.phonenumber }}
</el-form-item>
<el-form-item >
<div style="display:flex;align-items:center;justify-content: space-between;padding-right:100px; width: 100%;">
<div style="display:flex;align-items:center;">
@ -57,7 +57,7 @@
<el-button style="width:150px" type="primary" @click="submitForm(ruleFormRef)" v-if="isshwoBtn">确定</el-button>
</div>
</div>
</el-form-item>
</el-form>
</div>
@ -66,7 +66,7 @@
<script setup >
import { ref, reactive, onMounted,watch } from 'vue'
import { regionData, codeToText } from 'element-china-area-data'
import { regionData, codeToText } from '@/plugins/china-area-data-json'
import { getUserProfile } from '@/api/system/user'
import {getDept} from '@/api/login'
import {school} from '@/api/apiService'
@ -158,7 +158,7 @@ const submitForm = async (formEl) => {
if(!ruleForm.istrue) {
ElMessage.error('请勾选以上信息真实有效的复选框')
return
}
}
const araname = codeToText[ruleForm.address[0]] + '-' + codeToText[ruleForm.address[1]] + '-' + codeToText[ruleForm.address[2]];
const form={
schoolName:ruleForm.schoolName,
@ -170,7 +170,7 @@ const submitForm = async (formEl) => {
if(res.code==200){
ElMessage.success('提交成功')
await userStore.getDeptInfo()
}
})
@ -190,7 +190,7 @@ onMounted(() => {
getregisterinfo()
getSchoolList()
})
</script>
@ -203,7 +203,7 @@ onMounted(() => {
display: flex;
align-items: center;
font-size: 30px;
}
}
</style>
</style>

View File

@ -40,7 +40,7 @@
</el-table>
<el-pagination style="margin-top:10px;float: right;" background layout="prev, pager, next" @size-change="handleSizeChange"
@current-change="handleCurrentChange" :default-page-size="searchValue.pageSize" v-model:current-page="searchValue.pageNum" :total="total" />
<el-dialog
v-model="dialogVisible"
title="加入学校审核"
@ -80,7 +80,7 @@
<script setup>
import { school } from '@/api/apiService';
import { ref, reactive, onMounted ,computed} from 'vue'
import { regionData, codeToText } from 'element-china-area-data'
import { regionData, codeToText } from '@/plugins/china-area-data-json'
import { ElMessage } from 'element-plus'
import useUserStore from '@/store/modules/user'
const userStore = useUserStore()
@ -150,7 +150,7 @@ const getList = () =>{
const area=formattedAddress()
searchValue.area=area
let obj= filterNullProperties(searchValue)
school.auditlist(obj).then(res=>{
tableData.value=res.rows
total.value=res.total
@ -194,4 +194,4 @@ onMounted(()=>{
display: flex;
align-items: center;
}
</style>
</style>