|
|
@@ -16,6 +16,7 @@ import SearchForm from './components/SearchForm.vue'
|
|
|
import type { TAgent } from '@/types/role'
|
|
|
import { anycallPage, updateTopFlag, type TRole } from '@/api/modules/anycallService'
|
|
|
import { formatDateGeneral } from '@/utils'
|
|
|
+import { toast } from 'vue-sonner'
|
|
|
|
|
|
const tableRef = ref()
|
|
|
|
|
|
@@ -120,7 +121,11 @@ function handleUploadSuccess(res:any, file: any) {
|
|
|
if(res.code === 0){
|
|
|
importedResult.value = res.data as {name: string, msg: string}[]
|
|
|
importedResultDialogVisible.value = true
|
|
|
+ return
|
|
|
}
|
|
|
+ toast.error('Error', {
|
|
|
+ description: res.msg || '导入失败',
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
|