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
4bca22f6
Commit
4bca22f6
authored
Nov 14, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
命名字典模块
parent
43057012
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
93 additions
and
107 deletions
+93
-107
DeptTree.vue
src/views/dataStandards/namingDictionary/DeptTree.vue
+12
-3
details.vue
src/views/dataStandards/namingDictionary/details.vue
+2
-2
edit.vue
src/views/dataStandards/namingDictionary/edit.vue
+3
-3
index.vue
src/views/dataStandards/namingDictionary/index.vue
+5
-5
manageModal.vue
src/views/dataStandards/namingDictionary/manageModal.vue
+0
-15
mock.ts
src/views/dataStandards/namingDictionary/mock.ts
+42
-25
referenceDocument.data.ts
.../dataStandards/namingDictionary/referenceDocument.data.ts
+29
-39
referenceDocumentModal.vue
...dataStandards/namingDictionary/referenceDocumentModal.vue
+0
-15
No files found.
src/views/dataStandards/namingDictionary/DeptTree.vue
View file @
4bca22f6
...
...
@@ -68,14 +68,14 @@ function getRightMenuList(node: EventDataNode): Promise<ContextMenuItem[]> {
icon
:
'ant-design:snippets-outlined'
,
},
{
label
:
'新建
文档
分类'
,
label
:
'新建
名词
分类'
,
handler
:
()
=>
{
handleAddDocumentClassification
(
node
)
},
icon
:
'bi:plus'
,
},
{
label
:
'新建
文档管理
'
,
label
:
'新建
名词
'
,
handler
:
()
=>
{
handleAddDocumentManage
(
node
)
},
...
...
@@ -95,7 +95,13 @@ function getRightMenuList(node: EventDataNode): Promise<ContextMenuItem[]> {
},
icon
:
'ant-design:rest-outlined'
,
},
{
label
:
'移动'
,
handler
:
()
=>
{
handleMove
(
node
)
},
icon
:
'ant-design:rest-outlined'
,
},
];
return
new
Promise
((
resolve
)
=>
{
resolve
(
menu
);
...
...
@@ -125,6 +131,9 @@ function handleCopy(data) {
}
function
handleDelete
(
data
)
{
}
function
handleMove
(
data
)
{
}
const
treeData
=
ref
<
TreeItem
[]
>
([]);
...
...
src/views/dataStandards/namingDictionary/details.vue
View file @
4bca22f6
...
...
@@ -94,7 +94,7 @@ import {detailSchema1,} from './referenceDocument.data.ts';
import
{
tableListTwo
}
from
"./mock"
;
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
useRoute
}
from
"vue-router"
;
import
VersionModal
from
'
.
/VersionModal.vue'
import
VersionModal
from
'
@/views/dataStandards/basicStandards
/VersionModal.vue'
import
{
useModal
}
from
"@/components/Modal"
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
columnsTwo
}
from
'./referenceDocument.data'
;
...
...
@@ -153,7 +153,7 @@ const options = ref<any>([
/**编辑标准*/
function
editButton
(
record
)
{
router
.
push
({
path
:
'/dataStandards/
referenceDocument
/edit'
,
path
:
'/dataStandards/
namingDictionary
/edit'
,
});
}
function
handleImport
()
{
...
...
src/views/dataStandards/namingDictionary/edit.vue
View file @
4bca22f6
...
...
@@ -72,10 +72,10 @@ import {router} from "@/router";
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
detailSchema2
,}
from
'./referenceDocument.data.ts'
;
import
{
tableListTwo
}
from
"./mock"
;
import
{
tableListTwo
}
from
"./mock"
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
useRoute
}
from
"vue-router"
;
import
VersionModal
from
'
.
/VersionModal.vue'
import
VersionModal
from
'
@/views/dataStandards/basicStandards
/VersionModal.vue'
import
{
useModal
}
from
"@/components/Modal"
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
columnsTwo
}
from
'./referenceDocument.data'
;
...
...
@@ -132,7 +132,7 @@ const options = ref<any>([
/**编辑标准*/
function
editButton
(
record
)
{
router
.
push
({
path
:
'/dataStandards/
referenceDocument
/details'
,
path
:
'/dataStandards/
namingDictionary
/details'
,
});
}
function
handleDelete
()
{}
...
...
src/views/dataStandards/namingDictionary/index.vue
View file @
4bca22f6
...
...
@@ -6,10 +6,10 @@
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
>
复制到
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handleDeleteIds"
>
删除
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
>
移动
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
>
导出
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
>
导出
命名字典
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
>
批量发布
</a-button>
<a-button
type=
"primary"
@
click=
"handleAddDocumentClassification"
>
新增
文档
分类
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"handleAddManage"
type=
"primary"
>
新增
文档管理
</a-button>
<a-button
type=
"primary"
@
click=
"handleAddDocumentClassification"
>
新增
名词
分类
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
@
click=
"handleAddManage"
type=
"primary"
>
新增
名词
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
...
...
@@ -102,7 +102,7 @@ const [registerTable, { reload, updateTableDataRecord, getSearchInfo,getForm,get
return
info
;
},
actionColumn
:
{
width
:
2
0
0
,
width
:
2
3
0
,
title
:
'操作'
,
dataIndex
:
'action'
,
// slots: { customRender: 'action' },
...
...
@@ -145,7 +145,7 @@ async function handleExport() {
}
function
handleView
(
record
:
Recordable
)
{
router
.
push
({
path
:
'/dataStandards/
referenceDocument
/details'
,
path
:
'/dataStandards/
namingDictionary
/details'
,
});
}
/**关联关系*/
...
...
src/views/dataStandards/namingDictionary/manageModal.vue
View file @
4bca22f6
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
/>
<div
class=
"modalRow"
>
<div>
可见范围
</div>
<div
class=
"right"
>
<div
class=
"clearAll"
>
清空
</div>
<div>
<a-button
type=
"primary"
>
添加工作组
</a-button>
</div>
</div>
</div>
<div
class=
"addDialogBG"
>
<TreeTwo
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
</div>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
...
...
src/views/dataStandards/namingDictionary/mock.ts
View file @
4bca22f6
export
const
tableList
:
any
[]
=
[
{
businessId
:
1
,
name
:
'目录示例'
,
num
:
'111'
,
flag
:
'已发布'
,
group
:
'默认工作组'
,
name
:
'一般用户'
,
englishName
:
'--'
,
abbreviation
:
'--'
,
flag
:
'--'
,
group
:
'共享工作组'
,
},
{
businessId
:
2
,
name
:
'目录示例'
,
num
:
'222'
,
flag
:
'已发布'
,
group
:
'默认工作组'
,
name
:
'一般用户'
,
englishName
:
'--'
,
abbreviation
:
'--'
,
flag
:
'--'
,
group
:
'共享工作组'
,
},
{
businessId
:
3
,
name
:
'目录示例'
,
num
:
'333'
,
flag
:
'已发布'
,
group
:
'默认工作组'
,
name
:
'一般用户'
,
englishName
:
'--'
,
abbreviation
:
'--'
,
flag
:
'--'
,
group
:
'共享工作组'
,
},
{
businessId
:
4
,
name
:
'目录示例'
,
num
:
'444'
,
flag
:
'已发布'
,
group
:
'默认工作组'
,
name
:
'一般用户'
,
englishName
:
'--'
,
abbreviation
:
'--'
,
flag
:
'--'
,
group
:
'共享工作组'
,
},
{
businessId
:
5
,
name
:
'目录示例'
,
num
:
'555'
,
flag
:
'已发布'
,
group
:
'默认工作组'
,
name
:
'一般用户'
,
englishName
:
'--'
,
abbreviation
:
'--'
,
flag
:
'--'
,
group
:
'共享工作组'
,
},
]
export
const
treeDataList
=
[
{
label
:
'
引用文档管理
'
,
label
:
'
命名字典
'
,
value
:
1
,
icon
:
'home|svg'
,
children
:
[
{
label
:
'共享工作区'
,
value
:
2
},
{
label
:
'商城工作区'
,
value
:
3
},
{
label
:
'数据中台工作区02'
,
value
:
4
},
{
label
:
'数据中台工作区03'
,
value
:
5
},
{
label
:
'admin_个人工作区'
,
value
:
2
,
icon
:
'home|svg'
,
children
:
[
{
label
:
'企业'
,
value
:
3
,
icon
:
'home|svg'
,
children
:
[
{
label
:
'企业号'
,
value
:
4
,
},
],
},
],
},
],
},
]
...
...
src/views/dataStandards/namingDictionary/referenceDocument.data.ts
View file @
4bca22f6
...
...
@@ -22,13 +22,18 @@ export const columnsTwo: BasicColumn[] = [
]
export
const
columns
:
BasicColumn
[]
=
[
{
title
:
'文
档名称
'
,
title
:
'文
件中文名
'
,
dataIndex
:
'name'
,
width
:
120
,
},
{
title
:
'文档编号'
,
dataIndex
:
'num'
,
title
:
'文件英文全称'
,
dataIndex
:
'englishName'
,
width
:
120
,
},
{
title
:
'名词英文简称'
,
dataIndex
:
'abbreviation'
,
width
:
120
,
},
{
...
...
@@ -41,26 +46,34 @@ export const columns: BasicColumn[] = [
dataIndex
:
'group'
,
width
:
120
,
},
];
export
const
searchFormSchema
:
FormSchema
[]
=
[
{
field
:
'name'
,
label
:
'
文档名称
'
,
label
:
'
名词中文名
'
,
component
:
'Input'
,
colProps
:
{
span
:
8
},
colProps
:
{
span
:
6
},
componentProps
:
{
placeholder
:
'输入
文档名称
'
,
placeholder
:
'输入
名词中文名
'
,
},
},
{
field
:
'
num
'
,
label
:
'
文档编号
'
,
field
:
'
english
'
,
label
:
'
名词英文名
'
,
component
:
'Input'
,
colProps
:
{
span
:
8
},
colProps
:
{
span
:
6
},
componentProps
:
{
placeholder
:
'输入文档编号'
,
placeholder
:
'输入名词英文名'
,
},
},
{
field
:
'abbreviation'
,
label
:
'名词英文简称'
,
component
:
'Input'
,
colProps
:
{
span
:
6
},
componentProps
:
{
placeholder
:
'输入名词英文简称'
,
},
},
];
...
...
@@ -89,12 +102,12 @@ export const formSchema: FormSchema[] = [
},
{
field
:
'name'
,
label
:
'
文档
分类名称'
,
label
:
'
名词
分类名称'
,
component
:
'Input'
,
rules
:
[
{
required
:
true
,
message
:
'请输入
文档
分类名称'
,
message
:
'请输入
名词
分类名称'
,
},
],
},
...
...
@@ -128,29 +141,6 @@ export const formSchema: FormSchema[] = [
},
},
},
{
field
:
'flag'
,
label
:
'权限模式'
,
component
:
'RadioGroup'
,
colProps
:
{
lg
:
24
,
md
:
24
},
componentProps
:
{
options
:
[
{
label
:
'本级定义'
,
value
:
'1'
},
{
label
:
'资源自定义'
,
value
:
'0'
},
],
},
},
{
field
:
'group'
,
label
:
'权属工作组'
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'默认工作组'
,
value
:
'1'
},
{
label
:
'默认工作组2'
,
value
:
'0'
},
],
},
},
]
export
const
formSchemaManage
:
FormSchema
[]
=
[
...
...
@@ -175,12 +165,12 @@ export const formSchemaManage: FormSchema[] = [
},
{
field
:
'name'
,
label
:
'
文档名称
'
,
label
:
'
名词中文名
'
,
component
:
'Input'
,
rules
:
[
{
required
:
true
,
message
:
'请输入
文档分类名称
'
,
message
:
'请输入
名词中文名
'
,
},
],
},
...
...
@@ -188,7 +178,7 @@ export const formSchemaManage: FormSchema[] = [
field
:
'type'
,
label
:
'标准类型'
,
component
:
'Input'
,
defaultValue
:
'
引用文档管理
'
,
defaultValue
:
'
命名字典
'
,
componentProps
:
{
readonly
:
true
,
disabled
:
true
,
...
...
src/views/dataStandards/namingDictionary/referenceDocumentModal.vue
View file @
4bca22f6
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
/>
<div
class=
"modalRow"
>
<div>
可见范围
</div>
<div
class=
"right"
>
<div
class=
"clearAll"
>
清空
</div>
<div>
<a-button
type=
"primary"
>
添加工作组
</a-button>
</div>
</div>
</div>
<div
class=
"addDialogBG"
>
<TreeTwo
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
</div>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
...
...
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