修改⽤户注册后⾃动审核通过

This commit is contained in:
QuAoLi 2022-05-12 15:13:56 +08:00
parent dce5343985
commit f22e9da55b
2 changed files with 17 additions and 14 deletions

View File

@ -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 })
}, },

View File

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