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
bee33105
Commit
bee33105
authored
Nov 12, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了基础标准页面
parent
ccfe5aa1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1655 additions
and
154 deletions
+1655
-154
index.ts
src/router/routes/index.ts
+9
-0
basicStandards.data.ts
...views/dataStandards/basicStandards/basicStandards.data.ts
+1177
-39
basicStandardsData.ts
src/views/dataStandards/basicStandards/basicStandardsData.ts
+260
-72
detailStandard.vue
src/views/dataStandards/basicStandards/detailStandard.vue
+93
-41
editDetailStandard.vue
...views/dataStandards/basicStandards/editDetailStandard.vue
+115
-0
index.vue
src/views/dataStandards/basicStandards/index.vue
+1
-2
No files found.
src/router/routes/index.ts
View file @
bee33105
...
...
@@ -314,6 +314,15 @@ export const BasicStandardRoute: AppRouteRecordRaw = {
icon
:
''
,
},
},
{
path
:
'basicStandards/editDetailStandard'
,
name
:
'editDetailStandard'
,
component
:
()
=>
import
(
'@/views/dataStandards/basicStandards/editDetailStandard.vue'
),
meta
:
{
title
:
'基础标准编辑'
,
icon
:
''
,
},
},
],
};
...
...
src/views/dataStandards/basicStandards/basicStandards.data.ts
View file @
bee33105
import
{
getAllRoleList
}
from
'@/api/system/role/role'
;
import
{
BasicColumn
,
FormSchema
}
from
'@/components/Table'
;
import
{
h
}
from
"vue"
;
import
{
Tag
}
from
"ant-design-vue"
;
import
{
Input
,
Select
,
Tag
}
from
"ant-design-vue"
;
import
{
Switch
}
from
'ant-design-vue'
;
import
{
useMessage
}
from
"@/hooks/web/useMessage"
;
import
{
changeFlagApi
}
from
"@/api/system/user/user"
;
...
...
@@ -358,125 +358,1263 @@ export const createBasicStandardsFormSchema: FormSchema[] = [
];
/**详情表单1*/
export
const
detailSchema1
:
DescItem
[]
=
[
export
const
detailSchema1
:
FormSchema
[]
=
[
{
field
:
'a1'
,
field
:
''
,
label
:
'业务属性'
,
component
:
'BasicTitle'
,
componentProps
:
{
readonly
:
true
,
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
marginLeft
:
'15px'
,
fontWeight
:
'bold'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
{
field
:
'standardNumber'
,
label
:
'标准编号'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入标准编号'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入标准编号'
,
},
},
{
field
:
'standardChineseName'
,
label
:
'标准中文名称'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入标准中文名称'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入标准中文名称'
,
},
},
{
field
:
'standardEnglishName'
,
label
:
'标准英文名称'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入标准英文名称'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入标准英文名称'
,
},
},
{
field
:
'standardAlias'
,
label
:
'标准别名'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入标准别名'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入标准别名'
,
},
},
{
field
:
'businessDefinition'
,
label
:
'业务定义'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入业务定义'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入业务定义'
,
},
},
{
field
:
'standardSource'
,
label
:
'标准来源'
,
component
:
'Select'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请选择标准来源'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
disabled
:
true
,
options
:[
{
label
:
'国际标准'
,
value
:
'1'
},
{
label
:
'国家标准'
,
value
:
'2'
},
{
label
:
'行业标准'
,
value
:
'3'
},
{
label
:
'行业实践'
,
value
:
'4'
},
{
label
:
'监管规定(人行)'
,
value
:
'5'
},
{
label
:
'监管规定(银监)'
,
value
:
'6'
},
{
label
:
'行内发文'
,
value
:
'7'
},
{
label
:
'行内协商一致'
,
value
:
'8'
},
],
placeholder
:
'请选择标准来源'
,
},
},
{
field
:
'definitionBasis'
,
label
:
'定义依据'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入定义依据'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入定义依据'
,
},
},
{
field
:
'businessRule'
,
label
:
'业务规则'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入业务规则'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入业务规则'
,
},
},
{
field
:
'dataType'
,
label
:
'数据类型'
,
component
:
'Select'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请选择数据类型'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
disabled
:
true
,
options
:[
{
label
:
'文本类'
,
value
:
'1'
},
{
label
:
'数值类'
,
value
:
'2'
},
{
label
:
'代码类'
,
value
:
'3'
},
{
label
:
'标志类'
,
value
:
'4'
},
{
label
:
'日期时间类'
,
value
:
'5'
},
{
label
:
'编号类'
,
value
:
'6'
},
],
placeholder
:
'请选择数据类型'
,
},
},
{
field
:
'valueRange'
,
label
:
'取值范围'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入取值范围'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入取值范围'
,
},
},
{
field
:
'codeNumber'
,
label
:
'代码编号'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入代码编号'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入代码编号'
,
},
},
{
field
:
'adaptability'
,
label
:
'适应性'
,
component
:
'Select'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入适应性'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
disabled
:
true
,
options
:[
{
label
:
'当前适用'
,
value
:
'1'
},
{
label
:
'未来适用'
,
value
:
'2'
},
],
placeholder
:
'请输入适应性'
,
},
}
];
/**详情表单2*/
export
const
detailSchema2
:
FormSchema
[]
=
[
{
field
:
''
,
label
:
'技术属性'
,
component
:
'BasicTitle'
,
componentProps
:
{
readonly
:
true
,
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
marginLeft
:
'15px'
,
fontWeight
:
'bold'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
{
field
:
'dataDisplay'
,
label
:
'数据显示'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据显示'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入数据显示'
,
},
},
{
field
:
'tecDataType'
,
label
:
'数据类型'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据类型'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入数据类型'
,
},
},
{
field
:
'dataPrecision'
,
label
:
'数据精度'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据精度'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入数据精度'
,
},
},
{
field
:
'dataLength'
,
label
:
'数据长度'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据长度'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入数据长度'
,
},
},
{
field
:
'measurementUnit'
,
label
:
'计量单位'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入计量单位'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入计量单位'
,
},
}
];
/**详情表单3*/
export
const
detailSchema3
:
FormSchema
[]
=
[
{
field
:
''
,
label
:
'管理属性'
,
component
:
'BasicTitle'
,
componentProps
:
{
style
:
{
marginLeft
:
'15px'
,
fontWeight
:
'bold'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
{
field
:
'creator'
,
label
:
'创建人员'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入创建人员'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入创建人员'
,
},
},
{
field
:
'updater'
,
label
:
'更新人员'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入更新人员'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入更新人员'
,
},
},
{
field
:
'createDate'
,
label
:
'创建日期'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入创建日期'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入创建日期'
,
},
},
{
field
:
'updateDate'
,
label
:
'更新日期'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入更新日期'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入更新日期'
,
},
},
{
field
:
'secondaryAuthorityDepartment'
,
label
:
'权威二级部门'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入权威二级部门'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入权威二级部门'
,
},
},
{
field
:
'tertiaryAuthorityDepartment'
,
label
:
'权威三级部门'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入权威三级部门'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入权威三级部门'
,
},
},
{
field
:
'coreSystem'
,
label
:
'核心系统'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入核心系统'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入核心系统'
,
},
},
{
field
:
'dataStandardStatus'
,
label
:
'数据标准状态'
,
component
:
'Select'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据标准状态'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
disabled
:
true
,
options
:[
{
label
:
'有效'
,
value
:
'1'
},
{
label
:
'失效'
,
value
:
'2'
},
{
label
:
'未生效'
,
value
:
'3'
}
],
placeholder
:
'请输入数据标准状态'
,
},
},
{
field
:
'expirationDate'
,
label
:
'失效时间'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入失效时间'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
},
},
{
field
:
'expirationReason'
,
label
:
'失效原因'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入失效原因'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入失效原因'
,
},
},
{
field
:
'collaborativeDepartment'
,
label
:
'协作部门'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入协作部门'
,
},
],
componentProps
:
{
style
:
{
border
:
'none'
,
backgroundColor
:
'transparent'
,
},
readonly
:
true
,
placeholder
:
'请输入协作部门'
,
},
}
];
/**编辑基础标准1*/
export
const
editStandardsDetailFormSchema1
:
FormSchema
[]
=
[
{
field
:
'businessAttribute'
,
label
:
'业务属性'
,
component
:
'BasicTitle'
,
componentProps
:
{
style
:
{
marginLeft
:
'15px'
,
fontWeight
:
'bold'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
{
field
:
'standardNumber'
,
label
:
'标准编号'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入标准编号'
,
},
],
componentProps
:
{
disabled
:
true
,
placeholder
:
'请输入标准编号'
,
},
},
{
field
:
'standardChineseName'
,
label
:
'标准中文名称'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入标准中文名称'
,
},
],
componentProps
:
{
disabled
:
true
,
placeholder
:
'请输入标准中文名称'
,
},
},
{
field
:
'standardEnglishName'
,
label
:
'标准英文名称'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入标准英文名称'
,
},
],
componentProps
:
{
placeholder
:
'请输入标准英文名称'
,
},
},
{
field
:
'standardAlias'
,
label
:
'标准别名'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入标准别名'
,
},
],
componentProps
:
{
placeholder
:
'请输入标准别名'
,
},
},
{
field
:
'businessDefinition'
,
label
:
'业务定义'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入业务定义'
,
},
],
componentProps
:
{
placeholder
:
'请输入业务定义'
,
},
},
{
field
:
'a2'
,
label
:
'标准中文名称'
,
field
:
'standardSource'
,
label
:
'标准来源'
,
component
:
'Select'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请选择标准来源'
,
},
],
componentProps
:
{
options
:[
{
field
:
'a3
'
,
label
:
'标准英文名称'
,
label
:
'国际标准
'
,
value
:
'1'
},
{
field
:
'a4
'
,
label
:
'标准别名'
,
label
:
'国家标准
'
,
value
:
'2'
},
{
field
:
'a1
'
,
label
:
'业务定义'
,
label
:
'行业标准
'
,
value
:
'3'
},
{
field
:
'a2'
,
label
:
'标准来源'
,
label
:
'行业实践'
,
value
:
'4'
},
{
label
:
'监管规定(人行)'
,
value
:
'5'
},
{
label
:
'监管规定(银监)'
,
value
:
'6'
},
{
label
:
'行内发文'
,
value
:
'7'
},
{
label
:
'行内协商一致'
,
value
:
'8'
},
],
placeholder
:
'请选择标准来源'
,
},
},
{
field
:
'
a3
'
,
field
:
'
definitionBasis
'
,
label
:
'定义依据'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入定义依据'
,
},
],
componentProps
:
{
placeholder
:
'请输入定义依据'
,
},
},
{
field
:
'
a4
'
,
field
:
'
businessRule
'
,
label
:
'业务规则'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入业务规则'
,
},
],
componentProps
:
{
placeholder
:
'请输入业务规则'
,
},
},
{
field
:
'
a1
'
,
field
:
'
dataType
'
,
label
:
'数据类型'
,
component
:
'Select'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请选择数据类型'
,
},
],
componentProps
:
{
options
:[
{
label
:
'文本类'
,
value
:
'1'
},
{
label
:
'数值类'
,
value
:
'2'
},
{
label
:
'代码类'
,
value
:
'3'
},
{
label
:
'标志类'
,
value
:
'4'
},
{
label
:
'日期时间类'
,
value
:
'5'
},
{
label
:
'编号类'
,
value
:
'6'
},
],
placeholder
:
'请选择数据类型'
,
},
},
{
field
:
'
a2
'
,
field
:
'
valueRange
'
,
label
:
'取值范围'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入取值范围'
,
},
],
componentProps
:
{
placeholder
:
'请输入取值范围'
,
},
},
{
field
:
'
a3
'
,
field
:
'
codeNumber
'
,
label
:
'代码编号'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入代码编号'
,
},
],
componentProps
:
{
placeholder
:
'请输入代码编号'
,
},
},
{
field
:
'a
4
'
,
field
:
'a
daptability
'
,
label
:
'适应性'
,
component
:
'Select'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入适应性'
,
},
],
componentProps
:
{
options
:[
{
label
:
'当前适用'
,
value
:
'1'
},
{
label
:
'未来适用'
,
value
:
'2'
},
],
placeholder
:
'请输入适应性'
,
},
}
];
/**详情表单2*/
export
const
detailSchema2
:
DescItem
[]
=
[
/**编辑基础标准w*/
export
const
editStandardsDetailFormSchema2
:
FormSchema
[]
=
[
{
field
:
'a1'
,
field
:
'technicalAttribute'
,
label
:
'技术属性'
,
component
:
'BasicTitle'
,
componentProps
:
{
style
:
{
marginLeft
:
'15px'
,
fontWeight
:
'bold'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
{
field
:
'dataDisplay'
,
label
:
'数据显示'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据显示'
,
},
],
componentProps
:
{
placeholder
:
'请输入数据显示'
,
},
},
{
field
:
'
a2
'
,
field
:
'
dataType
'
,
label
:
'数据类型'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据类型'
,
},
],
componentProps
:
{
placeholder
:
'请输入数据类型'
,
},
},
{
field
:
'
a3
'
,
field
:
'
dataPrecision
'
,
label
:
'数据精度'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据精度'
,
},
],
componentProps
:
{
placeholder
:
'请输入数据精度'
,
},
},
{
field
:
'
a4
'
,
field
:
'
dataLength
'
,
label
:
'数据长度'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据长度'
,
},
],
componentProps
:
{
placeholder
:
'请输入数据长度'
,
},
},
{
field
:
'
a1
'
,
field
:
'
measurementUnit
'
,
label
:
'计量单位'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入计量单位'
,
},
],
componentProps
:
{
placeholder
:
'请输入计量单位'
,
},
}
];
/**详情表单3*/
export
const
detailSchema3
:
DescItem
[]
=
[
/**编辑基础标准e*/
export
const
editStandardsDetailFormSchema3
:
FormSchema
[]
=
[
{
field
:
'a1'
,
field
:
'managementAttribute'
,
label
:
'管理属性'
,
component
:
'BasicTitle'
,
componentProps
:
{
style
:
{
marginLeft
:
'15px'
,
fontWeight
:
'bold'
,
},
},
colProps
:
{
lg
:
24
,
md
:
24
},
},
{
field
:
'creator'
,
label
:
'创建人员'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入创建人员'
,
},
],
componentProps
:
{
disabled
:
true
,
placeholder
:
'请输入创建人员'
,
},
},
{
field
:
'
a2
'
,
field
:
'
updater
'
,
label
:
'更新人员'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入更新人员'
,
},
],
componentProps
:
{
disabled
:
true
,
placeholder
:
'请输入更新人员'
,
},
},
{
field
:
'
a3
'
,
field
:
'
creationDate
'
,
label
:
'创建日期'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入创建日期'
,
},
],
componentProps
:
{
disabled
:
true
,
placeholder
:
'请输入创建日期'
,
},
},
{
field
:
'
a4
'
,
field
:
'
updateDate
'
,
label
:
'更新日期'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入更新日期'
,
},
],
componentProps
:
{
disabled
:
true
,
placeholder
:
'请输入更新日期'
,
},
},
{
field
:
'
a1
'
,
field
:
'
secondaryAuthorityDepartment
'
,
label
:
'权威二级部门'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入权威二级部门'
,
},
],
componentProps
:
{
placeholder
:
'请输入权威二级部门'
,
},
},
{
field
:
'
a2
'
,
field
:
'
tertiaryAuthorityDepartment
'
,
label
:
'权威三级部门'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入权威三级部门'
,
},
],
componentProps
:
{
placeholder
:
'请输入权威三级部门'
,
},
},
{
field
:
'
a3
'
,
field
:
'
coreSystem
'
,
label
:
'核心系统'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入核心系统'
,
},
],
componentProps
:
{
placeholder
:
'请输入核心系统'
,
},
},
{
field
:
'
a4
'
,
field
:
'
dataStandardStatus
'
,
label
:
'数据标准状态'
,
component
:
'Select'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入数据标准状态'
,
},
],
componentProps
:
{
options
:[
{
label
:
'有效'
,
value
:
'1'
},
{
field
:
'a1'
,
label
:
'失效'
,
value
:
'2'
},
{
label
:
'未生效'
,
value
:
'3'
}
],
placeholder
:
'请输入数据标准状态'
,
},
},
{
field
:
'expirationDate1'
,
label
:
'失效时间'
,
component
:
'DatePicker'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入失效时间'
,
},
],
componentProps
:
{
style
:
{
width
:
'100%'
,
},
getPopupContainer
:
()
=>
{
return
document
.
querySelector
(
'.ant-form'
)
!
;
},
},
},
{
field
:
'
a2
'
,
field
:
'
expirationReason
'
,
label
:
'失效原因'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入失效原因'
,
},
],
componentProps
:
{
placeholder
:
'请输入失效原因'
,
},
},
{
field
:
'
a3
'
,
field
:
'
collaborativeDepartment
'
,
label
:
'协作部门'
,
component
:
'Input'
,
colProps
:
{
lg
:
8
,
md
:
8
},
rules
:
[
{
required
:
true
,
message
:
'请输入协作部门'
,
},
],
componentProps
:
{
placeholder
:
'请输入协作部门'
,
},
}
];
src/views/dataStandards/basicStandards/basicStandardsData.ts
View file @
bee33105
...
...
@@ -32,7 +32,6 @@ export const columns: BasicColumn[] = [
];
export
const
searchFormSchema
:
FormSchema
[]
=
[
{
field
:
'name'
,
...
...
@@ -57,110 +56,298 @@ export const searchFormSchema: FormSchema[] = [
/**主页面树/列表 数据*/
export
const
TreeData
:
any
[]
=
[
{
"businessId"
:
100
,
"standardChineseName"
:
"基础标准"
,
"anotherName"
:
"基础标准"
,
"parentId"
:
0
,
"businessDefinition"
:
"基础标准"
,
"location"
:
"/基础标准"
,
"publishStatus"
:
"已发布"
,
"holderGroup"
:
"默认工作组"
,
"businessId"
:
100
,
"standardChineseName"
:
"基础标准"
,
"anotherName"
:
"基础标准"
,
"parentId"
:
0
,
"businessDefinition"
:
"基础标准"
,
"location"
:
"/基础标准"
,
"publishStatus"
:
"已发布"
,
"holderGroup"
:
"默认工作组"
,
"standardCode"
:
"BAS000001"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
icon
:
'ant-design:partition-outlined'
"icon"
:
"ant-design:partition-outlined"
,
"businessAttribute"
:
"通用"
,
"standardNumber"
:
"BAS-001"
,
"standardEnglishName"
:
"Basic Standard"
,
"standardAlias"
:
"Basic Standard"
,
"standardSource"
:
"1"
,
"definitionBasis"
:
"相关法律法规"
,
"businessRule"
:
"所有基础标准必须经过审核才能发布。"
,
"dataType"
:
"1"
,
"tecDataType"
:
"varchar"
,
"valueRange"
:
"非空字符串"
,
"codeNumber"
:
"CODE-100"
,
"adaptability"
:
"1"
,
"technicalAttribute"
:
"通用技术属性"
,
"dataDisplay"
:
"文本显示"
,
"dataPrecision"
:
"无"
,
"dataLength"
:
"255"
,
"measurementUnit"
:
"无"
,
"managementAttribute"
:
"通用管理属性"
,
"creator"
:
"张三"
,
"updater"
:
"李四"
,
"secondaryAuthorityDepartment"
:
"技术部"
,
"tertiaryAuthorityDepartment"
:
"研发组"
,
"coreSystem"
:
"核心系统A"
,
"dataStandardStatus"
:
"有效"
,
"expirationDate"
:
"2025-10-24"
,
"expirationReason"
:
"无"
,
"collaborativeDepartment"
:
"财务部, 市场部"
},
{
"businessId"
:
101
,
"standardChineseName"
:
"共享工作区"
,
"anotherName"
:
"共享工作区"
,
"parentId"
:
100
,
"businessDefinition"
:
"共享工作区"
,
"publishStatus"
:
"已发布"
,
"ancestors"
:
"0,100"
,
"businessId"
:
101
,
"standardChineseName"
:
"共享工作区"
,
"anotherName"
:
"共享工作区"
,
"parentId"
:
100
,
"businessDefinition"
:
"共享工作区"
,
"publishStatus"
:
"已发布"
,
"ancestors"
:
"0,100"
,
"standardCode"
:
"BAS000002"
,
"location"
:
"/基础标准/共享工作区"
,
"holderGroup"
:
"共享工作区"
,
"location"
:
"/基础标准/共享工作区"
,
"holderGroup"
:
"共享工作区"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
icon
:
'ant-design:folder-open-outlined'
"icon"
:
"ant-design:folder-open-outlined"
,
"businessAttribute"
:
"协作"
,
"standardNumber"
:
"BAS-002"
,
"standardEnglishName"
:
"Shared Workspace"
,
"standardAlias"
:
"Shared Workspace"
,
"standardSource"
:
"1"
,
"definitionBasis"
:
"用户需求分析"
,
"businessRule"
:
"共享工作区内的文件必须定期备份。"
,
"dataType"
:
"1"
,
"tecDataType"
:
"varchar"
,
"valueRange"
:
"非空字符串"
,
"codeNumber"
:
"CODE-101"
,
"adaptability"
:
"1"
,
"technicalAttribute"
:
"通用技术属性"
,
"dataDisplay"
:
"文本显示"
,
"dataPrecision"
:
"无"
,
"dataLength"
:
"255"
,
"measurementUnit"
:
"无"
,
"managementAttribute"
:
"通用管理属性"
,
"creator"
:
"张三"
,
"updater"
:
"李四"
,
"secondaryAuthorityDepartment"
:
"技术部"
,
"tertiaryAuthorityDepartment"
:
"研发组"
,
"coreSystem"
:
"核心系统A"
,
"dataStandardStatus"
:
"有效"
,
"expirationDate"
:
"2025-10-24"
,
"expirationReason"
:
"无"
,
"collaborativeDepartment"
:
"财务部, 市场部"
},
{
"businessId"
:
102
,
"standardChineseName"
:
"个人工作区"
,
"anotherName"
:
"个人工作区"
,
"parentId"
:
100
,
"publishStatus"
:
"未发布"
,
"businessDefinition"
:
"个人工作区"
,
"businessId"
:
102
,
"standardChineseName"
:
"个人工作区"
,
"anotherName"
:
"个人工作区"
,
"parentId"
:
100
,
"publishStatus"
:
"未发布"
,
"businessDefinition"
:
"个人工作区"
,
"standardCode"
:
"BAS000003"
,
"ancestors"
:
"0,100"
,
"location"
:
"/基础标准/个人工作区"
,
"holderGroup"
:
"个人工作区"
,
"ancestors"
:
"0,100"
,
"location"
:
"/基础标准/个人工作区"
,
"holderGroup"
:
"个人工作区"
,
"createDate"
:
"2024-10-24 10:04:04"
,
"updateDate"
:
"2024-10-24 10:04:04"
,
icon
:
'ant-design:folder-open-outlined'
"icon"
:
"ant-design:folder-open-outlined"
,
"businessAttribute"
:
"个人"
,
"standardNumber"
:
"BAS-003"
,
"standardEnglishName"
:
"Personal Workspace"
,
"standardAlias"
:
"Personal Workspace"
,
"standardSource"
:
"1"
,
"definitionBasis"
:
"用户需求分析"
,
"businessRule"
:
"个人工作区内的文件必须定期清理。"
,
"dataType"
:
"1"
,
"tecDataType"
:
"varchar"
,
"valueRange"
:
"非空字符串"
,
"codeNumber"
:
"CODE-102"
,
"adaptability"
:
"1"
,
"technicalAttribute"
:
"通用技术属性"
,
"dataDisplay"
:
"文本显示"
,
"dataPrecision"
:
"无"
,
"dataLength"
:
"255"
,
"measurementUnit"
:
"无"
,
"managementAttribute"
:
"通用管理属性"
,
"creator"
:
"王五"
,
"updater"
:
"赵六"
,
"secondaryAuthorityDepartment"
:
"技术部"
,
"tertiaryAuthorityDepartment"
:
"运维组"
,
"coreSystem"
:
"核心系统B"
,
"dataStandardStatus"
:
"1"
,
"expirationDate"
:
"2025-10-24"
,
"expirationReason"
:
"无"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
},
{
"businessId"
:
201
,
"standardChineseName"
:
"对外投资出资方式"
,
"anotherName"
:
"对外投资出资方式"
,
"parentId"
:
102
,
"publishStatus"
:
"已发布"
,
"businessDefinition"
:
"对外投资出资方式"
,
"businessId"
:
201
,
"standardChineseName"
:
"对外投资出资方式"
,
"anotherName"
:
"对外投资出资方式"
,
"parentId"
:
102
,
"publishStatus"
:
"已发布"
,
"businessDefinition"
:
"对外投资出资方式"
,
"standardCode"
:
"BAS000004"
,
"ancestors"
:
"0,100,102"
,
"location"
:
"/基础标准/个人工作区/对外投资出资方式"
,
"holderGroup"
:
"个人工作区"
,
"ancestors"
:
"0,100,102"
,
"location"
:
"/基础标准/个人工作区/对外投资出资方式"
,
"holderGroup"
:
"个人工作区"
,
"createDate"
:
"2024-10-22 8:04:04"
,
"updateDate"
:
"2024-10-22 8:04:04"
,
icon
:
'ant-design:partition-outlined'
"icon"
:
"ant-design:partition-outlined"
,
"businessAttribute"
:
"财务"
,
"standardNumber"
:
"BAS-004"
,
"standardEnglishName"
:
"Investment Contribution Method"
,
"standardAlias"
:
"Investment Contribution Method"
,
"standardSource"
:
"国家标准化管理委员会"
,
"definitionBasis"
:
"相关法律法规"
,
"businessRule"
:
"对外投资的出资方式必须明确记录。"
,
"dataType"
:
"1"
,
"tecDataType"
:
"varchar"
,
"valueRange"
:
"非空字符串"
,
"codeNumber"
:
"CODE-201"
,
"adaptability"
:
"1"
,
"technicalAttribute"
:
"通用技术属性"
,
"dataDisplay"
:
"文本显示"
,
"dataPrecision"
:
"无"
,
"dataLength"
:
"255"
,
"measurementUnit"
:
"无"
,
"managementAttribute"
:
"通用管理属性"
,
"creator"
:
"王五"
,
"updater"
:
"赵六"
,
"secondaryAuthorityDepartment"
:
"技术部"
,
"tertiaryAuthorityDepartment"
:
"运维组"
,
"coreSystem"
:
"核心系统B"
,
"dataStandardStatus"
:
"有效"
,
"expirationDate"
:
"2025-10-24"
,
"expirationReason"
:
"无"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
},
{
"businessId"
:
202
,
"standardChineseName"
:
"对外投资控股标志"
,
"anotherName"
:
"对外投资控股标志"
,
"parentId"
:
102
,
"publishStatus"
:
"未发布"
,
"businessDefinition"
:
"对外投资控股标志"
,
"businessId"
:
202
,
"standardChineseName"
:
"对外投资控股标志"
,
"anotherName"
:
"对外投资控股标志"
,
"parentId"
:
102
,
"publishStatus"
:
"未发布"
,
"businessDefinition"
:
"对外投资控股标志"
,
"standardCode"
:
"BAS000005"
,
"ancestors"
:
"0,100,102"
,
"location"
:
"/基础标准/个人工作区/对外投资控股标志"
,
"holderGroup"
:
"个人工作区"
,
"ancestors"
:
"0,100,102"
,
"location"
:
"/基础标准/个人工作区/对外投资控股标志"
,
"holderGroup"
:
"个人工作区"
,
"createDate"
:
"2024-10-22 8:04:04"
,
"updateDate"
:
"2024-10-22 8:04:04"
,
icon
:
'ant-design:partition-outlined'
"icon"
:
"ant-design:partition-outlined"
,
"businessAttribute"
:
"财务"
,
"standardNumber"
:
"BAS-005"
,
"standardEnglishName"
:
"Investment Holding Mark"
,
"standardAlias"
:
"Investment Holding Mark"
,
"standardSource"
:
"国家标准化管理委员会"
,
"definitionBasis"
:
"相关法律法规"
,
"businessRule"
:
"对外投资的控股标志必须明确记录。"
,
"dataType"
:
"1"
,
"tecDataType"
:
"varchar"
,
"valueRange"
:
"非空字符串"
,
"codeNumber"
:
"CODE-202"
,
"adaptability"
:
"1"
,
"technicalAttribute"
:
"通用技术属性"
,
"dataDisplay"
:
"文本显示"
,
"dataPrecision"
:
"无"
,
"dataLength"
:
"255"
,
"measurementUnit"
:
"无"
,
"managementAttribute"
:
"通用管理属性"
,
"creator"
:
"王五"
,
"updater"
:
"赵六"
,
"secondaryAuthorityDepartment"
:
"技术部"
,
"tertiaryAuthorityDepartment"
:
"运维组"
,
"coreSystem"
:
"核心系统B"
,
"dataStandardStatus"
:
"有效"
,
"expirationDate"
:
"2025-10-24"
,
"expirationReason"
:
"无"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
},
{
"businessId"
:
203
,
"standardChineseName"
:
"对外投资企业证明"
,
"anotherName"
:
"对外投资企业证明"
,
"parentId"
:
102
,
"publishStatus"
:
"已发布"
,
"businessDefinition"
:
"对外投资企业证明"
,
"businessId"
:
203
,
"standardChineseName"
:
"对外投资企业证明"
,
"anotherName"
:
"对外投资企业证明"
,
"parentId"
:
102
,
"publishStatus"
:
"已发布"
,
"businessDefinition"
:
"对外投资企业证明"
,
"standardCode"
:
"BAS000006"
,
"ancestors"
:
"0,100,102"
,
"location"
:
"/基础标准/个人工作区/对外投资企业证明"
,
"holderGroup"
:
"个人工作区"
,
"ancestors"
:
"0,100,102"
,
"location"
:
"/基础标准/个人工作区/对外投资企业证明"
,
"holderGroup"
:
"个人工作区"
,
"createDate"
:
"2024-10-22 8:04:04"
,
"updateDate"
:
"2024-10-22 8:04:04"
,
icon
:
'ant-design:partition-outlined'
"icon"
:
"ant-design:partition-outlined"
,
"businessAttribute"
:
"财务"
,
"standardNumber"
:
"BAS-006"
,
"standardEnglishName"
:
"Investment Company Proof"
,
"standardAlias"
:
"Investment Company Proof"
,
"standardSource"
:
"国家标准化管理委员会"
,
"definitionBasis"
:
"相关法律法规"
,
"businessRule"
:
"对外投资的企业证明必须合法有效。"
,
"dataType"
:
"1"
,
"tecDataType"
:
"varchar"
,
"valueRange"
:
"非空字符串"
,
"codeNumber"
:
"CODE-203"
,
"adaptability"
:
"1"
,
"technicalAttribute"
:
"通用技术属性"
,
"dataDisplay"
:
"文本显示"
,
"dataPrecision"
:
"无"
,
"dataLength"
:
"255"
,
"measurementUnit"
:
"无"
,
"managementAttribute"
:
"通用管理属性"
,
"creator"
:
"王五"
,
"updater"
:
"赵六"
,
"secondaryAuthorityDepartment"
:
"技术部"
,
"tertiaryAuthorityDepartment"
:
"运维组"
,
"coreSystem"
:
"核心系统B"
,
"dataStandardStatus"
:
"有效"
,
"expirationDate"
:
"2025-10-24"
,
"expirationReason"
:
"无"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
},
{
"businessId"
:
204
,
"standardChineseName"
:
"zy_basic_standard"
,
"anotherName"
:
"zy_basic_standard"
,
"parentId"
:
101
,
"publishStatus"
:
"已发布"
,
"businessDefinition"
:
"zy_basic_standard"
,
"businessId"
:
204
,
"standardChineseName"
:
"zy_basic_standard"
,
"anotherName"
:
"zy_basic_standard"
,
"parentId"
:
101
,
"publishStatus"
:
"已发布"
,
"businessDefinition"
:
"zy_basic_standard"
,
"standardCode"
:
"BAS000007"
,
"ancestors"
:
"0,100,101"
,
"location"
:
"/基础标准/共享工作区/zy_basic_standard"
,
"holderGroup"
:
"共享工作区"
,
"ancestors"
:
"0,100,101"
,
"location"
:
"/基础标准/共享工作区/zy_basic_standard"
,
"holderGroup"
:
"共享工作区"
,
"createDate"
:
"2024-10-22 8:04:04"
,
"updateDate"
:
"2024-10-22 8:04:04"
,
icon
:
'ant-design:partition-outlined'
},
"icon"
:
"ant-design:partition-outlined"
,
"businessAttribute"
:
"通用"
,
"standardNumber"
:
"BAS-007"
,
"standardEnglishName"
:
"ZY Basic Standard"
,
"standardAlias"
:
"ZY Basic Standard"
,
"standardSource"
:
"1"
,
"definitionBasis"
:
"用户需求分析"
,
"businessRule"
:
"所有基本标准必须经过审核才能发布。"
,
"dataType"
:
"1"
,
"tecDataType"
:
"varchar"
,
"valueRange"
:
"非空字符串"
,
"codeNumber"
:
"CODE-204"
,
"adaptability"
:
"1"
,
"technicalAttribute"
:
"通用技术属性"
,
"dataDisplay"
:
"文本显示"
,
"dataPrecision"
:
"无"
,
"dataLength"
:
"255"
,
"measurementUnit"
:
"无"
,
"managementAttribute"
:
"通用管理属性"
,
"creator"
:
"王五"
,
"updater"
:
"赵六"
,
"secondaryAuthorityDepartment"
:
"技术部"
,
"tertiaryAuthorityDepartment"
:
"运维组"
,
"coreSystem"
:
"核心系统B"
,
"dataStandardStatus"
:
"有效"
,
"expirationDate"
:
"2025-10-24"
,
"expirationReason"
:
"无"
,
"collaborativeDepartment"
:
"人力资源部, 技术部"
}
];
export
const
DetailTreeData
:
any
[]
=
[
...
...
@@ -481,3 +668,4 @@ export const personData = {
b4
:
'浙江省杭州市西湖区万塘路18号'
,
b5
:
'无'
,
};
src/views/dataStandards/basicStandards/detailStandard.vue
View file @
bee33105
<
template
>
<PageWrapper
title=
"基础详情页"
contentBackground
>
<Description
title=
"业务属性"
size=
"middle"
:bordered=
"false"
:column=
"3"
:data=
"refundData"
:schema=
"refundSchema"
/>
<PageWrapper
title=
"基础标准详情页"
contentBackground
>
<div
style=
"display: flex;justify-content: space-between; align-items: center;margin-bottom: 10px;margin-left: 12px"
>
<div
style=
"margin-top: 10px;display: flex;font-weight: bold;font-size: 25px"
>
{{
title
}}
<div
style=
"font-size: 15px;padding-top: 15px;padding-left: 10px"
>
版本:v2
</div>
</div>
<div
style=
"margin-top: 10px;display: flex"
>
<a-button
type=
"primary"
@
click=
"editButton"
>
编辑标准
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"versionButton"
>
版本管理
</a-button>
</div>
</div>
<Divider
/>
<!--
<Description-->
<!-- size="middle"-->
<!-- title="技术属性"-->
<!-- :bordered="false"-->
<!-- :column="3"-->
<!-- :data="personData"-->
<!-- :schema="personSchema"-->
<!-- />-->
<BasicForm
@
register=
"registerForm1"
/>
<Divider
/>
<!--
<Description-->
<!-- size="middle"-->
<!-- title="管理属性"-->
<!-- :bordered="false"-->
<!-- :column="3"-->
<!-- :data="personData"-->
<!-- :schema="personSchema"-->
<!-- />-->
<BasicForm
@
register=
"registerForm2"
/>
<Divider
/>
<BasicForm
@
register=
"registerForm3"
/>
<Divider
/>
</PageWrapper>
</
template
>
...
...
@@ -33,24 +25,84 @@
import
{
Description
}
from
'@/components/Description'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
Divider
}
from
'ant-design-vue'
;
import
{
refundData
}
from
'./basicStandardsData'
;
import
{
refundSchema
,}
from
'./basicStandards.data'
;
function
handleSummary
(
tableData
:
any
[])
{
let
totalT5
=
0
;
let
totalT6
=
0
;
tableData
.
forEach
((
item
)
=>
{
totalT5
+=
item
.
t5
;
totalT6
+=
item
.
t6
;
});
return
[
{
t1
:
'总计'
,
t5
:
totalT5
,
t6
:
totalT6
,
import
{
refundData
,
TreeData
}
from
'./basicStandardsData'
;
import
{
router
}
from
"@/router"
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
detailSchema1
,
detailSchema2
,
detailSchema3
}
from
'./basicStandards.data'
;
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
useRoute
}
from
"vue-router"
;
const
route
=
useRoute
()
const
title
=
ref
(
''
)
const
formData
=
ref
({})
const
businessId
=
ref
(
''
)
const
[
registerForm1
,
{
setFieldsValue
:
setFieldsValue1
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
detailSchema1
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
const
[
registerForm2
,
{
setFieldsValue
:
setFieldsValue2
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
detailSchema2
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
const
[
registerForm3
,
{
setFieldsValue
:
setFieldsValue3
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
detailSchema3
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
];
});
/**编辑标准*/
function
editButton
(
record
)
{
router
.
push
({
path
:
'/dataStandards/basicStandards/editDetailStandard'
,
query
:
{
businessId
:
businessId
.
value
,
},
});
}
/**保存*/
function
versionButton
(
record
)
{
}
/**初始化*/
onMounted
(()
=>
{
businessId
.
value
=
route
.
query
.
businessId
const
data
=
TreeData
.
filter
(
item
=>
item
.
businessId
==
businessId
.
value
)
title
.
value
=
data
[
0
].
standardChineseName
setFieldsValue1
({
...
data
[
0
]
})
setFieldsValue2
({
...
data
[
0
]
})
setFieldsValue3
({
...
data
[
0
]
})
});
</
script
>
<
style
lang=
"less"
scoped
>
.desc-wrap {
...
...
src/views/dataStandards/basicStandards/editDetailStandard.vue
0 → 100644
View file @
bee33105
<
template
>
<PageWrapper
title=
"基础标准编辑页"
contentBackground
>
<div
style=
"display: flex;justify-content: space-between; align-items: center;margin-bottom: 10px;margin-left: 12px"
>
<div
style=
"margin-top: 10px;display: flex;font-weight: bold;font-size: 25px"
>
{{
title
}}
</div>
<div
style=
"margin-top: 10px;display: flex"
>
<a-button
type=
"primary"
@
click=
"publishButton"
>
发布
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"saveButton"
>
保存修改
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 10px"
@
click=
"exitEditButton"
>
退出编辑
</a-button>
</div>
</div>
<Divider
/>
<BasicForm
@
register=
"registerForm1"
/>
<Divider
/>
<BasicForm
@
register=
"registerForm2"
/>
<Divider
/>
<BasicForm
@
register=
"registerForm3"
/>
<Divider
/>
</PageWrapper>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
Description
}
from
'@/components/Description'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
Divider
}
from
'ant-design-vue'
;
import
{
refundData
,
TreeData
}
from
'./basicStandardsData'
;
import
{
router
}
from
"@/router"
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
editStandardsDetailFormSchema1
,
editStandardsDetailFormSchema2
,
editStandardsDetailFormSchema3
}
from
'./basicStandards.data'
;
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
useRoute
}
from
"vue-router"
;
const
route
=
useRoute
()
const
title
=
ref
(
''
)
const
formData
=
ref
({})
const
businessId
=
ref
(
''
)
const
[
registerForm1
,
{
setFieldsValue
:
setFieldsValue1
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
editStandardsDetailFormSchema1
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
const
[
registerForm2
,
{
setFieldsValue
:
setFieldsValue2
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
editStandardsDetailFormSchema2
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
const
[
registerForm3
,
{
setFieldsValue
:
setFieldsValue3
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
editStandardsDetailFormSchema3
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
/**编辑标准*/
function
exitEditButton
(
record
)
{
router
.
push
({
path
:
'/dataStandards/basicStandards/detailStandard'
,
query
:
{
businessId
:
businessId
.
value
,
},
});
}
/**保存*/
function
saveButton
(
record
)
{
}
/**发布*/
function
publishButton
(
record
)
{
}
/**初始化*/
onMounted
(()
=>
{
businessId
.
value
=
route
.
query
.
businessId
const
data
=
TreeData
.
filter
(
item
=>
item
.
businessId
==
businessId
.
value
)
title
.
value
=
data
[
0
].
standardChineseName
setFieldsValue1
({
...
data
[
0
]
})
setFieldsValue2
({
...
data
[
0
]
})
setFieldsValue3
({
...
data
[
0
]
})
});
</
script
>
<
style
lang=
"less"
scoped
>
.desc-wrap {
padding: 16px;
background-color: @component-background;
}
</
style
>
src/views/dataStandards/basicStandards/index.vue
View file @
bee33105
...
...
@@ -149,11 +149,10 @@
/**查看详情*/
function
detailButton
(
record
)
{
console
.
log
(
'record:'
,
record
)
router
.
push
({
path
:
'/dataStandards/basicStandards/detailStandard'
,
query
:
{
businessId
:
record
.
businessId
,
},
});
}
...
...
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