Browse Source

跳转

master
zhang_li 1 year ago
parent
commit
8290d08e4d
  1. 10
      src/views/spc/detectiontemplate/index.vue

10
src/views/spc/detectiontemplate/index.vue

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

Loading…
Cancel
Save