|
@ -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 #itemCode="{row}"> |
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> |
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> |
|
|
<span>{{ row.code }}</span> |
|
|
<span>{{ row.itemCode }}</span> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template #action="{ row }"> |
|
|
<template #action="{ row }"> |
|
@ -66,6 +66,7 @@ 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' |
|
|
// import Detail from '@/components/Detail/src/Detail.vue' |
|
|
// import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
|
|
const router = useRouter() // 路由 |
|
|
|
|
|
|
|
|
defineOptions({ name: 'DetectionTemplate' }) |
|
|
defineOptions({ name: 'DetectionTemplate' }) |
|
|
|
|
|
|
|
@ -164,9 +165,8 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const openDetail = () => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
router.push({ path: '/spc/templateitemdetails' }) |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicDetectionTemplate') |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
|