|
@@ -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>
|