首页 标准化动态点击标题跳转到详情页

This commit is contained in:
zyx.net
2022-12-02 11:57:45 +08:00
parent ef9d9d8b55
commit 84034116de
+11 -3
View File
@@ -35,9 +35,9 @@
label="资料标题" label="资料标题"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
align="center"> align="center">
<!-- <template slot-scope="scope">--> <template slot-scope="scope">
<!-- <span @click.stop="toDetail(scope.row)" style="cursor:pointer;color: #409eff">{{ scope.row.dataTitle }}</span>--> <span @click.stop="toDetail(scope.row)" style="cursor:pointer;color: #409eff">{{ scope.row.dataTitle }}</span>
<!-- </template>--> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="dataUploadTime" prop="dataUploadTime"
@@ -114,6 +114,14 @@ export default {
getDate (date) { getDate (date) {
return date != null ? date.substring(0, date.indexOf(' ')) : '' return date != null ? date.substring(0, date.indexOf(' ')) : ''
}, },
toDetail(row){
this.$router.push({
name: "dataCenterDetail",
query: {
id: row.id
}
});
},
//获取数据 //获取数据
getAdvice() { getAdvice() {
this.loading = true this.loading = true