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: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')
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

Loading…
Cancel
Save