|
@ -27,9 +27,9 @@ |
|
|
v-model:currentPage="tableObject.currentPage" |
|
|
v-model:currentPage="tableObject.currentPage" |
|
|
v-model:sort="tableObject.sort" |
|
|
v-model:sort="tableObject.sort" |
|
|
> |
|
|
> |
|
|
<template #code="{row}"> |
|
|
<template #name="{ row }"> |
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> |
|
|
<el-button type="primary" link @click="openDetail(row, '经验标题', row.repairNumber)"> |
|
|
<span>{{ row.code }}</span> |
|
|
<span>{{ row.name }}</span> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template #action="{ row }"> |
|
|
<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" /> |
|
|
<ImportForm ref="importFormRef" url="/record/repair-experience/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
</template> |
|
|
</template> |
|
@ -60,7 +69,13 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import { RepairExperience,RepairExperienceRules } from './repairExperience.data' |
|
|
import { RepairExperience,RepairExperienceRules } from './repairExperience.data' |
|
|
|
|
|
|
|
|
import * as RepairExperienceApi from '@/api/eam/repairExperience/index' |
|
|
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 * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
@ -238,7 +253,6 @@ const searchFormClick = (searchData) => { |
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|
importTemplateData.templateUrl = await RepairExperienceApi.importTemplate() |
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|