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
Expand all
Hide 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 = {
...
@@ -314,6 +314,15 @@ export const BasicStandardRoute: AppRouteRecordRaw = {
icon
:
''
,
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
This diff is collapsed.
Click to expand it.
src/views/dataStandards/basicStandards/basicStandardsData.ts
View file @
bee33105
This diff is collapsed.
Click to expand it.
src/views/dataStandards/basicStandards/detailStandard.vue
View file @
bee33105
<
template
>
<
template
>
<PageWrapper
title=
"基础详情页"
contentBackground
>
<PageWrapper
title=
"基础标准详情页"
contentBackground
>
<Description
<div
style=
"display: flex;justify-content: space-between; align-items: center;margin-bottom: 10px;margin-left: 12px"
>
title=
"业务属性"
<div
style=
"margin-top: 10px;display: flex;font-weight: bold;font-size: 25px"
>
size=
"middle"
{{
title
}}
:bordered=
"false"
<div
style=
"font-size: 15px;padding-top: 15px;padding-left: 10px"
>
:column=
"3"
版本:v2
:data=
"refundData"
</div>
:schema=
"refundSchema"
</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
/>
<Divider
/>
<!--
<Description-->
<BasicForm
@
register=
"registerForm1"
/>
<!-- size="middle"-->
<!-- title="技术属性"-->
<!-- :bordered="false"-->
<!-- :column="3"-->
<!-- :data="personData"-->
<!-- :schema="personSchema"-->
<!-- />-->
<Divider
/>
<Divider
/>
<!--
<Description-->
<BasicForm
@
register=
"registerForm2"
/>
<!-- size="middle"-->
<Divider
/>
<!-- title="管理属性"-->
<BasicForm
@
register=
"registerForm3"
/>
<!-- :bordered="false"-->
<!-- :column="3"-->
<!-- :data="personData"-->
<!-- :schema="personSchema"-->
<!-- />-->
<Divider
/>
<Divider
/>
</PageWrapper>
</PageWrapper>
</
template
>
</
template
>
...
@@ -33,24 +25,84 @@
...
@@ -33,24 +25,84 @@
import
{
Description
}
from
'@/components/Description'
;
import
{
Description
}
from
'@/components/Description'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
Divider
}
from
'ant-design-vue'
;
import
{
Divider
}
from
'ant-design-vue'
;
import
{
refundData
}
from
'./basicStandardsData'
;
import
{
refundData
,
TreeData
}
from
'./basicStandardsData'
;
import
{
refundSchema
,}
from
'./basicStandards.data'
;
import
{
router
}
from
"@/router"
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
function
handleSummary
(
tableData
:
any
[])
{
import
{
let
totalT5
=
0
;
detailSchema1
,
let
totalT6
=
0
;
detailSchema2
,
tableData
.
forEach
((
item
)
=>
{
detailSchema3
totalT5
+=
item
.
t5
;
}
from
'./basicStandards.data'
;
totalT6
+=
item
.
t6
;
import
{
onMounted
,
ref
}
from
"vue"
;
});
import
{
useRoute
}
from
"vue-router"
;
return
[
{
t1
:
'总计'
,
const
route
=
useRoute
()
t5
:
totalT5
,
const
title
=
ref
(
''
)
t6
:
totalT6
,
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
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.desc-wrap {
.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 @@
...
@@ -149,11 +149,10 @@
/**查看详情*/
/**查看详情*/
function
detailButton
(
record
)
{
function
detailButton
(
record
)
{
console
.
log
(
'record:'
,
record
)
router
.
push
({
router
.
push
({
path
:
'/dataStandards/basicStandards/detailStandard'
,
path
:
'/dataStandards/basicStandards/detailStandard'
,
query
:
{
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