mo 1 year ago
parent
commit
e1e205aef4

+ 4 - 0
src/components/layout/modals/suggestion-option.module.less

@@ -8,4 +8,8 @@
       min-width: 156px;
     }
   }
+}
+
+.updatePassword {
+  padding: 40px;
 }

+ 30 - 8
src/components/layout/modals/suggestion-option.tsx

@@ -1,5 +1,5 @@
 import { defineComponent, onMounted, reactive, ref } from 'vue';
-import styles from './update-password.module.less';
+import styles from './suggestion-option.module.less'
 import {
   NButton,
   NForm,
@@ -16,6 +16,7 @@ import { sendSms } from '/src/views/login/api';
 import { updatePassword } from '@/views/home/api';
 import openEye from '/src/views/login/images/openEye.png';
 import closeEye from '/src/views/login/images/closeEye.png';
+import CSelect from '../../CSelect';
 export default defineComponent({
   name: 'train-update',
   emits: ['close', 'submit'],
@@ -23,11 +24,10 @@ export default defineComponent({
     const message = useMessage();
     const userStore = useUserStore();
     const forms = reactive({
-      mobile: userStore.getUserInfo.phone || '',
-      password: null,
-      rePassword: null,
+      suggestionTypeId: null,
       clientType: 'TEACHER',
-      code: null
+      content:'',
+      attachmentUrls: ''
     });
 
 
@@ -48,14 +48,36 @@ export default defineComponent({
           ref={formsRef}
           model={forms}
           requireMarkPlacement="left">
-          <NFormItem
+          {/* <NFormItem
             path="currentClass"
             label=""
             class={styles.phoneContainer}>
             <p class={styles.phone}>{forms.mobile}</p>
-          </NFormItem>
-
+          </NFormItem> */}
 
+          <NFormItem>
+          <CSelect
+                {...({
+                  options: [
+                    {
+                      label: '训练状态',
+                      value: null
+                    },
+                    {
+                      label: '已结束',
+                      value: 1
+                    },
+                    {
+                      label: '进行中',
+                      value: 0
+                    }
+                  ],
+                  placeholder: '训练状态',
+                  clearable: true,
+                  inline: true
+                } as any)}
+                v-model:value={forms.suggestionTypeId}></CSelect>
+          </NFormItem>
 
           <NSpace class={styles.updateBtnGroup}>
             <NButton strong type="default" round onClick={() => emit('close')}>