Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a4842210
authored
2023-01-05 11:34:26 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:btn组件完成
1 parent
063b2912
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
11 deletions
src/components/Base/base.js
src/components/Button/src/button.vue
src/image/btn.png
src/image/dp.png
src/layout/components/Navbar.vue
src/styles/index.scss
src/views/dbrzcx/index.vue
src/views/jsbwcx/index.vue
src/views/sbbwcx/index.vue
src/components/Base/base.js
View file @
a484221
import
dialogBox
from
'@/components/DialogBox/dialogBox.vue'
import
LbTable
from
'@/components/LbTable/lb-table.vue'
import
Theme
from
'@/components/Theme/theme.vue'
// 引入按钮
import
btn
from
'@/components/Button/src/button'
import
Popup
from
'@/components/Popup/index'
import
MessageBox
from
'@/components/MessageBox/index.js'
export
default
{
install
:
(
Vue
)
=>
{
Vue
.
component
(
'dialogBox'
,
dialogBox
);
Vue
.
component
(
'btn'
,
btn
);
Vue
.
component
(
'lbTable'
,
LbTable
);
Vue
.
component
(
'Theme'
,
Theme
);
Vue
.
prototype
.
$popup
=
Popup
.
install
;
...
...
src/components/Button/src/button.vue
View file @
a484221
<
template
>
<button
class=
"
el-
button"
:class=
"nativeType"
@
click=
"handleClick"
:type=
"nativeType"
>
<button
class=
"button"
:class=
"nativeType"
@
click=
"handleClick"
:type=
"nativeType"
>
<slot></slot>
</button>
</
template
>
...
...
@@ -20,5 +20,22 @@ export default {
};
</
script
>
<
style
scoped
lang=
"scss"
>
.button
{
width
:
77px
;
height
:
32px
;
color
:
#ffffff
;
margin
:
0
5px
;
}
.cx
{
background
:
url('../../../image/btn.png')
no-repeat
-4px
-40px
;
}
.cz
{
background
:
url('../../../image/btn.png')
no-repeat
-4px
-4px
;
}
.sb
{
background
:
url('../../../image/btn.png')
no-repeat
-4px
-112px
;
}
</
style
>
...
...
src/image/btn.png
0 → 100644
View file @
a484221
3.32 KB
src/image/dp.png
0 → 100644
View file @
a484221
2.34 KB
src/layout/components/Navbar.vue
View file @
a484221
...
...
@@ -5,7 +5,7 @@
<Breadcrumb
/>
</div>
<div
class=
"right-menu"
>
<div
class=
"dataView pointer"
@
click=
"handleDataView"
>
大屏展示
</div>
<div
class=
"dataView
d-center
pointer"
@
click=
"handleDataView"
>
大屏展示
</div>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"hover"
@
command=
"handleCommand"
>
<div
class=
"avatar-wrapper"
>
<span
style=
"padding-right:10px"
>
{{
name
}}
</span>
...
...
@@ -66,6 +66,11 @@ export default {
.dataView
{
color
:
#fff
;
width
:
120px
;
height
:
32px
;
background
:
url('../../image/dp.png')
;
background-size
:
cover
;
margin-right
:
20px
;
}
.NoticeBar
{
...
...
src/styles/index.scss
View file @
a484221
...
...
@@ -159,7 +159,11 @@ div:focus {
display
:
flex
;
align-items
:
center
;
}
.d-center
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.bg-color-blue
{
background-color
:
#1a5cd7
;
}
...
...
src/views/dbrzcx/index.vue
View file @
a484221
...
...
@@ -27,8 +27,8 @@
</el-col>
<!-- 操作按钮 -->
<el-col
:span=
"6"
class=
"btnColRight"
>
<
el-button
@
click=
"resetForm('ruleForm')"
>
重置
</el-butto
n>
<
el-button
type=
"primary"
@
click=
"handleSubmit"
>
查询结果
</el-butto
n>
<
btn
nativeType=
"cz"
@
click=
"resetForm('ruleForm')"
>
重置
</bt
n>
<
btn
nativeType=
"cx"
@
click=
"handleSubmit"
>
查询
</bt
n>
</el-col>
</el-row>
</el-form>
...
...
src/views/jsbwcx/index.vue
View file @
a484221
...
...
@@ -59,9 +59,9 @@
<!-- 按钮操作 -->
<el-col
:span=
"6"
class=
"btnColRight"
>
<el-form-item>
<
el-button
@
click=
"resetForm('ruleForm')"
>
重置
</el-butto
n>
<
el-button
type=
"primary"
@
click=
"handleSubmit"
>
查询
</el-butto
n>
<
el-button
type=
"primary"
>
入库
</el-butto
n>
<
btn
nativeType=
"cz"
@
click=
"resetForm('ruleForm')"
>
重置
</bt
n>
<
btn
nativeType=
"cx"
click=
"handleSubmit"
>
查询
</bt
n>
<
btn
nativeType=
"sb"
>
入库
</bt
n>
</el-form-item>
</el-col>
</el-row>
...
...
src/views/sbbwcx/index.vue
View file @
a484221
...
...
@@ -50,9 +50,9 @@
</el-col>
<!-- 操作按钮 -->
<el-col
:span=
"12"
class=
"btnColRight"
>
<
el-button
@
click=
"resetForm('ruleForm')"
>
重置
</el-butto
n>
<
el-button
type=
"primary"
@
click=
"featchData"
>
查询结果
</el-butto
n>
<
el-button
type=
"primary"
@
click=
"handleEscalation"
>
上报
</el-butto
n>
<
btn
nativeType=
"cz"
@
click=
"resetForm('ruleForm')"
>
重置
</bt
n>
<
btn
nativeType=
"cx"
@
click=
"featchData"
>
查询
</bt
n>
<
btn
nativeType=
"sb"
@
click=
"handleEscalation"
>
上报
</bt
n>
</el-col>
</el-row>
</el-form>
...
...
Please
register
or
sign in
to post a comment