+
重置
@@ -367,13 +367,17 @@ export default {
activeKeyScore: "2",
stuName: "请输入姓名",
todayvalue: "1",
- tableDataTotal: 30,
+
stuValue: false,
Svisible: false,
score1: 5,
score2: 5,
edit: true,
searchRankName:null,//榜单搜索名称
+ studentName:null,//学员搜索名称
+ pageSize:10,
+ currentPage:1,
+ tableDataTotal: -1,
});
const getTableData = () => {
let datas = state.tabledataStu;
@@ -399,21 +403,59 @@ export default {
getTableData();
const tabsChange = (e) => {
+ if (e == 1) {
+ // console.log('获取项目积分-学员')
+ getProjectStudent();
+ }
if (e == 2) {
// console.log('获取项目积分-榜单')
scoreRank(1, 1);
}
+ if(e==3){
+ scoreRule()
+ }
+ projectStudentReset()
rankReset()
state.todayvalue='1'
state.stuValue=1
};
+ // start -------学员---------------学员------------学员------------------学员---------
+ //重置
+ const projectStudentReset=()=>{
+ state.studentName=null
+ }
+ //搜索
+ const searchProjectStudent = () => {
+ state.currentPage=1
+ getProjectStudent()
+ };
+ //项目积分榜单
+ const getProjectStudent = () => {
+ console.log("projectId", props.projectId,state.studentName);
+ let obj = {
+ projectId:props.projectId,
+ pageSize:state.pageSize,
+ pageNo:state.currentPage,
+ name:state.studentName,
+ };
+ api
+ .getProjectStudent(obj)
+ .then((res) => {
+ console.log("获取项目积分-学员", res);
+ })
+ .catch((err) => {
+ console.log("获取项目积分-学员", err);
+ });
+ };
+ // end -----学员----------------学员----------------------学员-----------学员----------
+
+ // start -------榜单---------------榜单------------榜单------------------榜单---------
//重置
const rankReset=()=>{
state.searchRankName=null
}
- // start -------榜单---------------榜单------------榜单------------------榜单---------
//学员积分还是小组积分
const typeChange = (num) => {
state.stuValue = num;
@@ -449,6 +491,22 @@ export default {
});
};
// end -----榜单----------------榜单----------------------榜单-----------榜单----------
+
+ // start -------获取规则---------------获取规则------------获取规则------------------获取规则---------
+
+ //获取规则
+ const scoreRule = () => {
+ console.log("projectId", props.projectId);
+ api
+ .scoreRule(props.projectId)
+ .then((res) => {
+ console.log("获取项目积分-获取规则", res);
+ })
+ .catch((err) => {
+ console.log("获取项目积分-获取规则", err);
+ });
+ };
+ // end -----获取规则----------------获取规则----------------------获取规则-----------获取规则----------
return {
...toRefs(state),
typeChange,
@@ -456,7 +514,11 @@ export default {
searchRank,
rankReset,
tabsChange,
+ projectStudentReset,
+ searchProjectStudent,
+ getProjectStudent,
scoreRank,
+ scoreRule,
};
},
computed: {
diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue
index 00176535..9c7179dc 100644
--- a/src/views/projectcenter/TaskAdd.vue
+++ b/src/views/projectcenter/TaskAdd.vue
@@ -1060,7 +1060,6 @@ export default {
const getStageData = (tableData) => {
let data = tableData;
let array = [];
- console.log('tableData',data)
data.map((value) => {
let obj = {
id: value.stageId,
@@ -2350,9 +2349,9 @@ export default {
display: flex;
flex-direction: column;
align-items: center; // background-color: #bfa;
- .chosen {
- // background-color: pink;
- }
+ // .chosen {
+ // // background-color: pink;
+ // }
.ghost {
// background-color: red;
opacity: 0 !important;