add some links to user page.

DEV
PeterAlbus 3 years ago
parent 3753199d1d
commit 9ec450989f

@ -74,6 +74,7 @@ public class PageController
@RequestMapping("/user")
public ModelAndView userDetail(Long userId)
{
System.out.println(userId);
User user=null;
if(userId==null)
{

@ -11,7 +11,7 @@
<!DOCTYPE html>
<html>
<head>
<title>用户中心</title>
<title>用户统计</title>
<!-- 导入 Vue 3 -->
<script src="${pageContext.request.contextPath}/vue/vue@next/vue.global.js"></script>
<!-- 导入组件库 -->
@ -39,27 +39,24 @@
<el-page-header icon="el-icon-arrow-left" :content="title" @back="goBack"></el-page-header>
<br/>
<div class="container">
<el-form ref="form" :model="user" :label-width="80">
<el-form ref="form" :model="user" :label-width="250">
<el-form-item label="头像">
<img v-if="user.avatarSrc" :src="user.avatarSrc" class="avatar" />
</el-form-item>
<el-form-item prop="username" label="用户名">
<el-input type="text" v-model="user.username" placeholder="用户名"></el-input>
{{user.username}}
</el-form-item>
<el-form-item prop="realName" label="姓名">
<el-input type="text" v-model="user.realName" placeholder="name"></el-input>
</el-form-item>
<el-form-item prop="password" label="密码">
<el-button type="danger" @click="dialogVisible=true" size="small" round>修改密码</el-button>
{{user.realName}}
</el-form-item>
<el-form-item prop="userPhone" label="手机号">
<el-input type="text" v-model="user.userPhone" placeholder="phone number"></el-input>
{{user.userPhone}}
</el-form-item>
<el-form-item label="参加/管理的活动数">
<el-input type="text" v-model="stat.activityCount" placeholder="phone number"></el-input>
{{stat.activityCount}}
</el-form-item>
<el-form-item label="担任组长次数">
<el-input type="text" v-model="stat.groupCount" placeholder="phone number"></el-input>
{{stat.groupCount}}
</el-form-item>
</el-form>
</div>
@ -75,7 +72,7 @@
const App = {
data() {
return{
title:'用户中心',
title:'用户统计',
user:{
userId:'',
username:'',
@ -91,11 +88,11 @@
}
},
mounted(){
this.user.userId='${userId}'
this.user.realName='${realName}'
this.user.username='${username}'
this.user.avatarSrc='${avatarSrc}'
this.user.userPhone='${userPhone}'
this.user.userId='${userInfo.userId}'
this.user.realName='${userInfo.realName}'
this.user.username='${userInfo.username}'
this.user.avatarSrc='${userInfo.avatarSrc}'
this.user.userPhone='${userInfo.userPhone}'
},
methods: {
goBack(){

@ -137,7 +137,11 @@
<h4>成员信息</h4>
<el-table :data="memberList" style="width: 100%" stripe>
<el-table-column prop="username" label="用户名"></el-table-column>
<el-table-column prop="realName" label="姓名"></el-table-column>
<el-table-column prop="realName" label="姓名">
<template #default="scope">
<el-link type="primary" :href="'/user?userId='+scope.row.userId">{{scope.row.realName}}</el-link>
</template>
</el-table-column>
<el-table-column align="right" label="加入状态">
<template #default="scope">
<el-button size="mini" @click="accept(scope.row.participateId)" v-if="(!scope.row.isAccept)&&user.userId==group.leaderId">通过</el-button>

@ -116,7 +116,11 @@
<el-table :data="groupListResult" style="width: 100%">
<el-table-column prop="groupName" label="小组名"></el-table-column>
<el-table-column prop="gmtCreate" label="创建日期"></el-table-column>
<el-table-column prop="leaderName" label="组长姓名"></el-table-column>
<el-table-column label="组长姓名">
<template #default="scope">
<el-link type="primary" :href="'/user?userId='+scope.row.leaderId">{{scope.row.leaderName}}</el-link>
</template>
</el-table-column>
<el-table-column align="right">
<template #header>
<el-input v-model="keyWord" size="mini" placeholder="搜索姓名/组名"></el-input>

@ -129,7 +129,11 @@
<h4>成员信息</h4>
<el-table :data="memberList" style="width: 100%" stripe>
<el-table-column prop="username" label="用户名"></el-table-column>
<el-table-column prop="realName" label="姓名"></el-table-column>
<el-table-column prop="realName" label="姓名">
<template #default="scope">
<el-link type="primary" :href="'/user?userId='+scope.row.userId">{{scope.row.realName}}</el-link>
</template>
</el-table-column>
<el-table-column align="right" label="加入状态">
<template #default="scope">
<el-button size="mini" @click="accept(scope.row.participateId)" v-if="(!scope.row.isAccept)&&user.userId==group.leaderId">通过</el-button>

@ -110,7 +110,11 @@
<h4>成员信息</h4>
<el-table :data="memberList" style="width: 100%" stripe>
<el-table-column prop="username" label="用户名"></el-table-column>
<el-table-column prop="realName" label="姓名"></el-table-column>
<el-table-column prop="realName" label="姓名">
<template #default="scope">
<el-link type="primary" :href="'/user?userId='+scope.row.userId">{{scope.row.realName}}</el-link>
</template>
</el-table-column>
<el-table-column align="right" label="加入状态">
<template #default="scope">
<el-button size="mini" @click="accept(scope.row.participateId)" v-if="(!scope.row.isAccept)&&user.userId==group.leaderId">通过</el-button>

Loading…
Cancel
Save