<el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope">
<a style="color: #00afff" @click="jump(scope.row.userId,parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}'))">{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</a>
</template>
</el-table-column>
jump(userId,createTime){
this.$router.push({path: '/member/aaxxxurl',query: { userId: userId, createTime: createTime,}})
},
跳转页:
<el-form :model="queryParams"
data() { return { // 查询参数 userId: null,
createTime: null
created() { var userId = this.$route.query.userId; var createTime = this.$route.query.createTime; if(userId != null) { this.queryParams.userId = userId } if(createTime != null) { this.queryParams.createTime = createTime }