调整样式修改

This commit is contained in:
daihh
2022-11-10 17:09:34 +08:00
parent 329a793fb6
commit 9c03f79f57
4 changed files with 49 additions and 16 deletions

View File

@@ -42,11 +42,24 @@ const isRead=function(){
const updateIsRead=function(ids){ const updateIsRead=function(ids){
return ajax.postJson('/xboe/sys/message/updateIsRead',ids) return ajax.postJson('/xboe/sys/message/updateIsRead',ids)
} }
/**把当前人所有未读消息设置为已读*/
const readAll=function(){
return ajax.postJson('/xboe/sys/message/readall')
}
/**清空当前人的接收到的所有的消息*/
const cleanAll=function(){
return ajax.postJson('/xboe/sys/message/clearall')
}
export default{ export default{
list, list,
del, del,
detail, detail,
save, save,
isRead, isRead,
updateIsRead updateIsRead,
readAll,
cleanAll
} }

View File

@@ -244,7 +244,7 @@
font-size: 24px; font-size: 24px;
font-family: JCHEadA; font-family: JCHEadA;
color: #D9D9D9; color: #D9D9D9;
margin-right: 10px; margin-right: 10px;
img{ img{
vertical-align: top; vertical-align: top;
@@ -359,21 +359,9 @@
// padding: 2px 12px; // padding: 2px 12px;
line-height: 24px; line-height: 24px;
} }
/**滚动条的宽度*/
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
/*滚动条的滑块*/
::-webkit-scrollbar-thumb {
background-color: #D8D8D8;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #D8D8D8;
}
@keyframes ubAddBlock { @keyframes ubAddBlock {
// from { // from {
// bottom: 0; // bottom: 0;

View File

@@ -2,6 +2,29 @@
* 门户页面的一些通用样式定义在这里面 * 门户页面的一些通用样式定义在这里面
*/ */
body {margin: 0px;padding: 0px;} body {margin: 0px;padding: 0px;}
/**滚动条的宽度*/
::-webkit-scrollbar {
width: 8px;
height: 24px;
scrollbar-color: #009cea #f7f7f9; /* 滑块颜色 滚动条背景颜色 */
scrollbar-width: thin; /* 滚动条宽度有三种thin、auto、none */
}
/*滚动条的滑块*/
::-webkit-scrollbar-thumb {
//background-color: #D8D8D8;
border-radius: 3px;
background-color: rgb(103, 197, 255);
}
::-webkit-scrollbar-thumb:hover {
background: #D8D8D8;
height: 24px;
width: 12px;
}
//定义全局的核心区域宽度 //定义全局的核心区域宽度
.xcontent{ .xcontent{
min-width: 1100px; min-width: 1100px;

View File

@@ -17,7 +17,7 @@
</el-radio-group> --> </el-radio-group> -->
</div> </div>
<div> <div>
<el-button class="navbut" type="text" @click="isReadChooseList">设置已读</el-button> <el-button style="margin-left: 25px;" :disabled="disabledReadAll" :class="{navbut:!disabledReadAll}" type="text" @click="isReadChooseList">设置已读</el-button>
<el-button class="navbut" type="text" @click="delChooseList">删除所选</el-button> <el-button class="navbut" type="text" @click="delChooseList">删除所选</el-button>
</div> </div>
</div> </div>
@@ -109,6 +109,7 @@ export default {
pageSize: 6, pageSize: 6,
isRead: null isRead: null
}, },
disabledReadAll:false,
total: 0, total: 0,
checkAll: false, checkAll: false,
data: [], data: [],
@@ -144,18 +145,26 @@ export default {
this.checkAll = false; this.checkAll = false;
this.isIndeterminate = false; this.isIndeterminate = false;
} }
this.disabledReadAll=false;
apiMessage.list(this.queryData).then(res => { apiMessage.list(this.queryData).then(res => {
if (res.status == 200) { if (res.status == 200) {
this.totalPages = res.result.totalPages; this.totalPages = res.result.totalPages;
this.total = res.result.count; this.total = res.result.count;
let allRead=true;
res.result.list.forEach(item => { res.result.list.forEach(item => {
let name = this.filterContent(item.content); let name = this.filterContent(item.content);
let num = name.slice(1,name.length); let num = name.slice(1,name.length);
item.tip = name[0]; item.tip = name[0];
item.content = num.join('-'); item.content = num.join('-');
item.checked = false; item.checked = false;
if(!item.isRead){
allRead=false;
}
this.data.push(item); this.data.push(item);
}); });
if(allRead){
this.disabledReadAll=true;
}
if(this.total == 0){this.showMessage = '暂无消息';} if(this.total == 0){this.showMessage = '暂无消息';}
this.showMessage = this.total <= 0 ? '暂无消息' : ''; this.showMessage = this.total <= 0 ? '暂无消息' : '';
} else { } else {