posX = 0} onMouseMove={handleMouseMove}>
@@ -245,7 +247,7 @@ function WebSSH(props) {
style={{background: '#fff', width: `calc(100vw - ${width}px)`}}
tabBarExtraContent={hosts.length === 0 ? (
小提示:双击标签快速复制窗口,右击标签展开更多操作。
- ) : (
+ ) : sshMode ? (
}>文件管理器
- )}>
+ ) : null}>
{hosts.map(item => (
}>
-
+ {sshMode ? (
+
+ ) : (
+
+
+
+ )}
))}
{hosts.length === 0 && (
-
{spug_web_terminal}
+
{spug_web_terminal}
)}
-
setVisible(false)}/>
+ setVisible(false)}>
+
+
) : (
diff --git a/spug_web/src/pages/ssh/index.module.less b/spug_web/src/pages/ssh/index.module.less
index cd04815..080b132 100644
--- a/spug_web/src/pages/ssh/index.module.less
+++ b/spug_web/src/pages/ssh/index.module.less
@@ -75,6 +75,16 @@
border-radius: 6px;
}
+ .fig2 {
+ flex: 1;
+ background-color: #fff;
+ color: #2b2b2b;
+ margin: 12px;
+ padding-top: 200px;
+ text-align: center;
+ border-radius: 6px;
+ }
+
.tabRender {
user-select: none;
padding: 8px 8px 8px 16px;
@@ -82,6 +92,14 @@
color: #2563fc;
}
+ .fileManger {
+ margin: 12px;
+ padding: 12px;
+ border-radius: 6px;
+ background: #fff;
+ height: calc(100vh - 66px);
+ }
+
:global(.ant-tabs-nav) {
height: 42px;
margin: 0;
@@ -124,6 +142,12 @@
padding-right: 24px !important;
}
+.drawerContainer {
+ :global(.ant-drawer-body) {
+ padding: 10px 16px;
+ }
+}
+
.drawerHeader {
display: flex;
justify-content: space-between;
diff --git a/spug_web/src/pages/system/role/codes.js b/spug_web/src/pages/system/role/codes.js
index 0b61512..d834c66 100644
--- a/spug_web/src/pages/system/role/codes.js
+++ b/spug_web/src/pages/system/role/codes.js
@@ -29,8 +29,8 @@ export default [{
key: 'console',
label: 'Web终端',
perms: [
- {key: 'view', label: '使用Web终端'},
- {key: 'list', label: '查看文件'},
+ {key: 'view', label: 'Web终端'},
+ {key: 'list', label: '文件管理'},
{key: 'upload', label: '上传文件'},
{key: 'del', label: '删除文件'},
]