|
@@ -82,7 +82,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="float: right;" v-if="user.companyId != '3092'">
|
|
<el-form-item style="float: right;" v-if="user.companyId != '3092'">
|
|
<el-link type="primary" :underline="false" @click="isganttshow = true" style="margin-right: 10px;" v-if="permissions.projectResources">资源分配</el-link>
|
|
<el-link type="primary" :underline="false" @click="isganttshow = true" style="margin-right: 10px;" v-if="permissions.projectResources">资源分配</el-link>
|
|
- <el-link type="primary" :underline="false" @click="addTask()">新建任务</el-link>
|
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="addTask()">新建计划</el-link>
|
|
<el-link type="primary" :underline="false" @click="importTaskDialog = true" style="margin-left: 10px;">批量导入</el-link>
|
|
<el-link type="primary" :underline="false" @click="importTaskDialog = true" style="margin-left: 10px;">批量导入</el-link>
|
|
<el-link type="primary" :underline="false" @click="exportTaskList()" style="margin-left: 10px;" v-loading="exportTaskLoading" >数据导出</el-link>
|
|
<el-link type="primary" :underline="false" @click="exportTaskList()" style="margin-left: 10px;" v-loading="exportTaskLoading" >数据导出</el-link>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -351,7 +351,7 @@
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
- <!-- 任务详情信息弹出框 -->
|
|
|
|
|
|
+ <!-- 计划详情信息弹出框 -->
|
|
<el-dialog :class="addForm.id==null?'':'jm'" :title="title" v-if="addFormVisible" :visible.sync="addFormVisible"
|
|
<el-dialog :class="addForm.id==null?'':'jm'" :title="title" v-if="addFormVisible" :visible.sync="addFormVisible"
|
|
:close-on-click-modal="false" customClass="customWidth" width="840px" :top="'6vh'">
|
|
:close-on-click-modal="false" customClass="customWidth" width="840px" :top="'6vh'">
|
|
<!-- <div style="width: 200%;height:80%;position: absolute;right:-100%;top:0;background:#000;opacity: 0;" @click="sss"></div> -->
|
|
<!-- <div style="width: 200%;height:80%;position: absolute;right:-100%;top:0;background:#000;opacity: 0;" @click="sss"></div> -->
|
|
@@ -759,7 +759,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
textContent: true, // 控制提交
|
|
textContent: true, // 控制提交
|
|
times: null,
|
|
times: null,
|
|
text2: '',
|
|
text2: '',
|
|
- innerVisibless: false, // 任务展示弹出层
|
|
|
|
|
|
+ innerVisibless: false, // 计划展示弹出层
|
|
activities: [{
|
|
activities: [{
|
|
content: this.$t('normals'),
|
|
content: this.$t('normals'),
|
|
timestamp: this.$t('hoursago'),
|
|
timestamp: this.$t('hoursago'),
|
|
@@ -840,7 +840,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // 批量导入任务
|
|
|
|
|
|
+ // 批量导入计划
|
|
importTask(item) {
|
|
importTask(item) {
|
|
//首先判断文件类型
|
|
//首先判断文件类型
|
|
this.loadingExport = true
|
|
this.loadingExport = true
|
|
@@ -1017,7 +1017,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
this.rejectItem = data;
|
|
this.rejectItem = data;
|
|
if (isPass) {
|
|
if (isPass) {
|
|
//弹窗confirm确认
|
|
//弹窗confirm确认
|
|
- this.$confirm('确认审核通过该任务吗', this.$t('other.prompts'), {
|
|
|
|
|
|
+ this.$confirm('确认审核通过该计划吗', this.$t('other.prompts'), {
|
|
//type: 'warning'
|
|
//type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.viewFilesAndReviewThemRejectCli(true);
|
|
this.viewFilesAndReviewThemRejectCli(true);
|
|
@@ -1522,7 +1522,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
});
|
|
});
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 导出任务
|
|
|
|
|
|
+ // 导出计划
|
|
exportTask() {
|
|
exportTask() {
|
|
// console.log('执行代码')
|
|
// console.log('执行代码')
|
|
this.exportTaskLoading = true
|
|
this.exportTaskLoading = true
|
|
@@ -1757,7 +1757,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
},
|
|
},
|
|
//进行中的,撤销操作
|
|
//进行中的,撤销操作
|
|
cancelTask(item) {
|
|
cancelTask(item) {
|
|
- this.$confirm('您确定要撤销该任务吗?', this.$t('other.prompts'), {
|
|
|
|
|
|
+ this.$confirm('您确定要撤销该计划吗?', this.$t('other.prompts'), {
|
|
//type: 'warning'
|
|
//type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.isDeleting = true;
|
|
this.isDeleting = true;
|
|
@@ -1845,14 +1845,14 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
});
|
|
});
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 重启任务点击事件
|
|
|
|
|
|
+ // 重启计划点击事件
|
|
causeRejectionClick() {
|
|
causeRejectionClick() {
|
|
this.causeRejectionForm.userList = this.causeRejectionForm.responsible.toString()
|
|
this.causeRejectionForm.userList = this.causeRejectionForm.responsible.toString()
|
|
console.log(this.causeRejectionForm)
|
|
console.log(this.causeRejectionForm)
|
|
// return
|
|
// return
|
|
this.restart(this.causeRejectionForm)
|
|
this.restart(this.causeRejectionForm)
|
|
},
|
|
},
|
|
- // 点击任务事件
|
|
|
|
|
|
+ // 点击计划事件
|
|
editTask(task) {
|
|
editTask(task) {
|
|
this.addFormVisible = true;
|
|
this.addFormVisible = true;
|
|
// this.addLoading = false;
|
|
// this.addLoading = false;
|
|
@@ -1879,7 +1879,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
this.taskComponentFlg = true
|
|
this.taskComponentFlg = true
|
|
|
|
|
|
this.getTaskDetail(task.id);
|
|
this.getTaskDetail(task.id);
|
|
- // this.getTaskProgressList(task.id); // 获取任务进展列表
|
|
|
|
|
|
+ // this.getTaskProgressList(task.id); // 获取计划进展列表
|
|
// this.getUsers(); // 获取名单数据
|
|
// this.getUsers(); // 获取名单数据
|
|
// this.gain(task); // 获取评论列表
|
|
// this.gain(task); // 获取评论列表
|
|
// this.getDailyList(task.id) // 获取来自日报
|
|
// this.getDailyList(task.id) // 获取来自日报
|
|
@@ -1920,7 +1920,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //获取任务进展列表
|
|
|
|
|
|
+ //获取计划进展列表
|
|
getTaskProgressList(taskId) {
|
|
getTaskProgressList(taskId) {
|
|
this.taskIid = taskId
|
|
this.taskIid = taskId
|
|
this.http.post('/task-progress/list', {taskId: taskId},
|
|
this.http.post('/task-progress/list', {taskId: taskId},
|
|
@@ -2016,11 +2016,11 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
sss(){
|
|
sss(){
|
|
this.$refs.addRem.style.display="none"
|
|
this.$refs.addRem.style.display="none"
|
|
},
|
|
},
|
|
- addprogress(){ // 添加子任务进展事件
|
|
|
|
|
|
+ addprogress(){ // 添加子计划进展事件
|
|
this.$refs.proBox.style.display="block"
|
|
this.$refs.proBox.style.display="block"
|
|
this.$refs.addPro.style.display="none"
|
|
this.$refs.addPro.style.display="none"
|
|
},
|
|
},
|
|
- shutPro() { // 关闭任务进展
|
|
|
|
|
|
+ shutPro() { // 关闭计划进展
|
|
this.$refs.addPro.style.display="block"
|
|
this.$refs.addPro.style.display="block"
|
|
this.$refs.addRem.style.display="none"
|
|
this.$refs.addRem.style.display="none"
|
|
this.$refs.proBox.style.display="none"
|
|
this.$refs.proBox.style.display="none"
|
|
@@ -2043,12 +2043,12 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
this.checkLists.splice(k, 1)
|
|
this.checkLists.splice(k, 1)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- shutPro() { // 关闭任务进展
|
|
|
|
|
|
+ shutPro() { // 关闭计划进展
|
|
this.$refs.addPro.style.display="block"
|
|
this.$refs.addPro.style.display="block"
|
|
this.$refs.addRem.style.display="none"
|
|
this.$refs.addRem.style.display="none"
|
|
this.$refs.proBox.style.display="none"
|
|
this.$refs.proBox.style.display="none"
|
|
},
|
|
},
|
|
- addTaskProgress() { //创建任务进展
|
|
|
|
|
|
+ addTaskProgress() { //创建计划进展
|
|
var param = {
|
|
var param = {
|
|
taskId: this.taskIid,
|
|
taskId: this.taskIid,
|
|
status: this.radio,
|
|
status: this.radio,
|
|
@@ -2081,7 +2081,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|
|
- //删除任务进展
|
|
|
|
|
|
+ //删除计划进展
|
|
deleteTaskProgress(id) {
|
|
deleteTaskProgress(id) {
|
|
this.http.post('/task-progress/deleteProgress', {id: id},
|
|
this.http.post('/task-progress/deleteProgress', {id: id},
|
|
res => {
|
|
res => {
|
|
@@ -2100,7 +2100,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|
|
- //显示子任务创建卡片
|
|
|
|
|
|
+ //显示子计划创建卡片
|
|
addSubTask() {
|
|
addSubTask() {
|
|
this.addFormVisible = true;
|
|
this.addFormVisible = true;
|
|
this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
|
|
this.addForm = {parentTname: this.addForm.name,parentTid: this.addForm.id,projectId: this.addForm.projectId, groupId: this.addForm.groupId, taskLevel:0, planHours: 8, taskType: 0};
|
|
@@ -2133,7 +2133,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //认领任务
|
|
|
|
|
|
+ //认领计划
|
|
addAsMyTask(task) {
|
|
addAsMyTask(task) {
|
|
this.http.post('/task/addAsMyTask',{id: task.id},
|
|
this.http.post('/task/addAsMyTask',{id: task.id},
|
|
res => {
|
|
res => {
|
|
@@ -2338,14 +2338,14 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //加载项目内的任务列表
|
|
|
|
|
|
+ //加载项目内的计划列表
|
|
getStageList() {
|
|
getStageList() {
|
|
// console.log('进来了')
|
|
// console.log('进来了')
|
|
this.http.post('/stages/list',{groupId: this.selectedGroup.id, projectId: this.selectedGroup.projectId, order: this.order, isDesc: this.isDesc},
|
|
this.http.post('/stages/list',{groupId: this.selectedGroup.id, projectId: this.selectedGroup.projectId, order: this.order, isDesc: this.isDesc},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.stageList = res.data.list;
|
|
this.stageList = res.data.list;
|
|
- // console.log('触发获取任务列表函数')
|
|
|
|
|
|
+ // console.log('触发获取计划列表函数')
|
|
this.timess() // 处理时间的方法
|
|
this.timess() // 处理时间的方法
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -2361,7 +2361,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //删除当前编辑的任务
|
|
|
|
|
|
+ //删除当前编辑的计划
|
|
deleteTask() {
|
|
deleteTask() {
|
|
var warning='';
|
|
var warning='';
|
|
if (this.addForm.subTaskList.length > 0) {
|
|
if (this.addForm.subTaskList.length > 0) {
|
|
@@ -2501,7 +2501,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // 获取任务分组列表
|
|
|
|
|
|
+ // 获取计划分组列表
|
|
getTaskGroupList() {
|
|
getTaskGroupList() {
|
|
this.http.post('/task-group/list',{
|
|
this.http.post('/task-group/list',{
|
|
projectId: this.screenProjectId
|
|
projectId: this.screenProjectId
|