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
730272a6
Commit
730272a6
authored
Dec 10, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据标准
parent
594df71b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
525 additions
and
504 deletions
+525
-504
VersionModal.vue
src/views/dataStandards/IndicatorStandards/VersionModal.vue
+88
-84
index.vue
src/views/dataStandards/IndicatorStandards/index.vue
+87
-64
relatedRelationships.vue
...dataStandards/IndicatorStandards/relatedRelationships.vue
+259
-288
index.vue
src/views/dataStandards/basicStandards/index.vue
+0
-2
VersionModal.vue
src/views/dataStandards/publicCode/VersionModal.vue
+5
-1
index.vue
src/views/dataStandards/publicCode/index.vue
+86
-62
relatedRelationships.vue
src/views/dataStandards/publicCode/relatedRelationships.vue
+0
-3
No files found.
src/views/dataStandards/IndicatorStandards/VersionModal.vue
View file @
730272a6
<
template
>
<BasicModal
width=
"50%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
>
<BasicModal
width=
"50%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
>
<BasicTable
@
register=
"registerTable"
>
<template
#
bodyCell=
"
{ column, record }">
<template
v-if=
"column.key === 'action'"
>
...
...
@@ -11,7 +11,11 @@
},
{
label: '撤回',
onClick: withdrawButton.bind(null, record),
popConfirm: {
title: '是否撤回该版本?',
placement: 'left',
confirm: withdrawButton.bind(null, record),
},
},
{
// icon: 'clarity:note-edit-line',
...
...
@@ -26,102 +30,102 @@
</BasicModal>
</template>
<
script
lang=
"ts"
setup
>
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicModal
,
useModalInner
,
useModal
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
reactive
,
unref
,
onDeactivated
,
onMounted
,
ref
,
computed
}
from
'vue'
;
import
{
reactive
,
unref
,
onDeactivated
,
onMounted
,
ref
,
computed
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
searchFormSchema
,
versionColumns
,
versionData
}
from
'./indicatorStandardsData'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
router
}
from
"@/router"
;
import
{
router
}
from
'@/router'
;
defineOptions
({
name
:
'AccountManagement'
});
const
{
createMessage
}
=
useMessage
();
const
route
=
useRoute
();
const
go
=
useGo
();
const
[
registerMoveUser
,
{
openModal
:
openMoveUserModal
}]
=
useModal
();
const
searchInfo
=
reactive
<
Recordable
>
({});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
getTitle
=
computed
(()
=>
(
'版本管理'
));
const
tableData
=
ref
([])
const
isAdd
=
ref
(
true
)
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
}]
=
useTable
({
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
"1"
,
pageSize
:
"10"
,
pages
:
"1"
,
total
:
tableData
.
value
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
var
data
=
[]
data
=
tableData
.
value
if
(
params
.
name
!=
undefined
&&
params
.
name
!=
''
&&
params
.
name
!=
null
){
//过滤出名字包含params.name的数据
data
=
data
.
filter
((
item
)
=>
item
.
name
.
includes
(
params
.
name
));
}
if
(
params
.
username
!=
undefined
&&
params
.
username
!=
''
&&
params
.
username
!=
null
){
data
=
data
.
filter
((
item
)
=>
item
.
username
.
includes
(
params
.
username
));
}
return
{
...
response
,
data
:
data
};
},
rowKey
:
'businessId'
,
columns
:
versionColumns
,
rowSelection
:
true
,
formConfig
:
{
labelWidth
:
100
,
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
},
useSearchForm
:
true
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
actionColumn
:
{
width
:
150
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
handleSearchInfoFn
(
info
)
{
return
info
;
},
});
defineOptions
({
name
:
'AccountManagement'
});
const
{
createMessage
}
=
useMessage
();
const
route
=
useRoute
();
const
go
=
useGo
();
const
[
registerMoveUser
,
{
openModal
:
openMoveUserModal
}]
=
useModal
();
const
searchInfo
=
reactive
<
Recordable
>
({});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
getTitle
=
computed
(()
=>
'版本管理'
);
const
tableData
=
ref
([]);
const
isAdd
=
ref
(
true
);
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
]
=
useTable
({
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
tableData
.
value
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
var
data
=
[];
data
=
tableData
.
value
;
if
(
params
.
name
!=
undefined
&&
params
.
name
!=
''
&&
params
.
name
!=
null
)
{
//过滤出名字包含params.name的数据
data
=
data
.
filter
((
item
)
=>
item
.
name
.
includes
(
params
.
name
));
}
if
(
params
.
username
!=
undefined
&&
params
.
username
!=
''
&&
params
.
username
!=
null
)
{
data
=
data
.
filter
((
item
)
=>
item
.
username
.
includes
(
params
.
username
));
}
return
{
...
response
,
data
:
data
};
},
rowKey
:
'businessId'
,
columns
:
versionColumns
,
rowSelection
:
true
,
formConfig
:
{
labelWidth
:
100
,
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
},
useSearchForm
:
true
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
actionColumn
:
{
width
:
150
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
handleSearchInfoFn
(
info
)
{
return
info
;
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
setModalProps
({
confirmLoading
:
false
,
showOkBtn
:
false
,
showCancelBtn
:
false
});
setModalProps
({
confirmLoading
:
false
,
showOkBtn
:
false
,
showCancelBtn
:
false
});
isAdd
.
value
=
!!
data
?.
isAdd
;
});
/** 对比成功*/
function
contrastButton
()
{
closeModal
();
router
.
push
({
path
:
'/dataStandards/IndicatorStandards/basicStandardsContrast'
,
query
:
{
businessId
:
route
.
query
.
businessId
,
},
});
}
/** 对比成功*/
function
contrastButton
()
{
closeModal
()
router
.
push
({
path
:
'/dataStandards/IndicatorStandards/basicStandardsContrast'
,
query
:
{
businessId
:
route
.
query
.
businessId
,
},
});
}
/** 撤回成功*/
function
withdrawButton
()
{
createMessage
.
success
(
'撤回成功!'
)
}
/** 撤回成功*/
function
withdrawButton
()
{
createMessage
.
success
(
'撤回成功!'
);
}
/** 查看*/
function
detailButton
(
record
)
{
emit
(
'success'
,
{
values
:
{
...
record
}
});
closeModal
();
}
/** 查看*/
function
detailButton
(
record
)
{
emit
(
'success'
,
{
values
:
{
...
record
}
});
closeModal
();
}
onMounted
(()
=>
{
tableData
.
value
=
versionData
});
onMounted
(()
=>
{
tableData
.
value
=
versionData
;
});
</
script
>
src/views/dataStandards/IndicatorStandards/index.vue
View file @
730272a6
...
...
@@ -3,15 +3,45 @@
<IndicatorStandardsTree
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
<BasicTable
@
register=
"registerTable"
class=
"w-3/4 xl:w-4/5"
:searchInfo=
"searchInfo"
>
<template
#
toolbar
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"copyButton"
>
复制到
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"deleteBatchButton"
>
删除
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"MoveButton"
>
移动
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ImportDataStandardsButton"
>
导入数据标准
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ExportRelativeButton"
>
导出关联关系
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ExportDataStandardsButton"
>
导出数据标准
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"batchPublishButton"
>
批量发布
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"copyButton"
>
复制到
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"deleteBatchButton"
>
删除
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"MoveButton"
>
移动
</a-button
>
<a-button
type=
"primary"
@
click=
"ImportDataStandardsButton"
>
导入数据标准
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ExportRelativeButton"
>
导出关联关系
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ExportDataStandardsButton"
>
导出数据标准
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"batchPublishButton"
>
批量发布
</a-button
>
<a-button
type=
"primary"
@
click=
"createStandardsTypeButton"
>
新建标准分类
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"createIndicatorStandardsButton"
>
新建指标标准
</a-button>
<a-button
type=
"primary"
@
click=
"createIndicatorStandardsButton"
>
新建指标标准
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
...
...
@@ -62,24 +92,27 @@
</span>
</
template
>
</BasicTable>
<!-- 导入数据标准 弹窗-->
<!-- 导入数据标准 弹窗-->
<ImportDataStandardsModal
@
register=
"registerDataStandardsModal"
@
success=
"handleSuccess"
/>
<!-- 新建基础标准 弹窗-->
<CreateIndicatorStandards
@
register=
"registerCreateIndicatorStandardsModal"
@
success=
"handleSuccess"
/>
<!-- 新建标准分类 弹窗-->
<!-- 新建基础标准 弹窗-->
<CreateIndicatorStandards
@
register=
"registerCreateIndicatorStandardsModal"
@
success=
"handleSuccess"
/>
<!-- 新建标准分类 弹窗-->
<CreateStandardsType
@
register=
"registerCreateStandardsTypeModal"
@
success=
"handleSuccess"
/>
<!-- 移动 弹窗-->
<!-- 移动 弹窗-->
<MoveModal
@
register=
"registerMoveModal"
@
success=
"handleSuccess"
/>
<!-- 复制到 弹窗-->
<!-- 复制到 弹窗-->
<CopyModal
@
register=
"registerCopyModal"
@
success=
"handleSuccess"
/>
<!-- 重命名 弹窗-->
<!-- 重命名 弹窗-->
<ResetNameModal
@
register=
"registerResetNameModal"
@
success=
"handleSuccess"
/>
<!-- 批量发布 弹窗-->
<BatchPublish
@
register=
"registerModalBatch"
/>
<!-- 批量发布 弹窗-->
<BatchPublish
@
register=
"registerModalBatch"
/>
</PageWrapper>
</template>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
unref
,
onDeactivated
,
onMounted
,
ref
}
from
'vue'
;
import
{
reactive
,
unref
,
onDeactivated
,
onMounted
,
ref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
IndicatorStandardsTree
from
'./IndicatorStandardsTree.vue'
;
...
...
@@ -95,8 +128,8 @@
import
{
useRoute
}
from
'vue-router'
;
import
{
TreeData
}
from
'./indicatorStandardsData'
;
import
{
router
}
from
'@/router'
;
import
{
exportUserList
}
from
"@/api/system/user/user"
;
import
{
downloadByData
}
from
"@/utils/file/download"
;
import
{
exportUserList
}
from
'@/api/system/user/user'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
ImportDataStandardsModal
from
'./ImportDataStandardsModal.vue'
;
import
BatchPublish
from
'./batchPublish.vue'
;
...
...
@@ -104,39 +137,44 @@
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
go
=
useGo
();
const
[
registerModalBatch
,
{
openModal
:
openModalBatch
}]
=
useModal
();
const
[
registerModalBatch
,
{
openModal
:
openModalBatch
}]
=
useModal
();
const
[
registerDataStandardsModal
,
{
openModal
:
openDataStandardsModal
}]
=
useModal
();
const
[
registerCreateIndicatorStandardsModal
,
{
openModal
:
openCreateIndicatorStandardsModal
}]
=
useModal
();
const
[
registerCreateStandardsTypeModal
,
{
openModal
:
openCreateStandardsTypeModal
}]
=
useModal
();
const
[
registerCreateIndicatorStandardsModal
,
{
openModal
:
openCreateIndicatorStandardsModal
}]
=
useModal
();
const
[
registerCreateStandardsTypeModal
,
{
openModal
:
openCreateStandardsTypeModal
}]
=
useModal
();
const
[
registerMoveModal
,
{
openModal
:
openMoveModal
}]
=
useModal
();
const
[
registerCopyModal
,
{
openModal
:
openCopyModal
}]
=
useModal
();
const
[
registerResetNameModal
,
{
openModal
:
openResetNameModal
}]
=
useModal
();
const
searchInfo
=
reactive
<
Recordable
>
({});
const
tableData
=
ref
([])
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
}]
=
useTable
({
const
tableData
=
ref
([]);
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
]
=
useTable
({
title
:
''
,
api
:
async
(
params
)
=>
{
//过滤掉tableData.value中,businessId等于100的
var
data
=
[];
if
(
params
.
taskId
==
undefined
||
params
.
taskId
==
''
)
{
if
(
params
.
taskId
==
undefined
||
params
.
taskId
==
''
)
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
businessId
>=
200
);
}
else
if
(
params
.
taskId
>=
200
)
{
}
else
if
(
params
.
taskId
>=
200
)
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
businessId
==
params
.
taskId
);
}
else
{
}
else
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
parentId
==
params
.
taskId
);
}
const
response
=
{
pageNu
:
"1"
,
pageSize
:
"10"
,
pages
:
"1"
,
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
data
.
length
,
code
:
''
,
message
:
''
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
data
};
return
{
...
response
,
data
:
data
};
},
rowKey
:
'businessId'
,
columns
,
...
...
@@ -146,12 +184,12 @@
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
resetFunc
:
()
=>
{
searchInfo
.
taskId
=
''
searchInfo
.
taskId
=
''
;
},
},
useSearchForm
:
true
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
handleSearchInfoFn
(
info
)
{
return
info
;
...
...
@@ -165,23 +203,19 @@
/**复制到 按钮*/
function
copyButton
()
{
openCopyModal
(
true
,
{
});
openCopyModal
(
true
,
{});
}
/**重命名 按钮*/
function
resetNameButton
(
record
)
{
openResetNameModal
(
true
,
{
record
record
,
});
}
/**复制到 按钮*/
function
copyButton1
()
{
openCopyModal
(
true
,
{
});
openCopyModal
(
true
,
{});
}
/**查看详情*/
...
...
@@ -189,21 +223,19 @@
router
.
push
({
path
:
'/dataStandards/IndicatorStandards/detailStandard'
,
query
:
{
businessId
:
record
.
businessId
,
businessId
:
record
.
businessId
,
},
});
}
/**移动*/
function
MoveButton
()
{
openMoveModal
(
true
,
{
});
openMoveModal
(
true
,
{});
}
/**批量发布*/
function
batchPublishButton
()
{
openModalBatch
(
true
,
{})
openModalBatch
(
true
,
{});
}
/**删除按钮*/
...
...
@@ -226,16 +258,12 @@
/**新建标准分类*/
function
createStandardsTypeButton
()
{
openCreateStandardsTypeModal
(
true
,
{
});
openCreateStandardsTypeModal
(
true
,
{});
}
/**新建指标标准*/
function
createIndicatorStandardsButton
()
{
openCreateIndicatorStandardsModal
(
true
,
{
});
openCreateIndicatorStandardsModal
(
true
,
{});
}
/**导出关联关系*/
...
...
@@ -252,17 +280,12 @@
downloadByData
(
data
,
'数据标准信息'
+
'.xlsx'
);
}
/**导入数据标准*/
/**导入数据标准*/
async
function
ImportDataStandardsButton
()
{
openDataStandardsModal
(
true
,
{
});
}
function
handleSuccess
({
isUpdate
,
values
})
{
openDataStandardsModal
(
true
,
{});
}
function
handleSuccess
({
isUpdate
,
values
})
{}
/** 树的select*/
function
handleSelect
(
taskId
=
''
)
{
...
...
@@ -275,12 +298,12 @@
router
.
push
({
path
:
'/dataStandards/IndicatorStandards/relatedRelationships'
,
query
:
{
businessId
:
record
.
businessId
,
businessId
:
record
.
businessId
,
},
});
}
onMounted
(()
=>
{
tableData
.
value
=
TreeData
tableData
.
value
=
TreeData
;
});
</
script
>
src/views/dataStandards/IndicatorStandards/relatedRelationships.vue
View file @
730272a6
<
template
>
<PageWrapper
:title=
"title"
class=
"content-padding"
contentBackground
@
back=
"goBack"
>
<BasicTable
@
register=
"registerTable1"
>
<template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"createQualityButton"
>
创建质量规则
</a-button>
<a-button
type=
"primary"
@
click=
"lookQualityButton"
>
查看质量规则
</a-button>
<a-button
type=
"primary"
@
click=
"referenceTemplateButton"
>
引用模版
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
<PageWrapper
:title=
"title"
class=
"content-padding"
contentBackground
@
back=
"goBack"
>
<BasicTable
@
register=
"registerTable1"
>
<template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"createQualityButton"
>
创建质量规则
</a-button>
<a-button
type=
"primary"
@
click=
"lookQualityButton"
>
查看质量规则
</a-button>
<a-button
type=
"primary"
@
click=
"referenceTemplateButton"
>
引用模版
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
{
//解绑
icon: 'ant-design:link-outlined',
onClick: unbindButton.bind(null, record),
},
]"
/>
</
template
>
</template>
<
template
#
qualityTemplateName=
"{ text, record }"
>
<a
@
click=
"showDetails1(record)"
>
{{
text
}}
</a>
/>
</
template
>
<
template
#
dataSource=
"{ text, record }"
>
</template>
<
template
#
qualityTemplateName=
"{ text, record }"
>
<a
@
click=
"showDetails1(record)"
>
{{
text
}}
</a>
</
template
>
<
template
#
dataSource=
"{ text, record }"
>
<span
v-for=
"(item, index) in text"
:key=
"index"
>
{{
item
.
icon
}}
</span>
</
template
>
</BasicTable>
<BasicTable
@
register=
"registerTable2"
>
<
template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"referenceBasicStandardsButton"
>
引用标准
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
</
template
>
</BasicTable>
<BasicTable
@
register=
"registerTable2"
>
<
template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"referenceBasicStandardsButton"
>
引用标准
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
{
//解绑
icon: 'ant-design:link-outlined',
onClick: unbindButton.bind(null, record),
},
]"
/>
</
template
>
</template>
<
template
#
standardName=
"{ text, record }"
>
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
/>
</
template
>
</BasicTable>
<BasicTable
@
register=
"registerTable3"
>
<
template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"referenceIndicatorStandardsButton"
>
引用标准
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
</template>
</BasicTable>
<BasicTable
@
register=
"registerTable3"
>
<
template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"referenceIndicatorStandardsButton"
>
引用标准
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
{
//解绑
icon: 'ant-design:link-outlined',
onClick: unbindButton.bind(null, record),
},
]"
/>
</
template
>
</template>
<
template
#
standardName=
"{ text, record }"
>
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
/>
</
template
>
</BasicTable>
<BasicTable
@
register=
"registerTable4"
>
<
template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"referenceMetaDataButton"
>
关联元数据
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
</template>
</BasicTable>
<BasicTable
@
register=
"registerTable4"
>
<
template
#
toolbar
>
<a-button
type=
"primary"
@
click=
"referenceMetaDataButton"
>
关联元数据
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
{
//解绑
icon: 'ant-design:link-outlined',
onClick: unbindButton.bind(null, record),
},
]"
/>
</
template
>
</template>
<
template
#
dataTable=
"{ text, record }"
>
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
/>
</
template
>
</BasicTable>
<!-- 引用模版 弹窗-->
</template>
</BasicTable>
<!-- 引用模版 弹窗-->
<RelatedQualityModal
@
register=
"registerRelatedQualityModal"
@
success=
"handleSuccess"
/>
<!-- 引用基础标准 弹窗-->
<!-- 引用基础标准 弹窗-->
<RelatedBasicStandardModal
@
register=
"registerBasicStandardModal"
@
success=
"handleSuccess"
/>
<!-- 引用元数据 弹窗-->
<!-- 引用元数据 弹窗-->
<RelatedMetaDataModal
@
register=
"registerMetaDataModal"
@
success=
"handleSuccess"
/>
<!-- 引用指标标准 弹窗-->
<RelatedIndicatorStandardsModal
@
register=
"registerIndicatorStandardsModal"
@
success=
"handleSuccess"
/>
<!-- 引用指标标准 弹窗-->
<RelatedIndicatorStandardsModal
@
register=
"registerIndicatorStandardsModal"
@
success=
"handleSuccess"
/>
</PageWrapper>
</template>
<
script
lang=
"ts"
setup
>
import
{
Divider
}
from
'ant-design-vue'
;
import
{
router
}
from
"@/router"
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
RelatedQualityModal
from
'./relatedQualityModal.vue'
;
import
RelatedBasicStandardModal
from
'./relatedBasicStandardModal.vue'
;
import
RelatedMetaDataModal
from
'./relatedMetaDataModal.vue'
;
import
RelatedIndicatorStandardsModal
from
'./relatedIndicatorStandardsModal.vue'
;
import
{
relatedRelationshipColumns1
,
relatedRelationshipColumns2
,
relatedRelationshipColumns3
,
relatedRelationshipColumns4
,
}
from
"./indicatorStandards.data"
;
import
{
relatedRelationshipsData1
,
relatedRelationshipsData2
,
relatedRelationshipsData3
,
relatedRelationshipsData4
,
}
from
"./indicatorStandardsData"
;
import
{
useModal
}
from
"@/components/Modal"
;
const
go
=
useGo
();
const
route
=
useRoute
()
const
title
=
ref
(
'关联关系'
)
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
[
registerRelatedQualityModal
,
{
openModal
:
openRelatedQualityModal
}]
=
useModal
();
const
[
registerBasicStandardModal
,
{
openModal
:
openBasicStandardModal
}]
=
useModal
();
const
[
registerMetaDataModal
,
{
openModal
:
openMetaDataModal
}]
=
useModal
();
const
[
registerIndicatorStandardsModal
,
{
openModal
:
openIndicatorStandardsModal
}]
=
useModal
();
/**列表*/
const
[
registerTable1
]
=
useTable
({
title
:
'质量模版'
,
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
"1"
,
pageSize
:
"10"
,
pages
:
"1"
,
total
:
relatedRelationshipsData1
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedRelationshipsData1
};
},
columns
:
relatedRelationshipColumns1
,
useSearchForm
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
pagination
:
false
,
bordered
:
true
,
scroll
:
{
y
:
500
},
actionColumn
:
{
width
:
100
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
});
const
[
registerTable2
]
=
useTable
({
title
:
'基础标准'
,
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
"1"
,
pageSize
:
"10"
,
pages
:
"1"
,
total
:
relatedRelationshipsData2
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedRelationshipsData2
};
},
columns
:
relatedRelationshipColumns2
,
useSearchForm
:
false
,
showTableSetting
:
false
,
pagination
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
scroll
:
{
y
:
500
},
actionColumn
:
{
width
:
100
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
});
const
[
registerTable3
]
=
useTable
({
title
:
'指标标准'
,
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
"1"
,
pageSize
:
"10"
,
pages
:
"1"
,
total
:
relatedRelationshipsData3
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedRelationshipsData3
};
},
columns
:
relatedRelationshipColumns3
,
useSearchForm
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
scroll
:
{
y
:
500
},
pagination
:
false
,
actionColumn
:
{
width
:
100
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
});
const
[
registerTable4
]
=
useTable
({
title
:
'元数据'
,
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
"1"
,
pageSize
:
"10"
,
pages
:
"1"
,
total
:
relatedRelationshipsData4
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedRelationshipsData4
};
},
columns
:
relatedRelationshipColumns4
,
useSearchForm
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
pagination
:
false
,
scroll
:
{
y
:
500
},
actionColumn
:
{
width
:
100
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
});
/**引用指标标准 按钮*/
function
referenceIndicatorStandardsButton
(
record
)
{
openIndicatorStandardsModal
(
true
,{
})
}
/**引用元数据 按钮*/
function
referenceMetaDataButton
(
record
)
{
openMetaDataModal
(
true
,{
})
}
/**引用基础标准 按钮*/
function
referenceBasicStandardsButton
(
record
)
{
openBasicStandardModal
(
true
,{
import
{
Divider
}
from
'ant-design-vue'
;
import
{
router
}
from
'@/router'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
onMounted
,
ref
}
from
'vue'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
RelatedQualityModal
from
'./relatedQualityModal.vue'
;
import
RelatedBasicStandardModal
from
'./relatedBasicStandardModal.vue'
;
import
RelatedMetaDataModal
from
'./relatedMetaDataModal.vue'
;
import
RelatedIndicatorStandardsModal
from
'./relatedIndicatorStandardsModal.vue'
;
import
{
relatedRelationshipColumns1
,
relatedRelationshipColumns2
,
relatedRelationshipColumns3
,
relatedRelationshipColumns4
,
}
from
'./indicatorStandards.data'
;
import
{
relatedRelationshipsData1
,
relatedRelationshipsData2
,
relatedRelationshipsData3
,
relatedRelationshipsData4
,
}
from
'./indicatorStandardsData'
;
import
{
useModal
}
from
'@/components/Modal'
;
})
}
/**引用质量模版 按钮*/
function
referenceTemplateButton
(
record
)
{
openRelatedQualityModal
(
true
,{
})
}
/**解绑 按钮*/
function
unbindButton
(
record
)
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认解绑'
,
content
:
'确认解绑选中的数据吗?'
,
onOk
()
{
createMessage
.
success
(
'解绑成功!'
);
const
go
=
useGo
();
const
route
=
useRoute
();
const
title
=
ref
(
'关联关系'
);
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
[
registerRelatedQualityModal
,
{
openModal
:
openRelatedQualityModal
}]
=
useModal
();
const
[
registerBasicStandardModal
,
{
openModal
:
openBasicStandardModal
}]
=
useModal
();
const
[
registerMetaDataModal
,
{
openModal
:
openMetaDataModal
}]
=
useModal
();
const
[
registerIndicatorStandardsModal
,
{
openModal
:
openIndicatorStandardsModal
}]
=
useModal
();
/**列表*/
const
[
registerTable1
]
=
useTable
({
title
:
'质量模版'
,
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
relatedRelationshipsData1
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedRelationshipsData1
};
},
columns
:
relatedRelationshipColumns1
,
useSearchForm
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
pagination
:
false
,
bordered
:
true
,
scroll
:
{
y
:
500
},
actionColumn
:
{
width
:
100
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
});
}
/**按钮*/
function
Button
(
record
)
{
router
.
push
({
path
:
''
,
query
:
{
const
[
registerTable2
]
=
useTable
({
title
:
'基础标准'
,
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
relatedRelationshipsData2
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedRelationshipsData2
};
},
columns
:
relatedRelationshipColumns2
,
useSearchForm
:
false
,
showTableSetting
:
false
,
pagination
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
scroll
:
{
y
:
500
},
actionColumn
:
{
width
:
100
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
});
}
/**查看质量规则 按钮*/
function
lookQualityButton
(
record
)
{
router
.
push
({
path
:
'/dataQuality/dataSheet/rule'
,
query
:
{
const
[
registerTable3
]
=
useTable
({
title
:
'指标标准'
,
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
relatedRelationshipsData3
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedRelationshipsData3
};
},
columns
:
relatedRelationshipColumns3
,
useSearchForm
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
scroll
:
{
y
:
500
},
pagination
:
false
,
actionColumn
:
{
width
:
100
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
});
}
/**创建质量规则 按钮*/
function
createQualityButton
(
record
)
{
router
.
push
({
path
:
'/dataQuality/dataSheet/rule'
,
query
:
{
const
[
registerTable4
]
=
useTable
({
title
:
'元数据'
,
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
relatedRelationshipsData4
.
length
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
relatedRelationshipsData4
};
},
columns
:
relatedRelationshipColumns4
,
useSearchForm
:
false
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
pagination
:
false
,
scroll
:
{
y
:
500
},
actionColumn
:
{
width
:
100
,
title
:
'操作'
,
dataIndex
:
'action'
,
},
});
}
/**表1 跳转*/
function
showDetails1
()
{
/**引用指标标准 按钮*/
function
referenceIndicatorStandardsButton
(
record
)
{
openIndicatorStandardsModal
(
true
,
{});
}
/**引用元数据 按钮*/
function
referenceMetaDataButton
(
record
)
{
openMetaDataModal
(
true
,
{});
}
/**引用基础标准 按钮*/
function
referenceBasicStandardsButton
(
record
)
{
openBasicStandardModal
(
true
,
{});
}
/**引用质量模版 按钮*/
function
referenceTemplateButton
(
record
)
{
openRelatedQualityModal
(
true
,
{});
}
}
/**解绑 按钮*/
function
unbindButton
(
record
)
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认解绑'
,
content
:
'确认解绑选中的数据吗?'
,
onOk
()
{
createMessage
.
success
(
'解绑成功!'
);
},
});
}
/**按钮*/
function
Button
(
record
)
{
router
.
push
({
path
:
''
,
query
:
{},
});
}
/**返回*/
function
goBack
()
{
// 本例的效果时点击返回始终跳转到账号列表页,实际应用时可返回上一页
go
(
'/dataStandards/IndicatorStandards/index'
);
}
/**查看质量规则 按钮*/
function
lookQualityButton
(
record
)
{
router
.
push
({
path
:
'/dataQuality/dataSheet/rule'
,
query
:
{},
});
}
/**初始化*/
onMounted
(()
=>
{
/**创建质量规则 按钮*/
function
createQualityButton
(
record
)
{
router
.
push
({
path
:
'/dataQuality/dataSheet/rule'
,
query
:
{},
});
}
});
/**表1 跳转*/
function
showDetails1
()
{}
/**返回*/
function
goBack
()
{
// 本例的效果时点击返回始终跳转到账号列表页,实际应用时可返回上一页
go
(
'/dataStandards/IndicatorStandards/index'
);
}
/**初始化*/
onMounted
(()
=>
{});
</
script
>
src/views/dataStandards/basicStandards/index.vue
View file @
730272a6
...
...
@@ -23,13 +23,11 @@
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ImportRelativeButton"
>
导入关联关系
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ImportDataStandardsButton"
>
导入数据标准
</a-button
>
...
...
src/views/dataStandards/publicCode/VersionModal.vue
View file @
730272a6
...
...
@@ -11,7 +11,11 @@
},
{
label: '撤回',
onClick: withdrawButton.bind(null, record),
popConfirm: {
title: '是否撤回该版本?',
placement: 'left',
confirm: withdrawButton.bind(null, record),
},
},
{
// icon: 'clarity:note-edit-line',
...
...
src/views/dataStandards/publicCode/index.vue
View file @
730272a6
...
...
@@ -3,15 +3,49 @@
<BasicStandardsTree
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
<BasicTable
@
register=
"registerTable"
class=
"w-3/4 xl:w-4/5"
:searchInfo=
"searchInfo"
>
<template
#
toolbar
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"copyButton"
>
复制到
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"deleteBatchButton"
>
删除
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"MoveButton"
>
移动
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ImportDataStandardsButton"
>
导入数据标准
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ExportRelativeButton"
>
导出关联关系
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ExportDataStandardsButton"
>
导出数据标准
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"batchPublishButton"
>
批量发布
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"copyButton"
>
复制到
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"deleteBatchButton"
>
删除
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"MoveButton"
>
移动
</a-button
>
<a-button
type=
"primary"
@
click=
"ImportDataStandardsButton"
>
导入数据标准
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ExportRelativeButton"
>
导出关联关系
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"ExportDataStandardsButton"
>
导出数据标准
</a-button
>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"batchPublishButton"
>
批量发布
</a-button
>
<a-button
type=
"primary"
@
click=
"createStandardsTypeButton"
>
新建标准分类
</a-button>
<a-button
type=
"primary"
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"createPublicCodeButton"
>
新建公共代码
</a-button>
<a-button
type=
"primary"
@
click=
"createPublicCodeButton"
>
新建公共代码
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
...
...
@@ -63,24 +97,24 @@
</
template
>
</BasicTable>
<!-- 导入数据标准 弹窗-->
<!-- 导入数据标准 弹窗-->
<ImportDataStandardsModal
@
register=
"registerDataStandardsModal"
@
success=
"handleSuccess"
/>
<!-- 新建公共代码 弹窗-->
<!-- 新建公共代码 弹窗-->
<CreatePublicCode
@
register=
"registerCreatePublicCodeModal"
@
success=
"handleSuccess"
/>
<!-- 新建标准分类 弹窗-->
<!-- 新建标准分类 弹窗-->
<CreateStandardsType
@
register=
"registerCreateStandardsTypeModal"
@
success=
"handleSuccess"
/>
<!-- 移动 弹窗-->
<!-- 移动 弹窗-->
<MoveModal
@
register=
"registerMoveModal"
@
success=
"handleSuccess"
/>
<!-- 复制到 弹窗-->
<!-- 复制到 弹窗-->
<CopyModal
@
register=
"registerCopyModal"
@
success=
"handleSuccess"
/>
<!-- 重命名 弹窗-->
<!-- 重命名 弹窗-->
<ResetNameModal
@
register=
"registerResetNameModal"
@
success=
"handleSuccess"
/>
<!-- 批量发布 弹窗-->
<BatchPublish
@
register=
"registerModalBatch"
/>
<!-- 批量发布 弹窗-->
<BatchPublish
@
register=
"registerModalBatch"
/>
</PageWrapper>
</template>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
unref
,
onDeactivated
,
onMounted
,
ref
}
from
'vue'
;
import
{
reactive
,
unref
,
onDeactivated
,
onMounted
,
ref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
BasicStandardsTree
from
'./PublicCodeTree.vue'
;
...
...
@@ -94,49 +128,54 @@
import
{
columns
,
searchFormSchema
}
from
'./publicCode.data'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
TreeData
}
from
"./publicCodeData"
;
import
{
TreeData
}
from
'./publicCodeData'
;
import
{
router
}
from
'@/router'
;
import
{
exportUserList
}
from
"@/api/system/user/user"
;
import
{
downloadByData
}
from
"@/utils/file/download"
;
import
{
exportUserList
}
from
'@/api/system/user/user'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
ImportDataStandardsModal
from
'./ImportDataStandardsModal.vue'
;
import
BatchPublish
from
'./batchPublish.vue'
;
defineOptions
({
name
:
'AccountManagement'
});
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
go
=
useGo
();
const
[
registerModalBatch
,
{
openModal
:
openModalBatch
}]
=
useModal
();
const
[
registerModalBatch
,
{
openModal
:
openModalBatch
}]
=
useModal
();
const
[
registerDataStandardsModal
,
{
openModal
:
openDataStandardsModal
}]
=
useModal
();
const
[
registerCreatePublicCodeModal
,
{
openModal
:
openCreatePublicCodeModal
}]
=
useModal
();
const
[
registerCreateStandardsTypeModal
,
{
openModal
:
openCreateStandardsTypeModal
}]
=
useModal
();
const
[
registerCreateStandardsTypeModal
,
{
openModal
:
openCreateStandardsTypeModal
}]
=
useModal
();
const
[
registerMoveModal
,
{
openModal
:
openMoveModal
}]
=
useModal
();
const
[
registerCopyModal
,
{
openModal
:
openCopyModal
}]
=
useModal
();
const
[
registerResetNameModal
,
{
openModal
:
openResetNameModal
}]
=
useModal
();
const
searchInfo
=
reactive
<
Recordable
>
({});
const
tableData
=
ref
([])
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
}]
=
useTable
({
const
tableData
=
ref
([]);
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
]
=
useTable
({
title
:
''
,
api
:
async
(
params
)
=>
{
//过滤掉tableData.value中,businessId等于100的
var
data
=
[];
if
(
params
.
taskId
==
undefined
||
params
.
taskId
==
''
)
{
if
(
params
.
taskId
==
undefined
||
params
.
taskId
==
''
)
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
businessId
>=
200
);
}
else
if
(
params
.
taskId
>=
200
)
{
}
else
if
(
params
.
taskId
>=
200
)
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
businessId
==
params
.
taskId
);
}
else
{
}
else
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
parentId
==
params
.
taskId
);
}
const
response
=
{
pageNu
:
"1"
,
pageSize
:
"10"
,
pages
:
"1"
,
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
data
.
length
,
code
:
''
,
message
:
''
,
code
:
''
,
message
:
''
,
data
:
[],
};
//过滤data中的数据,取出等于params.deptId的数据
return
{
...
response
,
data
:
data
};
return
{
...
response
,
data
:
data
};
},
rowKey
:
'businessId'
,
columns
,
...
...
@@ -146,12 +185,12 @@
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
resetFunc
:
()
=>
{
searchInfo
.
taskId
=
''
searchInfo
.
taskId
=
''
;
},
},
useSearchForm
:
true
,
showTableSetting
:
false
,
showIndexColumn
:
false
,
showIndexColumn
:
false
,
bordered
:
true
,
handleSearchInfoFn
(
info
)
{
return
info
;
...
...
@@ -165,23 +204,19 @@
/**复制到 按钮*/
function
copyButton
()
{
openCopyModal
(
true
,
{
});
openCopyModal
(
true
,
{});
}
/**重命名 按钮*/
function
resetNameButton
(
record
)
{
openResetNameModal
(
true
,
{
record
record
,
});
}
/**复制到 按钮*/
function
copyButton1
()
{
openCopyModal
(
true
,
{
});
openCopyModal
(
true
,
{});
}
/**查看详情*/
...
...
@@ -189,21 +224,19 @@
router
.
push
({
path
:
'/dataStandards/publicCode/detailPublicCode'
,
query
:
{
businessId
:
record
.
businessId
,
businessId
:
record
.
businessId
,
},
});
}
/**移动*/
function
MoveButton
()
{
openMoveModal
(
true
,
{
});
openMoveModal
(
true
,
{});
}
/**批量发布*/
function
batchPublishButton
()
{
openModalBatch
(
true
,
{})
openModalBatch
(
true
,
{});
}
/**删除按钮*/
...
...
@@ -226,16 +259,12 @@
/**新建标准分类*/
function
createStandardsTypeButton
()
{
openCreateStandardsTypeModal
(
true
,
{
});
openCreateStandardsTypeModal
(
true
,
{});
}
/**新建公共代码*/
function
createPublicCodeButton
()
{
openCreatePublicCodeModal
(
true
,
{
});
openCreatePublicCodeModal
(
true
,
{});
}
/**导出关联关系*/
...
...
@@ -254,15 +283,10 @@
/**导入数据标准*/
async
function
ImportDataStandardsButton
()
{
openDataStandardsModal
(
true
,
{
});
}
function
handleSuccess
({
isUpdate
,
values
})
{
openDataStandardsModal
(
true
,
{});
}
function
handleSuccess
({
isUpdate
,
values
})
{}
/** 树的select*/
function
handleSelect
(
taskId
=
''
)
{
...
...
@@ -275,12 +299,12 @@
router
.
push
({
path
:
'/dataStandards/publicCode/relatedRelationships'
,
query
:
{
businessId
:
record
.
businessId
,
businessId
:
record
.
businessId
,
},
});
}
onMounted
(()
=>
{
tableData
.
value
=
TreeData
tableData
.
value
=
TreeData
;
});
</
script
>
src/views/dataStandards/publicCode/relatedRelationships.vue
View file @
730272a6
...
...
@@ -17,9 +17,6 @@
/>
</
template
>
</template>
<
template
#
standardName=
"{ text, record }"
>
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
</
template
>
</BasicTable>
<!-- 引用基础标准 弹窗-->
<RelatedBasicStandardModal
@
register=
"registerBasicStandardModal"
@
success=
"handleSuccess"
/>
...
...
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