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