|
|
|
@ -157,10 +157,10 @@
|
|
|
|
|
<el-table-column prop="dcCh" label="船号" width="80" />
|
|
|
|
|
<el-table-column prop="dcPl" label="批量" width="70" />
|
|
|
|
|
<el-table-column prop="dcFd" label="分段号" width="80" />
|
|
|
|
|
<el-table-column prop="bs" label="板数" width="50" />
|
|
|
|
|
<el-table-column prop="bs1" label="板数" width="50" />
|
|
|
|
|
<el-table-column prop="sl" label="上料" width="95" />
|
|
|
|
|
<el-table-column prop="xcpw" label="型材抛丸" width="80" />
|
|
|
|
|
<el-table-column prop="date" label="抛丸" width="70" />
|
|
|
|
|
<el-table-column prop="pw" label="抛丸" width="70" />
|
|
|
|
|
<el-table-column prop="yklm" label="一垮龙门板数" width="95" />
|
|
|
|
|
<el-table-column prop="yksk" label="一垮数控板数" width="95" />
|
|
|
|
|
<el-table-column
|
|
|
|
@ -357,9 +357,10 @@ import {
|
|
|
|
|
zyjh,
|
|
|
|
|
getEveryKw,
|
|
|
|
|
zxqZxDetail,
|
|
|
|
|
zxqwcqk,
|
|
|
|
|
zxqwcqk, getPerson,
|
|
|
|
|
} from "@/api/realTimeMonitor";
|
|
|
|
|
import VueSeamlessScroll from "vue-seamless-scroll";
|
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
|
export default {
|
|
|
|
|
name: "RealTimeMonitor",
|
|
|
|
|
components: {
|
|
|
|
@ -367,6 +368,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
personList:[],
|
|
|
|
|
//1.出勤
|
|
|
|
|
AttendanceObj: {},
|
|
|
|
|
//2.安全公告
|
|
|
|
@ -458,16 +460,32 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.initPerson();
|
|
|
|
|
this.kq(); //1.考勤接口
|
|
|
|
|
this.msg(); //3.实时消息
|
|
|
|
|
this.ydjh(); //4.月度计划接口
|
|
|
|
|
this.zyjh(); //5.作业计划
|
|
|
|
|
this.getEveryKw(); //6.本月计划汇总量
|
|
|
|
|
this.zxqZxDetail(); //7.作业区执行情况
|
|
|
|
|
this.zxqwcqk(); //8.作业区未完成与完成量对比饼图
|
|
|
|
|
this.leftBottomBoxHeight = this.$refs.leftBottomBoxHeight.offsetHeight;
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
formatName(code){
|
|
|
|
|
console.log(code)
|
|
|
|
|
console.log(this.personList)
|
|
|
|
|
for (const item of this.personList) {
|
|
|
|
|
if (item.userCode===code){
|
|
|
|
|
return item.userName
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
initPerson(){
|
|
|
|
|
getPerson().then(res=>{
|
|
|
|
|
this.personList=res.data
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
this.zxqZxDetail(); //7.作业区执行情况
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
headerRowClass() {
|
|
|
|
|
return "background:#072e7d;color:#fff;fontSize:12px; fontWeight: 400; textAlign: center;";
|
|
|
|
|
},
|
|
|
|
@ -495,7 +513,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 4.月度计划
|
|
|
|
|
ydjh() {
|
|
|
|
|
ydjh().then((res) => {
|
|
|
|
|
const date=new Date()
|
|
|
|
|
const data={
|
|
|
|
|
begin:'2024/12/01',
|
|
|
|
|
end:'2024/12/31'
|
|
|
|
|
}
|
|
|
|
|
ydjh(data).then((res) => {
|
|
|
|
|
this.monthlyTableData = res.data;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
@ -548,7 +571,7 @@ export default {
|
|
|
|
|
tzbh: item.tzbh,
|
|
|
|
|
gx: item.gx,
|
|
|
|
|
compAt: item.compAt,
|
|
|
|
|
name: item.name,
|
|
|
|
|
name: this.formatName(item.name),
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
let valueArray = data.map((obj) => Object.values(obj));
|
|
|
|
|