|
|
|
@ -51,7 +51,10 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="list-item__name">
|
|
|
|
<div class="list-item__name">
|
|
|
|
<p>{{ item.equipment_id_equipments_id_relation ? item.equipment_id_equipments_id_relation.name : '' }}</p>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
<svg-icon v-if="item.diaolingleixing === 3" icon-class="ship" style="font-size: 2rem;padding-right: 2px;"></svg-icon>
|
|
|
|
|
|
|
|
<span>{{ item.equipment_id_equipments_id_relation ? item.equipment_id_equipments_id_relation.name : '' }}</span>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<div style="display: flex;align-items: center;" v-if="item.equipment_id_equipments_id_relation && item.equipment_id_equipments_id_relation.type === 1">
|
|
|
|
<div style="display: flex;align-items: center;" v-if="item.equipment_id_equipments_id_relation && item.equipment_id_equipments_id_relation.type === 1">
|
|
|
|
<div class="list-item__number" v-for="(i,index) in Number(item.equipment_id_equipments_id_relation.bengzhashuliang || 0)" :style="index >= item.kaiqishuliang ? 'background: red;' : ''"></div>
|
|
|
|
<div class="list-item__number" v-for="(i,index) in Number(item.equipment_id_equipments_id_relation.bengzhashuliang || 0)" :style="index >= item.kaiqishuliang ? 'background: red;' : ''"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -62,11 +65,11 @@
|
|
|
|
</el-tooltip>
|
|
|
|
</el-tooltip>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="list-item__time">
|
|
|
|
<div class="list-item__time">
|
|
|
|
运行时间:{{ timeFormat(item.start_time) }}至{{ timeFormat(item.end_time,'HH:mm') }}
|
|
|
|
运行时间:{{ timeFormat(item.start_time) }}至{{ item.end_time ? timeFormat(item.end_time,'HH:mm') : '-' }}
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
发布时间:{{ timeFormat(item.created_at,'YYYY-MM-DD HH:mm') }}
|
|
|
|
发布时间:{{ timeFormat(item.created_at,'YYYY-MM-DD HH:mm') }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="list-item__last">预计时长 {{ $moment(item.end_time).diff($moment(item.start_time),'hours', true).toFixed(2) }}小时</div>
|
|
|
|
<div class="list-item__last">预计时长 {{ item.end_time ? $moment(item.end_time).diff($moment(item.start_time),'hours', true).toFixed(2) : '-' }}小时</div>
|
|
|
|
<div class="list-item__operate">
|
|
|
|
<div class="list-item__operate">
|
|
|
|
<div v-for="(s, si) in progressStatus(item)" :title="operateTitle(item, s)" class="step" @click="stepClick(item,s)">
|
|
|
|
<div v-for="(s, si) in progressStatus(item)" :title="operateTitle(item, s)" class="step" @click="stepClick(item,s)">
|
|
|
|
<div class="step-icon">
|
|
|
|
<div class="step-icon">
|
|
|
|
@ -90,9 +93,13 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import SvgIcon from "@/components/SvgIcon";
|
|
|
|
import { deepCopy } from "@/utils";
|
|
|
|
import { deepCopy } from "@/utils";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
|
|
|
SvgIcon
|
|
|
|
|
|
|
|
},
|
|
|
|
inject: ["transfers", "nowTime", "auths"],
|
|
|
|
inject: ["transfers", "nowTime", "auths"],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
@ -185,7 +192,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
timeFormat () {
|
|
|
|
timeFormat () {
|
|
|
|
return function (time,format='YYYY-MM-DD HH:mm') {
|
|
|
|
return function (time,format='YYYY-MM-DD HH:mm') {
|
|
|
|
return this.$moment(time).format(format)
|
|
|
|
return this.$moment(time).format(format) || "-"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|