|
@@ -200,19 +200,57 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="card-actions">
|
|
<div class="card-actions">
|
|
|
<el-tag
|
|
<el-tag
|
|
|
- :type="getStatusType(item.status, 1)"
|
|
|
|
|
|
|
+ v-if="item.maintenanceSummary.patrol"
|
|
|
|
|
+ type="warning"
|
|
|
size="small"
|
|
size="small"
|
|
|
effect="dark"
|
|
effect="dark"
|
|
|
class="status-tag"
|
|
class="status-tag"
|
|
|
>
|
|
>
|
|
|
- {{
|
|
|
|
|
- businessStatus.filter(
|
|
|
|
|
- (row) => row.code == item.status
|
|
|
|
|
- )[0]?.label
|
|
|
|
|
- }}
|
|
|
|
|
|
|
+ 巡点检
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
- </div></div
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-if="item.maintenanceSummary.maintain"
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ class="status-tag"
|
|
|
|
|
+ >
|
|
|
|
|
+ 保养
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-if="item.maintenanceSummary.overhaul"
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ class="status-tag"
|
|
|
|
|
+ >
|
|
|
|
|
+ 检修
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-if="item.maintenanceSummary.repair"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ class="status-tag"
|
|
|
|
|
+ >
|
|
|
|
|
+ 维修
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ !item.maintenanceSummary.repair &&
|
|
|
|
|
+ !item.maintenanceSummary.overhaul &&
|
|
|
|
|
+ !item.maintenanceSummary.maintain &&
|
|
|
|
|
+ !item.maintenanceSummary.patrol
|
|
|
|
|
+ "
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ effect="dark"
|
|
|
|
|
+ class="status-tag"
|
|
|
|
|
+ >
|
|
|
|
|
+ 空闲
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
|
<el-tag
|
|
<el-tag
|
|
@@ -280,8 +318,8 @@
|
|
|
import { businessStatus } from '@/utils/dict/warehouse';
|
|
import { businessStatus } from '@/utils/dict/warehouse';
|
|
|
import DeptSelect from '@/components/CommomSelect/dept-selectNew.vue';
|
|
import DeptSelect from '@/components/CommomSelect/dept-selectNew.vue';
|
|
|
import { component } from 'vue-fullscreen';
|
|
import { component } from 'vue-fullscreen';
|
|
|
- import audioManager from '@/utils/audioManager.js';
|
|
|
|
|
-
|
|
|
|
|
|
|
+ import audioManager from '@/utils/audioManager.js';
|
|
|
|
|
+
|
|
|
import GlobalAudioUnlockButton from '@/components/GlobalAudioUnlockButton.vue';
|
|
import GlobalAudioUnlockButton from '@/components/GlobalAudioUnlockButton.vue';
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
mixins: [dictMixins, tableColumnsMixin],
|
|
@@ -560,7 +598,7 @@
|
|
|
|
|
|
|
|
console.log(src, 'src');
|
|
console.log(src, 'src');
|
|
|
if (src) {
|
|
if (src) {
|
|
|
- console.log(audioManager,'audioManager')
|
|
|
|
|
|
|
+ console.log(audioManager, 'audioManager');
|
|
|
audioManager.play(src, { loop: false });
|
|
audioManager.play(src, { loop: false });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -970,7 +1008,7 @@
|
|
|
.alarm-badge {
|
|
.alarm-badge {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
top: 5px;
|
|
top: 5px;
|
|
|
- right:70px;
|
|
|
|
|
|
|
+ right: 70px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
gap: 4px;
|
|
gap: 4px;
|