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