跳转到企业详情页

This commit is contained in:
chenxf 2026-02-04 10:12:01 +08:00
parent a3139c8fc0
commit f120a27916
1 changed files with 25 additions and 11 deletions

View File

@ -121,11 +121,11 @@
</div> </div>
</template> </template>
<template v-slot:entListTable> <template v-slot:entListTable>
<!-- &lt;!&ndash; 按钮组 &ndash;&gt;--> <!-- 按钮组 -->
<!-- <div class="button-group" style="margin-bottom: 10px; text-align: right;">--> <div v-if="data.status === '0'" class="button-group" style="margin-bottom: 10px; text-align: right;">
<!-- <el-button type="primary" @click="openAddDialog">添加主体</el-button>--> <el-button type="primary" @click="openAddDialog">添加主体</el-button>
<!-- <el-button type="danger" @click="openDeleteDialog">删除主体</el-button>--> <el-button type="danger" @click="openDeleteDialog">删除主体</el-button>
<!-- </div>--> </div>
<easy-table <easy-table
ref="EntListTable" ref="EntListTable"
v-model="entListTableData" v-model="entListTableData"
@ -133,7 +133,11 @@
:table-config="entListTableConfig" :table-config="entListTableConfig"
:emit-load-on-create="true" :emit-load-on-create="true"
:on-load="loadEntListData" :on-load="loadEntListData"
/> >
<template v-slot:entNameSlot="scope">
<a class="ent-name-link" @click="goToEntDetail(scope.row)">{{ scope.row.entName || '' }}</a>
</template>
</easy-table>
</template> </template>
</easy-form> </easy-form>
<!-- 引入 EntList 组件 --> <!-- 引入 EntList 组件 -->
@ -195,15 +199,13 @@ export default {
} }
}, },
{ {
type: 'input', type: 'slot',
slotName: 'entNameSlot',
label: '主体名称', label: '主体名称',
prop: 'entName', prop: 'entName',
tableProps: { tableProps: {
showOverflowTooltip: true, showOverflowTooltip: true,
width: '300px', width: '300px'
formatter: (row, column, cellValue, index) => {
return `${row.entName || ''}`
}
} }
}, },
{ {
@ -692,6 +694,10 @@ export default {
entity => !selectedIds.includes(entity.pripid) entity => !selectedIds.includes(entity.pripid)
) )
}, },
//
goToEntDetail(row) {
this.$router.push({ path: '/comprehensive/details', query: { pripid: row.pripid } })
},
generateNoticeContent(scope) { generateNoticeContent(scope) {
this.generatingContent = true this.generatingContent = true
getForceDeregisterContent( getForceDeregisterContent(
@ -834,4 +840,12 @@ export default {
} }
} }
.ent-name-link {
color: #409EFF;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
</style> </style>