|
|
@ -27,9 +27,9 @@ |
|
|
|
v-model:currentPage="tableObject.currentPage" |
|
|
|
v-model:sort="tableObject.sort" |
|
|
|
> |
|
|
|
<template #code="{row}"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> |
|
|
|
<span>{{ row.code }}</span> |
|
|
|
<template #name="{ row }"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, '经验标题', row.repairNumber)"> |
|
|
|
<span>{{ row.name }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
<template #action="{ row }"> |
|
|
@ -51,8 +51,17 @@ |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="RepairExperience.allSchemas" /> |
|
|
|
|
|
|
|
<Detail |
|
|
|
ref="detailRef" |
|
|
|
:isBasic="false" |
|
|
|
:allSchemas="RepairExperience.allSchemas" |
|
|
|
:detailAllSchemas="EquipmentRepairRecordDetail.allSchemas" |
|
|
|
:detailAllSchemasRules="EquipmentRepairRecordDetailRules" |
|
|
|
:apiPage="EquipmentRepairRecordDetailApi.getEquipmentRepairRecordDetailPage" |
|
|
|
:detailButtonIsShowAdd="false" |
|
|
|
:detailButtonIsShowEdit="false" |
|
|
|
:detailButtonIsShowDelete="false" |
|
|
|
/> |
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" url="/record/repair-experience/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
|
</template> |
|
|
@ -60,7 +69,13 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { RepairExperience,RepairExperienceRules } from './repairExperience.data' |
|
|
|
|
|
|
|
import * as RepairExperienceApi from '@/api/eam/repairExperience/index' |
|
|
|
import { |
|
|
|
EquipmentRepairRecordDetail, |
|
|
|
EquipmentRepairRecordDetailRules |
|
|
|
} from '../equipmentRepairRecordDetail/equipmentRepairRecordDetail.data' |
|
|
|
import * as EquipmentRepairRecordDetailApi from '@/api/eam/equipmentRepairRecordDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
@ -238,7 +253,6 @@ const searchFormClick = (searchData) => { |
|
|
|
/** 初始化 **/ |
|
|
|
onMounted(async () => { |
|
|
|
getList() |
|
|
|
importTemplateData.templateUrl = await RepairExperienceApi.importTemplate() |
|
|
|
}) |
|
|
|
|
|
|
|
</script> |
|
|
|