提交 fe3bbb61 编写于 作者: chengxiang.li's avatar chengxiang.li

update watermask logic

上级 72bcf479
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<template v-if="tableDataList && tableDataList.outModels && tableDataList.outModels.length > 0"> <template v-if="tableDataList && tableDataList.outModels && tableDataList.outModels.length > 0">
<el-table <el-table
:data="tableDataList.outModels" :data="tableDataList.outModels"
:row-style="getRowClass" :header-row-style="getRowClass" :header-cell-style="getRowClass"
border border
style="width: 100%"> style="width: 100%">
<template <template
...@@ -211,6 +212,9 @@ ...@@ -211,6 +212,9 @@
bg.style.background = `url(${vm.waterMark}) repeat`; bg.style.background = `url(${vm.waterMark}) repeat`;
bg.style.backgroundSize = '200px auto'; bg.style.backgroundSize = '200px auto';
}, },
getRowClass({ row, column, rowIndex, columnIndex }) {
return "background:#3f5c6d2c;";
},
confirmSendRemark() { // 添加备注信息 confirmSendRemark() { // 添加备注信息
if( vm.newRemark.trim() == '' ){ if( vm.newRemark.trim() == '' ){
vm.$message.error('请先输入备注信息!'); vm.$message.error('请先输入备注信息!');
...@@ -520,28 +524,6 @@ ...@@ -520,28 +524,6 @@
} }
} }
} }
// 调整弹框样式,使弹窗只占用自身空间,使其不影响给mask加的事件
// .condition-dialog-wrap{
// overflow: hidden;
// bottom: auto !important;
// right: auto !important;
// left: 50%; margin-left: -150px; top: 2vh;
// .el-dialog--center{
// margin: 0 !important;
// }
// .el-dialog__body{
// padding: 15px 15px 0 !important;
// .el-form{
// -webkit-overflow-scrolling:touch;
// height: 300px; overflow: hidden; overflow-y: scroll;
// }
// }
// .el-form-item__label{
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
// }
// }
ul, li { ul, li {
list-style: none; list-style: none;
} }
...@@ -571,6 +553,12 @@ ...@@ -571,6 +553,12 @@
margin: 30px 0; margin: 30px 0;
float: right; float: right;
} }
.tebale_card {
background-color: #3f5c6d2c;
}
.el-table, .el-table__expanded-cell {
background-color: #3f5c6d2c;
}
} }
</style> </style>
\ No newline at end of file
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
v-if="tableDataList && tableDataList.outModels && tableDataList.outModels.length > 0" v-if="tableDataList && tableDataList.outModels && tableDataList.outModels.length > 0"
ref="multipleTable" ref="multipleTable"
:data="tableDataList.outModels" :data="tableDataList.outModels"
:row-style="getRowClass" :header-row-style="getRowClass" :header-cell-style="getRowClass"
border border
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
...@@ -251,6 +252,9 @@ export default { ...@@ -251,6 +252,9 @@ export default {
vm.$message.error('网络出现点问题') vm.$message.error('网络出现点问题')
}) })
}, },
getRowClass({ row, column, rowIndex, columnIndex }) {
return "background:#3f5c6d2c;";
},
getWaterMark() { getWaterMark() {
let callback = (res) => { let callback = (res) => {
if(res.code == '000000'){ if(res.code == '000000'){
...@@ -269,7 +273,7 @@ export default { ...@@ -269,7 +273,7 @@ export default {
setWaterMark() { setWaterMark() {
let bg = document.getElementById('bodyContent'); let bg = document.getElementById('bodyContent');
bg.style.background = `url(${vm.waterMark}) repeat`; bg.style.background = `url(${vm.waterMark}) repeat`;
bg.style.backgroundSize = '200px auto'; bg.style.backgroundSize = '300px auto';
}, },
handleClearCondition() { handleClearCondition() {
// debugger; // debugger;
...@@ -617,5 +621,12 @@ export default { ...@@ -617,5 +621,12 @@ export default {
margin-top: 30px; margin-top: 30px;
float: right; float: right;
} }
.tebale_card {
background-color: #3f5c6d2c;
}
.el-table, .el-table__expanded-cell {
background-color: #3f5c6d2c;
}
} }
</style> </style>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册