|
@@ -17,12 +17,11 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import { fetchUsrApplyDetail, fetchUsrInfo, formCfg, putUsrRegist } from '@/common/api';
|
|
|
+import { fetchUsrApplyDetail, formCfg, putUsrRegist } from '@/common/api';
|
|
|
import { FORM_MOD, ICON_CFG, MEETING_TYPE, USR_TYPE_LIST } from '@/common/EnumConst';
|
|
|
import AuthWrap from '@/components/AuthComp/index.vue';
|
|
|
import RegistForm from '@/components/RegistForm';
|
|
|
import SingleDropList from '@/components/SingleDropList/index.vue';
|
|
|
-import { getUserInfo, setUserInfo } from '@/util';
|
|
|
|
|
|
const staticRules = {
|
|
|
'userInfo.email': {
|
|
@@ -46,7 +45,8 @@ export default {
|
|
|
model1: {
|
|
|
userInfo: {
|
|
|
usrName: '',
|
|
|
- conferenceFlag: '1',
|
|
|
+ conferenceFlag: '0',
|
|
|
+ usrType: '1',
|
|
|
},
|
|
|
},
|
|
|
rules: null,
|
|
@@ -69,8 +69,10 @@ export default {
|
|
|
//如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则。
|
|
|
this.$refs.authWrap.reloadPage();
|
|
|
this.$refs.registForm?.setFormRules();
|
|
|
- if (res.mode === FORM_MOD.modify) {
|
|
|
+ if (res && res.mode === FORM_MOD.modify) {
|
|
|
await this.getUsrMeetingInfo(res.apply);
|
|
|
+ } else {
|
|
|
+ this.$refs.registForm?.restForm();
|
|
|
}
|
|
|
},
|
|
|
onReady() {
|