Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 03471415
authored
Oct 20, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改基本信息表格样式
1 parent
7dad7c14
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
26 deletions
src/views/baseInfo/bloc.vue
src/views/baseInfo/index.vue
src/views/baseInfo/bloc.vue
View file @
0347141
...
@@ -11,8 +11,27 @@
...
@@ -11,8 +11,27 @@
</div>
</div>
<div
class=
"label_text dr_top"
>
门店详情
</div>
<div
class=
"label_text dr_top"
>
门店详情
</div>
</div>
</div>
<div
:class=
"isOpen? 'table_wrapper_open' : 'table_wrapper_close'"
>
<div
:class=
"isOpen ? 'table_wrapper_open' : 'table_wrapper_close'"
>
<GLTable
v-if=
"isOpen"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"list"
:headerStyle=
"
{ background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
</GLTable>
<!--
<GLTable
v-if=
"isOpen"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"list"
:headerStyle=
"
{ background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
</GLTable>
-->
<template
v-if=
"isOpen"
>
<div
class=
"line_wrapper wrap_header"
>
<div
class=
"tittle text_w"
>
序号
</div>
<div
class=
"tittle1 text_w"
>
门店名称
</div>
<div
class=
"tittle2 text_w"
>
有效期
</div>
</div>
<div
class=
"line_body"
>
<template
v-if=
"list.length"
>
<div
v-for=
"(item, index) in list"
:key=
"index"
class=
"line_wrapper"
>
<div
class=
"tittle"
>
{{
index
+
1
}}
</div>
<div
class=
"tittle1"
>
{{
item
.
merchantName
}}
</div>
<div
class=
"tittle2"
>
{{
item
.
date
}}
</div>
</div>
</
template
>
<
template
v-if=
"!list.length"
>
<div
class=
"line_wrapper"
>
暂无数据
</div>
</
template
>
</div>
</template>
</div>
</div>
<div
class=
"fixed_footer"
@
click=
"changeRightOpenStatus(isOpen)"
>
<div
class=
"fixed_footer"
@
click=
"changeRightOpenStatus(isOpen)"
>
<i
:class=
"isOpen ? 'el-icon-caret-top' : 'el-icon-caret-bottom'"
></i>
<i
:class=
"isOpen ? 'el-icon-caret-top' : 'el-icon-caret-bottom'"
></i>
...
@@ -61,16 +80,16 @@ export default {
...
@@ -61,16 +80,16 @@ export default {
},
},
{
{
label
:
'有效期'
,
label
:
'有效期'
,
prop
:
'date'
prop
:
'date'
}
}
]
]
},
},
isOpen
:
false
isOpen
:
false
}
}
},
},
props
:{
props
:
{
list
:
Array
,
list
:
Array
,
bloc
:
null
bloc
:
null
},
},
methods
:
{
methods
:
{
changeLeftOpenStatus
(
item
,
index
)
{
changeLeftOpenStatus
(
item
,
index
)
{
...
@@ -94,11 +113,9 @@ export default {
...
@@ -94,11 +113,9 @@ export default {
this
.
rightData
=
right
this
.
rightData
=
right
console
.
log
(
left
)
console
.
log
(
left
)
console
.
log
(
right
)
console
.
log
(
right
)
},
},
mounted
()
{
}
}
},
mounted
()
{}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
@@ -111,7 +128,8 @@ export default {
...
@@ -111,7 +128,8 @@ export default {
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
.wrap_left,
.wrap_left,
.wrap_right
{
.wrap_right
{
width
:
44.8%
;
//
min-width
:
44.8%
;
min-width
:
520px
;
min-height
:
176px
;
min-height
:
176px
;
}
}
.wrap_left
{
.wrap_left
{
...
@@ -149,9 +167,60 @@ export default {
...
@@ -149,9 +167,60 @@ export default {
//
transition
:
height
0.1s
ease-in-out
;
//
transition
:
height
0.1s
ease-in-out
;
}
}
.table_wrapper_open
{
.table_wrapper_open
{
height
:
3
95
px
;
height
:
3
78
px
;
//
transition
:
height
0.1s
ease-in-out
;
//
transition
:
height
0.1s
ease-in-out
;
}
}
.line_wrapper
{
width
:
100%
;
height
:
54px
;
background
:
#ffffff
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
color
:
#909399
;
font-size
:
14px
;
border-bottom
:
1px
solid
#dcdfe6
;
.tittle
{
width
:
20%
;
text-align
:
center
;
line-height
:
54px
;
color
:
#333333
;
font-size
:
14px
;
}
.tittle1
{
width
:
40%
;
text-align
:
center
;
line-height
:
54px
;
color
:
#333333
;
font-size
:
14px
;
}
.tittle2
{
width
:
40%
;
text-align
:
center
;
line-height
:
54px
;
color
:
#333333
;
font-size
:
14px
;
}
}
.wrap_header
{
background
:
#f4f6fc
;
}
.text_w
{
font-weight
:
bold
;
}
.line_body
{
height
:
324px
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
}
.line_body
::-webkit-scrollbar
{
height
:
1px
;
width
:
8px
;
}
.line_body
::-webkit-scrollbar-thumb
{
background
:
#e9e8ff
;
border-radius
:
7px
;
}
.fixed_footer
{
.fixed_footer
{
width
:
100%
;
width
:
100%
;
height
:
36px
;
height
:
36px
;
...
@@ -169,17 +238,17 @@ export default {
...
@@ -169,17 +238,17 @@ export default {
}
}
}
}
}
}
.bloc-info-module
/
deep
/
.el-table__body-wrapper
{
//
.bloc-info-module
/
deep
/
.el-table__body-wrapper
{
height
:
352px
;
//
height
:
352px
;
overflow-y
:
auto
;
//
overflow-y
:
auto
;
overflow-x
:
hidden
;
//
overflow-x
:
hidden
;
}
//
}
.bloc-info-module
/
deep
/
.el-table__body-wrapper
::-webkit-scrollbar
{
//
.bloc-info-module
/
deep
/
.el-table__body-wrapper
::-webkit-scrollbar
{
height
:
1px
;
//
height
:
1px
;
width
:
8px
;
//
width
:
8px
;
}
//
}
.bloc-info-module
/
deep
/
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
//
.bloc-info-module
/
deep
/
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
background
:
#E9E8FF
;
//
background
:
#e9e8ff
;
border-radius
:
7px
;
//
border-radius
:
7px
;
}
//
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/baseInfo/index.vue
View file @
0347141
...
@@ -53,12 +53,30 @@ export default {
...
@@ -53,12 +53,30 @@ export default {
merchantId
:
this
.
loginInfo
.
merchantId
,
merchantId
:
this
.
loginInfo
.
merchantId
,
sessionId
:
this
.
loginInfo
.
sessionId
sessionId
:
this
.
loginInfo
.
sessionId
}
}
// let res = {
// merchantName: '冒烟商户AB',
// entmicroName: '54455445',
// parentName: '冒烟商户AB',
// entMicroEmployeeCount: 0,
// merchantModelName: '门店版',
// numberStores: 1,
// stores: [
// {
// merchantName: '冒烟门店2021',
// starttime: 1629712248000,
// endtime: 1664208000000
// }
// ]
// }
merchantInfo
(
para
).
then
(
res
=>
{
merchantInfo
(
para
).
then
(
res
=>
{
this
.
blocInfo
=
res
this
.
blocInfo
=
res
this
.
storesList
=
res
.
stores
.
map
(
item
=>
{
this
.
storesList
=
res
.
stores
.
map
(
item
=>
{
item
.
date
=
`
${
this
.
dateFormat
(
item
.
starttime
,
'YYYY.MM.DD'
)}
--
${
this
.
dateFormat
(
item
.
endtime
,
'YYYY.MM.DD'
)}
`
item
.
date
=
`
${
this
.
dateFormat
(
item
.
starttime
,
'YYYY.MM.DD'
)}
--
${
this
.
dateFormat
(
item
.
endtime
,
'YYYY.MM.DD'
)}
`
return
item
return
item
})
})
// for(let i = 0;i<30;i++){
// this.storesList.push(this.storesList[0])
// }
})
})
},
},
dateFormat
:
function
(
dateTime
,
format
=
'yyyy-MM-dd'
)
{
dateFormat
:
function
(
dateTime
,
format
=
'yyyy-MM-dd'
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment