|
@@ -144,7 +144,7 @@
|
|
|
|
|
|
<el-col :span="16" style="float:right;" class="hideCompletedFelx">
|
|
|
<!-- 隐藏已完成任务 -->
|
|
|
- <el-checkbox v-model="hideCompleted" style="margin-right: 10px" @change="getStageList">隐藏已完成任务</el-checkbox>
|
|
|
+ <el-checkbox v-model="hideCompleted" style="margin-right: 10px" @change="editHideTask">隐藏已完成任务</el-checkbox>
|
|
|
<el-select v-model="order" size="small" style="background:#fff;display:inline-block;" @change="orderChange">
|
|
|
<el-option v-for="item in orderList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
<span>{{item.name}}</span>
|
|
@@ -3235,8 +3235,7 @@
|
|
|
this.defaultGroupId = this.groupList[0].id;
|
|
|
this.selectedGroup = this.groupList[0];
|
|
|
this.groupResponsibleId = this.groupList[0].inchargerId;
|
|
|
-
|
|
|
- this.getStageList();
|
|
|
+ this.getUserConfig();
|
|
|
} else {
|
|
|
//清空任务列表
|
|
|
this.defaultGroupId = null;
|
|
@@ -3258,6 +3257,49 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ // 获取用户配置
|
|
|
+ getUserConfig() {
|
|
|
+ this.http.post('/user-config/getUserConfig',{},
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ if(res.data != undefined){
|
|
|
+ if(res.data.hideCompletedTask == 0){
|
|
|
+ this.hideCompleted = false;
|
|
|
+ }else if(res.data.hideCompletedTask == 1){
|
|
|
+ this.hideCompleted = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.getStageList();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ //更改隐藏已完成任务选项
|
|
|
+ editHideTask() {
|
|
|
+ this.getStageList();
|
|
|
+ var hideSwitch;
|
|
|
+ if(this.hideCompleted == false){
|
|
|
+ hideSwitch = 0;
|
|
|
+ }else if(this.hideCompleted == true){
|
|
|
+ hideSwitch = 1;
|
|
|
+ }
|
|
|
+ this.http.post('/user-config/editUserConfig',{hideCompletedTask: hideSwitch},
|
|
|
+ res => {
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
// 额外加的
|
|
|
getTaskGroup() {
|
|
|
this.http.post('/task-group/list',{projectId: this.curProjectId},
|