liyongli 6 hari lalu
induk
melakukan
6655ad5287
3 mengubah file dengan 50 tambahan dan 0 penghapusan
  1. 18 0
      src/view/fenghui/form2.vue
  2. 22 0
      src/view/fenghui/form2Recurrence.vue
  3. 10 0
      src/view/fenghui/lang.js

+ 18 - 0
src/view/fenghui/form2.vue

@@ -54,6 +54,23 @@
                     </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 }]"
@@ -152,6 +169,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) {

+ 22 - 0
src/view/fenghui/form2Recurrence.vue

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

+ 10 - 0
src/view/fenghui/lang.js

@@ -1,5 +1,10 @@
 export default {
     "zh": {
+        "identityType": "身份类别",
+        "identityTypeContent": "身份类别",
+        "media": "媒体",
+        "staff": "工作人员",
+        "volunteer": "志愿者",
         "active1": "5月15日 “共享数字经济发展机遇”分论坛",
         "active2": "5月15日“共筑网络安全防线”分论坛",
         "active3": "5月15日“共商人工智能发展治理”分论坛",
@@ -152,6 +157,11 @@ export default {
         ]
     },
     "en": {
+        "identityType": "Identity category",
+        "identityTypeContent": "Identity category",
+        "media": "For Chinese media",
+        "staff": "For Chinese staff",
+        "volunteer": "For Chinese volunteer",
         "upRegistration": "Registration information updated successfully",
         "active1": "May 15 sub Forum on 'Sharing Opportunities for the Digital Economy Development'",
         "active2": "May 15 sub Forum on 'Jointly Maintaining Safety in Cyberspace'",