首页 标准化动态点击标题跳转到详情页
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
label="资料标题"
|
||||
:show-overflow-tooltip="true"
|
||||
align="center">
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span @click.stop="toDetail(scope.row)" style="cursor:pointer;color: #409eff">{{ scope.row.dataTitle }}</span>-->
|
||||
<!-- </template>-->
|
||||
<template slot-scope="scope">
|
||||
<span @click.stop="toDetail(scope.row)" style="cursor:pointer;color: #409eff">{{ scope.row.dataTitle }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="dataUploadTime"
|
||||
@@ -114,6 +114,14 @@ export default {
|
||||
getDate (date) {
|
||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
||||
},
|
||||
toDetail(row){
|
||||
this.$router.push({
|
||||
name: "dataCenterDetail",
|
||||
query: {
|
||||
id: row.id
|
||||
}
|
||||
});
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
this.loading = true
|
||||
|
||||
Reference in New Issue
Block a user