Commit 03471415 by 杨北旺

修改基本信息表格样式

1 parent 7dad7c14
......@@ -11,10 +11,29 @@
</div>
<div class="label_text dr_top">门店详情</div>
</div>
<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>
<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> -->
<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 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>
<span class="dr_left">{{ isOpen ? '隐藏门店详情' : '展开门店详情' }}</span>
</div>
......@@ -61,16 +80,16 @@ export default {
},
{
label: '有效期',
prop:'date'
prop: 'date'
}
]
},
isOpen:false
isOpen: false
}
},
props:{
list:Array,
bloc:null
props: {
list: Array,
bloc: null
},
methods: {
changeLeftOpenStatus(item, index) {
......@@ -94,11 +113,9 @@ export default {
this.rightData = right
console.log(left)
console.log(right)
},
}
},
mounted() {
}
mounted() {}
}
</script>
<style lang="scss" scoped>
......@@ -111,7 +128,8 @@ export default {
flex-wrap: wrap;
.wrap_left,
.wrap_right {
width: 44.8%;
// min-width: 44.8%;
min-width: 520px;
min-height: 176px;
}
.wrap_left {
......@@ -149,9 +167,60 @@ export default {
// transition: height 0.1s ease-in-out;
}
.table_wrapper_open {
height: 395px;
height: 378px;
// 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 {
width: 100%;
height: 36px;
......@@ -169,17 +238,17 @@ export default {
}
}
}
.bloc-info-module /deep/ .el-table__body-wrapper{
height: 352px;
overflow-y: auto;
overflow-x: hidden;
}
.bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar {
height: 1px;
width: 8px;
}
.bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
background: #E9E8FF;
border-radius: 7px;
}
// .bloc-info-module /deep/ .el-table__body-wrapper {
// height: 352px;
// overflow-y: auto;
// overflow-x: hidden;
// }
// .bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar {
// height: 1px;
// width: 8px;
// }
// .bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
// background: #e9e8ff;
// border-radius: 7px;
// }
</style>
\ No newline at end of file
......@@ -53,12 +53,30 @@ export default {
merchantId: this.loginInfo.merchantId,
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 => {
this.blocInfo = res
this.storesList = res.stores.map(item => {
item.date = `${this.dateFormat(item.starttime, 'YYYY.MM.DD')}--${this.dateFormat(item.endtime, 'YYYY.MM.DD')}`
return item
})
// for(let i = 0;i<30;i++){
// this.storesList.push(this.storesList[0])
// }
})
},
dateFormat: function (dateTime, format = 'yyyy-MM-dd') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!