ljlong_2630
5 months ago
11 changed files with 673 additions and 323 deletions
@ -0,0 +1,13 @@ |
|||
import http from './http' |
|||
|
|||
|
|||
// 维修工单点检项关系查询
|
|||
export function getRepairRelationNoPage(params) { |
|||
return http.get('/inspection/repair-relation/noPage',{params}) |
|||
} |
|||
|
|||
// 删除点检项和报修工单关系
|
|||
export function deleteBatchByIds(ids: number[]) { |
|||
return http.delete(`/inspection/repair-relation/deleteBatchByIds?ids=` + ids) |
|||
} |
|||
|
@ -0,0 +1,62 @@ |
|||
<template> |
|||
<div v-if="visible" class="modal-overlay" @click="close"> |
|||
<div class="modal-content" @click.stop> |
|||
<div class="modal-body"> |
|||
<p>{{ content }}</p> |
|||
</div> |
|||
<div class="modal-footer"> |
|||
<button @click="close">关闭</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
props: { |
|||
content: { |
|||
type: String, |
|||
required: true |
|||
}, |
|||
visible: { |
|||
type: Boolean, |
|||
required: true |
|||
} |
|||
}, |
|||
methods: { |
|||
close() { |
|||
this.$emit('update:visible', false); |
|||
} |
|||
} |
|||
}; |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.modal-overlay { |
|||
position: fixed; |
|||
top: 0; |
|||
left: 0; |
|||
right: 0; |
|||
bottom: 0; |
|||
background: rgba(0, 0, 0, 0.5); |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
|
|||
.modal-content { |
|||
background: white; |
|||
padding: 20px; |
|||
border-radius: 5px; |
|||
max-width: 500px; |
|||
width: 100%; |
|||
} |
|||
|
|||
.modal-body { |
|||
margin-bottom: 20px; |
|||
} |
|||
|
|||
.modal-footer { |
|||
text-align: right; |
|||
} |
|||
</style> |
@ -0,0 +1,62 @@ |
|||
<template> |
|||
<div v-if="visible" class="modal-overlay" @click="close"> |
|||
<div class="modal-content" @click.stop> |
|||
<div class="modal-body"> |
|||
<p>{{ content }}</p> |
|||
</div> |
|||
<div class="modal-footer"> |
|||
<button @click="close">关闭</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
props: { |
|||
content: { |
|||
type: String, |
|||
required: true |
|||
}, |
|||
visible: { |
|||
type: Boolean, |
|||
required: true |
|||
} |
|||
}, |
|||
methods: { |
|||
close() { |
|||
this.$emit('update:visible', false); |
|||
} |
|||
} |
|||
}; |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.modal-overlay { |
|||
position: fixed; |
|||
top: 0; |
|||
left: 0; |
|||
right: 0; |
|||
bottom: 0; |
|||
background: rgba(0, 0, 0, 0.5); |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
|
|||
.modal-content { |
|||
background: white; |
|||
padding: 20px; |
|||
border-radius: 5px; |
|||
max-width: 500px; |
|||
width: 100%; |
|||
} |
|||
|
|||
.modal-body { |
|||
margin-bottom: 20px; |
|||
} |
|||
|
|||
.modal-footer { |
|||
text-align: right; |
|||
} |
|||
</style> |
Loading…
Reference in new issue