|
|
@@ -43,6 +43,8 @@ import addIcon from '@/assets/imgs/add.png'
|
|
|
import BlockNoteEditorDialog from '@/components/BlockNoteEditorDialog.vue'
|
|
|
import Pagination from '@/components/Pagination.vue'
|
|
|
import { getnoteList,noteAdd,noteEdit,noteDel, getnoteDetail } from '@/api/note.js'
|
|
|
+import { openFullScreenLoading } from '@/utils/util.js'
|
|
|
+
|
|
|
import { ref, onMounted,reactive,watch,onActivated } from 'vue'
|
|
|
import DGTMessage from '@/utils/message'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
@@ -95,7 +97,11 @@ const getList = async (type) => {
|
|
|
if(type === 'init'){
|
|
|
searchFom.pageNum = 1
|
|
|
}
|
|
|
+ // 打开loading
|
|
|
+ const loading = openFullScreenLoading();
|
|
|
const res = await getnoteList(searchFom)
|
|
|
+ // 关闭loading
|
|
|
+ loading.close();
|
|
|
if(res.code === 200){
|
|
|
listTotal.value = res.total
|
|
|
list.value = res.rows
|