|
@@ -118,7 +118,7 @@
|
|
|
<div v-for="item in fileList" :key="item.id">
|
|
<div v-for="item in fileList" :key="item.id">
|
|
|
<div class="flex flex-center">
|
|
<div class="flex flex-center">
|
|
|
{{ item.title }}
|
|
{{ item.title }}
|
|
|
- <preview :info="item" :show-action="true" />
|
|
|
|
|
|
|
+ <preview :id="item.fileId" :show-action="true" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
<div class="flex flex-justify-start flex-center">
|
|
<div class="flex flex-justify-start flex-center">
|
|
|
{{ item.fileVO.originalFileName }}
|
|
{{ item.fileVO.originalFileName }}
|
|
|
({{ item.createUserName }})
|
|
({{ item.createUserName }})
|
|
|
- <preview :info="item.fileVO" :show-action="true"></preview>
|
|
|
|
|
|
|
+ <preview :id="item.fileVO.id" :show-action="true"></preview>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -241,31 +241,31 @@ export default {
|
|
|
status: [
|
|
status: [
|
|
|
{
|
|
{
|
|
|
title: '待确认',
|
|
title: '待确认',
|
|
|
- value: 0,
|
|
|
|
|
|
|
+ value: 1,
|
|
|
color: '#D7D7D7',
|
|
color: '#D7D7D7',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '进行中',
|
|
title: '进行中',
|
|
|
- value: 1,
|
|
|
|
|
|
|
+ value: 2,
|
|
|
color: '#47A6EA',
|
|
color: '#47A6EA',
|
|
|
checked: false
|
|
checked: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '已提交',
|
|
title: '已提交',
|
|
|
- value: 2,
|
|
|
|
|
|
|
+ value: 3,
|
|
|
color: '#ECAB56',
|
|
color: '#ECAB56',
|
|
|
checked: false
|
|
checked: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '已完成',
|
|
title: '已完成',
|
|
|
- value: 3,
|
|
|
|
|
|
|
+ value: 4,
|
|
|
color: '#80B336',
|
|
color: '#80B336',
|
|
|
checked: false
|
|
checked: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '已取消',
|
|
title: '已取消',
|
|
|
- value: 4,
|
|
|
|
|
|
|
+ value: 5,
|
|
|
color: '#C72A29',
|
|
color: '#C72A29',
|
|
|
checked: false
|
|
checked: false
|
|
|
}
|
|
}
|
|
@@ -273,25 +273,25 @@ export default {
|
|
|
level: [
|
|
level: [
|
|
|
{
|
|
{
|
|
|
title: 'P1',
|
|
title: 'P1',
|
|
|
- value: 0,
|
|
|
|
|
|
|
+ value: 1,
|
|
|
color: '#C72A29',
|
|
color: '#C72A29',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: 'P2',
|
|
title: 'P2',
|
|
|
- value: 1,
|
|
|
|
|
|
|
+ value: 2,
|
|
|
color: '#E89D42',
|
|
color: '#E89D42',
|
|
|
checked: false
|
|
checked: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: 'P3',
|
|
title: 'P3',
|
|
|
- value: 2,
|
|
|
|
|
|
|
+ value: 3,
|
|
|
color: '#47A6EA',
|
|
color: '#47A6EA',
|
|
|
checked: false
|
|
checked: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: 'P4',
|
|
title: 'P4',
|
|
|
- value: 3,
|
|
|
|
|
|
|
+ value: 4,
|
|
|
color: '#A0A0A0',
|
|
color: '#A0A0A0',
|
|
|
checked: false
|
|
checked: false
|
|
|
}
|
|
}
|
|
@@ -301,17 +301,15 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
init() {
|
|
init() {
|
|
|
this.form = this.task
|
|
this.form = this.task
|
|
|
- console.log(this.task)
|
|
|
|
|
if (this.task.users !== undefined) {
|
|
if (this.task.users !== undefined) {
|
|
|
this.executeUser = [...this.task.users]
|
|
this.executeUser = [...this.task.users]
|
|
|
}
|
|
}
|
|
|
this.canEdit = this.form.createUser === this.user.info.userId
|
|
this.canEdit = this.form.createUser === this.user.info.userId
|
|
|
- if (this.task.taskStatus > 1) {
|
|
|
|
|
|
|
+ if (this.task.taskStatus > 2) {
|
|
|
this.canEdit = false
|
|
this.canEdit = false
|
|
|
}
|
|
}
|
|
|
if (this.task.files !== undefined && this.task.files.length > 0) {
|
|
if (this.task.files !== undefined && this.task.files.length > 0) {
|
|
|
this.fileList = this.task.files
|
|
this.fileList = this.task.files
|
|
|
- console.log(this.fileList)
|
|
|
|
|
}
|
|
}
|
|
|
this.resultFileInfo()
|
|
this.resultFileInfo()
|
|
|
},
|
|
},
|
|
@@ -333,13 +331,13 @@ export default {
|
|
|
show(type) {
|
|
show(type) {
|
|
|
if (type !== 1) {
|
|
if (type !== 1) {
|
|
|
this.form = this.task
|
|
this.form = this.task
|
|
|
- if (this.task.taskStatus === 3 || this.task.taskStatus === 4) {
|
|
|
|
|
|
|
+ if (this.task.taskStatus === 4 || this.task.taskStatus === 5) {
|
|
|
this.isFinish = true
|
|
this.isFinish = true
|
|
|
}
|
|
}
|
|
|
this.init(this.task)
|
|
this.init(this.task)
|
|
|
} else {
|
|
} else {
|
|
|
- this.form.taskStatus = 0
|
|
|
|
|
- this.form.level = 0
|
|
|
|
|
|
|
+ this.form.taskStatus = 1
|
|
|
|
|
+ this.form.level = 1
|
|
|
this.canEdit = true
|
|
this.canEdit = true
|
|
|
}
|
|
}
|
|
|
this.showDialog = true
|
|
this.showDialog = true
|
|
@@ -364,7 +362,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
submit() {
|
|
submit() {
|
|
|
- if (this.form.taskStatus === 2 && this.resultFiles.length === 0) {
|
|
|
|
|
|
|
+ if (this.form.taskStatus === 3 && this.resultFiles.length === 0) {
|
|
|
this.$message.error('请上传成果文件')
|
|
this.$message.error('请上传成果文件')
|
|
|
return
|
|
return
|
|
|
} else {
|
|
} else {
|
|
@@ -372,7 +370,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (
|
|
if (
|
|
|
- this.form.taskStatus === 3 &&
|
|
|
|
|
|
|
+ this.form.taskStatus === 4 &&
|
|
|
this.isMove === false &&
|
|
this.isMove === false &&
|
|
|
this.isFinish === false
|
|
this.isFinish === false
|
|
|
) {
|
|
) {
|