| | |
| | | import { Icon, IconPicker, SvgIcon } from '/@/components/Icon/index' |
| | | import { defHttp } from '/@/utils/http/axios' |
| | | import { queryById, listAll } from '../api/DryEquipment.api' |
| | | import { queryByOrderId } from '../dryFaultRecord/DryFaultRecord.api' |
| | | import { dryEquipment } from '../dataDefine/DryEquipment.data' |
| | | import { useUserStore } from '/@/store/modules/user' |
| | | const domRef = ref<Nullable<HTMLElement>>(null) |
| | |
| | | res.totalRemain = res.remain - (res.dryTime - totalTime) > 0 ? res.remain - (res.dryTime - totalTime) : 0 |
| | | // console.log(`output->res`, res.detailList[res.detailList.length-1]) |
| | | realData.value = res |
| | | getRealFault() |
| | | }) |
| | | } |
| | | } |
| | | |
| | | |
| | | function getRealFault() { |
| | | return new Promise((resolve, reject) => { |
| | | queryByOrderId({ orderId: realData.value.code, tenantId: tenant.value }).then((res) => { |
| | | console.log(`output->res`, res) |
| | | |
| | | // 循环列表,根据结束时间和开始时间,计算故障时长 |
| | | res.forEach((item) => { |
| | | item.totalTime = item.endTime - item.startTime |
| | | }) |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | |
| | | var move = true |