|
@@ -15,7 +15,7 @@ import {
|
|
|
import SearchInput from '@/components/searchInput';
|
|
|
import CSelect from '@/components/CSelect';
|
|
|
import Pagination from '@/components/pagination';
|
|
|
-import { classGroupList, deleteClass } from './api';
|
|
|
+import { classGroupList, deleteClass,addGroup } from './api';
|
|
|
|
|
|
import CreateClass from './modals/createClass';
|
|
|
import RestStudentBox from './modals/restStudentBox';
|
|
@@ -58,7 +58,8 @@ export default defineComponent({
|
|
|
removeRow: {} as any,
|
|
|
previewModal: false,
|
|
|
previewParams: {} as any,
|
|
|
- lastCourse:null as any
|
|
|
+ lastCourse:null as any,
|
|
|
+ groupVisiable:false
|
|
|
});
|
|
|
const formRef = ref();
|
|
|
const dialog = useDialog();
|
|
@@ -267,7 +268,12 @@ export default defineComponent({
|
|
|
state.goCourseVisiable = true;
|
|
|
};
|
|
|
const createImgroup = async(row:any)=>{
|
|
|
- console.log(row,'row')
|
|
|
+ state.activeRow = row
|
|
|
+ state.groupVisiable = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ const submitGroup = async ()=>{
|
|
|
+ console.log( state.activeRow,'row')
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
getList();
|
|
@@ -436,6 +442,29 @@ export default defineComponent({
|
|
|
</NSpace>
|
|
|
</div>
|
|
|
</NModal>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <NModal
|
|
|
+ v-model:show={state.groupVisiable}
|
|
|
+ preset="card"
|
|
|
+ class={['modalTitle', styles.groupVisiable]}
|
|
|
+ title={'创建群聊'}>
|
|
|
+ <div class={styles.studentRemove}>
|
|
|
+ <p>
|
|
|
+ 是否创建班级群聊
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <NSpace class={styles.btnGroup} justify="center">
|
|
|
+ <NButton round type="primary" onClick={submitGroup}>
|
|
|
+ 确定
|
|
|
+ </NButton>
|
|
|
+ <NButton round onClick={() => (state.groupVisiable = false)}>
|
|
|
+ 取消
|
|
|
+ </NButton>
|
|
|
+ </NSpace>
|
|
|
+ </div>
|
|
|
+ </NModal>
|
|
|
{showGuide.value ? <ClassGuide></ClassGuide> : null}
|
|
|
</div>
|
|
|
);
|