12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <view class="card">
- <view class="top">
- <van-image width="690rpx" height="180rpx" src="/images/ic_student_info.png" />
- <view class='top-txt'>
- <view class="title">学员登记表</view>
- <view class="des">填写学员登记表,完成学员报到</view>
- </view>
- <van-cell title="上传头像" center>
- <van-image wx:if="{{!iCanUseAvatarButton || isPC}}" width="200rpx" height="200rpx" round fit="cover" src="{{formData.picUrl || plusImageUrl}}"
- class="user-avater-img"
- bind:tap="chooseImg"/>
- <button wx:else open-type="chooseAvatar" bindchooseavatar="onChooseAvatar" class="user-avater-img avatar-button">
- <van-image width="200rpx" height="200rpx" round fit="cover" src="{{formData.picUrl || plusImageUrl}}"
- class="user-avater-img"/>
- </button>
- </van-cell>
- <van-field required bind:change='onChange' value="{{formData.name}}" label="姓名" placeholder="请输入姓名" input-align="right" data-field="formData.name" />
- <edu-picker bind:change="changeInfo" label="性别" pickData="{{sexData}}" emitKey="formData.sex" index="{{formData.sex}}" />
- <edu-picker bind:change="changeInfo" label="民族" pickData="{{nationData}}" emitKey="formData.nation" index="{{formData.nation}}" />
- <edu-picker bind:change="changeInfo" label="学员类别" pickData="{{studentTypeData}}" emitKey="formData.perType" index="{{formData.perType}}" />
- <edu-picker bind:change="changeInfo" required="{{isCommunityWorker}}" label="文化程度" pickData="{{eduExpData}}" emitKey="formData.education" index="{{formData.education}}" />
- <van-field required="{{isCommunityWorker}}" bind:change='onChange' value="{{formData.graduate}}" label="毕业学校" placeholder="请输入毕业学校" input-align="right" data-field="formData.graduate" />
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="是否211,985" emitKey="formData.isEmphasis" index="{{formData.isEmphasis}}" />
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="所学专业" pickData="{{specialtyData}}" emitKey="formData.specialtyId" index="{{formData.specialtyId}}" />
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="是否全日制" emitKey="formData.isFullTime" index="{{formData.isFullTime}}" />
- <advantage-pop required="{{isCommunityWorker}}" advantageIds="{{formData.advantage}}" bind:change="changeInfo" advantageData="{{advantageData}}" />
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="是否中共党员" emitKey="formData.isParty" index="{{formData.isParty}}" />
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="区级以上荣誉" emitKey="formData.isReceiveHonor" index="{{formData.isReceiveHonor}}" />
- <edu-cascader required="{{isCommunityWorker}}" wx:if="{{formData.perType!=-1}}" bind:change="changeInfo" parentIds="{{parentIds}}" perType="{{formData.perType}}" contactPhone="{{contactPhone}}" />
- <block wx:if="{{formData.perType == studentTypesEnum.COMMUNITY_WORKER}}">
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="社工证等级" pickData="{{socialWorkLevelData}}" emitKey="formData.socialWorkLevel" index="{{formData.socialWorkLevel}}" />
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="社区工作年限" pickData="{{socialWorkYearData}}" emitKey="formData.socialWorkYear" index="{{formData.socialWorkYear}}" />
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="是否在本年度提任社区书记" emitKey="formData.isPromote" index="{{formData.isPromote}}" placeholder="请选择" />
- <van-field required="{{isCommunityWorker}}" bind:change='onChange' value="{{formData.formerPost}}" label="原职务" placeholder="请输入原职务" wx:if="{{formData.isPromote == logicStateEnum.YES}}" input-align="right" data-field="formData.formerPost" />
- </block>
- <edu-picker required="{{isCommunityWorker}}" bind:change="changeInfo" label="现任职务" pickData="{{formData.perType == studentTypesEnum.COMMUNITY_WORKER?communityJobData:otherJobData}}" emitKey="formData.jobId" index="{{formData.jobId}}" />
- <picker mode='date' bindchange="onChange" data-field="formData.jobTime" data-value="value">
- <van-field required="{{isCommunityWorker}}" value="{{formData.jobTime}}" label="任职时间" readonly is-link input-align="right" placeholder="请选择开始任职时间" />
- </picker>
- <block wx:if="{{formData.perType == studentTypesEnum.COMMUNITY_WORKER}}">
- <edu-picker bind:change="changeInfo" label="是否网格长" emitKey="formData.isGridLeader" index="{{formData.isGridLeader}}" />
- <edu-picker bind:change="changeInfo" label="是否楼栋长" emitKey="formData.isBuildLeader" index="{{formData.isBuildLeader}}" />
- <edu-picker bind:change="changeInfo" label="是否单元长" emitKey="formData.isUnitLeader" index="{{formData.isUnitLeader}}" />
- <edu-picker bind:change="changeInfo" label="是否公益岗" emitKey="formData.isWelfare" index="{{formData.isWelfare}}" />
- </block>
- </view>
- </view>
- <view class="btn">
- <edu-button title="提交" bind:click='submit' />
- </view>
|