Просмотр исходного кода

📦 按要求修改点亮提交页

快乐的梦鱼 недель назад: 2
Родитель
Сommit
395e512fbd
2 измененных файлов с 10 добавлено и 10 удалено
  1. 4 8
      src/pages/dig/admin/data/volunteer.ts
  2. 6 2
      src/pages/home/light/submit.vue

+ 4 - 8
src/pages/dig/admin/data/volunteer.ts

@@ -120,7 +120,7 @@ export function getVolunteerForm(options: {
             } as RadioValueProps,
             rules: [{ required: true, message: '请选择类型' }],
           },
-          {
+          /* {
             label: '类型', name: 'residentStatus', type: 'radio-value',
             additionalProps: {
               options: [
@@ -131,7 +131,7 @@ export function getVolunteerForm(options: {
               ]
             } as RadioValueProps,
             rules: [{ required: true, message: '请选择类型' }],
-          },
+          }, */
           { 
             label: '工作单位', name: 'unit', type: 'text', additionalProps: { placeholder: '请输入手机号' } ,
             rules: [{ required: true, message: '请输入手机号' }],
@@ -142,10 +142,6 @@ export function getVolunteerForm(options: {
             rules: [{ required: true, message: '请输入手机号' }],
             show: { callback: () => options.formRef.value?.getValueByPath('type') === 'staff' },
           },
-          { 
-            label: '手机号', name: 'mobile', type: 'text', additionalProps: { placeholder: '请输入手机号' } ,
-            rules: [{ required: true, message: '请输入手机号' }],
-          },
           { label: '现居地址', name: 'address', type: 'text', additionalProps: { placeholder: '请输入现居地址' } },
           { 
             label: '个人介绍', 
@@ -170,11 +166,11 @@ export function getVolunteerForm(options: {
               })),
             } as CheckBoxTreeListProps,
           }]: []),
-          { 
+          /* { 
             label: '村落认领说明', name: 'claimReason', type: 'text', 
             additionalProps: { placeholder: '请输入村落认领说明' } ,
             show: { callback: () => options.isNew.value },
-          },
+          }, */
         ]
       },
     ],

+ 6 - 2
src/pages/home/light/submit.vue

@@ -35,7 +35,7 @@
           : '请等待管理员审核,在此期间,可以在社区中先逛逛,学习如何采编村社文化资源信息吧'"
       >
         <Height :size="20" />
-        <Button type="primary" @click="back()">进入首页</Button>
+        <Button type="primary" @click="backToHome()">进入首页</Button>
       </Result>
       <!--错误-->
       <Result 
@@ -77,7 +77,7 @@ import DynamicForm from '@/components/dynamic/DynamicForm.vue';
 import { useAppInit } from '@/common/composeabe/AppInit';
 import { UserApi } from '@/api/auth/UserApi';
 import { useAuthStore } from '@/store/auth';
-import { back } from '@/components/utils/PageAction';
+import { back, redirectTo } from '@/components/utils/PageAction';
 import { closeToast, toast } from '@/components/dialog/CommonRoot';
 import { showError } from '@/common/composeabe/ErrorDisplay';
 import { useLoadQuerys } from '@/common/composeabe/LoadQuerys';
@@ -103,6 +103,10 @@ const step = ref<'register' | 'add' | 'finished' | 'error'>('register');
 const finishedMode = ref<'register' | 'claim'>('register');
 const village = ref<VillageListItem>();
 
+function backToHome() {
+  redirectTo('/pages/index');
+}
+
 onMounted(async () => {
   if (!querys.value.villageId) {
     step.value = 'error';