feat 查看详情新建窗口
All checks were successful
Build image / build (push) Successful in 33s

This commit is contained in:
timerzz 2024-09-17 20:09:00 +08:00
parent 04689d6101
commit 356b80b075

View File

@ -15,10 +15,16 @@
<a-image :width="75" :src="record.image"/> <a-image :width="75" :src="record.image"/>
</template> </template>
<template v-else-if="column.key === 'name'"> <template v-else-if="column.key === 'name'">
<span class="cursor-pointer text-blue" title="查看详情" @click="toDetail(record.id)">{{record.name}}</span> <router-link target="_blank" :to="{ path: '/article/detail', query: {id: record.id} }">
{{record.name}}
</router-link>
<!-- <span class="cursor-pointer text-blue" title="查看详情" @click="toDetail(record.id)">{{record.name}}</span>-->
</template> </template>
<template v-else-if="column.key === 'pid'"> <template v-else-if="column.key === 'pid'">
<span class="cursor-pointer text-blue" title="查看详情" @click="toDetail(record.id)">{{record.pid}}</span> <!-- <span class="cursor-pointer text-blue" title="查看详情" @click="toDetail(record.id)">{{record.pid}}</span>-->
<router-link target="_blank" :to="{ path: '/article/detail', query: {id: record.id} }">
{{record.pid}}
</router-link>
</template> </template>
<template v-else-if="column.key === 'rate'"> <template v-else-if="column.key === 'rate'">
<span>{{record.rate > 0 ? `${record.rate}%`:'--' }}</span> <span>{{record.rate > 0 ? `${record.rate}%`:'--' }}</span>
@ -57,10 +63,6 @@ const query = reactive({
rate_sort:null, rate_sort:null,
}) })
watch(()=>query.available, ()=>{
console.log(query)
})
onMounted(()=>{ onMounted(()=>{
list() list()
}) })
@ -186,7 +188,7 @@ const toDetail=(id)=>{
path: '/article/detail', path: '/article/detail',
query: { query: {
id: id id: id
} },
}) })
} }