|
@@ -54,6 +54,26 @@
|
|
|
</template>
|
|
|
</van-field>
|
|
|
|
|
|
+ <!-- 身份类别 -->
|
|
|
+ <van-field size=“large” v-model="formData.identityType" required label-align="top"
|
|
|
+ :rules="[{ required: true, trigger: 'onBlur', message: lang[langType].identityTypeContent }]"
|
|
|
+ :placeholder="lang[langType].identityTypeContent">
|
|
|
+ <template #label>
|
|
|
+ <span :class="langType === 'zh' ? 'label' : ''" v-html="lang[langType].identityType"></span>
|
|
|
+ </template>
|
|
|
+ <template #input>
|
|
|
+ <van-radio-group checked-color="#3F5AC8" style="justify-content: flex-end;width: 100%;"
|
|
|
+ v-model="formData.identityType" direction="horizontal">
|
|
|
+ <van-radio style="flex: 1;margin-top: 10px " name="媒体">{{ lang[langType].media
|
|
|
+ }}</van-radio>
|
|
|
+ <van-radio style="flex: 1;margin-top: 10px " name="工作人员">{{ lang[langType].staff
|
|
|
+ }}</van-radio>
|
|
|
+ <van-radio style="flex: 1;margin-top: 10px " name="志愿者">{{ lang[langType].volunteer
|
|
|
+ }}</van-radio>
|
|
|
+ </van-radio-group>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+
|
|
|
<!-- 单位类型 -->
|
|
|
<van-field size=“large” input-align="right" v-model="formData.unitTypeName" clickable
|
|
|
:rules="[{ required: true, trigger: 'onChange', message: lang[langType].workGroupTextContent }]"
|
|
@@ -113,6 +133,7 @@ const initFormData = () => {
|
|
|
idCard: 'passport', // 证件号
|
|
|
workUnit: 'workUnit', // 工作单位
|
|
|
workGroup: 'unitType', // 单位类型
|
|
|
+ identityType: 'identityType', // 身份类别
|
|
|
}
|
|
|
const subData = JSON.parse(JSON.stringify(props.subData))
|
|
|
const keys = Object.keys(subData || {});
|
|
@@ -187,6 +208,7 @@ const onSubmit = () => {
|
|
|
idCard: formData.passport, // 证件号
|
|
|
workUnit: formData.workUnit, // 工作单位
|
|
|
workGroup: formData.unitType, // 单位类型
|
|
|
+ identityType: formData.identityType, // 身份类别
|
|
|
userType: '工作人员'
|
|
|
}).then((res) => {
|
|
|
if (!isNaN(res.code) && res.code !== 0) {
|