bonus-ui/src/views/EquipmentEntryApproval/index.vue

73 lines
1.2 KiB
Vue
Raw Normal View History

2025-09-14 22:15:53 +08:00
<template>
2025-09-22 09:59:47 +08:00
<div class="app-container">
2025-10-13 09:27:53 +08:00
<component
:is="currentComponent"
:query-params="currentQueryParams"
@switch-view="showDetails"
2025-09-22 18:52:41 +08:00
/>
2025-09-22 09:59:47 +08:00
</div>
2025-09-14 22:15:53 +08:00
</template>
<script>
2025-10-13 09:27:53 +08:00
import EquipmentMainList from './EquipmentMainList.vue'
import EquipmentDetailList from './EquipmentDetailList.vue'
2025-09-14 22:15:53 +08:00
export default {
2025-09-22 09:59:47 +08:00
components: {
2025-10-13 09:27:53 +08:00
EquipmentMainList,
EquipmentDetailList
2025-09-22 09:59:47 +08:00
},
data() {
return {
2025-10-13 09:27:53 +08:00
isDetails:'0',
2025-09-22 09:59:47 +08:00
}
},
2025-10-13 09:27:53 +08:00
computed: {
currentComponent() {
return this.isDetails === '0' ? 'EquipmentMainList' : 'EquipmentDetailList'
},
currentQueryParams() {
return this.isDetails === '0' ? this.queryParams : this.queryParamsDetails
}
2025-09-22 09:59:47 +08:00
},
methods: {
2025-10-13 09:27:53 +08:00
//展示明细
showDetails( num){
this.isDetails = num;
2025-09-22 09:59:47 +08:00
}
}
2025-09-14 22:15:53 +08:00
}
</script>
2025-09-22 09:59:47 +08:00
<style scoped lang="scss">
2025-10-13 09:27:53 +08:00
.view-btn {
color: #409eff;
font-size: 14px;
font-weight: bold;
}
.edit-btn {
color: #67c23a;
font-size: 12px;
font-weight: bold;
}
.delete-btn {
color: #f56c6c;
font-size: 16px;
font-weight: bold;
}
2025-09-22 09:59:47 +08:00
.app-container {
padding: 20px;
}
::v-deep .el-pagination {
margin-top: 15px;
text-align: right;
}
::v-deep .el-button {
margin-right: 8px;
}
</style>