|
|
@@ -9,16 +9,20 @@
|
|
|
</div>
|
|
|
<div class="body-box">
|
|
|
<div class="percent mt-2">
|
|
|
- <div class="item " v-for="item in rate"
|
|
|
+ <div class="item mt-3" v-for="item in rate"
|
|
|
:key="item.id">
|
|
|
- <span>{{ item.title }}</span>
|
|
|
+ <span class="mb-2">{{ item.title }}</span>
|
|
|
<CenterChart
|
|
|
:id="item.id"
|
|
|
:tips="item.tips"
|
|
|
:colorObj="item.colorData"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="d-flex jc-center body-box">
|
|
|
+ <div class ="item2">
|
|
|
+ <span class="fs-xl mx-2 d-flex jc-center">设备提醒信息</span>
|
|
|
+ <dv-scroll-board :config="config1" ref="scroll-board1" />
|
|
|
+ </div>
|
|
|
+ <div class="d-flex jc-center body-box2">
|
|
|
<dv-scroll-board :config="config" ref="scroll-board" />
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -37,7 +41,7 @@ import CenterChart from "../../components/prodlinechart/up1Chart/up1DChart";
|
|
|
config: {
|
|
|
header: ['设备编号','设备名称', '运行状态','维保状态'],
|
|
|
data: [],
|
|
|
- rowNum: 6, //表格行数
|
|
|
+ rowNum: 4, //表格行数
|
|
|
headerHeight: 40,
|
|
|
headerBGC: 'rgba(15,19,37,0.1)', //表头
|
|
|
oddRowBGC: 'rgba(15,19,37,0.1)', //奇数行
|
|
|
@@ -45,6 +49,17 @@ import CenterChart from "../../components/prodlinechart/up1Chart/up1DChart";
|
|
|
columnWidth: [100,180, 110,110],
|
|
|
align: ['center','center','center','center'],
|
|
|
},
|
|
|
+ config1: {
|
|
|
+ header: ['设备编号','提醒事项'],
|
|
|
+ data: [],
|
|
|
+ rowNum: 4, //表格行数
|
|
|
+ headerHeight: 40,
|
|
|
+ headerBGC: 'rgba(15,19,37,0.1)', //表头
|
|
|
+ oddRowBGC: 'rgba(15,19,37,0.1)', //奇数行
|
|
|
+ evenRowBGC: 'rgba(23,28,51,0.1)', //偶数行
|
|
|
+ columnWidth: [100,180],
|
|
|
+ align: ['center','center'],
|
|
|
+ },
|
|
|
timing:null,
|
|
|
rate: [
|
|
|
{
|
|
|
@@ -61,7 +76,7 @@ import CenterChart from "../../components/prodlinechart/up1Chart/up1DChart";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
+ /* {
|
|
|
id: 'centerRate2',
|
|
|
tips: 60,
|
|
|
colorData: {
|
|
|
@@ -88,7 +103,7 @@ import CenterChart from "../../components/prodlinechart/up1Chart/up1DChart";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
+ },*/
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
@@ -106,19 +121,23 @@ import CenterChart from "../../components/prodlinechart/up1Chart/up1DChart";
|
|
|
}, 10000);
|
|
|
},
|
|
|
async getdata() {
|
|
|
- //饼图pie,设备保养执行率
|
|
|
+ //今日保养完成率
|
|
|
await this.$http.get("kanban/datalist.action?caller=KB!LINEDEVICEMAINTAINRATE&_noc=1&page=1&pageSize=100",{
|
|
|
params: {
|
|
|
condition: "de_workshop='"+sessionStorage.getItem('li_code')+"'"
|
|
|
}
|
|
|
- })
|
|
|
- .then((result)=>{
|
|
|
+ }).then((result)=>{
|
|
|
let dataList = JSON.parse(result.data.data);
|
|
|
- for (let index = 0; index < dataList.length; index++) {
|
|
|
+ if (dataList.length > 0) {
|
|
|
+ const element = dataList[0];
|
|
|
+ this.rate[0].tips = element.rate;
|
|
|
+ this.rate[0].title = element.title;
|
|
|
+ }
|
|
|
+ /* for (let index = 0; index < dataList.length; index++) {
|
|
|
const element = dataList[index];
|
|
|
this.rate[index].tips = element.rate;
|
|
|
this.rate[index].title = element.title;
|
|
|
- }
|
|
|
+ }*/
|
|
|
},(result)=>{
|
|
|
console.error(result)
|
|
|
}
|
|
|
@@ -159,6 +178,32 @@ import CenterChart from "../../components/prodlinechart/up1Chart/up1DChart";
|
|
|
console.error(result)
|
|
|
}
|
|
|
);
|
|
|
+
|
|
|
+ //设备提醒信息
|
|
|
+ caller = 'KB!LINEDEVICEREMIND';
|
|
|
+ await this.$http.get("kanban/datalist.action?caller=" + caller + "&_noc=1&page=1&pageSize=100", {
|
|
|
+ params: {
|
|
|
+ condition: "de_workshop='"+sessionStorage.getItem('li_code')+"'"
|
|
|
+ }
|
|
|
+ }).then((result) => {
|
|
|
+ let dataList = JSON.parse(result.data.data);
|
|
|
+ let resultList = new Array();
|
|
|
+ for (let index = 0; index < dataList.length; index++) {
|
|
|
+ const element = dataList[index];
|
|
|
+ let item = new Array();
|
|
|
+ item.push("<span class='colorGrass fs-xl'>" + element.de_code + "</span>");
|
|
|
+ item.push("<span class='colorGrass fs-xl'>" + element.v_remind + "</span>");
|
|
|
+ resultList.push(item);
|
|
|
+ }
|
|
|
+ const scrollBoard1 = this.$refs['scroll-board1'];
|
|
|
+ //刷新数据
|
|
|
+ scrollBoard1.updateRows(resultList);
|
|
|
+ this.config1.data = resultList;
|
|
|
+ this.config1 = { ...this.config1 };
|
|
|
+ }, (result) => {
|
|
|
+ console.error(result)
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -192,7 +237,7 @@ import CenterChart from "../../components/prodlinechart/up1Chart/up1DChart";
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
.item {
|
|
|
- width: 33.3%;
|
|
|
+ width: 38%;
|
|
|
height: 130px;
|
|
|
span {
|
|
|
//margin-top: 8px;
|
|
|
@@ -201,26 +246,48 @@ import CenterChart from "../../components/prodlinechart/up1Chart/up1DChart";
|
|
|
justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- ::v-deep .dv-scroll-board {
|
|
|
-
|
|
|
- height: 230px;
|
|
|
- padding-top: 0px; // 添加这行减少顶部间距
|
|
|
- .header {
|
|
|
- font-size: 20px !important;
|
|
|
- color: #c3cbde !important;
|
|
|
+ .item2{
|
|
|
+ width: 62%;
|
|
|
+ ::v-deep .dv-scroll-board {
|
|
|
+ height: 170px;
|
|
|
+ padding-top: 0px; // 添加这行减少顶部间距
|
|
|
+ .header {
|
|
|
+ font-size: 20px !important;
|
|
|
+ color: #c3cbde !important;
|
|
|
+ }
|
|
|
+ .rows {
|
|
|
+ .row-item {
|
|
|
+ font-size: 10px !important;
|
|
|
+ color: #c3cbde !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ::v-deep .rows span {
|
|
|
+ font-size: 21px;
|
|
|
+ }
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .rows {
|
|
|
- .row-item {
|
|
|
- font-size: 10px !important;
|
|
|
+ .body-box2 {
|
|
|
+ ::v-deep .dv-scroll-board {
|
|
|
+ height: 190px;
|
|
|
+ padding-top: 0px; // 添加这行减少顶部间距
|
|
|
+ .header {
|
|
|
+ font-size: 20px !important;
|
|
|
color: #c3cbde !important;
|
|
|
}
|
|
|
+
|
|
|
+ .rows {
|
|
|
+ .row-item {
|
|
|
+ font-size: 10px !important;
|
|
|
+ color: #c3cbde !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- ::v-deep .rows span{
|
|
|
- font-size: 21px;
|
|
|
+ ::v-deep .rows span {
|
|
|
+ font-size: 21px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|