66 :source =" SourceTypeEnum.APPLICATION"
77 :data =" folderList"
88 :currentNodeKey =" folder.currentFolder?.id"
9- @handleNodeClick =" folderClickHandel "
9+ @handleNodeClick =" folderClickHandle "
1010 @refreshTree =" refreshFolder"
1111 class =" p-8"
1212 />
1313 </template >
1414 <ContentContainer >
1515 <template #header >
16- <FolderBreadcrumb :folderList =" folderList" @click =" folderClickHandel " />
16+ <FolderBreadcrumb :folderList =" folderList" @click =" folderClickHandle " />
1717 </template >
1818 <template #search >
1919 <div class =" flex" >
3131 <el-input
3232 v-if =" search_type === 'name'"
3333 v-model =" search_form.name"
34- @change =" searchHandel "
34+ @change =" searchHandle "
3535 :placeholder =" $t('common.searchBar.placeholder')"
3636 style =" width : 220px "
3737 clearable
3838 />
3939 <el-select
4040 v-else-if =" search_type === 'create_user'"
4141 v-model =" search_form.create_user"
42- @change =" searchHandel "
42+ @change =" searchHandle "
4343 clearable
4444 style =" width : 220px "
4545 >
@@ -272,7 +272,7 @@ import { onMounted, ref, reactive, computed } from 'vue'
272272import CreateApplicationDialog from ' @/views/application/component/CreateApplicationDialog.vue'
273273import CreateFolderDialog from ' @/components/folder-tree/CreateFolderDialog.vue'
274274import CopyApplicationDialog from ' @/views/application/component/CopyApplicationDialog.vue'
275- import ApplicaitonApi from ' @/api/application/application'
275+ import ApplicationApi from ' @/api/application/application'
276276import { MsgSuccess , MsgConfirm , MsgError } from ' @/utils/message'
277277import useStore from ' @/stores'
278278import { t } from ' @/locales'
@@ -414,7 +414,7 @@ function deleteApplication(row: any) {
414414 },
415415 )
416416 .then (() => {
417- ApplicaitonApi .delApplication (row .id , loading ).then (() => {
417+ ApplicationApi .delApplication (row .id , loading ).then (() => {
418418 const index = applicationList .value .findIndex ((v ) => v .id === row .id )
419419 applicationList .value .splice (index , 1 )
420420 MsgSuccess (t (' common.deleteSuccess' ))
@@ -424,7 +424,7 @@ function deleteApplication(row: any) {
424424}
425425
426426const exportApplication = (application : any ) => {
427- ApplicaitonApi .exportApplication (application .id , application .name , loading ).catch ((e ) => {
427+ ApplicationApi .exportApplication (application .id , application .name , loading ).catch ((e ) => {
428428 if (e .response .status !== 403 ) {
429429 e .response .data .text ().then ((res : string ) => {
430430 MsgError (` ${t (' views.application.tip.ExportError' )}:${JSON .parse (res ).message } ` )
@@ -438,7 +438,7 @@ const importApplication = (file: any) => {
438438 const formData = new FormData ()
439439 formData .append (' file' , file .raw , file .name )
440440 elUploadRef .value .clearFiles ()
441- ApplicaitonApi .importApplication (formData , loading )
441+ ApplicationApi .importApplication (formData , loading )
442442 .then (async (res : any ) => {
443443 if (res ?.data ) {
444444 applicationList .value = []
@@ -480,7 +480,7 @@ function clickFolder(item: any) {
480480 applicationList .value = []
481481 getList ()
482482}
483- function folderClickHandel (row : any ) {
483+ function folderClickHandle (row : any ) {
484484 folder .setCurrentFolder (row )
485485 applicationList .value = []
486486 getList ()
@@ -490,7 +490,7 @@ function refreshFolder() {
490490 getFolder ()
491491}
492492
493- function searchHandel () {
493+ function searchHandle () {
494494 paginationConfig .current_page = 1
495495 applicationList .value = []
496496 getList ()
@@ -500,7 +500,7 @@ function getList() {
500500 const params = {
501501 folder_id: folder .currentFolder ?.id || ' default' ,
502502 }
503- ApplicaitonApi .getApplication (paginationConfig , params , loading ).then ((res ) => {
503+ ApplicationApi .getApplication (paginationConfig , params , loading ).then ((res ) => {
504504 paginationConfig .total = res .data .total
505505 applicationList .value = [... applicationList .value , ... res .data .records ]
506506 })
0 commit comments