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
6bc00674
Commit
6bc00674
authored
Sep 03, 2025
by
ningjihai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发现梳理新增和编辑
parent
95bbf8b2
全部展开
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
72 行增加
和
19 行删除
+72
-19
src/api/discover/index.js
+37
-7
src/views/discover/Discover/addEditDiscovery.vue
+0
-0
src/views/discover/Discover/index.vue
+1
-1
src/views/discover/Discover/list.vue
+34
-11
src/views/discover/Discover/modules/SensitiveTypeDialog.vue
+0
-0
没有找到文件。
src/api/discover/index.js
View file @
6bc00674
...
@@ -29,16 +29,46 @@ export function querydatasystem(data) {
...
@@ -29,16 +29,46 @@ export function querydatasystem(data) {
})
})
}
}
export
function
isRepeatName
(
data
)
{
return
request
({
url
:
'/core/tdatadiscovery/isRepeatName'
,
method
:
'post'
,
data
:
data
})
}
export
function
getSchemaList
(
data
)
{
return
request
({
url
:
'/core/tdatadiscovery/getSchemaList'
,
method
:
'post'
,
data
:
data
})
}
export
function
queryTable
(
data
)
{
return
request
({
url
:
'/core/tdatadiscovery/queryTable'
,
method
:
'post'
,
data
:
data
})
}
// export function checkProjectNum(data) {
export
function
saveDiscoverTask
(
data
)
{
// return request({
return
request
({
// url: '/core/tdataproject/checkProjectNum',
url
:
'/core/tdatadiscovery/add'
,
// method: 'post',
method
:
'post'
,
// data: data
data
:
data
// })
})
// }
}
export
function
initEdit
(
taskid
)
{
return
request
({
url
:
'/core/tdatadiscovery/initEdit?taskid='
+
taskid
,
method
:
'get'
})
}
// export function getdatascopeprojectlist(data) {
// export function getdatascopeprojectlist(data) {
// return request({
// return request({
// url: '/core/datascopeproject/getdatascopeprojectlist',
// url: '/core/datascopeproject/getdatascopeprojectlist',
...
...
src/views/discover/Discover/addEditDiscovery.vue
View file @
6bc00674
差异被折叠。
点击展开。
src/views/discover/Discover/index.vue
View file @
6bc00674
<
script
setup
lang=
"ts"
name=
"
projectManage
Index"
>
<
script
setup
lang=
"ts"
name=
"
Discover
Index"
>
import
{
ref
}
from
'vue'
import
{
ref
}
from
'vue'
import
list
from
'./list.vue'
import
list
from
'./list.vue'
import
addEditDiscovery
from
'./addEditDiscovery.vue'
import
addEditDiscovery
from
'./addEditDiscovery.vue'
...
...
src/views/discover/Discover/list.vue
View file @
6bc00674
<
script
setup
name=
"
ProjectManage
List"
>
<
script
setup
name=
"
Discover
List"
>
import
{
getCurrentInstance
,
reactive
,
ref
,
toRefs
,
onMounted
}
from
'vue'
import
{
getCurrentInstance
,
reactive
,
ref
,
toRefs
,
onMounted
}
from
'vue'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
useRouter
}
from
'vue-router'
import
{
useRouter
,
useRoute
}
from
'vue-router'
import
useAppStore
from
'@/store/modules/app'
import
useAppStore
from
'@/store/modules/app'
import
usePermissionStore
from
'@/store/modules/permission'
import
usePermissionStore
from
'@/store/modules/permission'
import
{
changeRoute
}
from
'@/utils/switchRoute'
import
{
changeRoute
}
from
'@/utils/switchRoute'
...
@@ -17,7 +17,7 @@ import {
...
@@ -17,7 +17,7 @@ import {
}
from
'@/api/discover/index'
}
from
'@/api/discover/index'
const
route
=
useRoute
()
const
appStore
=
useAppStore
()
const
appStore
=
useAppStore
()
const
permissionStore
=
usePermissionStore
()
const
permissionStore
=
usePermissionStore
()
const
router
=
useRouter
()
const
router
=
useRouter
()
...
@@ -44,7 +44,7 @@ function onQuery() {
...
@@ -44,7 +44,7 @@ function onQuery() {
// 搜索按钮操作
// 搜索按钮操作
function
handleQuery
()
{
function
handleQuery
()
{
console
.
log
(
'queryParams'
,
queryParams
.
value
)
console
.
log
(
'queryParams'
,
queryParams
.
value
)
queryParams
.
value
.
page
Num
=
1
queryParams
.
value
.
page
no
=
1
getList
()
getList
()
}
}
// 表格数据
// 表格数据
...
@@ -114,7 +114,6 @@ function getList() {
...
@@ -114,7 +114,6 @@ function getList() {
tableData
.
value
=
[]
tableData
.
value
=
[]
loading
.
value
=
false
loading
.
value
=
false
console
.
log
(
err
)
console
.
log
(
err
)
ElMessage
.
error
(
res
.
msg
)
})
})
}
}
...
@@ -130,15 +129,39 @@ function pageProjectManage() {
...
@@ -130,15 +129,39 @@ function pageProjectManage() {
* 新增发现任务
* 新增发现任务
*/
*/
function
handleAdd
(){
function
handleAdd
(){
console
.
log
(
'新增发现任务'
)
console
.
log
(
'新增发现任务'
)
// addDiscoveryDialogRef.value.openDialog()
console
.
log
(
route
)
appStore
.
setQueryData
({
icon
:
route
.
meta
.
icon
,
type
:
'add'
});
emit
(
'page'
,
'addEditDiscovery'
,
{
listItem
:
null
,
addEditType
:
'add'
})
emit
(
'page'
,
'addEditDiscovery'
,
{
listItem
:
null
,
addEditType
:
'add'
})
}
}
// 操作处理函数
// 操作处理函数
const
handleEdit
=
(
row
)
=>
{
const
handleEdit
=
(
row
)
=>
{
console
.
log
(
'编辑:'
,
row
)
console
.
log
(
'编辑:'
,
row
)
addDiscoveryDialogRef
.
value
.
openDialog
(
row
)
ElMessage
.
info
(
`编辑任务:
${
row
.
taskName
}
`
)
appStore
.
setQueryData
({
type
:
'edit'
,
data
:
JSON
.
stringify
(
row
),
icon
:
route
.
meta
.
icon
,
breadPathData
:
[
{
path
:
route
.
path
,
label
:
route
.
meta
.
title
},
{
label
:
"发现配置"
}
]
});
emit
(
'page'
,
'addEditDiscovery'
,
{
listItem
:
row
,
addEditType
:
'edit'
})
}
}
const
handleDiscover
=
(
row
)
=>
{
const
handleDiscover
=
(
row
)
=>
{
...
@@ -410,8 +433,8 @@ const handleAddEditConfirm = (submitData, isEditMode) =>{
...
@@ -410,8 +433,8 @@ const handleAddEditConfirm = (submitData, isEditMode) =>{
<pagination
<pagination
v-show=
"total > 0"
v-show=
"total > 0"
:total=
"total"
:total=
"total"
v-model:page=
"queryParams.page
Num
"
v-model:page=
"queryParams.page
no
"
v-model:limit=
"queryParams.page
S
ize"
v-model:limit=
"queryParams.page
s
ize"
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
</div>
</div>
...
...
src/views/discover/Discover/modules/SensitiveTypeDialog.vue
View file @
6bc00674
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论