chenyuehu 4 жил өмнө
parent
commit
0b39150ec6

+ 8 - 1
src/views/upms/user/modules/BaseForm.vue

@@ -41,6 +41,13 @@
       >
         <a-input v-decorator="['phone']"/>
       </a-form-item>
+      <a-form-item
+        label="邮箱"
+        :labelCol="labelCol"
+        :wrapperCol="wrapperCol"
+      >
+        <a-input v-decorator="['email', {rules: [{required: true, message: '邮箱不能为空'}]}]"/>
+      </a-form-item>
       <a-form-item
         label="身份"
         :labelCol="labelCol"
@@ -278,7 +285,7 @@ export default {
         this.userId = record.userId
         this.checkedKeys = record.deptIds
         this.expandedKeys = record.deptIds
-        setFieldsValue(pick(record, ['userId', 'username', 'enquiryAutoAudit', 'realName', 'phone', 'roleIds', 'identityType', 'jobType']))
+        setFieldsValue(pick(record, ['userId', 'username','email', 'enquiryAutoAudit', 'realName', 'phone', 'roleIds', 'identityType', 'jobType']))
         if (this.hasCountry) {
           setFieldsValue(pick(record, ['country']))
         }