Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
zhaochengxiang
szse
Commits
0a1985b0
Commit
0a1985b0
authored
Jun 26, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型配置权限
parent
3638feac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
WordTemplate.jsx
src/view/Manage/ModelConfig/Component/WordTemplate.jsx
+9
-5
No files found.
src/view/Manage/ModelConfig/Component/WordTemplate.jsx
View file @
0a1985b0
...
...
@@ -105,10 +105,14 @@ const WordTemplate = (props) => {
},
]
}
>
<
Upload
{
...
uploadProps
}
>
<
Button
icon=
{
<
UploadOutlined
/>
}
>
<
Upload
disabled=
{
(
permissions
||
[]).
findIndex
(
item
=>
item
===
'选择文件上传'
)
===
-
1
}
{
...
uploadProps
}
>
<
PermissionButton
icon=
{
<
UploadOutlined
/>
}
permissionKey=
'选择文件上传'
permissions=
{
permissions
}
>
选择文件上传
</
Button
>
</
Permission
Button
>
</
Upload
>
</
Form
.
Item
>
</
Col
>
...
...
@@ -117,7 +121,7 @@ const WordTemplate = (props) => {
className=
'ml-3'
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
downloadTemplate
}
permissionKey=
'
编辑
'
permissionKey=
'
模板下载
'
permissions=
{
permissions
}
>
模版下载
...
...
@@ -130,7 +134,7 @@ const WordTemplate = (props) => {
type=
"primary"
htmlType=
"submit"
loading=
{
confirmLoading
}
permissionKey=
'
新增
'
permissionKey=
'
选择文件上传
'
permissions=
{
permissions
}
>
确定
...
...
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