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
aa8466ec
Commit
aa8466ec
authored
Jan 05, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增服务增加菜单
parent
62162b2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
index.jsx
src/view/Manage/Model/index.jsx
+17
-4
No files found.
src/view/Manage/Model/index.jsx
View file @
aa8466ec
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Button
,
Space
,
Spin
,
Input
,
Select
,
Tooltip
}
from
'antd'
;
import
{
Button
,
Space
,
Spin
,
Input
,
Select
,
Tooltip
,
Dropdown
,
Menu
}
from
'antd'
;
import
copy
from
"copy-to-clipboard"
;
import
copy
from
"copy-to-clipboard"
;
import
{
CaretLeftOutlined
,
CaretRightOutlined
}
from
'@ant-design/icons'
;
import
{
CaretLeftOutlined
,
CaretRightOutlined
}
from
'@ant-design/icons'
;
import
{
ResizableBox
}
from
'react-resizable'
;
import
{
ResizableBox
}
from
'react-resizable'
;
...
@@ -570,9 +570,22 @@ class Model extends React.Component {
...
@@ -570,9 +570,22 @@ class Model extends React.Component {
{
{
currentView==='dir' && (getDataModelerRole(app?.user)!==DataModelerRoleReader) && !isOnlyEnding && <React.Fragment>
currentView==='dir' && (getDataModelerRole(app?.user)!==DataModelerRoleReader) && !isOnlyEnding && <React.Fragment>
<Space>
<Space>
<Button onClick={() => {
<Dropdown
app?.editServer?.({ dirId: catalogId })
overlay={
}}>新建</Button>
<Menu>
<Menu.Item onClick={() => {
app?.editServer?.({ dirId: catalogId, type: 'drag' });
}}>拖拉创建服务</Menu.Item>
<Menu.Item onClick={() => {
app?.editServer?.({ dirId: catalogId, type: 'sql' });
}}>自定义sql创建服务</Menu.Item>
</Menu>
}
placement="bottomLeft"
trigger={['click']}
>
<Button>新建</Button>
</Dropdown>
</Space>
</Space>
{/* <Space>
{/* <Space>
...
...
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