|
|
|
@ -97,6 +97,7 @@ import {
|
|
|
|
|
getHourProductionList, getHourProductionLists,
|
|
|
|
|
PlanAchievementRate
|
|
|
|
|
} from "../../api/board/cs3";
|
|
|
|
|
import {parseTime} from "../../utils/openPlatform";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
@ -150,9 +151,28 @@ export default {
|
|
|
|
|
this.proData = e.data
|
|
|
|
|
this.percent = e.msg
|
|
|
|
|
})
|
|
|
|
|
let time = parseTime(new Date(), '{h}-{i}').split('-')
|
|
|
|
|
let i = parseFloat(time[0]) || 0
|
|
|
|
|
let s = parseFloat(time [1]) || 0
|
|
|
|
|
let createTimeStart = `${parseTime(new Date(), '{y}-{m}-{d}')} 07:30:00`
|
|
|
|
|
let createTimeEnd = `${parseTime(new Date(), '{y}-{m}-{d}')} 19:30:00`
|
|
|
|
|
if (parseFloat(`${i}.${s}`) > 7.3 && parseFloat(`${i}.${s}`) < 19.3) {
|
|
|
|
|
createTimeStart = `${parseTime(new Date(), '{y}-{m}-{d}')} 07:30:00`
|
|
|
|
|
createTimeEnd = `${parseTime(new Date(), '{y}-{m}-{d}')} 19:30:00`
|
|
|
|
|
} else if (parseFloat(`${i}.${s}`) < 7.3) {
|
|
|
|
|
createTimeStart = `${parseTime(new Date(), '{y}-{m}-')}${parseFloat(parseTime(new Date(), '${d}')) - 1} 19:30:00`
|
|
|
|
|
createTimeEnd = `${parseTime(new Date(), '{y}-{m}-{d}')} 07:30:00`
|
|
|
|
|
} else if (parseFloat(`${i}.${s}`) > 19.3) {
|
|
|
|
|
createTimeStart = `${parseTime(new Date(), '{y}-{m}-{d}')} 19:30:00`
|
|
|
|
|
createTimeEnd = `${parseTime(new Date(), '{y}-{m}-')}${parseFloat(parseTime(new Date(), '${d}')) + 1} 07:30:00`
|
|
|
|
|
} else {
|
|
|
|
|
createTimeStart = `${parseTime(new Date(), '{y}-{m}-{d}')} 07:30:00`
|
|
|
|
|
createTimeEnd = `${parseTime(new Date(), '{y}-{m}-{d}')} 19:30:00`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getHfChartDatas({
|
|
|
|
|
createTimeStart: '2024-11-02 00:00:00',
|
|
|
|
|
createTimeEnd: '2024-11-04 00:00:00',
|
|
|
|
|
createTimeStart: createTimeStart,
|
|
|
|
|
createTimeEnd: createTimeEnd,
|
|
|
|
|
chartType: 'cp'
|
|
|
|
|
}).then(e => {
|
|
|
|
|
let option = {
|
|
|
|
|