Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
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
office
haoban-3
Commits
0f353630
Commit
0f353630
authored
May 19, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 保存按钮组件
parent
68819e5d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
4 deletions
+53
-4
hb-form-bottom.vue
src/components/layout/hb-form-bottom.vue
+46
-0
index.vue
src/components/layout/index.vue
+2
-1
main.js
src/main.js
+2
-0
evaluate-set.vue
src/views/apps/order-evaluate/evaluate-set.vue
+3
-3
No files found.
src/components/layout/hb-form-bottom.vue
0 → 100644
View file @
0f353630
<
template
>
<div
class=
"hb-form-bottom"
:style=
"
{ width: width, 'justify-content': horizontal == 'left' ? 'flex-start' : horizontal == 'right' ? 'flex-end' : 'center' }">
<slot></slot>
</div>
</
template
>
<
script
>
export
default
{
name
:
'HbFormBottom'
,
inject
:
[
'layoutVm'
],
props
:
{
horizontal
:
{
type
:
String
,
// 可选值: left:居左 right:居右
default
:
'center'
}
},
data
()
{
return
{
width
:
'0px'
};
},
mounted
()
{
this
.
width
=
this
.
$parent
.
$el
.
offsetWidth
+
'px'
;
this
.
layoutVm
.
pagePaddingBottom
=
'56px'
;
},
beforeDestroy
()
{
this
.
layoutVm
.
pagePaddingBottom
=
0
;
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.hb-form-bottom
{
display
:
flex
;
align-items
:
center
;
position
:
fixed
;
right
:
0
;
bottom
:
0
;
z-index
:
100
;
width
:
calc
(
100%
-
12px
);
height
:
56px
;
background
:
#ffffff
;
box-shadow
:
1px
-2px
8px
0px
rgba
(
220
,
223
,
230
,
0.6
);
}
</
style
>
src/components/layout/index.vue
View file @
0f353630
...
...
@@ -4,7 +4,7 @@
<aside-menu
v-show=
"showAside"
:menu-list=
"activedMenu.length > 0 ? activedMenu[0].childList : []"
:actived-code=
"activedMenu.length > 2 ? activedMenu[2].menuCode : ''"
></aside-menu>
<div
class=
"hb-layout-content"
>
<bread-menu
v-if=
"activedMenu.length > 3"
:menu-list=
"activedMenu.slice(2)"
></bread-menu>
<div
class=
"hb-layout-pager"
:style=
"
{ height: activedMenu.length > 3 ? `calc(100% - 30px)` : '100%' }">
<div
class=
"hb-layout-pager"
:style=
"
{ height: activedMenu.length > 3 ? `calc(100% - 30px)` : '100%'
, 'padding-bottom': pagePaddingBottom
}">
<!-- 页面内容 -->
<!--
<router-view
v-if=
"activeBrand"
:brandId=
"activeBrand"
:activeGroupId=
"activeGroup"
:tabType=
"activeTab"
@
showTab=
"showTab"
></router-view>
-->
<keep-alive
v-if=
"$route.meta.keepAlive"
>
...
...
@@ -37,6 +37,7 @@ export default {
data
()
{
return
{
showAside
:
true
,
pagePaddingBottom
:
'0px'
,
enterpriseId
:
''
,
// 菜单平铺数据
flatMenuList
:
[],
...
...
src/main.js
View file @
0f353630
...
...
@@ -31,6 +31,7 @@ import htmlToPdf from '@/components/utils/htmlToPdf';
import
VueAMap
from
'vue-amap'
;
import
Vue
from
'vue'
;
import
buttonCode
from
'../menu-data/button-code.json'
;
import
HbFormBottom
from
'@/components/layout/hb-form-bottom.vue'
;
// Vue.use(contentmenu);
Vue
.
use
(
VueAMap
);
...
...
@@ -46,6 +47,7 @@ Vue.use(vueOfficeUploadImage);
Vue
.
use
(
vueOfficeArea
);
Vue
.
use
(
vueOfficeAside
);
Vue
.
use
(
vueOfficeHeader
);
Vue
.
component
(
'hb-form-bottom'
,
HbFormBottom
);
Vue
.
config
.
productionTip
=
false
;
// Vue.use(ElementUI, { size: 'large' });
...
...
src/views/apps/order-evaluate/evaluate-set.vue
View file @
0f353630
...
...
@@ -54,9 +54,9 @@
</el-form-item>
</el-form>
</el-form>
<
el-button
type=
"primary"
@
click=
"onSave"
>
保存
</el-button
>
<!-- <hb-form-bottom
>
</hb-form-bottom>
-->
<
hb-form-bottom
>
<el-button
type=
"primary"
@
click=
"onSave"
>
保存
</el-button
>
</hb-form-bottom>
</div>
</template>
<
script
>
...
...
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