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
f96cc903
Commit
f96cc903
authored
Nov 18, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
08f58e89
e02befa1
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
757 additions
and
231 deletions
+757
-231
index.ts
src/router/routes/index.ts
+66
-56
CopyModal.vue
src/views/dataStandards/IndicatorStandards/CopyModal.vue
+1
-1
createStandardsType.vue
.../dataStandards/IndicatorStandards/createStandardsType.vue
+3
-2
detailStandard.vue
...views/dataStandards/IndicatorStandards/detailStandard.vue
+10
-3
editDetailStandard.vue
...s/dataStandards/IndicatorStandards/editDetailStandard.vue
+4
-4
index.vue
src/views/dataStandards/IndicatorStandards/index.vue
+12
-1
indicatorStandards.data.ts
...taStandards/IndicatorStandards/indicatorStandards.data.ts
+43
-7
indicatorStandardsContrast.vue
...andards/IndicatorStandards/indicatorStandardsContrast.vue
+17
-2
indicatorStandardsData.ts
...ataStandards/IndicatorStandards/indicatorStandardsData.ts
+215
-7
relatedQualityModal.vue
.../dataStandards/IndicatorStandards/relatedQualityModal.vue
+1
-1
relatedRelationships.vue
...dataStandards/IndicatorStandards/relatedRelationships.vue
+21
-7
basicStandards.data.ts
...views/dataStandards/basicStandards/basicStandards.data.ts
+63
-9
recommendedMetadataModal.vue
...dataStandards/basicStandards/recommendedMetadataModal.vue
+1
-1
relatedRelationships.vue
...ews/dataStandards/basicStandards/relatedRelationships.vue
+10
-5
CopyModal.vue
src/views/dataStandards/publicCode/CopyModal.vue
+1
-1
ImportRelativeModal.vue
src/views/dataStandards/publicCode/ImportRelativeModal.vue
+0
-58
detailPublicCode.vue
src/views/dataStandards/publicCode/detailPublicCode.vue
+10
-3
editDetail.vue
src/views/dataStandards/publicCode/editDetail.vue
+31
-2
index.vue
src/views/dataStandards/publicCode/index.vue
+13
-1
publicCode.data.ts
src/views/dataStandards/publicCode/publicCode.data.ts
+97
-9
publicCodeContrast.vue
src/views/dataStandards/publicCode/publicCodeContrast.vue
+15
-2
publicCodeData.ts
src/views/dataStandards/publicCode/publicCodeData.ts
+95
-11
relatedRelationships.vue
src/views/dataStandards/publicCode/relatedRelationships.vue
+28
-38
No files found.
src/router/routes/index.ts
View file @
f96cc903
...
@@ -129,28 +129,28 @@ export const UserRoute: AppRouteRecordRaw = {
...
@@ -129,28 +129,28 @@ export const UserRoute: AppRouteRecordRaw = {
};
};
/**通用文件*/
/**通用文件*/
//
export const CommonFileRoute: AppRouteRecordRaw = {
export
const
CommonFileRoute
:
AppRouteRecordRaw
=
{
//
path: '/commonFile',
path
:
'/commonFile'
,
//
name: 'commonFile',
name
:
'commonFile'
,
//
component: LAYOUT,
component
:
LAYOUT
,
//
meta: {
meta
:
{
//
title: '通用文件操作',
title
:
'通用文件操作'
,
//
icon: '',
icon
:
''
,
//
hidden: true,
hidden
:
true
,
//
currentActiveMenu: '/commonFile',
currentActiveMenu
:
'/commonFile'
,
//
},
},
//
children: [
children
:
[
//
{
{
//
path: 'fileDetail',
path
:
'fileDetail'
,
//
name: 'fileDetail',
name
:
'fileDetail'
,
//
component: () => import('@/views/commonFile/fileDetail.vue'),
component
:
()
=>
import
(
'@/views/commonFile/fileDetail.vue'
),
//
meta: {
meta
:
{
//
title: '文件详情',
title
:
'文件详情'
,
//
icon: '',
icon
:
''
,
//
},
},
//
},
},
//
],
],
//
};
};
export
const
DataWarehousePlanningRoute
:
AppRouteRecordRaw
=
{
export
const
DataWarehousePlanningRoute
:
AppRouteRecordRaw
=
{
path
:
'/dataWarehousePlanning'
,
path
:
'/dataWarehousePlanning'
,
...
@@ -516,6 +516,15 @@ export const QualityRuleRoute: AppRouteRecordRaw = {
...
@@ -516,6 +516,15 @@ export const QualityRuleRoute: AppRouteRecordRaw = {
icon
:
''
,
icon
:
''
,
},
},
},
},
{
path
:
'edit'
,
name
:
'Edit'
,
component
:
()
=>
import
(
'@/views/dataQuality/dataSheet/rule/parameter/edit.vue'
),
meta
:
{
title
:
'质量参数编辑'
,
icon
:
''
,
},
},
],
],
};
};
...
@@ -543,38 +552,39 @@ export const kinshipParseRoute: AppRouteRecordRaw = {
...
@@ -543,38 +552,39 @@ export const kinshipParseRoute: AppRouteRecordRaw = {
],
],
};
};
/**服务开发*/
/**数据服务*/
// export const serviceDevelopmentRoute: AppRouteRecordRaw = {
export
const
serviceDevelopmentRoute
:
AppRouteRecordRaw
=
{
// path: '/serviceDevelopment',
path
:
'/dataService'
,
// name: 'serviceDevelopment',
name
:
'dataService'
,
// component: LAYOUT,
component
:
LAYOUT
,
// meta: {
meta
:
{
// title: '服务开发',
title
:
'数据服务'
,
// icon: '',
icon
:
''
,
// hidden: true,
hidden
:
true
,
// currentActiveMenu: '/serviceDevelopment',
currentActiveMenu
:
'/dataService'
,
// },
},
// children: [
children
:
[
// {
{
// path: 'fileDetails',
path
:
'serviceDevelopment/fileDetails'
,
// name: 'fileDetails',
name
:
'fileDetails1'
,
// component: () => import('@/views/serviceDevelopment/index.vue'),
component
:
()
=>
import
(
'@/views/dataService/serviceDevelopment/index.vue'
),
// meta: {
meta
:
{
// title: '模块描述',
title
:
'服务开发模块描述'
,
// icon: '',
icon
:
''
,
// },
},
// },
},
// {
{
// path: 'apiContrast',
path
:
'serviceDevelopment/apiContrast'
,
// name: 'apiContrast',
name
:
'apiContrast1'
,
// component: () => import('@/views/serviceDevelopment/apiContrast.vue'),
component
:
()
=>
import
(
'@/views/dataService/serviceDevelopment/apiContrast.vue'
),
// meta: {
meta
:
{
// title: 'api对比',
title
:
'服务开发api对比'
,
// icon: '',
icon
:
''
,
// },
},
// },
},
// ],
],
// };
};
// Basic routing without permission
// Basic routing without permission
// 没有权限要求的基本路由
// 没有权限要求的基本路由
export
const
basicRoutes
=
[
export
const
basicRoutes
=
[
...
@@ -583,12 +593,12 @@ export const basicRoutes = [
...
@@ -583,12 +593,12 @@ export const basicRoutes = [
mainBodyRoute
,
mainBodyRoute
,
UserRoute
,
UserRoute
,
WorkSpaceRoute
,
WorkSpaceRoute
,
//
CommonFileRoute,
CommonFileRoute
,
ModelRoute
,
ModelRoute
,
DataSourceRoute
,
DataSourceRoute
,
DataStandardRoute
,
DataStandardRoute
,
kinshipParseRoute
,
kinshipParseRoute
,
//
serviceDevelopmentRoute,
serviceDevelopmentRoute
,
// RootRoute,
// RootRoute,
...
mainOutRoutes
,
...
mainOutRoutes
,
REDIRECT_ROUTE
,
REDIRECT_ROUTE
,
...
...
src/views/dataStandards/IndicatorStandards/CopyModal.vue
View file @
f96cc903
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
/**确定按钮*/
/**确定按钮*/
async
function
handleSubmit
()
{
async
function
handleSubmit
()
{
createMessage
.
success
(
'
移动
成功'
);
createMessage
.
success
(
'
复制
成功'
);
closeModal
()
closeModal
()
}
}
...
...
src/views/dataStandards/IndicatorStandards/createStandardsType.vue
View file @
f96cc903
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
import
{
resetNameFormSchema
}
from
'./indicatorStandards.data'
;
import
{
resetNameFormSchema
}
from
'./indicatorStandards.data'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
createBasicTypeFormSchema
}
from
'./indicatorStandards.data'
;
import
{
createBasicTypeFormSchema
}
from
'./indicatorStandards.data'
;
import
{
TreeData
}
from
"./indicatorStandardsData"
;
import
{
TreeData
,
dataBasicTreeData
}
from
"./indicatorStandardsData"
;
import
TreeTwo
from
'./TreeTwo.vue'
import
TreeTwo
from
'./TreeTwo.vue'
defineOptions
({
name
:
'AccountModal'
});
defineOptions
({
name
:
'AccountModal'
});
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
...
formData
,
...
formData
,
});
});
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
const
treeList1
=
handleTree
(
dataBasicTreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
updateSchema
([
updateSchema
([
{
{
field
:
'standardsTree'
,
field
:
'standardsTree'
,
...
@@ -75,7 +76,7 @@
...
@@ -75,7 +76,7 @@
{
{
field
:
'ModelTree'
,
field
:
'ModelTree'
,
componentProps
:
{
componentProps
:
{
treeData
:
treeList
treeData
:
treeList
1
},
},
},
},
]);
]);
...
...
src/views/dataStandards/IndicatorStandards/detailStandard.vue
View file @
f96cc903
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</div>
</div>
<div>
<div>
<a-button
type=
"primary"
@
click=
"contrastButton"
>
版本对比
</a-button>
<a-button
type=
"primary"
@
click=
"contrastButton"
>
版本对比
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"re
set
Button"
>
回滚
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"re
turn
Button"
>
回滚
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"exitButton"
>
退出查看
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"exitButton"
>
退出查看
</a-button>
</div>
</div>
</div>
</div>
...
@@ -138,8 +138,15 @@ function handleChange(value) {
...
@@ -138,8 +138,15 @@ function handleChange(value) {
}
}
/**回滚*/
/**回滚*/
function
resetButton
(
value
)
{
function
returnButton
(
value
)
{
createMessage
.
success
(
'回滚成功!'
)
createConfirm
({
iconType
:
'warning'
,
title
:
'确认回滚'
,
content
:
'是否确认进行回滚?'
,
onOk
()
{
createMessage
.
success
(
'回滚成功!'
);
},
});
}
}
...
...
src/views/dataStandards/IndicatorStandards/editDetailStandard.vue
View file @
f96cc903
...
@@ -13,9 +13,9 @@
...
@@ -13,9 +13,9 @@
</div>
</div>
<Divider
/>
<Divider
/>
<BasicForm
@
register=
"registerForm1"
/>
<BasicForm
@
register=
"registerForm1"
/>
<div
style=
"margin-left: 10px"
>
<!--
<div
style=
"margin-left: 10px"
>
--
>
命名字典映射
<a-button
style=
"margin-left: 10px;border-color: #4aabfe"
@
click=
"chooseButton"
>
选择
</a-button
>
<!-- 命名字典映射
<a-button
style=
"margin-left: 10px;border-color: #4aabfe"
@
click=
"chooseButton"
>
选择
</a-button>
--
>
</div
>
<!--
</div>
--
>
<Divider
/>
<Divider
/>
<BasicForm
@
register=
"registerForm2"
/>
<BasicForm
@
register=
"registerForm2"
/>
<Divider
/>
<Divider
/>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<Divider
/>
<Divider
/>
<!-- 选择命名字典 弹窗-->
<!-- 选择命名字典 弹窗-->
<ChooseNamingDictionaryModal
@
register=
"registerChooseNamingDictionaryModal"
@
success=
"handleSuccess"
/
>
<!--
<ChooseNamingDictionaryModal
@
register=
"registerChooseNamingDictionaryModal"
@
success=
"handleSuccess"
/>
--
>
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
...
...
src/views/dataStandards/IndicatorStandards/index.vue
View file @
f96cc903
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<a-button
type=
"primary"
@
click=
"copyButton"
>
复制到
</a-button>
<a-button
type=
"primary"
@
click=
"copyButton"
>
复制到
</a-button>
<a-button
type=
"primary"
@
click=
"deleteBatchButton"
>
删除
</a-button>
<a-button
type=
"primary"
@
click=
"deleteBatchButton"
>
删除
</a-button>
<a-button
type=
"primary"
@
click=
"MoveButton"
>
移动
</a-button>
<a-button
type=
"primary"
@
click=
"MoveButton"
>
移动
</a-button>
<a-button
type=
"primary"
@
click=
"ImportDataStandardsButton"
>
导入数据标准
</a-button>
<a-button
type=
"primary"
@
click=
"ExportRelativeButton"
>
导出关联关系
</a-button>
<a-button
type=
"primary"
@
click=
"ExportRelativeButton"
>
导出关联关系
</a-button>
<a-button
type=
"primary"
@
click=
"ExportDataStandardsButton"
>
导出数据标准
</a-button>
<a-button
type=
"primary"
@
click=
"ExportDataStandardsButton"
>
导出数据标准
</a-button>
<a-button
type=
"primary"
@
click=
"batchPublishButton"
>
批量发布
</a-button>
<a-button
type=
"primary"
@
click=
"batchPublishButton"
>
批量发布
</a-button>
...
@@ -61,6 +62,8 @@
...
@@ -61,6 +62,8 @@
</span>
</span>
</
template
>
</
template
>
</BasicTable>
</BasicTable>
<!-- 导入数据标准 弹窗-->
<ImportDataStandardsModal
@
register=
"registerDataStandardsModal"
@
success=
"handleSuccess"
/>
<!-- 新建基础标准 弹窗-->
<!-- 新建基础标准 弹窗-->
<CreateIndicatorStandards
@
register=
"registerCreateIndicatorStandardsModal"
@
success=
"handleSuccess"
/>
<CreateIndicatorStandards
@
register=
"registerCreateIndicatorStandardsModal"
@
success=
"handleSuccess"
/>
<!-- 新建标准分类 弹窗-->
<!-- 新建标准分类 弹窗-->
...
@@ -92,11 +95,12 @@
...
@@ -92,11 +95,12 @@
import
{
router
}
from
'@/router'
;
import
{
router
}
from
'@/router'
;
import
{
exportUserList
}
from
"@/api/system/user/user"
;
import
{
exportUserList
}
from
"@/api/system/user/user"
;
import
{
downloadByData
}
from
"@/utils/file/download"
;
import
{
downloadByData
}
from
"@/utils/file/download"
;
import
ImportDataStandardsModal
from
'./ImportDataStandardsModal.vue'
;
defineOptions
({
name
:
'AccountManagement'
});
defineOptions
({
name
:
'AccountManagement'
});
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
route
=
useRoute
();
const
go
=
useGo
();
const
go
=
useGo
();
const
[
registerDataStandardsModal
,
{
openModal
:
openDataStandardsModal
}]
=
useModal
();
const
[
registerCreateIndicatorStandardsModal
,
{
openModal
:
openCreateIndicatorStandardsModal
}]
=
useModal
();
const
[
registerCreateIndicatorStandardsModal
,
{
openModal
:
openCreateIndicatorStandardsModal
}]
=
useModal
();
const
[
registerCreateStandardsTypeModal
,
{
openModal
:
openCreateStandardsTypeModal
}]
=
useModal
();
const
[
registerCreateStandardsTypeModal
,
{
openModal
:
openCreateStandardsTypeModal
}]
=
useModal
();
const
[
registerMoveModal
,
{
openModal
:
openMoveModal
}]
=
useModal
();
const
[
registerMoveModal
,
{
openModal
:
openMoveModal
}]
=
useModal
();
...
@@ -243,6 +247,13 @@
...
@@ -243,6 +247,13 @@
downloadByData
(
data
,
'数据标准信息'
+
'.xlsx'
);
downloadByData
(
data
,
'数据标准信息'
+
'.xlsx'
);
}
}
/**导入数据标准*/
async
function
ImportDataStandardsButton
()
{
openDataStandardsModal
(
true
,
{
});
}
function
handleSuccess
({
isUpdate
,
values
})
{
function
handleSuccess
({
isUpdate
,
values
})
{
}
}
...
...
src/views/dataStandards/IndicatorStandards/indicatorStandards.data.ts
View file @
f96cc903
...
@@ -161,7 +161,7 @@ export const createBasicTypeFormSchema: FormSchema[] = [
...
@@ -161,7 +161,7 @@ export const createBasicTypeFormSchema: FormSchema[] = [
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
componentProps
:
{
componentProps
:
{
fieldNames
:
{
fieldNames
:
{
label
:
'
standardChinese
Name'
,
label
:
'
model
Name'
,
value
:
'businessId'
,
value
:
'businessId'
,
},
},
getPopupContainer
:
()
=>
document
.
body
,
getPopupContainer
:
()
=>
document
.
body
,
...
@@ -2083,15 +2083,33 @@ export const relatedBasicStandardsSchema: any[] = [
...
@@ -2083,15 +2083,33 @@ export const relatedBasicStandardsSchema: any[] = [
{
{
field
:
'relatedRelationship'
,
field
:
'relatedRelationship'
,
label
:
'关联关系'
,
label
:
'关联关系'
,
component
:
'
Inpu
t'
,
component
:
'
Selec
t'
,
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请
输入
关联关系'
,
message
:
'请
选择
关联关系'
,
},
},
],
],
componentProps
:
{
componentProps
:
{
placeholder
:
'请输入关联关系'
,
options
:[
{
label
:
'引用'
,
value
:
'引用'
},
{
label
:
'同义词'
,
value
:
'同义词'
},
{
label
:
'依赖'
,
value
:
'依赖'
},
{
label
:
'从属'
,
value
:
'从属'
}
],
placeholder
:
'请选择关联关系'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
...
@@ -2130,15 +2148,33 @@ export const relatedIndicatorStandardsSchema: any[] = [
...
@@ -2130,15 +2148,33 @@ export const relatedIndicatorStandardsSchema: any[] = [
{
{
field
:
'relatedRelationship'
,
field
:
'relatedRelationship'
,
label
:
'关联关系'
,
label
:
'关联关系'
,
component
:
'
Inpu
t'
,
component
:
'
Selec
t'
,
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请
输入
关联关系'
,
message
:
'请
选择
关联关系'
,
},
},
],
],
componentProps
:
{
componentProps
:
{
placeholder
:
'请输入关联关系'
,
options
:[
{
label
:
'引用'
,
value
:
'引用'
},
{
label
:
'同义词'
,
value
:
'同义词'
},
{
label
:
'依赖'
,
value
:
'依赖'
},
{
label
:
'从属'
,
value
:
'从属'
}
],
placeholder
:
'请选择关联关系'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
...
...
src/views/dataStandards/IndicatorStandards/indicatorStandardsContrast.vue
View file @
f96cc903
...
@@ -42,11 +42,11 @@
...
@@ -42,11 +42,11 @@
<div
style=
"font-size: 15px;padding-left: 10px;padding-left: 50px"
>
<div
style=
"font-size: 15px;padding-left: 10px;padding-left: 50px"
>
<div>
<div>
版本
<Select
版本
<Select
v-model:value=
"optionValue"
v-model:value=
"optionValue
1
"
show-search
show-search
placeholder=
"请选择版本"
placeholder=
"请选择版本"
style=
"width: 200px;margin-left: 10px"
style=
"width: 200px;margin-left: 10px"
:options=
"options"
:options=
"options
1
"
@
change=
"handleChange"
@
change=
"handleChange"
></Select>
></Select>
</div>
</div>
...
@@ -85,6 +85,13 @@
...
@@ -85,6 +85,13 @@
{
value
:
'V2'
,
label
:
'V2'
},
{
value
:
'V2'
,
label
:
'V2'
},
{
value
:
'V3'
,
label
:
'V3'
},
{
value
:
'V3'
,
label
:
'V3'
},
]);
]);
const
options1
=
ref
<
any
>
([
{
value
:
'V1'
,
label
:
'V1'
},
{
value
:
'V2'
,
label
:
'V2'
},
{
value
:
'V3'
,
label
:
'V3'
},
]);
const
optionValue
=
ref
(
''
)
const
optionValue1
=
ref
(
''
)
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
}
=
useMessage
();
const
[
registerLeftForm
,{
setFieldsValue
:
setLeftFieldsValue
}]
=
useForm
({
const
[
registerLeftForm
,{
setFieldsValue
:
setLeftFieldsValue
}]
=
useForm
({
labelWidth
:
100
,
labelWidth
:
100
,
...
@@ -107,9 +114,17 @@
...
@@ -107,9 +114,17 @@
function
endContrast
()
{
function
endContrast
()
{
createMessage
.
info
(
'结束对比'
);
createMessage
.
info
(
'结束对比'
);
startContrastFlag
.
value
=
false
startContrastFlag
.
value
=
false
router
.
push
({
path
:
'/dataStandards/indicatorStandards/detailStandard'
,
query
:
{
businessId
:
route
.
query
.
businessId
,
},
});
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
optionValue
.
value
=
'V3'
optionValue1
.
value
=
'V1'
setLeftFieldsValue
({
setLeftFieldsValue
({
...
leftContrastData
[
0
],
...
leftContrastData
[
0
],
})
})
...
...
src/views/dataStandards/IndicatorStandards/indicatorStandardsData.ts
View file @
f96cc903
...
@@ -390,6 +390,153 @@ export const TreeData: any[] = [
...
@@ -390,6 +390,153 @@ export const TreeData: any[] = [
"collaborativeDepartment"
:
"人力资源部, 技术部"
"collaborativeDepartment"
:
"人力资源部, 技术部"
}
}
];
];
/**首页 新增基础分类 基础元模型树*/
export
const
dataBasicTreeData
:
any
[]
=
[
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
100
,
modelName
:
'数据标准模型'
,
parentId
:
0
,
code
:
'001'
,
ancestors
:
'0'
,
orderNum
:
0
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
selectType
:
null
,
type
:
'MySQL'
,
icon
:
'ion:settings-outline'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
101
,
modelName
:
'数据标准模型文件夹1'
,
parentId
:
100
,
code
:
'002'
,
ancestors
:
'0,100'
,
orderNum
:
1
,
selectType
:
null
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
type
:
'MySQL'
,
icon
:
'ant-design:folder-open-outlined'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
102
,
modelName
:
'数据标准模型文件夹2'
,
parentId
:
100
,
code
:
'002'
,
ancestors
:
'0,100'
,
orderNum
:
1
,
selectType
:
null
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
type
:
'MySQL'
,
icon
:
'ant-design:folder-open-outlined'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
103
,
modelName
:
'数据标准模型文件夹3'
,
parentId
:
100
,
code
:
'002'
,
ancestors
:
'0,100'
,
orderNum
:
1
,
selectType
:
null
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
type
:
'MySQL'
,
icon
:
'ant-design:folder-open-outlined'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
201
,
modelName
:
'argodb元模型'
,
parentId
:
101
,
'code:'
:
'002'
,
ancestors
:
'0,100,101'
,
orderNum
:
1
,
selectType
:
null
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
type
:
'MySQL'
,
icon
:
'ant-design:codepen-outlined'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
202
,
modelName
:
'inceptor元模型'
,
parentId
:
101
,
'code:'
:
'002'
,
ancestors
:
'0,100,101'
,
orderNum
:
1
,
selectType
:
null
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
type
:
'MySQL'
,
icon
:
'ant-design:codepen-outlined'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
203
,
modelName
:
'acc元模型'
,
parentId
:
102
,
'code:'
:
'002'
,
ancestors
:
'0,100,102'
,
orderNum
:
1
,
selectType
:
null
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
type
:
'MySQL'
,
icon
:
'ant-design:codepen-outlined'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
204
,
modelName
:
'ctor元模型'
,
parentId
:
102
,
'code:'
:
'002'
,
ancestors
:
'0,100,102'
,
orderNum
:
1
,
selectType
:
null
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
type
:
'MySQL'
,
icon
:
'ant-design:codepen-outlined'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
205
,
modelName
:
'octp元模型'
,
parentId
:
103
,
'code:'
:
'002'
,
ancestors
:
'0,100,103'
,
orderNum
:
1
,
selectType
:
null
,
holder
:
'admin'
,
createDate
:
'2024-10-24 10:04:04'
,
updateDate
:
'2024-10-24 10:04:04'
,
type
:
'MySQL'
,
icon
:
'ant-design:codepen-outlined'
,
},
];
export
const
fileData
:
any
[]
=
[
export
const
fileData
:
any
[]
=
[
{
{
...
@@ -838,7 +985,6 @@ export const meteDataTreeData: any[] = [
...
@@ -838,7 +985,6 @@ export const meteDataTreeData: any[] = [
businessId
:
100
,
businessId
:
100
,
workSpaceName
:
'数据库对象资源'
,
workSpaceName
:
'数据库对象资源'
,
parentId
:
0
,
parentId
:
0
,
'code:'
:
'001'
,
ancestors
:
'0'
,
ancestors
:
'0'
,
orderNum
:
0
,
orderNum
:
0
,
children
:
[],
children
:
[],
...
@@ -852,7 +998,6 @@ export const meteDataTreeData: any[] = [
...
@@ -852,7 +998,6 @@ export const meteDataTreeData: any[] = [
businessId
:
101
,
businessId
:
101
,
workSpaceName
:
'admin-个人工作区'
,
workSpaceName
:
'admin-个人工作区'
,
parentId
:
100
,
parentId
:
100
,
'code:'
:
'002'
,
ancestors
:
'0,100'
,
ancestors
:
'0,100'
,
orderNum
:
1
,
orderNum
:
1
,
children
:
[],
children
:
[],
...
@@ -863,10 +1008,9 @@ export const meteDataTreeData: any[] = [
...
@@ -863,10 +1008,9 @@ export const meteDataTreeData: any[] = [
{
{
delFlag
:
'0'
,
delFlag
:
'0'
,
flag
:
'1'
,
flag
:
'1'
,
businessId
:
10
7
,
businessId
:
10
2
,
workSpaceName
:
'共享工作区'
,
workSpaceName
:
'共享工作区'
,
parentId
:
100
,
parentId
:
100
,
'code:'
:
'003'
,
ancestors
:
'0,100'
,
ancestors
:
'0,100'
,
orderNum
:
2
,
orderNum
:
2
,
children
:
[],
children
:
[],
...
@@ -877,17 +1021,81 @@ export const meteDataTreeData: any[] = [
...
@@ -877,17 +1021,81 @@ export const meteDataTreeData: any[] = [
{
{
delFlag
:
'0'
,
delFlag
:
'0'
,
flag
:
'0'
,
flag
:
'0'
,
businessId
:
2
03
,
businessId
:
1
03
,
workSpaceName
:
'高级工作区'
,
workSpaceName
:
'高级工作区'
,
parentId
:
100
,
parentId
:
100
,
'code:'
:
'010'
,
ancestors
:
'0,100'
,
ancestors
:
'0,100,107'
,
orderNum
:
2
,
orderNum
:
2
,
children
:
[],
children
:
[],
selectType
:
null
,
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
createBy
:
'admin'
,
},
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
201
,
workSpaceName
:
'mysql'
,
parentId
:
101
,
ancestors
:
'0,100,101'
,
orderNum
:
1
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
301
,
workSpaceName
:
'gxx'
,
parentId
:
201
,
ancestors
:
'0,100,101,201'
,
orderNum
:
1
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
401
,
workSpaceName
:
'batch3_prc'
,
parentId
:
301
,
ancestors
:
'0,100,101,201,301'
,
orderNum
:
1
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
202
,
workSpaceName
:
'oracle'
,
parentId
:
102
,
ancestors
:
'0,100,102'
,
orderNum
:
1
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
203
,
workSpaceName
:
'localhost'
,
parentId
:
103
,
ancestors
:
'0,100,103'
,
orderNum
:
1
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
]
]
/**关联关系-指标标准-树 数据*/
/**关联关系-指标标准-树 数据*/
export
const
indicatorTreeData
:
any
[]
=
[
export
const
indicatorTreeData
:
any
[]
=
[
...
...
src/views/dataStandards/IndicatorStandards/relatedQualityModal.vue
View file @
f96cc903
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
data
:
[],
data
:
[],
};
};
//过滤data中的数据,取出等于params.deptId的数据
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedQualityData
};
return
{
...
response
,
data
:
[]
};
},
},
columns
:
relatedQualityColumns
,
columns
:
relatedQualityColumns
,
useSearchForm
:
false
,
useSearchForm
:
false
,
...
...
src/views/dataStandards/IndicatorStandards/relatedRelationships.vue
View file @
f96cc903
<
template
>
<
template
>
<PageWrapper
:title=
"title"
class=
"content-padding"
contentBackground
@
back=
"goBack"
>
<PageWrapper
:title=
"title"
class=
"content-padding"
contentBackground
@
back=
"goBack"
>
<!--
<div
class=
"relatedRelationships_module"
>
-->
<BasicTable
@
register=
"registerTable1"
>
<BasicTable
@
register=
"registerTable1"
>
<template
#
toolbar
>
<template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"createQualityButton"
>
创建质量规则
</a-button>
<a-button
type=
"primary"
@
click=
"createQualityButton"
>
创建质量规则
</a-button>
...
@@ -12,8 +11,9 @@
...
@@ -12,8 +11,9 @@
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
@@ -37,8 +37,9 @@
...
@@ -37,8 +37,9 @@
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
@@ -54,11 +55,12 @@
...
@@ -54,11 +55,12 @@
</
template
>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
@@ -77,8 +79,9 @@
...
@@ -77,8 +79,9 @@
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
@@ -88,7 +91,6 @@
...
@@ -88,7 +91,6 @@
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
</
template
>
</
template
>
</BasicTable>
</BasicTable>
<!-- </div>-->
<!-- 引用模版 弹窗-->
<!-- 引用模版 弹窗-->
<RelatedQualityModal
@
register=
"registerRelatedQualityModal"
@
success=
"handleSuccess"
/>
<RelatedQualityModal
@
register=
"registerRelatedQualityModal"
@
success=
"handleSuccess"
/>
<!-- 引用基础标准 弹窗-->
<!-- 引用基础标准 弹窗-->
...
@@ -279,6 +281,18 @@ function referenceTemplateButton(record) {
...
@@ -279,6 +281,18 @@ function referenceTemplateButton(record) {
})
})
}
}
/**解绑 按钮*/
function
unbindButton
(
record
)
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认解绑'
,
content
:
'确认解绑选中的数据吗?'
,
onOk
()
{
createMessage
.
success
(
'解绑成功!'
);
},
});
}
/**按钮*/
/**按钮*/
function
Button
(
record
)
{
function
Button
(
record
)
{
router
.
push
({
router
.
push
({
...
...
src/views/dataStandards/basicStandards/basicStandards.data.ts
View file @
f96cc903
...
@@ -2605,15 +2605,33 @@ export const relatedBasicStandardsSchema: any[] = [
...
@@ -2605,15 +2605,33 @@ export const relatedBasicStandardsSchema: any[] = [
{
{
field
:
'relatedRelationship'
,
field
:
'relatedRelationship'
,
label
:
'关联关系'
,
label
:
'关联关系'
,
component
:
'
Inpu
t'
,
component
:
'
Selec
t'
,
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请
输入
关联关系'
,
message
:
'请
选择
关联关系'
,
},
},
],
],
componentProps
:
{
componentProps
:
{
placeholder
:
'请输入关联关系'
,
options
:[
{
label
:
'引用'
,
value
:
'引用'
},
{
label
:
'同义词'
,
value
:
'同义词'
},
{
label
:
'依赖'
,
value
:
'依赖'
},
{
label
:
'从属'
,
value
:
'从属'
}
],
placeholder
:
'请选择关联关系'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
...
@@ -2652,15 +2670,33 @@ export const relatedIndicatorStandardsSchema: any[] = [
...
@@ -2652,15 +2670,33 @@ export const relatedIndicatorStandardsSchema: any[] = [
{
{
field
:
'relatedRelationship'
,
field
:
'relatedRelationship'
,
label
:
'关联关系'
,
label
:
'关联关系'
,
component
:
'
Inpu
t'
,
component
:
'
Selec
t'
,
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请
输入
关联关系'
,
message
:
'请
选择
关联关系'
,
},
},
],
],
componentProps
:
{
componentProps
:
{
placeholder
:
'请输入关联关系'
,
options
:[
{
label
:
'引用'
,
value
:
'引用'
},
{
label
:
'同义词'
,
value
:
'同义词'
},
{
label
:
'依赖'
,
value
:
'依赖'
},
{
label
:
'从属'
,
value
:
'从属'
}
],
placeholder
:
'请选择关联关系'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
...
@@ -2699,15 +2735,33 @@ export const relatedPublicCodeSchema: any[] = [
...
@@ -2699,15 +2735,33 @@ export const relatedPublicCodeSchema: any[] = [
{
{
field
:
'relatedRelationship'
,
field
:
'relatedRelationship'
,
label
:
'关联关系'
,
label
:
'关联关系'
,
component
:
'
Inpu
t'
,
component
:
'
Selec
t'
,
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请
输入
关联关系'
,
message
:
'请
选择
关联关系'
,
},
},
],
],
componentProps
:
{
componentProps
:
{
placeholder
:
'请输入关联关系'
,
options
:[
{
label
:
'引用'
,
value
:
'引用'
},
{
label
:
'同义词'
,
value
:
'同义词'
},
{
label
:
'依赖'
,
value
:
'依赖'
},
{
label
:
'从属'
,
value
:
'从属'
}
],
placeholder
:
'请选择关联关系'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
...
...
src/views/dataStandards/basicStandards/recommendedMetadataModal.vue
View file @
f96cc903
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<template
#
footer
>
<template
#
footer
>
<a-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
type=
"primary"
@
click=
"handleCancel"
>
取消
</a-button>
<a-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</a-button>
<a-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</a-button>
<a-button
type=
"primary"
@
click=
"handleSubmit"
>
确认并创建质量规则
</a-button
>
<!--
<a-button
type=
"primary"
@
click=
"handleSubmit"
>
确认并创建质量规则
</a-button>
--
>
</
template
>
</
template
>
<!-- 提示弹窗-->
<!-- 提示弹窗-->
<RecommendedMetadataTipModal
@
register=
"registerTipsModal"
@
success=
"handleSuccess"
/>
<RecommendedMetadataTipModal
@
register=
"registerTipsModal"
@
success=
"handleSuccess"
/>
...
...
src/views/dataStandards/basicStandards/relatedRelationships.vue
View file @
f96cc903
...
@@ -38,8 +38,9 @@
...
@@ -38,8 +38,9 @@
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
@@ -58,8 +59,9 @@
...
@@ -58,8 +59,9 @@
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
@@ -78,8 +80,9 @@
...
@@ -78,8 +80,9 @@
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
@@ -98,8 +101,9 @@
...
@@ -98,8 +101,9 @@
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
@@ -119,8 +123,9 @@
...
@@ -119,8 +123,9 @@
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
//解绑
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: Button.bind(null, record),
onClick:
unbind
Button.bind(null, record),
},
},
]"
]"
/>
/>
...
...
src/views/dataStandards/publicCode/CopyModal.vue
View file @
f96cc903
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
/**确定按钮*/
/**确定按钮*/
async
function
handleSubmit
()
{
async
function
handleSubmit
()
{
createMessage
.
success
(
'
移动
成功'
);
createMessage
.
success
(
'
复制
成功'
);
closeModal
()
closeModal
()
}
}
...
...
src/views/dataStandards/publicCode/ImportRelativeModal.vue
deleted
100644 → 0
View file @
08f58e89
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
>
<template
#
formFooter
>
<a-Button
type=
"info"
@
click=
"handleDownByData"
style=
"margin-left: 150px;border-color: #4aabfe"
>
下载文件模版
</a-Button>
</
template
>
</BasicForm>
</BasicModal>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
importRelativeFormSchema
}
from
'./publicCode.data'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
BasicUpload
}
from
'@/components/Upload'
;
import
{
uploadApi
}
from
'@/api/sys/upload'
;
import
{
downloadByData
}
from
"@/utils/file/download"
;
defineOptions
({
name
:
'AccountModal'
});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
getTitle
=
computed
(()
=>
(
'导入关联关系'
));
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
importRelativeFormSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
setModalProps
({
confirmLoading
:
false
});
});
/**下载*/
function
handleDownByData
()
{
downloadByData
(
'text content'
,
'导入关联关系模版.xls'
);
}
/**上传事件*/
function
handleChange
(
list
:
string
[])
{
createMessage
.
success
(
`已上传文件
${
JSON
.
stringify
(
list
)}
`
);
}
/**提交按钮*/
function
handleSubmit
()
{
createMessage
.
success
(
'导入成功!'
)
closeModal
();
}
</
script
>
src/views/dataStandards/publicCode/detailPublicCode.vue
View file @
f96cc903
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</div>
</div>
<div>
<div>
<a-button
type=
"primary"
@
click=
"contrastButton"
>
版本对比
</a-button>
<a-button
type=
"primary"
@
click=
"contrastButton"
>
版本对比
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"re
set
Button"
>
回滚
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"re
turn
Button"
>
回滚
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"exitButton"
>
退出查看
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"exitButton"
>
退出查看
</a-button>
</div>
</div>
</div>
</div>
...
@@ -173,8 +173,15 @@ function handleChange(value) {
...
@@ -173,8 +173,15 @@ function handleChange(value) {
}
}
/**回滚*/
/**回滚*/
function
resetButton
(
value
)
{
function
returnButton
(
value
)
{
createMessage
.
success
(
'回滚成功!'
)
createConfirm
({
iconType
:
'warning'
,
title
:
'确认回滚'
,
content
:
'是否确认进行回滚?'
,
onOk
()
{
createMessage
.
success
(
'回滚成功!'
);
},
});
}
}
...
...
src/views/dataStandards/publicCode/editDetail.vue
View file @
f96cc903
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
import
{
Description
}
from
'@/components/Description'
;
import
{
Description
}
from
'@/components/Description'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
Divider
}
from
'ant-design-vue'
;
import
{
Divider
}
from
'ant-design-vue'
;
import
{
detailData
,
TreeData
}
from
'./publicCodeData'
;
import
{
detailData
,
TreeData
,
referenceDocumentTreeData
}
from
'./publicCodeData'
;
import
{
router
}
from
"@/router"
;
import
{
router
}
from
"@/router"
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
import
{
...
@@ -77,7 +77,7 @@ const businessId = ref('')
...
@@ -77,7 +77,7 @@ const businessId = ref('')
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
[
registerModal
,
{
openModal
:
openModal
}]
=
useModal
();
const
[
registerModal
,
{
openModal
:
openModal
}]
=
useModal
();
const
[
registerEditPublicCodeModal
,
{
openModal
:
openEditPublicCodeModal
}]
=
useModal
();
const
[
registerEditPublicCodeModal
,
{
openModal
:
openEditPublicCodeModal
}]
=
useModal
();
const
[
registerForm1
,
{
setFieldsValue
:
setFieldsValue1
}]
=
useForm
({
const
[
registerForm1
,
{
setFieldsValue
:
setFieldsValue1
,
updateSchema
}]
=
useForm
({
labelWidth
:
100
,
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
editStandardsDetailFormSchema
,
schemas
:
editStandardsDetailFormSchema
,
...
@@ -180,11 +180,40 @@ onMounted(() => {
...
@@ -180,11 +180,40 @@ onMounted(() => {
businessId
.
value
=
route
.
query
.
businessId
businessId
.
value
=
route
.
query
.
businessId
const
data
=
TreeData
.
filter
(
item
=>
item
.
businessId
==
businessId
.
value
)
const
data
=
TreeData
.
filter
(
item
=>
item
.
businessId
==
businessId
.
value
)
title
.
value
=
data
[
0
].
standardChineseName
title
.
value
=
data
[
0
].
standardChineseName
const
treeList
=
handleTree
(
referenceDocumentTreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
updateSchema
([
{
field
:
'documentTree'
,
componentProps
:
{
treeData
:
treeList
},
},
]);
setFieldsValue1
({
setFieldsValue1
({
...
data
[
0
]
...
data
[
0
]
})
})
});
});
/**数组对象转成树*/
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
id
=
id
||
'id'
parentId
=
parentId
||
'parentId'
children
=
children
||
'children'
rootId
=
rootId
||
Math
.
min
.
apply
(
Math
,
data
.
map
(
item
=>
{
return
item
[
parentId
]
}))
||
0
// 对源数据深度克隆
const
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
// 循环所有项
const
treeData
=
cloneData
.
filter
(
father
=>
{
const
branchArr
=
cloneData
.
filter
(
child
=>
{
// 返回每一项的子级数组
return
father
[
id
]
===
child
[
parentId
]
})
branchArr
.
length
>
0
?
father
.
children
=
branchArr
:
''
// 返回第一层
return
father
[
parentId
]
===
rootId
})
return
treeData
!==
''
?
treeData
:
data
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.desc-wrap {
.desc-wrap {
...
...
src/views/dataStandards/publicCode/index.vue
View file @
f96cc903
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<a-button
type=
"primary"
@
click=
"copyButton"
>
复制到
</a-button>
<a-button
type=
"primary"
@
click=
"copyButton"
>
复制到
</a-button>
<a-button
type=
"primary"
@
click=
"deleteBatchButton"
>
删除
</a-button>
<a-button
type=
"primary"
@
click=
"deleteBatchButton"
>
删除
</a-button>
<a-button
type=
"primary"
@
click=
"MoveButton"
>
移动
</a-button>
<a-button
type=
"primary"
@
click=
"MoveButton"
>
移动
</a-button>
<a-button
type=
"primary"
@
click=
"ImportDataStandardsButton"
>
导入数据标准
</a-button>
<a-button
type=
"primary"
@
click=
"ExportRelativeButton"
>
导出关联关系
</a-button>
<a-button
type=
"primary"
@
click=
"ExportRelativeButton"
>
导出关联关系
</a-button>
<a-button
type=
"primary"
@
click=
"ExportDataStandardsButton"
>
导出数据标准
</a-button>
<a-button
type=
"primary"
@
click=
"ExportDataStandardsButton"
>
导出数据标准
</a-button>
<a-button
type=
"primary"
@
click=
"batchPublishButton"
>
批量发布
</a-button>
<a-button
type=
"primary"
@
click=
"batchPublishButton"
>
批量发布
</a-button>
...
@@ -61,6 +62,9 @@
...
@@ -61,6 +62,9 @@
</span>
</span>
</
template
>
</
template
>
</BasicTable>
</BasicTable>
<!-- 导入数据标准 弹窗-->
<ImportDataStandardsModal
@
register=
"registerDataStandardsModal"
@
success=
"handleSuccess"
/>
<!-- 新建公共代码 弹窗-->
<!-- 新建公共代码 弹窗-->
<CreatePublicCode
@
register=
"registerCreatePublicCodeModal"
@
success=
"handleSuccess"
/>
<CreatePublicCode
@
register=
"registerCreatePublicCodeModal"
@
success=
"handleSuccess"
/>
<!-- 新建标准分类 弹窗-->
<!-- 新建标准分类 弹窗-->
...
@@ -92,11 +96,12 @@
...
@@ -92,11 +96,12 @@
import
{
router
}
from
'@/router'
;
import
{
router
}
from
'@/router'
;
import
{
exportUserList
}
from
"@/api/system/user/user"
;
import
{
exportUserList
}
from
"@/api/system/user/user"
;
import
{
downloadByData
}
from
"@/utils/file/download"
;
import
{
downloadByData
}
from
"@/utils/file/download"
;
import
ImportDataStandardsModal
from
'./ImportDataStandardsModal.vue'
;
defineOptions
({
name
:
'AccountManagement'
});
defineOptions
({
name
:
'AccountManagement'
});
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
route
=
useRoute
();
const
go
=
useGo
();
const
go
=
useGo
();
const
[
registerDataStandardsModal
,
{
openModal
:
openDataStandardsModal
}]
=
useModal
();
const
[
registerCreatePublicCodeModal
,
{
openModal
:
openCreatePublicCodeModal
}]
=
useModal
();
const
[
registerCreatePublicCodeModal
,
{
openModal
:
openCreatePublicCodeModal
}]
=
useModal
();
const
[
registerCreateStandardsTypeModal
,
{
openModal
:
openCreateStandardsTypeModal
}]
=
useModal
();
const
[
registerCreateStandardsTypeModal
,
{
openModal
:
openCreateStandardsTypeModal
}]
=
useModal
();
const
[
registerMoveModal
,
{
openModal
:
openMoveModal
}]
=
useModal
();
const
[
registerMoveModal
,
{
openModal
:
openMoveModal
}]
=
useModal
();
...
@@ -243,6 +248,13 @@
...
@@ -243,6 +248,13 @@
downloadByData
(
data
,
'数据标准信息'
+
'.xlsx'
);
downloadByData
(
data
,
'数据标准信息'
+
'.xlsx'
);
}
}
/**导入数据标准*/
async
function
ImportDataStandardsButton
()
{
openDataStandardsModal
(
true
,
{
});
}
function
handleSuccess
({
isUpdate
,
values
})
{
function
handleSuccess
({
isUpdate
,
values
})
{
}
}
...
...
src/views/dataStandards/publicCode/publicCode.data.ts
View file @
f96cc903
...
@@ -393,14 +393,14 @@ export const detailSchema: FormSchema[] = [
...
@@ -393,14 +393,14 @@ export const detailSchema: FormSchema[] = [
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
{
{
field
:
'
standardPath
'
,
field
:
'
belongingTheme
'
,
label
:
'
标准路径
'
,
label
:
'
所属主题
'
,
component
:
'Input'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请输入
标准路径
'
,
message
:
'请输入
所属主题
'
,
},
},
],
],
componentProps
:
{
componentProps
:
{
...
@@ -412,6 +412,26 @@ export const detailSchema: FormSchema[] = [
...
@@ -412,6 +412,26 @@ export const detailSchema: FormSchema[] = [
placeholder
:
'-'
,
placeholder
:
'-'
,
},
},
},
},
// {
// field: 'standardPath',
// label: '标准路径',
// component: 'Input',
// colProps: { lg: 8, md: 8 },
// rules: [
// {
// required: true,
// message: '请输入标准路径',
// },
// ],
// componentProps: {
// style: {
// border: 'none',
// backgroundColor: 'transparent',
// },
// readonly: true,
// placeholder: '-',
// },
// },
{
{
field
:
'standardNumber'
,
field
:
'standardNumber'
,
label
:
'标准编号'
,
label
:
'标准编号'
,
...
@@ -547,6 +567,26 @@ export const detailSchema: FormSchema[] = [
...
@@ -547,6 +567,26 @@ export const detailSchema: FormSchema[] = [
placeholder
:
'-'
,
placeholder
:
'-'
,
},
},
},
},
{
field
:
'referenceDocument'
,
label
:
'引用文档'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请选择引用文档'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'-'
,
},
},
];
];
/**详情页列表 表头*/
/**详情页列表 表头*/
export
const
detailColumns
:
BasicColumn
[]
=
[
export
const
detailColumns
:
BasicColumn
[]
=
[
...
@@ -627,20 +667,35 @@ export const editStandardsDetailFormSchema: FormSchema[] = [
...
@@ -627,20 +667,35 @@ export const editStandardsDetailFormSchema: FormSchema[] = [
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
{
{
field
:
'
standardPath
'
,
field
:
'
belongingTheme
'
,
label
:
'
标准路径
'
,
label
:
'
所属主题
'
,
component
:
'Input'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请输入
标准路径
'
,
message
:
'请输入
所属主题
'
,
},
},
],
],
componentProps
:
{
componentProps
:
{
placeholder
:
'-'
,
placeholder
:
'-'
,
},
},
},
},
// {
// field: 'standardPath',
// label: '标准路径',
// component: 'Input',
// colProps: { lg: 8, md: 8 },
// rules: [
// {
// required: true,
// message: '请输入标准路径',
// },
// ],
// componentProps: {
// placeholder: '-',
// },
// },
{
{
field
:
'standardNumber'
,
field
:
'standardNumber'
,
label
:
'标准编号'
,
label
:
'标准编号'
,
...
@@ -750,6 +805,21 @@ export const editStandardsDetailFormSchema: FormSchema[] = [
...
@@ -750,6 +805,21 @@ export const editStandardsDetailFormSchema: FormSchema[] = [
placeholder
:
'-'
,
placeholder
:
'-'
,
},
},
},
},
{
field
:
'documentTree'
,
label
:
'引用文档'
,
component
:
'TreeSelect'
,
colProps
:
{
lg
:
8
,
md
:
8
},
defaultValue
:
'100'
,
componentProps
:
{
fieldNames
:
{
label
:
'documentName'
,
value
:
'businessId'
,
},
getPopupContainer
:
()
=>
document
.
body
,
},
required
:
true
,
},
];
];
/**编辑公共代码 表单2*/
/**编辑公共代码 表单2*/
export
const
addValueFormSchema
:
FormSchema
[]
=
[
export
const
addValueFormSchema
:
FormSchema
[]
=
[
...
@@ -1181,15 +1251,33 @@ export const relatedBasicStandardsSchema: any[] = [
...
@@ -1181,15 +1251,33 @@ export const relatedBasicStandardsSchema: any[] = [
{
{
field
:
'relatedRelationship'
,
field
:
'relatedRelationship'
,
label
:
'关联关系'
,
label
:
'关联关系'
,
component
:
'
Inpu
t'
,
component
:
'
Selec
t'
,
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请
输入
关联关系'
,
message
:
'请
选择
关联关系'
,
},
},
],
],
componentProps
:
{
componentProps
:
{
placeholder
:
'请输入关联关系'
,
options
:[
{
label
:
'引用'
,
value
:
'引用'
},
{
label
:
'同义词'
,
value
:
'同义词'
},
{
label
:
'依赖'
,
value
:
'依赖'
},
{
label
:
'从属'
,
value
:
'从属'
}
],
placeholder
:
'请选择关联关系'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
},
...
...
src/views/dataStandards/publicCode/publicCodeContrast.vue
View file @
f96cc903
...
@@ -46,11 +46,11 @@
...
@@ -46,11 +46,11 @@
<div
style=
"font-size: 15px;padding-left: 10px;padding-left: 50px"
>
<div
style=
"font-size: 15px;padding-left: 10px;padding-left: 50px"
>
<div>
<div>
版本
<Select
版本
<Select
v-model:value=
"optionValue"
v-model:value=
"optionValue
1
"
show-search
show-search
placeholder=
"请选择版本"
placeholder=
"请选择版本"
style=
"width: 200px;margin-left: 10px"
style=
"width: 200px;margin-left: 10px"
:options=
"options"
:options=
"options
1
"
@
change=
"handleChange"
@
change=
"handleChange"
></Select>
></Select>
</div>
</div>
...
@@ -99,6 +99,13 @@
...
@@ -99,6 +99,13 @@
{
value
:
'V2'
,
label
:
'V2'
},
{
value
:
'V2'
,
label
:
'V2'
},
{
value
:
'V3'
,
label
:
'V3'
},
{
value
:
'V3'
,
label
:
'V3'
},
]);
]);
const
options1
=
ref
<
any
>
([
{
value
:
'V1'
,
label
:
'V1'
},
{
value
:
'V2'
,
label
:
'V2'
},
{
value
:
'V3'
,
label
:
'V3'
},
]);
const
optionValue
=
ref
(
'V3'
)
const
optionValue1
=
ref
(
'V1'
)
const
orderOptions
=
ref
<
any
>
([
const
orderOptions
=
ref
<
any
>
([
{
value
:
'1'
,
label
:
'代码值升序'
},
{
value
:
'1'
,
label
:
'代码值升序'
},
{
value
:
'2'
,
label
:
'代码值降序'
},
{
value
:
'2'
,
label
:
'代码值降序'
},
...
@@ -181,6 +188,12 @@
...
@@ -181,6 +188,12 @@
function
endContrast
()
{
function
endContrast
()
{
createMessage
.
info
(
'结束对比'
);
createMessage
.
info
(
'结束对比'
);
startContrastFlag
.
value
=
false
startContrastFlag
.
value
=
false
router
.
push
({
path
:
'/dataStandards/publicCode/detailPublicCode'
,
query
:
{
businessId
:
route
.
query
.
businessId
,
},
});
}
}
/**回滚*/
/**回滚*/
...
...
src/views/dataStandards/publicCode/publicCodeData.ts
View file @
f96cc903
...
@@ -62,10 +62,6 @@ export const TreeData: any[] = [
...
@@ -62,10 +62,6 @@ export const TreeData: any[] = [
"publishStatus"
:
"已发布"
,
"publishStatus"
:
"已发布"
,
"holderGroup"
:
"默认工作组"
,
"holderGroup"
:
"默认工作组"
,
"standardCode"
:
"BAS000001"
,
"standardCode"
:
"BAS000001"
,
"referenceStandard"
:[
{
icon
:
'😂'
,
text
:
'数据源1'
},
{
icon
:
'🔍'
,
text
:
'数据源2'
},
],
"createDate"
:
"2024-10-24 10:04:04"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
"icon"
:
"ant-design:partition-outlined"
,
"icon"
:
"ant-design:partition-outlined"
,
...
@@ -98,8 +94,9 @@ export const TreeData: any[] = [
...
@@ -98,8 +94,9 @@ export const TreeData: any[] = [
"collaborativeDepartment"
:
"财务部, 市场部"
,
"collaborativeDepartment"
:
"财务部, 市场部"
,
standardPath
:
'/公共代码'
,
standardPath
:
'/公共代码'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
referenceDocument
:
'
100
'
,
referenceDocument
:
'
/引用文档
'
,
calculationFormula
:
'销售额-成本/实际成本'
,
calculationFormula
:
'销售额-成本/实际成本'
,
belongingTheme
:
'公共代码'
},
},
{
{
"businessId"
:
101
,
"businessId"
:
101
,
...
@@ -144,8 +141,9 @@ export const TreeData: any[] = [
...
@@ -144,8 +141,9 @@ export const TreeData: any[] = [
"collaborativeDepartment"
:
"财务部, 市场部"
,
"collaborativeDepartment"
:
"财务部, 市场部"
,
standardPath
:
'/公共代码/共享工作区'
,
standardPath
:
'/公共代码/共享工作区'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
referenceDocument
:
'
100
'
,
referenceDocument
:
'
/引用文档
'
,
calculationFormula
:
'销售额-成本/实际成本'
,
calculationFormula
:
'销售额-成本/实际成本'
,
belongingTheme
:
'工作区'
},
},
{
{
"businessId"
:
102
,
"businessId"
:
102
,
...
@@ -190,8 +188,9 @@ export const TreeData: any[] = [
...
@@ -190,8 +188,9 @@ export const TreeData: any[] = [
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
standardPath
:
'/公共代码/个人工作区'
,
standardPath
:
'/公共代码/个人工作区'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
referenceDocument
:
'
100
'
,
referenceDocument
:
'
/引用文档
'
,
calculationFormula
:
'销售额-成本/实际成本'
,
calculationFormula
:
'销售额-成本/实际成本'
,
belongingTheme
:
'工作区'
},
},
{
{
"businessId"
:
201
,
"businessId"
:
201
,
...
@@ -239,8 +238,9 @@ export const TreeData: any[] = [
...
@@ -239,8 +238,9 @@ export const TreeData: any[] = [
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
standardPath
:
'/公共代码/个人工作区/对外投资出资方式'
,
standardPath
:
'/公共代码/个人工作区/对外投资出资方式'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
referenceDocument
:
'
100
'
,
referenceDocument
:
'
/引用文档
'
,
calculationFormula
:
'销售额-成本/实际成本'
,
calculationFormula
:
'销售额-成本/实际成本'
,
belongingTheme
:
'投资'
},
},
{
{
"referenceStandard"
:[
"referenceStandard"
:[
...
@@ -288,8 +288,9 @@ export const TreeData: any[] = [
...
@@ -288,8 +288,9 @@ export const TreeData: any[] = [
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
standardPath
:
'/公共代码/个人工作区/对外投资控股标志'
,
standardPath
:
'/公共代码/个人工作区/对外投资控股标志'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
referenceDocument
:
'
100
'
,
referenceDocument
:
'
/引用文档
'
,
calculationFormula
:
'销售额-成本/实际成本'
,
calculationFormula
:
'销售额-成本/实际成本'
,
belongingTheme
:
'投资'
},
},
{
{
"referenceStandard"
:[
"referenceStandard"
:[
...
@@ -337,8 +338,9 @@ export const TreeData: any[] = [
...
@@ -337,8 +338,9 @@ export const TreeData: any[] = [
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
standardPath
:
'/公共代码/个人工作区/对外投资企业证明'
,
standardPath
:
'/公共代码/个人工作区/对外投资企业证明'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
referenceDocument
:
'
100
'
,
referenceDocument
:
'
/引用文档
'
,
calculationFormula
:
'销售额-成本/实际成本'
,
calculationFormula
:
'销售额-成本/实际成本'
,
belongingTheme
:
'投资'
,
},
},
{
{
"referenceStandard"
:[
"referenceStandard"
:[
...
@@ -386,8 +388,9 @@ export const TreeData: any[] = [
...
@@ -386,8 +388,9 @@ export const TreeData: any[] = [
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
,
standardPath
:
'/公共代码/共享工作区/zy_basic_standard'
,
standardPath
:
'/公共代码/共享工作区/zy_basic_standard'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
indicatorCaliber
:
'销售额-成本/实际成本'
,
referenceDocument
:
'
100
'
,
referenceDocument
:
'
/引用文档
'
,
calculationFormula
:
'销售额-成本/实际成本'
,
calculationFormula
:
'销售额-成本/实际成本'
,
belongingTheme
:
'销售'
}
}
];
];
...
@@ -555,6 +558,87 @@ export const chooseDictoryTreeData = [
...
@@ -555,6 +558,87 @@ export const chooseDictoryTreeData = [
icon
:
'ion:settings-outline'
,
icon
:
'ion:settings-outline'
,
},
},
]
]
/**编辑页 引用文档树 数据*/
export
const
referenceDocumentTreeData
=
[
{
"delFlag"
:
"0"
,
"flag"
:
"1"
,
"businessId"
:
100
,
"documentName"
:
"引用文档管理"
,
"anotherName"
:
"引用文档管理"
,
"parentId"
:
0
,
"ancestors"
:
"0"
,
"orderNum"
:
0
,
"children"
:
[
],
icon
:
'ion:settings-outline'
,
},
{
"delFlag"
:
"0"
,
"flag"
:
"1"
,
"businessId"
:
101
,
"documentName"
:
"文档文档夹1"
,
"anotherName"
:
"文档文档夹1"
,
"parentId"
:
100
,
"ancestors"
:
"0,100"
,
"children"
:
[
],
icon
:
'ion:settings-outline'
,
},
{
"delFlag"
:
"0"
,
"flag"
:
"1"
,
"businessId"
:
102
,
"documentName"
:
"文档文档夹2"
,
"anotherName"
:
"文档文档夹1"
,
"parentId"
:
100
,
"ancestors"
:
"0,100"
,
"children"
:
[
],
icon
:
'ion:settings-outline'
,
},
{
"delFlag"
:
"0"
,
"flag"
:
"1"
,
"businessId"
:
103
,
"documentName"
:
"文档文档夹3"
,
"anotherName"
:
"文档文档夹1"
,
"parentId"
:
100
,
"ancestors"
:
"0,100"
,
"children"
:
[
],
icon
:
'ion:settings-outline'
,
},
{
"delFlag"
:
"0"
,
"flag"
:
"1"
,
"businessId"
:
201
,
"documentName"
:
"文档1"
,
"anotherName"
:
"文档1"
,
"parentId"
:
101
,
"ancestors"
:
"0,100,101"
,
"children"
:
[
],
icon
:
'ion:settings-outline'
,
},
{
"delFlag"
:
"0"
,
"flag"
:
"1"
,
"businessId"
:
202
,
"documentName"
:
"文档2"
,
"anotherName"
:
"文档2"
,
"parentId"
:
102
,
"ancestors"
:
"0,100,102"
,
"children"
:
[
],
icon
:
'ion:settings-outline'
,
},
{
"delFlag"
:
"0"
,
"flag"
:
"1"
,
"businessId"
:
203
,
"documentName"
:
"文档3"
,
"anotherName"
:
"文档3"
,
"parentId"
:
103
,
"ancestors"
:
"0,100,103"
,
"children"
:
[
],
icon
:
'ion:settings-outline'
,
},
]
/**对比左侧数据*/
/**对比左侧数据*/
export
const
leftContrastData
:
any
[]
=
[
export
const
leftContrastData
:
any
[]
=
[
...
...
src/views/dataStandards/publicCode/relatedRelationships.vue
View file @
f96cc903
<
template
>
<
template
>
<PageWrapper
:title=
"title"
class=
"content-padding"
contentBackground
@
back=
"goBack"
>
<PageWrapper
:title=
"title"
class=
"content-padding"
contentBackground
@
back=
"goBack"
>
<!--
<div
class=
"relatedRelationships_module"
>
-->
<BasicTable
@
register=
"registerTable3"
>
<template
#
toolbar
>
<BasicTable
@
register=
"registerTable3"
>
<a-button
type=
"primary"
@
click=
"referenceBasicStandardsButton"
>
引用标准
</a-button>
<template
#
toolbar
>
</
template
>
<a-button
type=
"primary"
@
click=
"referenceBasicStandardsButton"
>
引用标准
</a-button>
<
template
#
bodyCell=
"{ column, record }"
>
</
template
>
<template
v-if=
"column.key === 'action'"
>
<
template
#
bodyCell=
"{ column, record }"
>
<TableAction
<template
v-if=
"column.key === 'action'"
>
:actions=
"[
<TableAction
{
:actions=
"[
//解绑
{
icon: 'ant-design:link-outlined',
icon: 'ant-design:link-outlined',
onClick: unbindButton.bind(null, record),
onClick: Button.bind(null, record),
},
},
]"
]"
/>
/>
</
template
>
</template>
<
template
#
standardName=
"{ text, record }"
>
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
</
template
>
</
template
>
</BasicTable>
</template>
<
template
#
standardName=
"{ text, record }"
>
<!-- </div>-->
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
</
template
>
</BasicTable>
<!-- 引用基础标准 弹窗-->
<!-- 引用基础标准 弹窗-->
<RelatedBasicStandardModal
@
register=
"registerBasicStandardModal"
@
success=
"handleSuccess"
/>
<RelatedBasicStandardModal
@
register=
"registerBasicStandardModal"
@
success=
"handleSuccess"
/>
</PageWrapper>
</PageWrapper>
...
@@ -98,18 +95,19 @@ function referenceBasicStandardsButton(record) {
...
@@ -98,18 +95,19 @@ function referenceBasicStandardsButton(record) {
})
})
}
}
/**按钮*/
/**解绑 按钮*/
function
Button
(
record
)
{
function
unbindButton
(
record
)
{
router
.
push
({
createConfirm
({
path
:
''
,
iconType
:
'warning'
,
query
:
{
title
:
'确认解绑'
,
content
:
'确认解绑选中的数据吗?'
,
onOk
()
{
createMessage
.
success
(
'解绑成功!'
);
},
},
});
});
}
}
/**表1 跳转*/
/**表1 跳转*/
function
showDetails1
()
{
function
showDetails1
()
{
...
@@ -129,11 +127,3 @@ onMounted(() => {
...
@@ -129,11 +127,3 @@ onMounted(() => {
</
script
>
</
script
>
<!--<style lang="scss" scoped>-->
<!--.relatedRelationships_module{-->
<!-- ::v-deep(.ant-table-body){-->
<!-- min-height: 150px!important;-->
<!-- height:150px!important;-->
<!-- }-->
<!--}-->
<!--</style>-->
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