Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
1278a79b
Commit
1278a79b
authored
Nov 20, 2024
by
baiyinhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改流程中心并配置路由
parent
1c0c823c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
101 additions
and
43 deletions
+101
-43
index.ts
src/router/routes/index.ts
+36
-6
addRuleModal.vue
...dataQuality/dataSheet/task/qualityReport/addRuleModal.vue
+11
-11
data.ts
src/views/dataQuality/dataSheet/task/qualityReport/data.ts
+28
-1
detailModal.vue
.../dataQuality/dataSheet/task/qualityReport/detailModal.vue
+11
-1
noti.data.ts
src/views/notifications/noticeManage/noti.data.ts
+3
-2
index.vue
src/views/processCenter/detailsTab2/index.vue
+0
-0
index.vue
src/views/processCenter/detailsTab3/index.vue
+0
-0
index.vue
src/views/processCenter/index.vue
+12
-22
No files found.
src/router/routes/index.ts
View file @
1278a79b
...
@@ -59,6 +59,37 @@ export const DictRoute: AppRouteRecordRaw = {
...
@@ -59,6 +59,37 @@ export const DictRoute: AppRouteRecordRaw = {
},
},
],
],
};
};
//11/20 13点23分 流程中心相关路由
export
const
processCenterRoute
:
AppRouteRecordRaw
=
{
path
:
'/processCenter'
,
name
:
'processCenter'
,
component
:
LAYOUT
,
meta
:
{
title
:
'流程中心'
,
icon
:
''
,
currentActiveMenu
:
'/processCenter/index'
,
},
children
:
[
{
path
:
'/processCenter/detailsTab2'
,
name
:
'detailsTab2'
,
component
:
()
=>
import
(
'@/views/processCenter/detailsTab2/index.vue'
),
meta
:
{
title
:
'发起事项详情页面'
,
icon
:
''
,
},
},
{
path
:
'/processCenter/detailsTab3'
,
name
:
'detailsTab3'
,
component
:
()
=>
import
(
'@/views/processCenter/detailsTab3/index.vue'
),
meta
:
{
title
:
'已办事项详情页面'
,
icon
:
''
,
},
},
],
};
export
const
mainBodyRoute
:
AppRouteRecordRaw
=
{
export
const
mainBodyRoute
:
AppRouteRecordRaw
=
{
path
:
'/mainBody'
,
path
:
'/mainBody'
,
name
:
'mainBody'
,
name
:
'mainBody'
,
...
@@ -216,8 +247,7 @@ export const DataWarehousePlanningRoute: AppRouteRecordRaw = {
...
@@ -216,8 +247,7 @@ export const DataWarehousePlanningRoute: AppRouteRecordRaw = {
{
{
path
:
'logicalModel/upload'
,
path
:
'logicalModel/upload'
,
name
:
'upload'
,
name
:
'upload'
,
component
:
()
=>
component
:
()
=>
import
(
'@/views/dataWarehousePlanning/logicalModel/upload/index.vue'
),
import
(
'@/views/dataWarehousePlanning/logicalModel/upload/index.vue'
),
meta
:
{
meta
:
{
title
:
'申请发布'
,
title
:
'申请发布'
,
icon
:
''
,
icon
:
''
,
...
@@ -272,9 +302,7 @@ export const DataWarehousephysicalModelRoute: AppRouteRecordRaw = {
...
@@ -272,9 +302,7 @@ export const DataWarehousephysicalModelRoute: AppRouteRecordRaw = {
path
:
'physicalModel/assetRelate'
,
path
:
'physicalModel/assetRelate'
,
name
:
'assetER'
,
name
:
'assetER'
,
component
:
()
=>
component
:
()
=>
import
(
import
(
'@/views/dataWarehousePlanning/physicalModel/modelDetail/assetRelation/assetER.vue'
),
'@/views/dataWarehousePlanning/physicalModel/modelDetail/assetRelation/assetER.vue'
),
meta
:
{
meta
:
{
title
:
'资产关系图谱'
,
title
:
'资产关系图谱'
,
icon
:
''
,
icon
:
''
,
...
@@ -292,7 +320,8 @@ export const DataWarehousephysicalModelRoute: AppRouteRecordRaw = {
...
@@ -292,7 +320,8 @@ export const DataWarehousephysicalModelRoute: AppRouteRecordRaw = {
{
{
path
:
'physicalModel/versionManage'
,
path
:
'physicalModel/versionManage'
,
name
:
'versionManage'
,
name
:
'versionManage'
,
component
:
()
=>
import
(
'@/views/dataWarehousePlanning/physicalModel/modelDetail/versionIndex.vue'
),
component
:
()
=>
import
(
'@/views/dataWarehousePlanning/physicalModel/modelDetail/versionIndex.vue'
),
meta
:
{
meta
:
{
title
:
'版本对比'
,
title
:
'版本对比'
,
icon
:
''
,
icon
:
''
,
...
@@ -710,4 +739,5 @@ export const basicRoutes = [
...
@@ -710,4 +739,5 @@ export const basicRoutes = [
DataWarehousephysicalModelRoute
,
DataWarehousephysicalModelRoute
,
PAGE_NOT_FOUND_ROUTE
,
PAGE_NOT_FOUND_ROUTE
,
QualityRuleRoute
,
QualityRuleRoute
,
processCenterRoute
,
];
];
src/views/dataQuality/dataSheet/task/qualityReport/
r
uleModal.vue
→
src/views/dataQuality/dataSheet/task/qualityReport/
addR
uleModal.vue
View file @
1278a79b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
:title=
"title"
:title=
"title"
@
ok=
"handleSubmit"
@
ok=
"handleSubmit"
>
>
<Basic
Form
@
register=
"registerForm
"
/>
<Basic
Table
@
register=
"registerTable
"
/>
</BasicModal>
</BasicModal>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
recommendData
}
from
'@/views/metadata/metadataData'
;
import
{
recommendData
}
from
'@/views/metadata/metadataData'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
ruleSchema
}
from
'./data'
;
import
{
addRuleColumns
}
from
'./data'
;
import
{
BasicTable
,
useTable
}
from
'@/components/Table'
;
defineOptions
({
name
:
'KnowledgeModal'
});
defineOptions
({
name
:
'KnowledgeModal'
});
...
@@ -25,21 +26,20 @@
...
@@ -25,21 +26,20 @@
const
tableData
=
ref
([]);
const
tableData
=
ref
([]);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
ruleSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
//初始化弹框
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
await
resetFields
();
await
resetFields
();
setModalProps
({
confirmLoading
:
false
});
setModalProps
({
confirmLoading
:
false
});
title
.
value
=
data
.
title
;
title
.
value
=
data
.
title
;
});
});
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
}]
=
useTable
({
columns
:
addRuleColumns
,
dataSource
:
tableData
,
rowSelection
:
{
type
:
'checkbox'
,
},
});
async
function
handleSubmit
()
{
async
function
handleSubmit
()
{
closeModal
();
closeModal
();
...
...
src/views/dataQuality/dataSheet/task/qualityReport/data.ts
View file @
1278a79b
import
{
BasicColumn
,
FormSchema
}
from
'@/components/Table'
;
import
{
BasicColumn
,
FormSchema
}
from
'@/components/Table'
;
import
{
DescItem
}
from
'@/components/Description'
;
import
{
DescItem
}
from
'@/components/Description'
;
import
{
c
}
from
'node_modules/vite/dist/node/types.d-aGj9QkWt'
;
import
{
h
}
from
'vue'
;
import
{
Switch
}
from
'ant-design-vue'
;
export
const
columns
:
BasicColumn
[]
=
[
export
const
columns
:
BasicColumn
[]
=
[
{
{
...
@@ -94,6 +95,32 @@ export const modEditColumns: BasicColumn[] = [
...
@@ -94,6 +95,32 @@ export const modEditColumns: BasicColumn[] = [
width
:
120
,
width
:
120
,
},
},
];
];
export
const
addRuleColumns
:
BasicColumn
[]
=
[
{
title
:
'字段'
,
dataIndex
:
'field'
,
width
:
120
,
},
{
title
:
'展示项配置'
,
dataIndex
:
'showConfig'
,
width
:
120
,
},
{
title
:
'搜索项配置'
,
dataIndex
:
'searchConfig'
,
width
:
120
,
customRender
:
({
text
,
record
})
=>
{
const
handleSwitchChange
=
(
checked
)
=>
{
record
.
searchConfig
=
checked
;
};
return
h
(
Switch
,
{
checked
:
record
.
searchConfig
,
onChange
:
handleSwitchChange
,
});
},
},
];
export
const
ruleSchema
:
FormSchema
[]
=
[
export
const
ruleSchema
:
FormSchema
[]
=
[
{
{
field
:
'path'
,
field
:
'path'
,
...
...
src/views/dataQuality/dataSheet/task/qualityReport/detailModal.vue
View file @
1278a79b
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<a-button
type=
"primary"
@
click=
"handleAddWhite"
v-if=
"isWhite"
<a-button
type=
"primary"
@
click=
"handleAddWhite"
v-if=
"isWhite"
>
添加问题数据到白名单
</a-button
>
添加问题数据到白名单
</a-button
>
>
<a-button
type=
"primary"
@
click=
"
reload
"
>
设置问题规则
</a-button>
<a-button
type=
"primary"
@
click=
"
handleSetRule
"
>
设置问题规则
</a-button>
</
template
>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'status'"
>
<template
v-if=
"column.key === 'status'"
>
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
<BasicTable @register="registerKafkaTable" /> -->
<BasicTable @register="registerKafkaTable" /> -->
</BasicModal>
</BasicModal>
<whiteListModal
@
register=
"registerWhiteListModal"
/>
<whiteListModal
@
register=
"registerWhiteListModal"
/>
<addRuleModal
@
register=
"registerAddRuleModal"
/>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
onMounted
,
ref
}
from
'vue'
;
import
{
onMounted
,
ref
}
from
'vue'
;
...
@@ -46,6 +47,7 @@
...
@@ -46,6 +47,7 @@
import
{
useForm
,
BasicForm
}
from
'@/components/Form'
;
import
{
useForm
,
BasicForm
}
from
'@/components/Form'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
whiteListModal
from
'./modEditModal.vue'
;
import
whiteListModal
from
'./modEditModal.vue'
;
import
addRuleModal
from
'./addRuleModal.vue'
;
defineOptions
({
name
:
'KnowledgeModal'
});
defineOptions
({
name
:
'KnowledgeModal'
});
...
@@ -58,6 +60,7 @@
...
@@ -58,6 +60,7 @@
registerWhiteListModal
,
registerWhiteListModal
,
{
setModalProps
:
setWhiteListModalProps
,
openModal
:
openWhiteListModal
},
{
setModalProps
:
setWhiteListModalProps
,
openModal
:
openWhiteListModal
},
]
=
useModal
();
]
=
useModal
();
const
[
registerAddRuleModal
,
{
openModal
:
openAddRuleModal
}]
=
useModal
();
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
//初始化表单
const
[
registerTable
,
{
reload
,
getForm
,
getRowSelection
}]
=
useTable
({
const
[
registerTable
,
{
reload
,
getForm
,
getRowSelection
}]
=
useTable
({
...
@@ -100,6 +103,7 @@
...
@@ -100,6 +103,7 @@
setModalProps
({
confirmLoading
:
false
});
setModalProps
({
confirmLoading
:
false
});
title
.
value
=
data
.
title
;
title
.
value
=
data
.
title
;
});
});
const
[
registerKafkaTable
]
=
useTable
({
const
[
registerKafkaTable
]
=
useTable
({
dataSource
:
KafkaData
,
dataSource
:
KafkaData
,
columns
:
KafkaColumns
,
columns
:
KafkaColumns
,
...
@@ -107,6 +111,7 @@
...
@@ -107,6 +111,7 @@
showIndexColumn
:
false
,
showIndexColumn
:
false
,
scroll
:
{
y
:
300
},
scroll
:
{
y
:
300
},
});
});
const
[
registerForm
]
=
useForm
({
const
[
registerForm
]
=
useForm
({
labelWidth
:
100
,
labelWidth
:
100
,
schemas
:
detailModalSchema
,
schemas
:
detailModalSchema
,
...
@@ -120,6 +125,11 @@
...
@@ -120,6 +125,11 @@
function
handleAddWhite
()
{
function
handleAddWhite
()
{
openWhiteListModal
(
true
,
{});
openWhiteListModal
(
true
,
{});
}
}
//设置问题规则
function
handleSetRule
()
{
openAddRuleModal
(
true
,
{});
}
onMounted
(()
=>
{
onMounted
(()
=>
{
tableData
.
value
=
detailHookData
;
tableData
.
value
=
detailHookData
;
});
});
...
...
src/views/notifications/noticeManage/noti.data.ts
View file @
1278a79b
...
@@ -292,13 +292,14 @@ export const formSchema: FormSchema[] = [
...
@@ -292,13 +292,14 @@ export const formSchema: FormSchema[] = [
{
{
field
:
'message'
,
field
:
'message'
,
label
:
'收件人'
,
label
:
'收件人'
,
component
:
'
CheckboxGroup
'
,
component
:
'
Select
'
,
colProps
:
{
span
:
12
},
colProps
:
{
span
:
12
},
componentProps
:
{
componentProps
:
{
defaultValue
:
[
'1'
]
,
mode
:
'multiple'
,
options
:
[
options
:
[
{
label
:
'收件人1'
,
value
:
'1'
},
{
label
:
'收件人1'
,
value
:
'1'
},
{
label
:
'收件人2'
,
value
:
'2'
},
{
label
:
'收件人2'
,
value
:
'2'
},
{
label
:
'收件人3'
,
value
:
'3'
},
],
],
},
},
ifShow
:
({
values
})
=>
values
.
alarmType
!==
undefined
&&
values
.
alarmType
.
includes
(
'1'
),
ifShow
:
({
values
})
=>
values
.
alarmType
!==
undefined
&&
values
.
alarmType
.
includes
(
'1'
),
...
...
src/views/processCenter/detailsTab2.vue
→
src/views/processCenter/detailsTab2
/index
.vue
View file @
1278a79b
File moved
src/views/processCenter/detailsTab3.vue
→
src/views/processCenter/detailsTab3
/index
.vue
View file @
1278a79b
File moved
src/views/processCenter/index.vue
View file @
1278a79b
...
@@ -309,22 +309,12 @@
...
@@ -309,22 +309,12 @@
/**查看详情按钮tab2*/
/**查看详情按钮tab2*/
function
handleViewtab2
(
record
:
Recordable
)
{
function
handleViewtab2
(
record
:
Recordable
)
{
const
businessId
=
record
.
businessId
;
const
businessId
=
record
.
businessId
;
$router
.
push
({
go
(
'/processCenter/detailsTab2'
);
path
:
'/processCenter/detailsTab2'
,
query
:
{
businessId
,
},
});
}
}
/**查看详情按钮tab3*/
/**查看详情按钮tab3*/
function
handleViewtab3
(
record
:
Recordable
)
{
function
handleViewtab3
(
record
:
Recordable
)
{
const
businessId
=
record
.
businessId
;
const
businessId
=
record
.
businessId
;
$router
.
push
({
go
(
'/processCenter/detailsTab3'
);
path
:
'/processCenter/detailsTab3'
,
query
:
{
businessId
,
},
});
}
}
/**数据权限按钮*/
/**数据权限按钮*/
function
dataPermiss
(
record
:
Recordable
)
{
function
dataPermiss
(
record
:
Recordable
)
{
...
@@ -461,16 +451,16 @@
...
@@ -461,16 +451,16 @@
});
});
/**离开路由前调用的钩子函数*/
/**离开路由前调用的钩子函数*/
onBeforeRouteLeave
((
to
,
from
,
next
)
=>
{
//
onBeforeRouteLeave((to, from, next) => {
const
params
=
Object
.
assign
({},
getForm
().
getFieldsValue
());
//
const params = Object.assign({}, getForm().getFieldsValue());
filterStore
.
setSearchParams
({
//
filterStore.setSearchParams({
path
:
from
.
path
,
//
path: from.path,
param
:
{
//
param: {
...
params
,
//
...params,
},
//
},
});
//
});
next
();
// 允许导航
//
next(); // 允许导航
});
//
});
//标签页切换
//标签页切换
const
activeKey
=
ref
(
'1'
);
const
activeKey
=
ref
(
'1'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment