@@ -706,7 +706,7 @@ const platformType = ref<any[]>([
706706const 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) => {
876876const searchCondition = (conditions : any ) => {
877877 state .conditions = conditions
878878 fillFilterText ()
879- search ()
879+ handleCurrentChange (1 )
880+
880881 drawerMainClose ()
881882}
882883const 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})
11991203const downErrorExcel = (dataKey : any ) => {
0 commit comments