修改⽤户注册后⾃动审核通过
This commit is contained in:
parent
dce5343985
commit
f22e9da55b
|
@ -323,12 +323,14 @@
|
||||||
const data = res.data
|
const data = res.data
|
||||||
|
|
||||||
// 默认选中的多选框
|
// 默认选中的多选框
|
||||||
const type = data.type.split(',')
|
if (data.type) {
|
||||||
const typeIntArr = []// 保存转换后的整型字符串
|
const type = data.type.split(',')
|
||||||
type.forEach(item => {
|
const typeIntArr = []// 保存转换后的整型字符串
|
||||||
typeIntArr.push(+item)
|
type.forEach(item => {
|
||||||
})
|
typeIntArr.push(+item)
|
||||||
this.form.getFieldDecorator('type', { valuePropName: 'checked', initialValue: typeIntArr })
|
})
|
||||||
|
this.form.getFieldDecorator('type', { valuePropName: 'checked', initialValue: typeIntArr })
|
||||||
|
}
|
||||||
|
|
||||||
this.idPhotoFace = this.getImgPath(data.idPhotoFace)
|
this.idPhotoFace = this.getImgPath(data.idPhotoFace)
|
||||||
this.idPhotoBack = this.getImgPath(data.idPhotoBack)
|
this.idPhotoBack = this.getImgPath(data.idPhotoBack)
|
||||||
|
@ -344,8 +346,8 @@
|
||||||
// age: data.age,
|
// age: data.age,
|
||||||
// sex: data.sex,
|
// sex: data.sex,
|
||||||
phone: data.phone,
|
phone: data.phone,
|
||||||
jobs: parseInt(data.jobs),
|
jobs: data.jobs ? parseInt(data.jobs) : null,
|
||||||
workType: parseInt(data.workType),
|
workType: data.workType ? parseInt(data.workType) : null,
|
||||||
degreeId: data.degreeId,
|
degreeId: data.degreeId,
|
||||||
orgId: data.orgId,
|
orgId: data.orgId,
|
||||||
orgName: data.orgName,
|
orgName: data.orgName,
|
||||||
|
@ -423,7 +425,6 @@
|
||||||
if (monthNow < monthBirth || (monthNow === monthBirth && dayNow < dayBirth)) {
|
if (monthNow < monthBirth || (monthNow === monthBirth && dayNow < dayBirth)) {
|
||||||
age--
|
age--
|
||||||
}
|
}
|
||||||
console.log(age)
|
|
||||||
// 得到年龄
|
// 得到年龄
|
||||||
this.form.setFieldsValue({ age })
|
this.form.setFieldsValue({ age })
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<h3>单位邀请码:{{ invitationCode }}</h3>
|
<h3>单位邀请码:{{ invitationCode }}</h3>
|
||||||
<h3>邀请链接: www.anquanpeixun.com</h3>
|
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
|
@ -27,11 +26,14 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="$refs.personForm.registerEdit(record)">编辑</a>
|
<!-- 2022-05-12 改为注册自动审核通过 -->
|
||||||
|
<!-- <a @click="$refs.personForm.registerEdit(record)">编辑</a> -->
|
||||||
|
<a v-if="hasPerm('person:get')" @click="$refs.personDetail.detail(record)">详情</a>
|
||||||
</span>
|
</span>
|
||||||
</s-table>
|
</s-table>
|
||||||
|
|
||||||
<person-form ref="personForm" @ok="handleOk" />
|
<!-- <person-form ref="personForm" @ok="handleOk" /> -->
|
||||||
|
<person-detail ref="personDetail" @ok="handleOk" />
|
||||||
|
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,12 +41,12 @@
|
||||||
<script>
|
<script>
|
||||||
import { STable } from '@/components'
|
import { STable } from '@/components'
|
||||||
import { personRegisterPage } from '@/api/person/personRegister'
|
import { personRegisterPage } from '@/api/person/personRegister'
|
||||||
import PersonForm from './PersonForm'
|
import PersonDetail from './PersonDetail'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
STable,
|
STable,
|
||||||
PersonForm
|
PersonDetail
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue