158
社区成员
发帖
与我相关
我的任务
分享
目录
这个作业属于哪个课程 | < 2301-计算机学院-软件工程> |
---|---|
这个作业要求在哪里 | < 团队作业——站立式会议+alpha冲刺-CSDN社区> |
这个作业的目标 | < 站立式会议+alpha冲刺 > |
其他参考文献 |
前端
//Page Object
Page({
data: {
id: 0,
level: 0,
nickname: "",
token: "",
peoplelist: [],
grouplist: [],
addprouppop: false,
addproupname: "",
inputvalue: "",
},
//options(Object)
onLoad: function (options) {
let that = this
wx.setVisualEffectOnCapture({
visualEffect: 'hidden',
success: (res) => {
console.log(res)
},
fail: (err) => {
console.log(err)
},
complete: (res) => {
console.log(res)
}
})
wx.getStorage({
key: 'id',
success: (res) => {
that.setData({ 'id': res.data })
let id = res.data
wx.getStorage({
key: 'level',
success: (res) => {
that.setData({ 'level': res.data })
let level = res.data
wx.getStorage({
key: 'token',
success: (res) => {
that.setData({ 'token': res.data })
let token = res.data
wx.getStorage({
key: 'nickname',
success: (res) => {
that.setData({ 'nickname': res.data })
let nickname = res.data
wx.request({
url: 'http://81.68.194.42:9090/api/1/get/users',
data: {
"level": level + 1,
"group": ""
},
header: {
'content-type': 'application/json',
'token': token
},
method: 'POST',
dataType: 'json',
success: (res) => {
console.log(res);
that.setData({ 'peoplelist': res.data.data })
},
fail: (err) => { console.log(err); },
complete: () => { }
});
let num = level + 1
wx.request({
url: 'http://81.68.194.42:9090/api/1/get/groups/' + num,
header: {
'content-type': 'application/json',
'token': token
},
method: 'GET',
dataType: 'json',
success: (res) => {
console.log(res);
that.setData({ 'grouplist': res.data.data })
},
fail: (err) => { console.log(err); },
complete: () => { }
});
},
fail: () => { },
})
},
fail: () => { },
})
},
fail: () => { },
})
},
fail: () => { },
})
},
//账号回收
huishou(e) {
console.log(e);
let that = this
let id = e.currentTarget.dataset.id
wx.showModal({
title: '是否收回账号',
showCancel: true,
content: '',
success: function (res) {
if (res.confirm) {
wx.request({
url: 'http://81.68.194.42:9090/api/1/remove/user/' + id,
header: {
'content-type': 'application/json',
'token': that.data.token
},
method: 'GET',
dataType: 'json',
success: (res) => {
console.log(res);
wx.showModal({
title: '回收成功',
showCancel: false,
content: '',
success: function (res) {
that.handrefresh()
}
})
},
fail: (err) => { console.log(err); },
complete: () => { }
});
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
},
//队伍回收
huishougroup(e) {
console.log(e);
let that = this
let id = e.currentTarget.dataset.id
wx.showModal({
title: '是否解散队伍',
showCancel: true,
content: '',
success: function (res) {
if (res.confirm) {
wx.request({
url: 'http://81.68.194.42:9090/api/1/remove/group/' + id,
header: {
'content-type': 'application/json',
'token': that.data.token
},
method: 'GET',
dataType: 'json',
success: (res) => {
console.log(res);
that.handrefresh()
wx.showModal({
title: '队伍已解散',
showCancel: false,
content: '',
success: function (res) {
}
})
},
fail: (err) => { console.log(err); },
complete: () => { }
});
}
}
})
},
//账号新增
addpeople(e) {
console.log(e);
let that = this
let id = that.data.id
wx.request({
url: 'http://81.68.194.42:9090/api/1/create/code/' + id,
header: {
'content-type': 'application/json',
'token': that.data.token
},
method: 'GET',
dataType: 'json',
success: (res) => {
console.log(res);
let invitecode = res.data.data
wx.showModal({
title: '邀请码',
showCancel: false,
confirmText: '复制',
content: res.data.data,
success: function (res) {
if (res.confirm) {
console.log('用户点击复制')
wx.setClipboardData({
data: invitecode,
success: (res) => {
wx.showToast({
title: '复制成功',
})
}
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
},
fail: (err) => { console.log(err); },
complete: () => { }
});
},
//队伍新增
addproup(e) {
this.setData({ addprouppop: !this.data.addprouppop })
},
addproupcancel(e) {
this.setData({ addprouppop: !this.data.addprouppop })
},
addproupconfirm(e) {
let that = this
wx.request({
url: 'http://81.68.194.42:9090/api/1/create/group',
data: {
name: that.data.addproupname,
userId: that.data.id,
level: that.data.level + 1,
},
header: {
'content-type': 'application/json',
'token': that.data.token
},
method: 'POST',
dataType: 'json',
success: (res) => {
console.log(res);
wx.showModal({
title: '创建成功',
showCancel: false,
content: '',
success: function (res) {
that.setData({ addprouppop: !that.data.addprouppop })
that.handrefresh()
}
})
},
fail: (err) => { console.log(err); },
complete: () => { }
});
},
addproupnameinput(e) {
this.setData({ 'addproupname': e.detail.value })
},
onRefresh: function () {
let that = this
wx.getStorage({
key: 'id',
success: (res) => {
that.setData({ 'id': res.data })
let id = res.data
wx.getStorage({
key: 'level',
success: (res) => {
that.setData({ 'level': res.data })
let level = res.data
wx.getStorage({
key: 'token',
success: (res) => {
that.setData({ 'token': res.data })
let token = res.data
wx.getStorage({
key: 'nickname',
success: (res) => {
that.setData({ 'nickname': res.data })
let nickname = res.data
wx.request({
url: 'http://81.68.194.42:9090/api/1/get/users',
data: {
"level": level + 1,
"group": ""
},
header: {
'content-type': 'application/json',
'token': token
},
method: 'POST',
dataType: 'json',
success: (res) => {
console.log(res);
that.setData({ 'peoplelist': res.data.data })
},
fail: (err) => { },
complete: () => { wx.stopPullDownRefresh(); }
});
let num = level + 1
wx.request({
url: 'http://81.68.194.42:9090/api/1/get/groups/' + num,
header: {
'content-type': 'application/json',
'token': token
},
method: 'GET',
dataType: 'json',
success: (res) => {
console.log(res);
that.setData({ 'grouplist': res.data.data })
},
fail: (err) => { console.log(err); },
complete: () => { }
});
},
fail: () => { },
})
},
fail: () => { },
})
},
fail: () => { },
})
},
fail: () => { },
})
},
onPullDownRefresh: function () {
this.onRefresh();
},
handrefresh() {
let that = this
wx.getStorage({
key: 'id',
success: (res) => {
that.setData({ 'id': res.data })
let id = res.data
wx.getStorage({
key: 'level',
success: (res) => {
that.setData({ 'level': res.data })
let level = res.data
wx.getStorage({
key: 'token',
success: (res) => {
that.setData({ 'token': res.data })
let token = res.data
wx.getStorage({
key: 'nickname',
success: (res) => {
that.setData({ 'nickname': res.data })
let nickname = res.data
wx.request({
url: 'http://81.68.194.42:9090/api/1/get/users',
data: {
"level": level + 1,
"group": "",
"keyWord": "",
},
header: {
'content-type': 'application/json',
'token': token
},
method: 'POST',
dataType: 'json',
success: (res) => {
console.log(res);
that.setData({ 'peoplelist': res.data.data })
},
fail: (err) => { },
complete: () => { }
});
let num = level + 1
wx.request({
url: 'http://81.68.194.42:9090/api/1/get/groups/' + num,
header: {
'content-type': 'application/json',
'token': token
},
method: 'GET',
dataType: 'json',
success: (res) => {
console.log(res);
that.setData({ 'grouplist': res.data.data })
},
fail: (err) => { console.log(err); },
complete: () => { }
});
},
fail: () => { },
})
},
fail: () => { },
})
},
fail: () => { },
})
},
fail: () => { },
})
},
inputevent(e) {
this.setData({ inputvalue: e.detail.value })
},
search(e) {
let that = this
wx.request({
url: 'http://81.68.194.42:9090/api/1/get/users',
data: {
"level": that.data.level + 1,
"keyWord": that.data.inputvalue,
},
header: {
'content-type': 'application/json',
'token': that.data.token
},
method: 'POST',
dataType: 'json',
success: (res) => {
console.log(res);
that.setData({ 'peoplelist': res.data.data })
},
fail: (err) => { console.log(err); },
complete: () => { }
});
},
cancelsearch(e) {
let that = this
wx.request({
url: 'http://81.68.194.42:9090/api/1/get/users',
data: {
"level": that.data.level + 1,
},
header: {
'content-type': 'application/json',
'token': that.data.token
},
method: 'POST',
dataType: 'json',
success: (res) => {
console.log(res, 'lsit');
that.setData({ 'peoplelist': res.data.data, 'inputvalue': "" })
},
fail: (err) => { console.log(err); },
complete: () => { }
});
}
});
后端
package com.huahuo.huahuobank.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
/**
*
* @TableName hgroups
*/
@TableName(value ="hgroups")
@Data
public class Hgroups implements Serializable {
/**
*
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
*
*/
@TableField(value = "name")
private String name;
@TableField(value = "level")
private Integer level;
/**
*
*/
@TableField(value = "num")
private Integer num;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Hgroups other = (Hgroups) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", num=").append(num);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
学号 | 姓名 | 昨天站立式会议到现在的进展 | 所遇困难 | 今天到明天会议的安排 | 心得体会 |
---|---|---|---|---|---|
102101113 | 王嘉星 | 完成新建队伍功能相关模块 | 在前端设置权限与后端对接时出现困难 | 优化UI和代码 | 单写前端而不会后端知识是不够的,前后端知识都要懂 |
102101337 | 施心隆 | 实现新建队伍功能 | 后端数据库操作有误 | 优化代码 | 继续学习 |
102101130 | 陈泽力 | 完善图片上传和下载 | 无 | 优化代码 | 无 |
102101139 | 郑礼铄 | 无 | 无 | 无 | 无 |
102101543 | 蔡林辉 | 完善了队伍功能 | 设置权限监控时出现了问题 | 优化代码 | 多实践 |
102101116 | 刘宇星 | 完成新建队伍功能接口 | 无 | 完善功能 | 继续学习 |
102101342 | 蔡嘉钦 | 完成新建队伍功能相关模块 | 使用后端接口时出现失误 | 继续完善相关代码 | 多学多练 |
102101343 | 颜景辉 | 完成新建队伍相关功能接口设计 | 传输数据的结构待优化 | 多多学习、查阅博客 | 要坚持学习 |
102101115 | 刘庆林 | 调整界面ui比例 | 无 | 总结工作内容 | 继续学习 |
102101423 | 沈棋燊 | 对新建队伍功能进行测试 |
难以设计全面且准确的测试用例 | 无 | 在测试过程中的记录和总结对于未来的优化和改进至关重要。通过记录测试过程中发现的问题、解决方案以及测试结果,可以为未来的版本升级提供宝贵的参考资料。同时,总结测试过程中的经验和教训,有助于发现测试方法的不足之处,并为下一轮测试工作提供指导。这样做可以不断优化测试流程,提高测试效率,同时也有助于小程序的持续改进和用户体验的提升。因此,记录和总结是测试工作中不可或缺的环节 |