Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chatGLM
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘坚-丰林-DEV
chatGLM
Commits
60c385dc
Commit
60c385dc
authored
May 09, 2023
by
liuxiaohui
Browse files
Options
Browse Files
Download
Plain Diff
merged master code
parents
5ea911e3
6284bf37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
excelTemplate.xlsx
...e/host/BBM.ChatGLM.HttpApi.Host/Excels/excelTemplate.xlsx
+0
-0
index.tsx
react/src/pages/UserManage/index.tsx
+19
-7
api.ts
react/src/services/chatGLM/api.ts
+1
-1
No files found.
aspnet-core/host/BBM.ChatGLM.HttpApi.Host/Excels/excelTemplate.xlsx
0 → 100644
View file @
60c385dc
File added
react/src/pages/UserManage/index.tsx
View file @
60c385dc
...
...
@@ -6,13 +6,26 @@ import {
postResetUser
,
postEditUser
,
postExcelFile
,
postDowload
postDowload
,
}
from
'@/services/chatGLM/api'
;
import
{
PlusOutlined
,
UploadOutlined
}
from
'@ant-design/icons'
;
import
type
{
ActionType
}
from
'@ant-design/pro-components'
;
import
{
PageContainer
}
from
'@ant-design/pro-components'
;
import
{
ProTable
}
from
'@ant-design/pro-components'
;
import
{
Button
,
Col
,
Divider
,
Form
,
Input
,
Modal
,
Radio
,
Row
,
Switch
,
message
,
Upload
,
Spin
}
from
'antd'
;
import
{
Button
,
Col
,
Divider
,
Form
,
Input
,
Modal
,
Radio
,
Row
,
Switch
,
message
,
Upload
,
Spin
,
}
from
'antd'
;
import
classNames
from
'classnames'
;
import
{
isEmpty
}
from
'lodash'
;
...
...
@@ -194,7 +207,6 @@ const UserManage = () => {
},
];
const
handleOk
=
()
=>
{
setIsModalAccountOpen
(
false
);
};
...
...
@@ -239,7 +251,7 @@ const UserManage = () => {
const
onHandleClickAccountFinish
=
(
values
:
any
)
=>
{
if
(
accountModalName
===
'添加账号'
)
{
alert
(
"2"
);
alert
(
'2'
);
createdAccount
(
values
);
}
if
(
accountModalName
===
'编辑账号'
)
{
...
...
@@ -305,7 +317,7 @@ const UserManage = () => {
setTimeout
(()
=>
{
setIsModalOpen
(
true
);
},
100
)
})
})
;
};
const
downloadExcelTemplate
=
()
=>
{
...
...
@@ -502,7 +514,7 @@ const UserManage = () => {
type=
"primary"
>
添加账号
</
Button
>
</
Button
>
,
]
}
/>
<
UserModal
isModalOpen=
{
isModalOpen
}
data=
{
users
}
onClose=
{
()
=>
{
setIsModalOpen
(
false
)
}
}
></
UserModal
>
...
...
@@ -510,4 +522,4 @@ const UserManage = () => {
);
};
export
default
UserManage
;
\ No newline at end of file
export
default
UserManage
;
react/src/services/chatGLM/api.ts
View file @
60c385dc
...
...
@@ -28,7 +28,7 @@ request.interceptors.request.use((url, options) => {
authHeader
=
{
Authorization
:
`Bearer
${
token
||
''
}
`
,
'Content-Type'
:
'application/json'
,
__tenant
:
'3a0a
d79d-bf4e-e9ec-4315-b9021cfacd
95'
,
__tenant
:
'3a0a
90fe-9a0d-70f4-200d-a80a41fb61
95'
,
};
}
return
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment