|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="xuxibiji">
|
|
|
<div class="font_size18 bold">{{$t('common.xuxibiji')}}</div>
|
|
|
<div class="addBtn flex-center gradient border_radius_16">
|
|
|
- <div class="gap10">
|
|
|
+ <div class="gap10" @click="openAddDialog">
|
|
|
<img :src="addIcon" alt="" style="width:30px;height:30px">
|
|
|
<span class="font_size18">{{$t('common.add')}}{{$t('common.xuxibiji')}}</span>
|
|
|
</div>
|
|
|
@@ -30,10 +30,12 @@
|
|
|
:current-page="searchFom.pageNum"
|
|
|
@page-change="handlePageChange"
|
|
|
/>
|
|
|
+ <BlockNoteEditorDialog ref="blockNoteEditorDialogRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
import addIcon from '@/assets/imgs/add.png'
|
|
|
+import BlockNoteEditorDialog from '@/components/BlockNoteEditorDialog.vue'
|
|
|
import Pagination from '@/components/Pagination.vue'
|
|
|
import { getCourseList } from '@/api/course.js'
|
|
|
import { ref, onMounted,reactive } from 'vue'
|
|
|
@@ -74,6 +76,11 @@ const getList = async (type) => {
|
|
|
// list.value = res.rows
|
|
|
// }
|
|
|
};
|
|
|
+// 打开添加对话框
|
|
|
+const blockNoteEditorDialogRef = ref(null)
|
|
|
+const openAddDialog = () => {
|
|
|
+ blockNoteEditorDialogRef.value.openDialog();
|
|
|
+};
|
|
|
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|