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
943e8b48
Commit
943e8b48
authored
Nov 16, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改质量白名单
parent
dda17966
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
148 additions
and
41 deletions
+148
-41
index.ts
src/router/routes/index.ts
+33
-33
dataQualityMainBodyData.ts
...ataQuality/agentClass/mainBody/dataQualityMainBodyData.ts
+2
-2
FileTree.vue
...iews/dataQuality/agentClass/qualityWhitelist/FileTree.vue
+1
-1
connectBodyModal.vue
...aQuality/agentClass/qualityWhitelist/connectBodyModal.vue
+9
-5
data.ts
src/views/dataQuality/agentClass/qualityWhitelist/data.ts
+17
-0
dataQualityWhiteData.ts
...ality/agentClass/qualityWhitelist/dataQualityWhiteData.ts
+11
-0
uploadModal.vue
...s/dataQuality/agentClass/qualityWhitelist/uploadModal.vue
+75
-0
No files found.
src/router/routes/index.ts
View file @
943e8b48
...
...
@@ -534,38 +534,38 @@ export const kinshipParseRoute: AppRouteRecordRaw = {
],
};
/**服务开发*/
export
const
serviceDevelopmentRoute
:
AppRouteRecordRaw
=
{
path
:
'/serviceDevelopment'
,
name
:
'serviceDevelopment'
,
component
:
LAYOUT
,
meta
:
{
title
:
'服务开发'
,
icon
:
''
,
hidden
:
true
,
currentActiveMenu
:
'/serviceDevelopment'
,
},
children
:
[
{
path
:
'fileDetail'
,
name
:
'fileDetail'
,
component
:
()
=>
import
(
'@/views/serviceDevelopment/index.vue'
),
meta
:
{
title
:
'模块描述'
,
icon
:
''
,
},
},
{
path
:
'apiContrast'
,
name
:
'apiContrast'
,
component
:
()
=>
import
(
'@/views/serviceDevelopment/apiContrast.vue'
),
meta
:
{
title
:
'api对比'
,
icon
:
''
,
},
},
],
};
/
/ /
**服务开发*/
//
export const serviceDevelopmentRoute: AppRouteRecordRaw = {
//
path: '/serviceDevelopment',
//
name: 'serviceDevelopment',
//
component: LAYOUT,
//
meta: {
//
title: '服务开发',
//
icon: '',
//
hidden: true,
//
currentActiveMenu: '/serviceDevelopment',
//
},
//
children: [
//
{
//
path: 'fileDetail',
//
name: 'fileDetail',
//
component: () => import('@/views/serviceDevelopment/index.vue'),
//
meta: {
//
title: '模块描述',
//
icon: '',
//
},
//
},
//
{
//
path: 'apiContrast',
//
name: 'apiContrast',
//
component: () => import('@/views/serviceDevelopment/apiContrast.vue'),
//
meta: {
//
title: 'api对比',
//
icon: '',
//
},
//
},
//
],
//
};
// Basic routing without permission
// 没有权限要求的基本路由
export
const
basicRoutes
=
[
...
...
@@ -579,7 +579,7 @@ export const basicRoutes = [
DataSourceRoute
,
DataStandardRoute
,
kinshipParseRoute
,
serviceDevelopmentRoute
,
//
serviceDevelopmentRoute,
// RootRoute,
...
mainOutRoutes
,
REDIRECT_ROUTE
,
...
...
src/views/dataQuality/agentClass/mainBody/dataQualityMainBodyData.ts
View file @
943e8b48
...
...
@@ -56,8 +56,8 @@ export const TreeData: any[] = [
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
100
,
fileName
:
'质量
主体
'
,
anotherName
:
'质量
主体
'
,
fileName
:
'质量
白名单
'
,
anotherName
:
'质量
白名单
'
,
parentId
:
0
,
'code:'
:
'001'
,
ancestors
:
'0'
,
...
...
src/views/dataQuality/agentClass/qualityWhitelist/FileTree.vue
View file @
943e8b48
<
template
>
<div
class=
"m-4 mr-0 overflow-hidden bg-white"
>
<BasicTree
title=
"质量
主体
"
title=
"质量
白名单
"
ref=
"treeRef"
toolbar
search
...
...
src/views/dataQuality/agentClass/qualityWhitelist/connectBodyModal.vue
View file @
943e8b48
...
...
@@ -7,7 +7,7 @@
@
ok=
"handleSubmit"
>
<div
style=
"display: flex; justify-content: flex-end; padding-bottom: 10px"
>
<a-button
style=
"margin-right: 5px"
type=
"primary"
@
click=
"
refresh
"
>
更新名单
</a-button>
<a-button
style=
"margin-right: 5px"
type=
"primary"
@
click=
"
upload
"
>
更新名单
</a-button>
<a-button
style=
"margin-right: 5px"
type=
"primary"
@
click=
"handleSave"
>
保存
</a-button>
</div>
<Description
size=
"middle"
title=
"基本信息"
:bordered=
"false"
/>
...
...
@@ -29,10 +29,11 @@
</
template
>
</BasicTable>
</BasicModal>
<UploadModal
@
register=
"registerUploadModal"
/>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicModal
,
useModal
,
useModal
Inner
}
from
'@/components/Modal'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
Description
}
from
'@/components/Description'
;
...
...
@@ -45,13 +46,14 @@
}
from
'./data'
;
import
{
refundData
,
partitionData
}
from
'./dataQualityWhiteData'
;
import
{
BasicTable
,
useTable
}
from
'@/components/Table'
;
import
UploadModal
from
'./uploadModal.vue'
;
defineOptions
({
name
:
'KnowledgeModal'
});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
title
=
ref
();
const
tableData
=
ref
([]
);
const
[
registerUploadModal
,
{
openModal
:
openUploadModal
}]
=
useModal
(
);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
resetFields
}]
=
useForm
({
...
...
@@ -98,8 +100,10 @@
function
handleSave
()
{
createMessage
.
success
(
'保存成功'
);
}
function
refresh
()
{
createMessage
.
success
(
'保存成功'
);
function
upload
()
{
openUploadModal
(
true
,
{
title
:
'更新名单'
,
});
}
async
function
handleSubmit
()
{
closeModal
();
...
...
src/views/dataQuality/agentClass/qualityWhitelist/data.ts
View file @
943e8b48
...
...
@@ -403,3 +403,20 @@ export const searchTableFormSchema: FormSchema[] = [
colProps
:
{
span
:
4
},
},
];
export
const
uploadSchema
:
FormSchema
[]
=
[
{
field
:
'file'
,
component
:
'Upload'
,
label
:
'上传文件'
,
colProps
:
{
lg
:
24
,
md
:
24
},
rules
:
[{
required
:
true
,
message
:
'请选择上传文件'
}],
},
];
export
const
uploadColumns
:
BasicColumn
[]
=
[
{
title
:
'身份标识'
,
dataIndex
:
'key'
,
width
:
120
,
align
:
'left'
,
},
];
src/views/dataQuality/agentClass/qualityWhitelist/dataQualityWhiteData.ts
View file @
943e8b48
...
...
@@ -615,3 +615,14 @@ export const refundData = {
dataBase
:
'gyh'
,
};
export
const
partitionData
:
any
[]
=
[];
export
const
uploadData
:
any
[]
=
[
{
key
:
'110105199001010015'
,
},
{
key
:
'110105199001010016'
,
},
{
key
:
'110105199001010017'
,
},
];
src/views/dataQuality/agentClass/qualityWhitelist/uploadModal.vue
0 → 100644
View file @
943e8b48
<
template
>
<BasicModal
width=
"30%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"title"
@
ok=
"handleSubmit"
>
<Alert
type=
"info"
show-icon
message=
"上传名单Excel后,请点击预览查看最新数据;更新后将会覆盖原有数据。"
style=
"margin-bottom: 20px"
/>
<a-button
type=
"primary"
style=
"margin-left: 100px;margin-bottom: 10px"
@
click=
"handleDownload"
>
下载模板
</a-button>
<BasicForm
@
register=
"registerForm"
/>
<Description
size=
"middle"
title=
"数据预览"
:bordered=
"false"
/>
<BasicTable
@
register=
"registerPartitionTable"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
uploadColumns
,
uploadSchema
,
}
from
'@/views/dataQuality/agentClass/qualityWhitelist/data'
;
import
{
Alert
}
from
'ant-design-vue'
;
import
{
Description
}
from
'@/components/Description'
;
import
{
BasicTable
,
useTable
}
from
'@/components/Table'
;
import
{
uploadData
}
from
'@/views/dataQuality/agentClass/qualityWhitelist/dataQualityWhiteData'
;
defineOptions
({
name
:
'KnowledgeModal'
});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
title
=
ref
();
const
tableData
=
ref
([]);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
uploadSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
;
setModalProps
({
confirmLoading
:
false
});
title
.
value
=
data
.
title
;
});
const
[
registerPartitionTable
]
=
useTable
({
dataSource
:
uploadData
,
columns
:
uploadColumns
,
pagination
:
false
,
showIndexColumn
:
false
,
useSearchForm
:
false
,
bordered
:
false
,
scroll
:
{
y
:
300
},
});
function
handleDownload
()
{
createMessage
.
success
(
'下载成功'
);
}
async
function
handleSubmit
()
{
closeModal
();
createMessage
.
success
(
'提交成功'
);
resetFields
;
}
</
script
>
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