mo hace 1 año
padre
commit
9401de3fd1

+ 1 - 1
src/views/tenantStudentRejest/index.module.less

@@ -169,7 +169,7 @@
 .sendBtn {
   border: none;
   background-color: transparent;
-  width: 70px;
+  width: 80px;
   color: #fe2451;
   font-size: 14px;
   padding: 0;

+ 10 - 6
src/views/tenantStudentRejest/index.tsx

@@ -49,6 +49,8 @@ export default defineComponent({
       genderList:[{text:'男',value:'1'},{text:'女',value:'0'}],
       showSuccess:false,
       secondConfirm:false,
+      minDate: new Date(1980, 1, 1),
+      maxDate: new Date(),
     });
     const handleSubmit = async() => {
       console.log(forms, 'forms')
@@ -71,7 +73,7 @@ export default defineComponent({
         Toast('请选择声部')
       }
 
-        const res = await request.post('/api-tenant/open/student/save',{ data: { ... forms}})
+        const res = await request.post('/api-tenant/open/student/save',{ data: { ... forms},hideLoading:true})
         console.log(res)
       if(res.code == 200){
         data.showSuccess = true
@@ -166,7 +168,7 @@ export default defineComponent({
 
     const submitSecond = async()=>{
       try{
-        const res = await request.post('/api-tenant/open/student/save',{ data: { ... forms,updateTenant:true}})
+        const res = await request.post('/api-tenant/open/student/save',{ data: { ... forms,updateTenant:true},hideLoading:true})
         data.showSuccess=true
         data.secondConfirm=false
 
@@ -177,12 +179,12 @@ export default defineComponent({
     }
     return () =>
       <>< div class={styles.videoClass} >
-        <ColHeader
+        {/* <ColHeader
           class={styles.classHeader}
           border={false}
           isFixed={false}
           background="#fff"
-        />
+        /> */}
         <div class={styles.resjetStudentWrap}>
           <img src={rejectLogo} class={styles.rejectLogo} alt="" />
           <img src={studentText} class={styles.studentText} alt="" />
@@ -343,7 +345,9 @@ export default defineComponent({
           onClose={() => (data.dateState = false)}
           onClosed={() => (data.dateState = false)}
         >
-          <DatetimePicker  type="date" v-model:value={forms.birthdate} onCancel={() => { data.dateState = false }} onConfirm={confirmDate}></DatetimePicker>
+          <DatetimePicker
+          min-date={data.minDate}
+  max-date={data.maxDate} type="date" v-model:value={forms.birthdate} onCancel={() => { data.dateState = false }} onConfirm={confirmDate}></DatetimePicker>
         </Popup>
 
         <Popup
@@ -379,7 +383,7 @@ export default defineComponent({
         <div class={styles.secondWrap}>
           <h2>提示</h2>
           <p>当前账号已存在 <span>【机构名称】</span> ,是否</p>
-          <p>确认更换到 <span>【机构名称】</span>吗? </p>
+          <p>确认更换到 <span>{data.schoolName}</span>吗? </p>
           <div class={styles.buttonWrap}>
             <div class={styles.closeBtn} onClick={()=>{data.secondConfirm = false}}> 取消</div>
             <div  class={styles.submitBtn} onClick={submitSecond}>确定</div>

+ 1 - 1
src/views/tenantTeacherRejest/index.module.less

@@ -169,7 +169,7 @@
 .sendBtn {
   border: none;
   background-color: transparent;
-  width: 70px;
+  width: 80px;
   color: #fe2451;
   font-size: 14px;
   padding: 0;

+ 12 - 12
src/views/tenantTeacherRejest/index.tsx

@@ -184,12 +184,12 @@ export default defineComponent({
     return () => (
       <>
         <div class={styles.videoClass}>
-          <ColHeader
+          {/* <ColHeader
             class={styles.classHeader}
             border={false}
             isFixed={false}
             background="#fff"
-          />
+          /> */}
           <div class={styles.resjetStudentWrap}>
             <img src={rejectLogo} class={styles.rejectLogo} alt="" />
             <img src={studentText} class={styles.studentText} alt="" />
@@ -213,9 +213,9 @@ export default defineComponent({
                       maxlength={20}
                       v-model={forms.username}
 
-                      // onUpdate: modelValue={(val: string) => {
-                      //   forms.nickname = val.trim();
-                      // }}
+                    // onUpdate: modelValue={(val: string) => {
+                    //   forms.nickname = val.trim();
+                    // }}
                     />
 
                     <Field
@@ -256,9 +256,9 @@ export default defineComponent({
                       maxlength={20}
                       v-model={forms.realName}
 
-                      // onUpdate: modelValue={(val: string) => {
-                      //   forms.nickname = val.trim();
-                      // }}
+                    // onUpdate: modelValue={(val: string) => {
+                    //   forms.nickname = val.trim();
+                    // }}
                     />
                     <Field
                       class={styles.noArrow}
@@ -268,9 +268,9 @@ export default defineComponent({
                       maxlength={20}
                       v-model={forms.idCardNo}
 
-                      // onUpdate: modelValue={(val: string) => {
-                      //   forms.nickname = val.trim();
-                      // }}
+                    // onUpdate: modelValue={(val: string) => {
+                    //   forms.nickname = val.trim();
+                    // }}
                     />
 
                     <Field
@@ -327,7 +327,7 @@ export default defineComponent({
             position="bottom"
             style={{ height: '60%' }}
             teleport="body"
-            onUpdate:show={val => (data.searchStatus = val)}
+            onUpdate: show={val => (data.searchStatus = val)}
           >
             <SubjectModel
               subjectList={data.subjectList}