修改消息弹窗样式首页线体图

master
LAPTOP-R6EHHS26\86155 7 months ago
parent a458a4712a
commit ea6bf3b243

Binary file not shown.

After

Width:  |  Height:  |  Size: 726 KiB

@ -156,26 +156,97 @@
:before-close="handleClose" :before-close="handleClose"
class="messagedialog" class="messagedialog"
> >
<span slot="title" class="dialog-title">
<div class="titlebox" style="display: flex; align-items: center">
<!-- <i class="el-icon-message-solid" style="color: aqua"></i> -->
<img src="../../assets/images/alarm.gif" width="42" alt="">
<div class="">消息提示</div>
</div>
</span>
<div class="message"> <div class="message">
<div class="messagelist"> <div class="messagelist">
<div class="itemlist" v-for="(item,index) in commentNum" :key="index" > <div
class="itemlist"
v-for="(item, index) in messagedata"
:key="index"
>
<!-- <div class="timetip">2024-04-24 08:00:00</div> --> <!-- <div class="timetip">2024-04-24 08:00:00</div> -->
<div class="item"> <div class="item">
<div class="titilebox"> <div class="titilebox">
<div class="title">工单未开始超时提醒</div> <div class="title">工单未开始超时提醒</div>
<div class="subtitle">上位机未及时执行工单的开始动作</div> <div class="subtitle">
{{ item.productDateStr
}}{{
item.prodLineName
}}上位机未及时执行工单的开始动作,延迟小时数{{ item.difHours }}
</div>
</div> </div>
<div class="elcollapse"> <div class="elcollapse">
<el-collapse accordion> <el-collapse accordion>
<el-collapse-item> <el-collapse-item>
<template slot="title"> <template slot="title"> 消息详情 </template>
间读详情 <!-- 订单编码工单编码计划生产时间产品编码产品名称数量单位线体名称班次延迟小时数 -->
</template> <div class="form">
<div> <div class="formlist">
与现实生活一致与现实生活的流程逻辑保持一致遵循用户习惯的语言和概念 <span class="lablename"> 订单编码: </span>
</div> <span class="lablecontent">
<div> {{ item.workorderCodeSap }}
在界面中一致所有的元素和结构需保持一致比如设计样式图标和文本元素的位置等 </span>
<span class="lablename" style="margin-left: 15px">
工单编号:
</span>
<span class="lablecontent">
{{ item.workorderCode }}
</span>
</div>
<div class="formlist">
<span class="lablename"> 计划生产时间: </span>
<span class="lablecontent">
{{ item.productDateStr }}
</span>
<span class="lablename" style="margin-left: 15px">
产品编码:
</span>
<span class="lablecontent">
{{ item.productCode }}
</span>
</div>
<div class="formlist">
<span class="lablename"> 产品名称: </span>
<span class="lablecontent">
{{ item.productName }}
</span>
</div>
<div class="formlist">
<span class="lablename"> 数量: </span>
<span class="lablecontent">
{{ item.quantitySplit }}
</span>
<span class="lablename" style="margin-left: 15px">
单位:
</span>
<span class="lablecontent">
{{ item.unit }}
</span>
</div>
<div class="formlist">
<span class="lablename"> 线体名称: </span>
<span class="lablecontent">
{{ item.prodLineName }}
</span>
<span class="lablename" style="margin-left: 15px">
班次:
</span>
<span class="lablecontent">
{{ item.difHours }}
</span>
</div>
<div class="formlist">
<span class="lablename"> 延迟小时数: </span>
<span class="lablecontent">
{{ item.difHours }}
</span>
</div>
</div> </div>
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
@ -231,7 +302,7 @@ export default {
commentNum: 0, commentNum: 0,
queryParams: {}, queryParams: {},
dialogVisible: false, dialogVisible: false,
messagedata:[], messagedata: [],
}; };
}, },
created() { created() {
@ -297,8 +368,8 @@ export default {
), ),
}); });
}, },
handleClose(){ handleClose() {
this.dialogVisible = false;
}, },
// //
editAlarmStatus() { editAlarmStatus() {
@ -361,10 +432,12 @@ export default {
/** 获取未读消息数 */ /** 获取未读消息数 */
getUnReadList() { getUnReadList() {
console.log("++未读消息查询++"); console.log("++未读消息查询++");
getUnReadComment(this.queryParams).then(response => { getUnReadComment(this.queryParams).then((response) => {
if(response.length>0){ if (response.length > 0) {
this.unReadComments='您有'+response.length+'新的未读消息,请点击查看'; this.unReadComments =
"您有" + response.length + "新的未读消息,请点击查看";
this.commentNum = response.length; this.commentNum = response.length;
this.messagedata = response;
this.showPrise = true; this.showPrise = true;
} else { } else {
this.showPrise = false; this.showPrise = false;
@ -495,10 +568,11 @@ export default {
.message { .message {
height: 400px; height: 400px;
background-color: #f9f9f9; background-color: #f9f9f9;
overflow-y: scroll;
.messagelist { .messagelist {
padding-top: 10px; padding-top: 25px;
.itemlist { .itemlist {
width: 85%; width: 95%;
margin: auto; margin: auto;
.timetip { .timetip {
text-align: center; text-align: center;
@ -507,12 +581,15 @@ export default {
.item { .item {
border: 1px solid #eeeeee; border: 1px solid #eeeeee;
width: 100%; width: 100%;
padding: 10px; padding: 20px;
background-color: #ffffff; background-color: #ffffff;
border-radius: 2px; border-radius: 2px;
box-shadow: 0px 0px 0px 2px #f1f1f1; box-shadow: 0px 0px 0px 2px #f1f1f1;
margin-bottom: 18px;
.titilebox { .titilebox {
margin-bottom: 30px; padding: 10px;
padding-bottom: 20px;
background-color: rgb(241 241 241 / 70%);
.title { .title {
font-size: 18px; font-size: 18px;
margin-bottom: 5px; margin-bottom: 5px;
@ -522,6 +599,26 @@ export default {
margin-bottom: 5px; margin-bottom: 5px;
} }
} }
.elcollapse {
background-color: rgb(241 241 241 / 70%);
.form {
// display: flex;
.formlist {
margin-bottom: 2px;
.lablename {
font-size: 14px;
color: #9badc5;
display: inline-block;
min-width: 90px;
}
.lablecontent {
display: inline-block;
font-size: 13px;
min-width: 218px;
}
}
}
}
} }
} }
} }
@ -536,5 +633,11 @@ export default {
::v-deep .messagedialog .el-collapse-item__header { ::v-deep .messagedialog .el-collapse-item__header {
border-bottom: none; border-bottom: none;
line-height: 32px; line-height: 32px;
height: 30px;
font-size: 16px;
}
::v-deep .messagedialog .el-dialog__headerbtn {
font-size: 25px;
top: 27px;
} }
</style> </style>

@ -100,7 +100,7 @@ export default {
}, },
// backgroundColor: "#031d33", // backgroundColor: "#031d33",
xAxis: { xAxis: {
name:'箱', // name:'',
show: true, show: true,
type: "value", type: "value",
// data:xData // data:xData
@ -123,9 +123,9 @@ export default {
inverse: true, inverse: true,
axisLabel: { axisLabel: {
show: true, show: true,
margin: 15, margin: 10,
textStyle: { textStyle: {
fontSize: "16", fontSize: "14",
fontWeight: "bolder", fontWeight: "bolder",
}, },
}, },
@ -149,7 +149,7 @@ export default {
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: "rgba(128, 207, 240, 1)", color: "rgba(128, 207, 240, 1)",
fontSize: "16", fontSize: "14",
}, },
formatter: function (value) { formatter: function (value) {
return value; return value;

Loading…
Cancel
Save