Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
0117b72f
Commit
0117b72f
authored
Aug 12, 2022
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多维查询折叠展开
parent
6d6d91ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
8 deletions
+65
-8
src/assets/styles/form.scss
+1
-0
src/components/dwcx/form_components.vue
+54
-5
src/components/dwcx/table_components.vue
+4
-3
src/views/dwcx/index.vue
+6
-0
No files found.
src/assets/styles/form.scss
View file @
0117b72f
...
...
@@ -81,6 +81,7 @@
}
.formWrap
{
width
:
70%
;
transition
:
width
0
.3s
ease-out
;
background
:
#FFFFFF
;
box-shadow
:
0px
1px
2px
rgba
(
0
,
0
,
0
,
0
.2
);
opacity
:
1
;
...
...
src/components/dwcx/form_components.vue
View file @
0117b72f
<
template
>
<div
style=
"width: 100%"
>
<div
class=
"formWrap"
>
<div
class=
"formWrap"
:style=
"
{width: isClose ? '70%' : '95%' }"
>
<div>
<span
style=
"
...
...
@@ -189,14 +189,16 @@
element-loading-background=
"rgba(0,0,0,.8)"
style=
"
position: fixed;
right:
2
0px;
width:
370
px;
right: 0px;
width:
438
px;
z-index: 999;
width: 23%;
transition: width 0.3s ease-out
"
:style=
"{ top: marginTop + 'px' }"
:style=
"{ top: marginTop + 'px'
,width: isClose ? '438px' : 0
}"
>
<el-card
class=
"box-card"
>
<div
class=
"tizi"
@
click=
"handleCollapse"
><i
:class=
"isClose ? 'el-icon-arrow-down' : 'el-icon-arrow-up'"
></i></div>
<el-card
class=
"box-card"
style=
"height: 600px"
>
<div
slot=
"header"
class=
"clearfix"
>
<el-badge
:value=
"total"
class=
"item"
>
<span>
模型列表
</span>
...
...
@@ -353,9 +355,14 @@ export default {
waitXyrxxField
:
[],
waitFlxxField
:
[],
type
:
this
.
fieldType
,
isClose
:
true
};
},
methods
:
{
handleCollapse
(){
this
.
isClose
=
!
this
.
isClose
this
.
$emit
(
'handleCollapse'
,
this
.
isClose
)
},
handleCurrentChange
(
val
)
{
this
.
page
=
val
;
this
.
getCx
();
...
...
@@ -824,4 +831,46 @@ export default {
.cardClass
:hover
{
/*border: 1px solid #055fe7;*/
}
.tizi
{
width
:
80px
;
height
:
20px
;
background-color
:
#fff
;
box-shadow
:
0
2px
-1px
0
rgba
(
0
,
0
,
0
,
0.1
);
position
:
absolute
;
top
:
50%
;
transform
:
rotate
(
-90deg
)
translateX
(
50%
);
left
:
-48px
;
i
{
position
:
absolute
;
font-size
:
20px
;
left
:
36%
;
top
:
2px
;
}
}
.tizi
::before
{
content
:
""
;
height
:
0px
;
width
:
0px
;
position
:
absolute
;
left
:
-20px
;
top
:
-20px
;
border-top
:
20px
solid
rgba
(
0
,
0
,
0
,
0
);
border-left
:
20px
solid
rgba
(
0
,
0
,
0
,
0
);
border-right
:
20px
solid
rgba
(
0
,
0
,
0
,
0
);
border-bottom
:
20px
solid
#fff
;
border-radius
:
5px
;
}
.tizi
::after
{
content
:
""
;
height
:
0px
;
width
:
0px
;
position
:
absolute
;
right
:
-20px
;
top
:
-20px
;
border-top
:
20px
solid
rgba
(
0
,
0
,
0
,
0
);
border-left
:
20px
solid
rgba
(
0
,
0
,
0
,
0
);
border-right
:
20px
solid
rgba
(
0
,
0
,
0
,
0
);
border-bottom
:
20px
solid
#fff
;
border-radius
:
5px
;
}
</
style
>
src/components/dwcx/table_components.vue
View file @
0117b72f
<
template
>
<div
class=
"tableList"
>
<div
class=
"formWrap"
<div
class=
"formWrap"
:style=
"
{width: isClose ? '70%' : '95%' }"
v-show="flxxList.length!=0">
<div
class=
"sxWrap"
>
<div
class=
"cxjgsxTitle"
>
查询结果筛选
</div>
...
...
@@ -117,7 +117,7 @@
</div>
</div>
</div>
<div
class=
"formWrap"
>
<div
class=
"formWrap"
:style=
"
{width: isClose ? '70%' : '95%' }"
>
<el-row>
<el-col
:span=
"24"
>
<span
class=
"flTtitle"
>
{{
listTitle
}}
查询结果
</span>
...
...
@@ -418,7 +418,8 @@ export default {
tPages
:
Number
,
tableType
:
String
,
pageNum
:
Number
,
tableLoadingEmit
:
Boolean
tableLoadingEmit
:
Boolean
,
isClose
:
Boolean
},
data
()
{
return
{
...
...
src/views/dwcx/index.vue
View file @
0117b72f
...
...
@@ -37,6 +37,7 @@
@
closeLoading=
"closeLoading"
@
closeInitLoading=
"closeInitLoading"
@
getselectList=
"getselectList"
@
handleCollapse=
'handleCollapse'
></list-form>
<list-table
ref=
"listTable"
...
...
@@ -60,6 +61,7 @@
:radioFZt=
"radioFZt"
:radioSZt=
"radioSZt"
:radioTZt=
"radioTZt"
:isClose=
'isClose'
@
getLoading=
"getLoading"
@
getPage=
"getPage"
@
getSort=
"getSort"
...
...
@@ -130,6 +132,7 @@ export default {
},
data
()
{
return
{
isClose
:
true
,
//是否折叠
tPage
:
null
,
resultLoading
:
true
,
deleteId
:
""
,
...
...
@@ -272,6 +275,9 @@ export default {
},
},
methods
:
{
handleCollapse
(){
this
.
isClose
=
!
this
.
isClose
},
getselectList
(
data
)
{
this
.
selectList
=
data
;
},
...
...
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