|
@@ -1,4 +1,11 @@
|
|
-import { defineComponent, ref, onMounted, nextTick, onUnmounted, reactive } from 'vue';
|
|
|
|
|
|
+import {
|
|
|
|
+ defineComponent,
|
|
|
|
+ ref,
|
|
|
|
+ onMounted,
|
|
|
|
+ nextTick,
|
|
|
|
+ onUnmounted,
|
|
|
|
+ reactive
|
|
|
|
+} from 'vue';
|
|
import styles from './index.module.less';
|
|
import styles from './index.module.less';
|
|
import { NImage, NBadge, NPopover, NIcon, NModal, NTooltip } from 'naive-ui';
|
|
import { NImage, NBadge, NPopover, NIcon, NModal, NTooltip } from 'naive-ui';
|
|
import styles2 from './modals/suggestion-option.module.less';
|
|
import styles2 from './modals/suggestion-option.module.less';
|
|
@@ -30,7 +37,7 @@ import ClassModal from '/src/views/home/modals/class-modal';
|
|
import { suggestMessageUnread } from '/src/api/user';
|
|
import { suggestMessageUnread } from '/src/api/user';
|
|
import { eventGlobal } from '/src/utils';
|
|
import { eventGlobal } from '/src/utils';
|
|
import { usePrepareStore } from '/src/store/modules/prepareLessons';
|
|
import { usePrepareStore } from '/src/store/modules/prepareLessons';
|
|
-import { schoolDetail } from '/src/views/studentList/api'
|
|
|
|
|
|
+import { schoolDetail } from '/src/views/studentList/api';
|
|
import AddStudentModel from '/src/views/studentList/modals/addStudentModel';
|
|
import AddStudentModel from '/src/views/studentList/modals/addStudentModel';
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -50,7 +57,7 @@ export default defineComponent({
|
|
const prepareStore = usePrepareStore();
|
|
const prepareStore = usePrepareStore();
|
|
const state = reactive({
|
|
const state = reactive({
|
|
addStudentVisible: false,
|
|
addStudentVisible: false,
|
|
- activeRow: {} as any,
|
|
|
|
|
|
+ activeRow: {} as any
|
|
});
|
|
});
|
|
|
|
|
|
const oncheckEditStatus = (callBack: any) => {
|
|
const oncheckEditStatus = (callBack: any) => {
|
|
@@ -92,8 +99,7 @@ export default defineComponent({
|
|
const showInviteQrcode = async () => {
|
|
const showInviteQrcode = async () => {
|
|
try {
|
|
try {
|
|
const { schoolInfos } = users.getUserInfo;
|
|
const { schoolInfos } = users.getUserInfo;
|
|
- const schoolId =
|
|
|
|
- schoolInfos.length > 0 ? schoolInfos[0].id : null;
|
|
|
|
|
|
+ const schoolId = schoolInfos.length > 0 ? schoolInfos[0].id : null;
|
|
if (schoolId) {
|
|
if (schoolId) {
|
|
const { data } = await schoolDetail({ id: schoolId });
|
|
const { data } = await schoolDetail({ id: schoolId });
|
|
state.activeRow = data;
|
|
state.activeRow = data;
|
|
@@ -103,7 +109,7 @@ export default defineComponent({
|
|
} catch {
|
|
} catch {
|
|
//
|
|
//
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ };
|
|
|
|
|
|
const suggestionStatus = ref(false);
|
|
const suggestionStatus = ref(false);
|
|
const getSuggestMessageUnread = async () => {
|
|
const getSuggestMessageUnread = async () => {
|
|
@@ -195,7 +201,7 @@ export default defineComponent({
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class={styles.layoutRight}>
|
|
<div class={styles.layoutRight}>
|
|
- <NTooltip showArrow={false}>
|
|
|
|
|
|
+ {/* <NTooltip showArrow={false}>
|
|
{{
|
|
{{
|
|
trigger: () => (
|
|
trigger: () => (
|
|
<div class={styles.optons} onClick={showInviteQrcode}>
|
|
<div class={styles.optons} onClick={showInviteQrcode}>
|
|
@@ -206,7 +212,7 @@ export default defineComponent({
|
|
),
|
|
),
|
|
default: '邀请学生'
|
|
default: '邀请学生'
|
|
}}
|
|
}}
|
|
- </NTooltip>
|
|
|
|
|
|
+ </NTooltip>*/}
|
|
<NPopover
|
|
<NPopover
|
|
width={380}
|
|
width={380}
|
|
class={styles.popoverClassModel}
|
|
class={styles.popoverClassModel}
|
|
@@ -424,7 +430,7 @@ export default defineComponent({
|
|
}></SuggestionOption>
|
|
}></SuggestionOption>
|
|
</NModal>
|
|
</NModal>
|
|
|
|
|
|
- {state.addStudentVisible ? (
|
|
|
|
|
|
+ {/* {state.addStudentVisible ? (
|
|
<div v-model:show={state.addStudentVisible} class={['n-modal-mask', styles.popBox]}>
|
|
<div v-model:show={state.addStudentVisible} class={['n-modal-mask', styles.popBox]}>
|
|
<AddStudentModel
|
|
<AddStudentModel
|
|
activeRow={state.activeRow}
|
|
activeRow={state.activeRow}
|
|
@@ -432,7 +438,7 @@ export default defineComponent({
|
|
state.addStudentVisible = false;
|
|
state.addStudentVisible = false;
|
|
}}></AddStudentModel>
|
|
}}></AddStudentModel>
|
|
</div>
|
|
</div>
|
|
- ) : null}
|
|
|
|
|
|
+ ) : null} */}
|
|
</div>
|
|
</div>
|
|
</>
|
|
</>
|
|
);
|
|
);
|