bugfixed
This commit is contained in:
@ -13,8 +13,8 @@
|
||||
size="small"
|
||||
@change="handleQuery"
|
||||
>
|
||||
<el-radio-button :label="1">已发布</el-radio-button>
|
||||
<el-radio-button :label="0">待审核</el-radio-button>
|
||||
<el-radio-button :label="1">已发布</el-radio-button>
|
||||
<el-radio-button :label="2">已驳回</el-radio-button>
|
||||
<el-radio-button :label="3">草稿箱</el-radio-button>
|
||||
</el-radio-group>
|
||||
@ -23,7 +23,7 @@
|
||||
<el-table-column label="数据编号" prop="id" />
|
||||
<el-table-column label="成果名称" prop="title" />
|
||||
<el-table-column label="成果领域" prop="industryStr" />
|
||||
<el-table-column label="浏览量" prop="visitCount" />
|
||||
<!-- <el-table-column label="浏览量" prop="visitCount" /> -->
|
||||
<el-table-column label="发布时间" prop="createTime" width="180">
|
||||
<template #default="{ row }">
|
||||
<span>
|
||||
@ -61,7 +61,7 @@
|
||||
size="small"
|
||||
type="text"
|
||||
icon="View"
|
||||
@click="handleResults(row.id)"
|
||||
@click="handleResults(row)"
|
||||
>查看匹配结果</el-button
|
||||
>
|
||||
<el-button
|
||||
@ -96,6 +96,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
||||
import { update } from "lodash-unified";
|
||||
import { useRouter } from "vue-router";
|
||||
import { updateExpertAchievement } from "@/api/admin/expert/achievement";
|
||||
import { onActivated } from "vue";
|
||||
const router = useRouter();
|
||||
const dataList = ref([]);
|
||||
const loading = ref(true);
|
||||
@ -165,8 +166,16 @@ const handleCancelPublish = (id) => {
|
||||
// queryParams.value.status = "3";
|
||||
// handleQuery();
|
||||
};
|
||||
function handleResults(id) {
|
||||
router.push({ path: "./results" });
|
||||
function handleResults(row) {
|
||||
router.push({
|
||||
path: "./results",
|
||||
query: {
|
||||
keyword: row.title,
|
||||
},
|
||||
});
|
||||
}
|
||||
getList();
|
||||
|
||||
onActivated(() => {
|
||||
getList();
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user