Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nse-ui
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
nse-ui
Commits
4aa8f32f
Commit
4aa8f32f
authored
Aug 27, 2025
by
周海峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c39e40ff
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
5 行删除
+17
-5
src/api/safetyManagement/userConfig.js
+10
-0
src/views/project/Project/DownloadPluginDialog.vue
+2
-2
src/views/safetyManagement/userConfig/index.vue
+5
-3
没有找到文件。
src/api/safetyManagement/userConfig.js
View file @
4aa8f32f
...
@@ -39,4 +39,13 @@ export function add(data) {
...
@@ -39,4 +39,13 @@ export function add(data) {
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
}
export
function
remove
(
data
)
{
return
request
({
url
:
'/console/user/del'
,
method
:
'post'
,
data
:
data
})
}
}
\ No newline at end of file
src/views/project/Project/DownloadPluginDialog.vue
View file @
4aa8f32f
...
@@ -150,7 +150,7 @@ const removeProjectConfig = (index) => {
...
@@ -150,7 +150,7 @@ const removeProjectConfig = (index) => {
// 下载网关插件
// 下载网关插件
const
downloadGatewayPlugin
=
()
=>
{
const
downloadGatewayPlugin
=
()
=>
{
window
.
open
(
gatewayConfig
.
value
.
url
+
`
/core/encryptionconfig/download?appProjectName='加密网关平台'&projectid=
${
props
.
projectId
}
&gatewayUrl=
${
gatewayConfig
.
value
.
url
}
&gatewayPort=
${
gatewayConfig
.
value
.
port
}
&appUrl=''&appPort=''`
)
window
.
open
(
`
${
gatewayConfig
.
value
.
url
}
:
${
gatewayConfig
.
value
.
port
}
/core/encryptionconfig/download?appProjectName='加密网关平台'&projectid=
${
props
.
projectId
}
&gatewayUrl=
${
gatewayConfig
.
value
.
url
}
&gatewayPort=
${
gatewayConfig
.
value
.
port
}
&appUrl=''&appPort=''`
)
// 实际项目中实现下载逻辑
// 实际项目中实现下载逻辑
}
}
...
@@ -162,7 +162,7 @@ const downloadProjectPlugin = (item,index) => {
...
@@ -162,7 +162,7 @@ const downloadProjectPlugin = (item,index) => {
return
return
}
}
window
.
open
(
gatewayConfig
.
value
.
url
+
`
/core/encryptionconfig/download?appProjectName=
${
item
.
name
}
&projectid=
${
props
.
projectId
}
&gatewayUrl=
${
gatewayConfig
.
value
.
url
}
&gatewayPort=
${
gatewayConfig
.
value
.
port
}
&appUrl=
${
item
.
url
}
&appPort=
${
item
.
port
}
`
)
window
.
open
(
`
${
gatewayConfig
.
value
.
url
}
:
${
gatewayConfig
.
value
.
port
}
/core/encryptionconfig/download?appProjectName=
${
item
.
name
}
&projectid=
${
props
.
projectId
}
&gatewayUrl=
${
gatewayConfig
.
value
.
url
}
&gatewayPort=
${
gatewayConfig
.
value
.
port
}
&appUrl=
${
item
.
url
}
&appPort=
${
item
.
port
}
`
)
}
}
// 确认操作
// 确认操作
...
...
src/views/safetyManagement/userConfig/index.vue
View file @
4aa8f32f
...
@@ -98,7 +98,7 @@ import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
...
@@ -98,7 +98,7 @@ import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
import
{
ElMessageBox
}
from
'element-plus'
import
{
ElMessageBox
}
from
'element-plus'
import
{
User
,
Delete
,
Edit
}
from
'@element-plus/icons-vue'
import
{
User
,
Delete
,
Edit
}
from
'@element-plus/icons-vue'
import
UserEdit
from
'./edit.vue'
import
UserEdit
from
'./edit.vue'
import
{
query
}
from
'@/api/safetyManagement/userConfig.js'
import
{
query
,
remove
}
from
'@/api/safetyManagement/userConfig.js'
// 定义组件名称
// 定义组件名称
defineOptions
({
defineOptions
({
...
@@ -160,12 +160,14 @@ const handlePageChange = (page) => {
...
@@ -160,12 +160,14 @@ const handlePageChange = (page) => {
}
}
// 删除用户
// 删除用户
const
handleDelete
=
(
row
)
=>
{
const
handleDelete
=
async
(
row
)
=>
{
ElMessageBox
.
confirm
(
'确认删除该用户吗?'
,
'提示'
,
{
ElMessageBox
.
confirm
(
'确认删除该用户吗?'
,
'提示'
,
{
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(
async
()
=>
{
// 调用删除接口
// 调用删除接口
console
.
log
(
'删除用户'
,
row
)
console
.
log
(
'删除用户'
,
row
)
await
remove
({
id
:
row
.
id
})
getList
()
}).
catch
(()
=>
{})
}).
catch
(()
=>
{})
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论