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
324b045b
Commit
324b045b
authored
Sep 11, 2025
by
ningjihai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加密校验
parent
1bb0d687
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
350 行增加
和
0 行删除
+350
-0
src/api/verification/index.js
+165
-0
src/views/classification/Verification/TreeFilter.vue
+185
-0
src/views/classification/Verification/index.vue
+0
-0
没有找到文件。
src/api/verification/index.js
0 → 100644
View file @
324b045b
import
request
from
'@/utils/request'
/**
* 发现梳理列表
* @param {*} query
* @returns
*/
export
function
getGlobalOriginalConfig
(
data
)
{
return
request
({
url
:
'/console/user/getGlobalOriginalConfig'
,
method
:
'post'
,
data
:
data
})
}
export
function
queryDatasystemInfo
(
data
)
{
return
request
({
url
:
'/core/digestmain/queryDatasystemInfo'
,
method
:
'post'
,
data
:
data
})
}
export
function
querytableInfo
(
data
)
{
return
request
({
url
:
'/core/digestmain/querytableInfo'
,
method
:
'post'
,
data
:
data
})
}
export
function
getfield
(
data
)
{
return
request
({
url
:
'/core/digestmain/getfield'
,
method
:
'post'
,
data
:
data
})
}
export
function
save
(
data
)
{
return
request
({
url
:
'/core/digestmain/save'
,
method
:
'post'
,
data
:
data
})
}
export
function
generatedigest
(
data
)
{
return
request
({
url
:
'/core/digestmain/generatedigest'
,
method
:
'post'
,
data
:
data
})
}
export
function
checkdigest
(
data
)
{
return
request
({
url
:
'/core/digestmain/checkdigest'
,
method
:
'post'
,
data
:
data
})
}
// export function initEdit(taskid) {
// return request({
// url: '/core/tdatadiscovery/initEdit?taskid=' + taskid,
// method: 'get'
// })
// }
export
function
deletedigest
(
data
)
{
return
request
({
url
:
'/core/digestmain/deletedigest'
,
method
:
'post'
,
data
:
data
})
}
// export function executetask(data) {
// return request({
// url: '/core/discoverytask/executetask',
// method: 'post',
// data: data
// })
// }
// export function tdataMonitorQuery(query) {
// return request({
// url: '/core/tdataMonitor/query',
// method: 'get',
// params: query
// })
// }
// export function getdiscoverresultreport(query) {
// return request({
// url: '/core/tdiscoverresult/getdiscoverresultreport',
// method: 'get',
// params: query
// })
// }
// export function getarearule(query) {
// return request({
// url: '/core/tdiscoverresult/getarearule',
// method: 'get',
// params: query
// })
// }
// export function initExecute(query) {
// return request({
// url: '/core/tdatadiscovery/initExecute',
// method: 'get',
// params: query
// })
// }
// export function tdiscoverresultQuery(data) {
// return request({
// url: '/core/tdiscoverresult/query',
// method: 'post',
// data: data
// })
// }
// export function discoverresultsure(data) {
// return request({
// url: '/core/tdiscoverresult/discoverresultsure',
// method: 'post',
// data: data
// })
// }
// export function discoverchangerule(data) {
// return request({
// url: '/core/tdiscoverresult/discoverchangerule',
// method: 'post',
// data: data
// })
// }
// export function showmatchrate(data) {
// return request({
// url: '/core/tdiscoverresult/showmatchrate',
// method: 'post',
// data: data
// })
// }
// export function saveedition(data) {
// return request({
// url: '/core/tdiscoverresult/saveedition',
// method: 'post',
// data: data
// })
// }
// export function download(query) {
// return request({
// url: '/core/tdiscoverresult/download',
// method: 'get',
// params: query,
// responseType: 'blob' //
// })
// }
src/views/classification/Verification/TreeFilter.vue
0 → 100644
View file @
324b045b
<
template
>
<div
class=
"tree-filter-container"
>
<!-- 搜索框 -->
<div
class=
"search-box"
>
<el-input
v-model=
"filterText"
placeholder=
"输入关键字过滤"
clearable
prefix-icon=
"el-icon-search"
/>
</div>
<!-- 树形结构 -->
<el-tree
ref=
"treeRef"
class=
"filter-tree"
:data=
"treeData"
:props=
"defaultProps"
:filter-node-method=
"filterNode"
:expand-on-click-node=
"false"
node-key=
"id"
highlight-current
@
node-click=
"handleNodeClick"
>
<template
#
default=
"
{ node, data }">
<span
class=
"custom-tree-node"
>
<i
class=
"iconfont node-icon"
v-html=
"data.icon.text"
:style=
"`color: $
{data.icon.color};`">
</i>
<span>
{{
node
.
label
}}
</span>
<template
v-if=
"data.type === 'category'"
>
<i
class=
"el-icon-collection icon-category"
style=
"margin-left:6px;color:#F7BA2A;font-size:16px;"
></i>
</
template
>
<
template
v-if=
"data.type === 'system'"
>
<i
class=
"el-icon-s-platform icon-system"
style=
"margin-left:6px;color:#409EFF;font-size:16px;"
></i>
</
template
>
<
template
v-if=
"data.type === 'database'"
>
<i
class=
"el-icon-s-data icon-database"
style=
"margin-left:6px;color:#67C23A;font-size:16px;"
></i>
</
template
>
<
template
v-if=
"data.type === 'table'"
>
<i
class=
"el-icon-s-grid icon-table"
style=
"margin-left:6px;color:#E6A23C;font-size:16px;"
></i>
</
template
>
</span>
</template>
</el-tree>
</div>
</template>
<
script
setup
>
import
{
ref
,
watch
}
from
'vue'
const
emit
=
defineEmits
([
'node-click'
])
const
props
=
defineProps
({
treeData
:
{
type
:
Array
,
default
:
()
=>
[
{
id
:
'system'
,
label
:
'若依配测系统'
,
type
:
'system'
,
children
:
[
{
id
:
'database'
,
label
:
'ry'
,
type
:
'database'
,
children
:
[
{
id
:
'tables'
,
label
:
'表'
,
type
:
'category'
,
children
:
[
{
id
:
'gen_table'
,
label
:
'gen_table'
,
type
:
'table'
},
{
id
:
'gen_table_column'
,
label
:
'gen_table_column'
,
type
:
'table'
},
{
id
:
'sys_config'
,
label
:
'sys_config'
,
type
:
'table'
},
{
id
:
'sys_dept'
,
label
:
'sys_dept'
,
type
:
'table'
},
{
id
:
'sys_dict_data'
,
label
:
'sys_dict_data'
,
type
:
'table'
},
{
id
:
'sys_dict_type'
,
label
:
'sys_dict_type'
,
type
:
'table'
},
{
id
:
'sys_job'
,
label
:
'sys_job'
,
type
:
'table'
},
{
id
:
'sys_job_log'
,
label
:
'sys_job_log'
,
type
:
'table'
},
{
id
:
'sys_logininfor'
,
label
:
'sys_logininfor'
,
type
:
'table'
},
{
id
:
'sys_menu'
,
label
:
'sys_menu'
,
type
:
'table'
},
{
id
:
'sys_notice'
,
label
:
'sys_notice'
,
type
:
'table'
},
{
id
:
'sys_oper_log'
,
label
:
'sys_oper_log'
,
type
:
'table'
},
{
id
:
'sys_post'
,
label
:
'sys_post'
,
type
:
'table'
},
{
id
:
'sys_role'
,
label
:
'sys_role'
,
type
:
'table'
},
{
id
:
'sys_role_dept'
,
label
:
'sys_role_dept'
,
type
:
'table'
},
{
id
:
'sys_role_menu'
,
label
:
'sys_role_menu'
,
type
:
'table'
},
{
id
:
'sys_user'
,
label
:
'sys_user'
,
type
:
'table'
},
{
id
:
'sys_user_online'
,
label
:
'sys_user_online'
,
type
:
'table'
},
{
id
:
'sys_user_post'
,
label
:
'sys_user_post'
,
type
:
'table'
},
{
id
:
'sys_user_role'
,
label
:
'sys_user_role'
,
type
:
'table'
}
]
}
]
}
]
}
]
}
})
const
filterText
=
ref
(
''
)
const
treeRef
=
ref
(
null
)
const
defaultProps
=
{
children
:
'children'
,
label
:
'label'
}
// 根据节点类型获取图标
const
getNodeIcon
=
(
type
)
=>
{
const
iconMap
=
{
system
:
'el-icon-s-platform'
,
database
:
'el-icon-s-data'
,
category
:
'el-icon-folder-opened'
,
table
:
'el-icon-s-grid'
}
return
iconMap
[
type
]
||
'el-icon-document'
}
// 过滤树节点
const
filterNode
=
(
value
,
data
)
=>
{
if
(
!
value
)
return
true
return
data
.
label
.
toLowerCase
().
includes
(
value
.
toLowerCase
())
}
// 监听过滤文本变化
watch
(
filterText
,
(
val
)
=>
{
treeRef
.
value
.
filter
(
val
)
})
// 节点点击事件
const
handleNodeClick
=
(
data
)
=>
{
emit
(
'node-click'
,
data
)
}
</
script
>
<
style
scoped
>
.tree-filter-container
{
/* max-height: 700px; */
overflow-y
:
auto
;
width
:
100%
;
height
:
100%
;
/* background-color: #f5f5f5; */
padding
:
10px
;
border-right
:
1px
solid
#e6e6e6
;
}
.search-box
{
margin-bottom
:
10px
;
}
.filter-tree
{
background-color
:
transparent
;
}
.custom-tree-node
{
flex
:
1
;
display
:
flex
;
align-items
:
center
;
font-size
:
14px
;
}
.node-icon
{
margin-right
:
6px
;
color
:
#606266
;
}
.icon-category
{
vertical-align
:
middle
;
}
.icon-system
{
vertical-align
:
middle
;
}
.icon-database
{
vertical-align
:
middle
;
}
.icon-table
{
vertical-align
:
middle
;
}
:deep
(
.el-tree-node__content
)
{
height
:
36px
;
}
</
style
>
\ No newline at end of file
src/views/classification/Verification/index.vue
0 → 100644
View file @
324b045b
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论