lex 1 năm trước cách đây
mục cha
commit
c581f9bc7a
1 tập tin đã thay đổi với 30 bổ sung22 xóa
  1. 30 22
      src/views/tenantStudentRejest/index.tsx

+ 30 - 22
src/views/tenantStudentRejest/index.tsx

@@ -54,6 +54,7 @@ export default defineComponent({
       birthdate: new Date(dayjs().year(), dayjs().month() + 1, dayjs().date()),
       schoolName: route.query.name || '',
       id: route.query.tenantId,
+      tenantGroupId: route.query.tenantGroupId,
       userSchoolName: '',
       cityName: '', // 所属城市
       showArea: false,
@@ -193,6 +194,9 @@ export default defineComponent({
     }
     onMounted(() => {
       removeAuth()
+      if (data.tenantGroupId) {
+        forms.tenantGroupId = data.tenantGroupId
+      }
       tenantGroupList()
       getSubjectList()
     })
@@ -403,28 +407,32 @@ export default defineComponent({
                         )
                       }}
                     </Field>
-                    <Field
-                      border={false}
-                      inputAlign="right"
-                      label="小组"
-                      placeholder="请选择小组"
-                      readonly
-                      v-model={forms.tenantGroupName}
-                      onClick={() => (data.tenantGroupStatus = true)}
-                    >
-                      {{
-                        button: () => (
-                          <img
-                            style={{
-                              display: 'block',
-                              width: '12px',
-                              height: '12px'
-                            }}
-                            src={icon_arrow}
-                          />
-                        )
-                      }}
-                    </Field>
+                    {data.tenantGroupId ? (
+                      ''
+                    ) : (
+                      <Field
+                        border={false}
+                        inputAlign="right"
+                        label="小组"
+                        placeholder="请选择小组"
+                        readonly
+                        v-model={forms.tenantGroupName}
+                        onClick={() => (data.tenantGroupStatus = true)}
+                      >
+                        {{
+                          button: () => (
+                            <img
+                              style={{
+                                display: 'block',
+                                width: '12px',
+                                height: '12px'
+                              }}
+                              src={icon_arrow}
+                            />
+                          )
+                        }}
+                      </Field>
+                    )}
                   </CellGroup>
                 </Form>
               </div>