Commit ff4513c0 by 杨北旺

修改样式

1 parent 5ae1f90b
...@@ -149,13 +149,9 @@ export default { ...@@ -149,13 +149,9 @@ export default {
// transition: height 0.1s ease-in-out; // transition: height 0.1s ease-in-out;
} }
.table_wrapper_open { .table_wrapper_open {
height: 494px; height: 395px;
// transition: height 0.1s ease-in-out; // transition: height 0.1s ease-in-out;
} }
.table_wrapper_open::-webkit-scrollbar {
display: none;
width: 0px;
}
.fixed_footer { .fixed_footer {
width: 100%; width: 100%;
height: 36px; height: 36px;
...@@ -174,8 +170,14 @@ export default { ...@@ -174,8 +170,14 @@ export default {
} }
} }
.bloc-info-module /deep/ .el-table__body-wrapper{ .bloc-info-module /deep/ .el-table__body-wrapper{
height: 440px; height: 352px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
} }
.bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar {
display: none;
width: 8px;
background: #E9E8FF;
border-radius: 7px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
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
}) })
let aaa = this.storesList[0] let aaa = this.storesList[0]
...@@ -67,30 +67,20 @@ export default { ...@@ -67,30 +67,20 @@ export default {
} }
}) })
}, },
dateFormat: function (date, str = 'yyyy-MM-dd') { dateFormat: function (dateTime, format = 'yyyy-MM-dd') {
Date.prototype.format = function (fmt) { const date = new Date(dateTime)
let o = { const config = {
'M+': this.getMonth() + 1, //月份 YYYY: date.getFullYear(),
'd+': this.getDate(), //日 MM: date.getMonth()+1,//getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
'h+': this.getHours(), //小时 DD: date.getDate(),
'm+': this.getMinutes(), //分 HH: date.getHours(),
's+': this.getSeconds(), //秒 mm: date.getMinutes(),
//季度 ss: date.getSeconds(),
'q+': Math.floor((this.getMonth() + 3) / 3),
S: this.getMilliseconds() //毫秒
} }
if (/(y+)/.test(fmt)) { for(const key in config){
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length)) format = format.replace(key, config[key])
} }
for (let k in o) { return format
if (new RegExp(`(${k})`).test(fmt)) {
fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length))
}
}
return fmt
}
let result = new Date(date).format(str)
return result
} }
} }
} }
...@@ -102,11 +92,11 @@ export default { ...@@ -102,11 +92,11 @@ export default {
} }
.base-info-index { .base-info-index {
width: 100%; width: 100%;
min-height: calc(100vh - 124px); height: calc(100vh - 144px);
background: #fff; background: #fff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// overflow: hidden; overflow: hidden;
// overflow-y: scroll; overflow-y: scroll;
} }
.base-info-index::-webkit-scrollbar { .base-info-index::-webkit-scrollbar {
display: none; display: none;
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</div> </div>
<div style="height: 64px"></div> <div style="height: 64px"></div>
<div class="fixed-footer"> <div class="fixed-footer">
<div :style="{ width: customWidth + 'px' }" class="btn-custom">取消</div> <div :style="{ width: customWidth + 'px' }" class="btn-custom" @click="closeCurRouter">取消</div>
<div style="width: 40px"></div> <div style="width: 40px"></div>
<div :style="{ width: customWidth + 'px' }" ref="btnWidth" class="btn-custom pruple" @click="handleMutiGL">确定关联({{ dataList.length }})</div> <div :style="{ width: customWidth + 'px' }" ref="btnWidth" class="btn-custom pruple" @click="handleMutiGL">确定关联({{ dataList.length }})</div>
</div> </div>
...@@ -170,6 +170,9 @@ export default { ...@@ -170,6 +170,9 @@ export default {
this.dataList.push(this.curGLData) this.dataList.push(this.curGLData)
this.setBtnWidth() this.setBtnWidth()
}, },
closeCurRouter(){
history.go(-1)
},
// 批量关联 // 批量关联
handleMutiGL() { handleMutiGL() {
if(!this.dataList.length){ if(!this.dataList.length){
...@@ -235,7 +238,7 @@ export default { ...@@ -235,7 +238,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.gl-page { .gl-page {
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px 20px 20px 40px;
} }
.page-title { .page-title {
font-size: 20px; font-size: 20px;
...@@ -297,9 +300,10 @@ export default { ...@@ -297,9 +300,10 @@ export default {
} }
.fixed-footer { .fixed-footer {
position: fixed; position: fixed;
left: 0; // left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
width: calc(100% - 177px);
// background: #5850ff; // background: #5850ff;
height: 64px; height: 64px;
z-index: 10; z-index: 10;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!