File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed
frontend/src/views/system/user Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change 2323 </template >
2424 {{ $t('user.filter') }}
2525 </el-button >
26- <el-button secondary @click =" handleUserImport" >
26+ <!-- < el-button secondary @click="handleUserImport">
2727 <template #icon>
2828 <ccmUpload></ccmUpload>
2929 </template>
3030 {{ $t('user.batch_import') }}
31- </el-button >
31+ </el-button> -->
3232 <el-button type =" primary" @click =" editHandler(null)" >
3333 <template #icon >
3434 <icon _add_outlined ></icon _add_outlined >
@@ -573,20 +573,14 @@ const deleteHandler = (row: any) => {
573573 customClass: ' confirm-no_icon' ,
574574 autofocus: false ,
575575 }).then (() => {
576- multipleSelectionAll .value = multipleSelectionAll .value .filter ((ele ) => ele .id !== row .id )
577- ElMessage ({
578- type: ' success' ,
579- message: t (' dashboard.delete_success' ),
576+ userApi .delete (row .id ).then (() => {
577+ multipleSelectionAll .value = multipleSelectionAll .value .filter ((ele ) => ele .id !== row .id )
578+ ElMessage ({
579+ type: ' success' ,
580+ message: t (' dashboard.delete_success' ),
581+ })
582+ search ()
580583 })
581- search ()
582- // userApi.delete(row.id).then(() => {
583- // multipleSelectionAll.value = multipleSelectionAll.value.filter((ele) => ele.id !== row.id)
584- // ElMessage({
585- // type: 'success',
586- // message: t('dashboard.delete_success'),
587- // })
588- // search()
589- // })
590584 })
591585}
592586
You can’t perform that action at this time.
0 commit comments