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
d331221f
Commit
d331221f
authored
Dec 06, 2024
by
ZhangKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.数据加载页面修改
2.落标检查页面,添加“添加数据标准”弹窗
parent
76b3e0dc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
137 additions
and
8 deletions
+137
-8
databaseOfflineLoading.vue
...tion/dataLoading/dataEntryLake/databaseOfflineLoading.vue
+1
-0
label.data.ts
src/views/dataStandards/labelDropInspection/label.data.ts
+2
-2
labelData.ts
src/views/dataStandards/labelDropInspection/labelData.ts
+4
-4
AddStandardModel.vue
...ards/labelDropInspection/labelDetail/AddStandardModel.vue
+66
-0
detail.data.ts
...aStandards/labelDropInspection/labelDetail/detail.data.ts
+55
-1
index.vue
...s/dataStandards/labelDropInspection/labelDetail/index.vue
+9
-1
No files found.
src/views/dataIntegration/dataLoading/dataEntryLake/databaseOfflineLoading.vue
View file @
d331221f
...
@@ -776,6 +776,7 @@
...
@@ -776,6 +776,7 @@
label
:
'元数据类型'
,
label
:
'元数据类型'
,
component
:
'Input'
,
component
:
'Input'
,
required
:
true
,
required
:
true
,
defaultValue
:
'Table,View'
,
componentProps
:
{
componentProps
:
{
placeholder
:
'以,分隔输入元数据类型'
,
placeholder
:
'以,分隔输入元数据类型'
,
},
},
...
...
src/views/dataStandards/labelDropInspection/label.data.ts
View file @
d331221f
...
@@ -121,8 +121,8 @@ export const addLabelModelFormSchemas: FormSchema[] = [
...
@@ -121,8 +121,8 @@ export const addLabelModelFormSchemas: FormSchema[] = [
value
:
'基础标准'
,
value
:
'基础标准'
,
},
},
{
{
label
:
'
数据
标准'
,
label
:
'
指标
标准'
,
value
:
'
数据
标准'
,
value
:
'
指标
标准'
,
},
},
],
],
},
},
...
...
src/views/dataStandards/labelDropInspection/labelData.ts
View file @
d331221f
...
@@ -66,28 +66,28 @@ export const labelTableData = [
...
@@ -66,28 +66,28 @@ export const labelTableData = [
{
{
businessId
:
1
,
businessId
:
1
,
name
:
'客户编号'
,
name
:
'客户编号'
,
type
:
'
数据
标准'
,
type
:
'
基础
标准'
,
uploadFlag
:
'已下线'
,
uploadFlag
:
'已下线'
,
updateTime
:
'2022/10/27 12:14:41'
,
updateTime
:
'2022/10/27 12:14:41'
,
},
},
{
{
businessId
:
2
,
businessId
:
2
,
name
:
'指标落标test'
,
name
:
'指标落标test'
,
type
:
'
数据
标准'
,
type
:
'
基础
标准'
,
uploadFlag
:
'已下线'
,
uploadFlag
:
'已下线'
,
updateTime
:
'2022/10/26 17:57:08'
,
updateTime
:
'2022/10/26 17:57:08'
,
},
},
{
{
businessId
:
3
,
businessId
:
3
,
name
:
'主数据标志落标'
,
name
:
'主数据标志落标'
,
type
:
'
数据
标准'
,
type
:
'
基础
标准'
,
uploadFlag
:
'已下线'
,
uploadFlag
:
'已下线'
,
updateTime
:
'2022/10/26 18:20:41'
,
updateTime
:
'2022/10/26 18:20:41'
,
},
},
{
{
businessId
:
4
,
businessId
:
4
,
name
:
'客户详细地址'
,
name
:
'客户详细地址'
,
type
:
'
数据
标准'
,
type
:
'
基础
标准'
,
uploadFlag
:
'已上线'
,
uploadFlag
:
'已上线'
,
updateTime
:
'2022/10/26 16:53:45'
,
updateTime
:
'2022/10/26 16:53:45'
,
},
},
...
...
src/views/dataStandards/labelDropInspection/labelDetail/AddStandardModel.vue
0 → 100644
View file @
d331221f
<
template
>
<!-- 添加数据标准 弹窗 -->
<BasicModal
v-bind=
"$attrs"
@
register=
"registerModal"
showFooter
title=
"添加数据标准"
width=
"60%"
@
ok=
"handleSubmit"
>
<BasicTable
@
register=
"registerTable"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
useMessage
}
from
"@/hooks/web/useMessage"
;
import
{
BasicTable
,
useTable
}
from
"@/components/Table"
;
import
{
dataStandardListData
,
dataStandardColumns
,
}
from
"@/views/dataStandards/labelDropInspection/labelDetail/detail.data.ts"
defineOptions
({
name
:
'AddStandardModel'
});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
//初始化表格
const
[
registerTable
,
{
reload
}]
=
useTable
({
api
:
async
()
=>
{
const
response
=
{
pageNum
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
dataStandardListData
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
return
{...
response
,
data
:
dataStandardListData
};
},
pagination
:
false
,
columns
:
dataStandardColumns
,
rowKey
:
'id'
,
rowSelection
:
true
,
useSearchForm
:
false
,
scroll
:
{
y
:
300
,
},
editRow
:
true
,
showTableSetting
:
false
,
bordered
:
true
,
showIndexColumn
:
false
,
});
// 初始化弹窗
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
setModalProps
({
loading
:
false
,
confirmLoading
:
false
});
});
/** 确认按钮 */
async
function
handleSubmit
()
{
createMessage
.
success
(
'添加'
);
closeModal
()
}
</
script
>
src/views/dataStandards/labelDropInspection/labelDetail/detail.data.ts
View file @
d331221f
import
{
FormSchema
}
from
'@/components/Form'
;
import
{
FormSchema
}
from
'@/components/Form'
;
import
{
BasicColumn
}
from
"@/components/Table"
;
import
{
BasicColumn
}
from
"@/components/Table"
;
import
{
TableColumn
}
from
"ant-design-vue"
;
export
const
detailFormSchema
:
FormSchema
[]
=
[
export
const
detailFormSchema
:
FormSchema
[]
=
[
{
{
...
@@ -260,3 +259,58 @@ export const importFormSchema: FormSchema[] = [
...
@@ -260,3 +259,58 @@ export const importFormSchema: FormSchema[] = [
},
},
},
},
];
];
// 添加数据标准 弹窗表头数据
export
const
dataStandardColumns
:
BasicColumn
[
any
]
=
[
{
title
:
'标准中文名称'
,
dataIndex
:
'standardName'
,
width
:
150
,
},
{
title
:
'标准编号'
,
dataIndex
:
'standardNumber'
,
width
:
150
,
},
{
title
:
'业务定义'
,
dataIndex
:
'businessDefinition'
,
width
:
150
,
},
{
title
:
'权属工作组'
,
dataIndex
:
'workGroup'
,
width
:
150
,
},
]
// 添加数据标准 弹窗列表数据
export
const
dataStandardListData
:
any
[]
=
[
{
"id"
:
1
,
"standardName"
:
"对外投资出资方式"
,
"standardNumber"
:
"BAS000004"
,
"businessDefinition"
:
"对外投资出资方式"
,
"workGroup"
:
"个人工作区"
,
},
{
"id"
:
2
,
"standardName"
:
"对外投资控股标志"
,
"standardNumber"
:
"BAS000005"
,
"businessDefinition"
:
"对外投资控股标志"
,
"workGroup"
:
"个人工作区"
,
},
{
"id"
:
3
,
"standardName"
:
"对外投资企业证明"
,
"standardNumber"
:
"BAS000006"
,
"businessDefinition"
:
"对外投资企业证明"
,
"workGroup"
:
"个人工作区"
,
},
{
"id"
:
4
,
"standardName"
:
"zy_basic_standard"
,
"standardNumber"
:
"BAS000007"
,
"businessDefinition"
:
"zy_basic_standard"
,
"workGroup"
:
"共享工作区"
,
},
];
src/views/dataStandards/labelDropInspection/labelDetail/index.vue
View file @
d331221f
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
@
click=
"handleDelete"
@
click=
"handleDelete"
><DeleteOutlined
><DeleteOutlined
/></a-button>
/></a-button>
<a-button
:disabled=
"disabled"
type=
"primary"
>
添加数据标准
</a-button>
<a-button
:disabled=
"disabled"
type=
"primary"
@
click=
"addDataStandard()"
>
添加数据标准
</a-button>
</
template
>
</
template
>
<
template
#
standard=
"{ text, record }"
>
<
template
#
standard=
"{ text, record }"
>
<a
@
click=
"handleTableName"
>
{{
text
}}
</a>
<a
@
click=
"handleTableName"
>
{{
text
}}
</a>
...
@@ -94,6 +94,7 @@
...
@@ -94,6 +94,7 @@
</template>
</template>
<ExcelModel
@
register=
"excelModel"
/>
<ExcelModel
@
register=
"excelModel"
/>
<AddMetadataModel
@
register=
"addMetadataModel"
/>
<AddMetadataModel
@
register=
"addMetadataModel"
/>
<AddStandardModel
@
register=
"addStandardModel"
/>
</PageWrapper>
</PageWrapper>
</template>
</template>
...
@@ -123,6 +124,7 @@
...
@@ -123,6 +124,7 @@
}
from
'@/views/dataStandards/labelDropInspection/labelDetail/detailData'
;
}
from
'@/views/dataStandards/labelDropInspection/labelDetail/detailData'
;
import
ExcelModel
from
'./excelModel.vue'
;
import
ExcelModel
from
'./excelModel.vue'
;
import
AddMetadataModel
from
'./addMetadataModel.vue'
;
import
AddMetadataModel
from
'./addMetadataModel.vue'
;
import
AddStandardModel
from
'./AddStandardModel.vue'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
...
@@ -168,8 +170,14 @@
...
@@ -168,8 +170,14 @@
path
:
'/dataQuality/dataSheet/task/taskOperation'
,
path
:
'/dataQuality/dataSheet/task/taskOperation'
,
});
});
}
}
/** 添加数据标准 弹窗 */
function
addDataStandard
()
{
openAddStandardModel
(
true
,
{});
}
const
[
excelModel
,
{
openModal
:
openExcelModal
}]
=
useModal
();
const
[
excelModel
,
{
openModal
:
openExcelModal
}]
=
useModal
();
const
[
addMetadataModel
,
{
openModal
:
openAddMetadataModel
}]
=
useModal
();
const
[
addMetadataModel
,
{
openModal
:
openAddMetadataModel
}]
=
useModal
();
const
[
addStandardModel
,
{
openModal
:
openAddStandardModel
}]
=
useModal
();
const
[
registerForm
,
{
setFieldsValue
,
getFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
const
[
registerForm
,
{
setFieldsValue
,
getFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
useForm
({
labelWidth
:
100
,
labelWidth
:
100
,
...
...
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