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
81da7747
Commit
81da7747
authored
Aug 26, 2025
by
周海峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
794f775b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
36 行增加
和
14 行删除
+36
-14
src/constants/encryptFlag.js
+1
-1
src/views/classification/EncryptionManagement/list.vue
+35
-13
没有找到文件。
src/constants/encryptFlag.js
View file @
81da7747
...
@@ -11,7 +11,7 @@ const encryptFlag = [
...
@@ -11,7 +11,7 @@ const encryptFlag = [
{
value
:
'4'
,
label
:
'加密失败'
,
type
:
'danger'
},
{
value
:
'4'
,
label
:
'加密失败'
,
type
:
'danger'
},
{
value
:
'44'
,
label
:
'解密失败'
,
type
:
'danger'
},
{
value
:
'44'
,
label
:
'解密失败'
,
type
:
'danger'
},
// { value: '6', label: '解密完成' },
// { value: '6', label: '解密完成' },
{
value
:
'7'
,
label
:
'解密完成'
,
type
:
'
success
'
}
{
value
:
'7'
,
label
:
'解密完成'
,
type
:
'
danger
'
}
// { value: '9', label: '加密替换失败' },
// { value: '9', label: '加密替换失败' },
// { value: '10', label: '解密替换失败' },
// { value: '10', label: '解密替换失败' },
// { value: '11', label: '解密校验失败' },
// { value: '11', label: '解密校验失败' },
...
...
src/views/classification/EncryptionManagement/list.vue
View file @
81da7747
<
script
setup
name=
"ProjectManageList"
>
<
script
setup
name=
"ProjectManageList"
>
import
{
onMounted
,
reactive
,
ref
,
toRefs
}
from
'vue'
import
{
onMounted
,
onBeforeUnmount
,
reactive
,
ref
,
toRefs
,
watch
}
from
'vue'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
QueryForm
from
'./QueryForm.vue'
import
QueryForm
from
'./QueryForm.vue'
import
{
changeRoute
}
from
'@/utils/switchRoute'
import
{
changeRoute
}
from
'@/utils/switchRoute'
...
@@ -124,11 +124,7 @@ const bulkEncryption = async () => {
...
@@ -124,11 +124,7 @@ const bulkEncryption = async () => {
// 用户取消操作
// 用户取消操作
})
})
// ElMessage.success('批量加密成功')
setTimeout
(()
=>
{
getList
()
},
5000
);
// 5秒后刷新列表
}
}
/**
/**
...
@@ -147,15 +143,11 @@ const batchDecryption = async() => {
...
@@ -147,15 +143,11 @@ const batchDecryption = async() => {
operate
:
"1"
operate
:
"1"
}
}
loadingBatchTableParams
(
params
)
loadingBatchTableParams
(
params
)
// ElMessage.success('批量解密成功')
}
catch
(
error
)
{
}
catch
(
error
)
{
ElMessage
.
error
(
'批量解密失败,请稍后重试'
)
ElMessage
.
error
(
'批量解密失败,请稍后重试'
)
}
}
})
})
setTimeout
(()
=>
{
getList
()
},
5000
);
// 5秒后刷新列表
}
}
// 弹窗控制
// 弹窗控制
...
@@ -164,7 +156,7 @@ const detailData = ref({});
...
@@ -164,7 +156,7 @@ const detailData = ref({});
const
handleDetail
=
async
(
val
)
=>
{
const
handleDetail
=
async
(
val
)
=>
{
console
.
log
(
'查看详情'
,
val
);
console
.
log
(
'查看详情'
,
val
);
const
params
=
{
const
params
=
{
project
i
d
:
sessionStorage
.
getItem
(
'projectId'
),
project
I
d
:
sessionStorage
.
getItem
(
'projectId'
),
columnName
:
val
.
table_field_id
,
columnName
:
val
.
table_field_id
,
dataSystemId
:
val
.
datasystem_id
,
dataSystemId
:
val
.
datasystem_id
,
schema
:
val
.
tschemas
,
schema
:
val
.
tschemas
,
...
@@ -234,9 +226,39 @@ const getFlagName = (flag) => {
...
@@ -234,9 +226,39 @@ const getFlagName = (flag) => {
return
found
?
found
:
{}
return
found
?
found
:
{}
}
}
let
pollingInterval
=
null
;
onMounted
(()
=>
{
onMounted
(()
=>
{
getList
()
getList
()
})
pollingInterval
=
setInterval
(()
=>
{
getList
();
},
5000
);
// Poll every 5 seconds
});
onBeforeUnmount
(()
=>
{
if
(
pollingInterval
)
{
clearInterval
(
pollingInterval
);
}
});
/**
* 详情弹窗轮询
*/
let
detailPollingInterval
=
null
;
watch
(
dialogVisible
,
(
newVal
)
=>
{
if
(
newVal
)
{
detailPollingInterval
=
setInterval
(()
=>
{
if
(
detailData
.
value
.
params
)
{
handleDetail
(
detailData
.
value
.
row
);
}
},
5000
);
// Poll every 5 seconds
}
else
{
if
(
detailPollingInterval
)
{
clearInterval
(
detailPollingInterval
);
detailPollingInterval
=
null
;
}
}
});
</
script
>
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论