| | |
| | | <el-button type="primary" |
| | | link |
| | | @click="openFileDialog(row)"> |
| | | 附件 |
| | | 详情 |
| | | </el-button> |
| | | <!-- <el-button type="primary" |
| | | link |
| | | @click="openAttachmentDialog(row)"> |
| | | 附件 |
| | | </el-button> --> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | |
| | | @ok="getTableData" /> |
| | | <FormDia ref="formDiaRef" |
| | | @closeDia="getScheduledTableData" /> |
| | | <DetailDialog ref="detailDialogRef" |
| | | v-model:visible="detailDialogVisible" |
| | | :row="currentDetailRow" /> |
| | | <FileListDialog ref="fileListDialogRef" |
| | | v-model="fileDialogVisible" |
| | | :show-upload-button="true" |
| | |
| | | import PlanModal from "./Form/PlanModal.vue"; |
| | | import MaintenanceModal from "./Form/MaintenanceModal.vue"; |
| | | import FormDia from "./Form/formDia.vue"; |
| | | import DetailDialog from "./Form/DetailDialog.vue"; |
| | | import FileListDialog from "@/components/Dialog/FileListDialog.vue"; |
| | | import { |
| | | getUpkeepPage, |
| | |
| | | const maintainModalRef = ref(); |
| | | // 定时任务弹窗控制器 |
| | | const formDiaRef = ref(); |
| | | // 详情弹窗 |
| | | const detailDialogRef = ref(); |
| | | const detailDialogVisible = ref(false); |
| | | const currentDetailRow = ref(null); |
| | | // 附件弹窗 |
| | | const fileListDialogRef = ref(null); |
| | | const fileDialogVisible = ref(false); |
| | |
| | | } |
| | | }; |
| | | |
| | | // 打开详情弹窗 |
| | | const openFileDialog = row => { |
| | | currentDetailRow.value = row; |
| | | detailDialogVisible.value = true; |
| | | }; |
| | | |
| | | // 打开附件弹窗 |
| | | const openFileDialog = async row => { |
| | | const openAttachmentDialog = async row => { |
| | | currentMaintenanceTaskId.value = row.id; |
| | | fileDialogVisible.value = true; |
| | | await fetchMaintenanceTaskFiles(row.id); |