Commit ff4513c0 by 杨北旺

修改样式

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