Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
achievements-system-front
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 952bfdbd
authored
Jun 13, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
b6f7380a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
src/views/Classify/index.tsx
src/views/Emp/index.tsx
src/views/Grade/index.tsx
src/views/Classify/index.tsx
View file @
952bfdb
...
@@ -56,12 +56,12 @@ const User = () => {
...
@@ -56,12 +56,12 @@ const User = () => {
};
};
// 搜索
// 搜索
const handleSearch = (values: any) => {
const handleSearch = (values: any) => {
setParams((state: any) => ({ ...state, ...values }));
setParams((state: any) => ({ ...state, ...values
, pageNum: 1
}));
};
};
// 翻页
// 翻页
const handlePagination = (pageNum
ber
: number, pageSize?: number) => {
const handlePagination = (pageNum: number, pageSize?: number) => {
setParams((state: any) => ({ ...state, pageNum
ber
, pageSize: pageSize! }));
setParams((state: any) => ({ ...state, pageNum, pageSize: pageSize! }));
};
};
// 新增或编辑
// 新增或编辑
...
...
src/views/Emp/index.tsx
View file @
952bfdb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-03-06 16:20:09
* @Date: 2023-03-06 16:20:09
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-
09 16:19:2
7
* @LastEditTime: 2023-06-
13 18:41:4
7
* @FilePath: \achievements-system-front\src\views\Emp\index.tsx
* @FilePath: \achievements-system-front\src\views\Emp\index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -82,7 +82,7 @@ const User = () => {
...
@@ -82,7 +82,7 @@ const User = () => {
}
}
};
};
// 搜索
// 搜索
const handleSearch = (values: any) => {
const handleSearch = (values: any
,
) => {
if (values.time) {
if (values.time) {
values.startTime = dayjs(values.time[0]).format("YYYY-MM-DD");
values.startTime = dayjs(values.time[0]).format("YYYY-MM-DD");
values.endTime = dayjs(values.time[1]).format("YYYY-MM-DD");
values.endTime = dayjs(values.time[1]).format("YYYY-MM-DD");
...
@@ -91,7 +91,7 @@ const User = () => {
...
@@ -91,7 +91,7 @@ const User = () => {
values.startTime = "";
values.startTime = "";
values.endTime = "";
values.endTime = "";
}
}
setParams((state: any) => ({ ...state, ...values }));
setParams((state: any) => ({ ...state, ...values
,pageNum: 1
}));
};
};
const changeTime = (value: any) => {
const changeTime = (value: any) => {
setParams((state: any) => ({ ...state, ...formatTime(value) }));
setParams((state: any) => ({ ...state, ...formatTime(value) }));
...
@@ -132,8 +132,8 @@ const User = () => {
...
@@ -132,8 +132,8 @@ const User = () => {
util.downFile(url, "员工信息.xlsx");
util.downFile(url, "员工信息.xlsx");
}, [search]);
}, [search]);
// 翻页
// 翻页
const handlePagination = (pageNum
ber
: number, pageSize?: number) => {
const handlePagination = (pageNum: number, pageSize?: number) => {
setParams((state: any) => ({ ...state, pageNum
ber
, pageSize: pageSize! }));
setParams((state: any) => ({ ...state, pageNum, pageSize: pageSize! }));
};
};
// 新增或编辑
// 新增或编辑
...
...
src/views/Grade/index.tsx
View file @
952bfdb
...
@@ -66,7 +66,7 @@ const User = () => {
...
@@ -66,7 +66,7 @@ const User = () => {
values.endTime = "";
values.endTime = "";
}
}
console.log(values);
console.log(values);
setParams((state: any) => ({ ...state, ...values }));
setParams((state: any) => ({ ...state, ...values
, pageNum: 1
}));
};
};
// 翻页
// 翻页
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment