| | |
| | | :prefix-icon="Search" |
| | | @change="getScheduledTableData" /> |
| | | </el-form-item> |
| | | <el-form-item label="任务状态"> |
| | | <!-- <el-form-item label="任务状态"> |
| | | <el-select v-model="scheduledFilters.status" |
| | | placeholder="请选择任务状态" |
| | | clearable |
| | |
| | | <el-option label="停用" |
| | | value="0" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item> |
| | | <el-button type="primary" |
| | | @click="getScheduledTableData">搜索</el-button> |
| | |
| | | @click="editPlan(row.id)"> |
| | | 编辑 |
| | | </el-button> |
| | | <el-button type="success" |
| | | <!-- <el-button type="success" |
| | | link |
| | | :disabled="row.status === 1" |
| | | @click="addMaintain(row)"> |
| | | 保养 |
| | | </el-button> |
| | | </el-button> --> |
| | | <el-button type="danger" |
| | | link |
| | | :disabled="row.status === 1" |
| | |
| | | <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 scheduledColumns = ref([ |
| | | { prop: "taskName", label: "设备名称" }, |
| | | { prop: "taskName", label: "任务名称" }, |
| | | { |
| | | label: "规格型号", |
| | | prop: "deviceModel", |
| | | prop: "deviceName", |
| | | label: "设备", |
| | | minWidth: 180 |
| | | }, |
| | | { |
| | | prop: "frequencyType", |
| | |
| | | } |
| | | }; |
| | | |
| | | // 打开详情弹窗 |
| | | 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); |