Skip to content

Commit 2bb9a79

Browse files
committed
fix(User Management): After syncing all users in WeChat Work, delete the synced account; the data will no longer be displayed on the page.
1 parent b94a6bf commit 2bb9a79

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

frontend/src/views/system/user/User.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ const platformType = ref<any[]>([
706706
const refresh = (res: any) => {
707707
showTips(res.successCount, res.errorCount, res.dataKey)
708708
if (res.successCount) {
709-
search()
709+
handleCurrentChange(1)
710710
}
711711
}
712712
@@ -876,7 +876,8 @@ const clearFilter = (params?: number) => {
876876
const searchCondition = (conditions: any) => {
877877
state.conditions = conditions
878878
fillFilterText()
879-
search()
879+
handleCurrentChange(1)
880+
880881
drawerMainClose()
881882
}
882883
const drawerMainOpen = async () => {
@@ -957,7 +958,7 @@ const deleteBatchUser = () => {
957958
type: 'success',
958959
message: t('dashboard.delete_success'),
959960
})
960-
search()
961+
handleCurrentChange(1)
961962
})
962963
})
963964
}
@@ -975,7 +976,7 @@ const deleteHandler = (row: any) => {
975976
type: 'success',
976977
message: t('dashboard.delete_success'),
977978
})
978-
search()
979+
handleCurrentChange(1)
979980
})
980981
})
981982
}
@@ -1039,7 +1040,8 @@ const addTerm = () => {
10391040
.add({ account, email, name, oid, status, oid_list, system_variables: formatVariableValues() })
10401041
.then(() => {
10411042
onFormClose()
1042-
search()
1043+
handleCurrentChange(1)
1044+
10431045
ElMessage({
10441046
type: 'success',
10451047
message: t('common.save_success'),
@@ -1065,7 +1067,8 @@ const editTerm = () => {
10651067
})
10661068
.then(() => {
10671069
onFormClose()
1068-
search()
1070+
handleCurrentChange(1)
1071+
10691072
ElMessage({
10701073
type: 'success',
10711074
message: t('common.save_success'),
@@ -1193,7 +1196,8 @@ onMounted(() => {
11931196
options.value = res || []
11941197
filterOption.value[2].option = [...options.value]
11951198
})
1196-
search()
1199+
handleCurrentChange(1)
1200+
11971201
loadDefaultPwd()
11981202
})
11991203
const downErrorExcel = (dataKey: any) => {

0 commit comments

Comments
 (0)