|
@@ -1,5 +1,10 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <el-dialog v-model="showDialog" width="800" @close="close">
|
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ v-model="showDialog"
|
|
|
|
|
+ width="800"
|
|
|
|
|
+ @close="close"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ >
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<div class="full-width flex flex-center flex-justify-between">
|
|
<div class="full-width flex flex-center flex-justify-between">
|
|
|
<h4>任务详情</h4>
|
|
<h4>任务详情</h4>
|
|
@@ -83,12 +88,22 @@
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="mt-20 flex lex-align-start flex-justify-start"
|
|
|
|
|
+ v-if="form && form.createUserName && form.createUserName.length > 0"
|
|
|
|
|
+ >
|
|
|
|
|
+ <span class="mr-10 title flex flex-justify-start">创建人:</span>
|
|
|
|
|
+ <div class="tag">
|
|
|
|
|
+ <div class="ml-5">{{ form.createUserName }}</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<div class="mt-20 flex lex-align-start flex-justify-start">
|
|
<div class="mt-20 flex lex-align-start flex-justify-start">
|
|
|
<span class="mr-10 title flex flex-justify-start">执行者:</span>
|
|
<span class="mr-10 title flex flex-justify-start">执行者:</span>
|
|
|
<div>
|
|
<div>
|
|
|
<tasker
|
|
<tasker
|
|
|
:data="executeUser === null ? [] : executeUser"
|
|
:data="executeUser === null ? [] : executeUser"
|
|
|
:disabled="!canEdit"
|
|
:disabled="!canEdit"
|
|
|
|
|
+ ref="tasker"
|
|
|
@success="selected"
|
|
@success="selected"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
@@ -145,11 +160,20 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="full-width flex flex-justify-start flex-center">
|
|
<div class="full-width flex flex-justify-start flex-center">
|
|
|
<div class="title mr-10" />
|
|
<div class="title mr-10" />
|
|
|
- <div v-for="item in resultFiles" :key="item.id">
|
|
|
|
|
- <div class="flex flex-justify-start flex-center">
|
|
|
|
|
- {{ item.fileVO.originalFileName }}
|
|
|
|
|
- ({{ item.createUserName }})
|
|
|
|
|
- <preview :id="item.fileVO.id" :show-action="true"></preview>
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div v-for="item in resultFiles" :key="item.id">
|
|
|
|
|
+ <div class="flex flex-justify-start flex-center">
|
|
|
|
|
+ {{ item.fileVO.originalFileName }}
|
|
|
|
|
+ ({{ item.createUserName }})
|
|
|
|
|
+ <preview :id="item.fileVO.id" :show-action="true"></preview>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ text
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ v-if="isFinish === false"
|
|
|
|
|
+ @click="removeFile(item)"
|
|
|
|
|
+ >删除</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -457,6 +481,7 @@ export default {
|
|
|
this.editResult = false
|
|
this.editResult = false
|
|
|
this.isMove = false
|
|
this.isMove = false
|
|
|
this.isFinish = false
|
|
this.isFinish = false
|
|
|
|
|
+ this.$refs.tasker.reset()
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 文件移动成功
|
|
* 文件移动成功
|
|
@@ -464,6 +489,23 @@ export default {
|
|
|
moveSucc() {
|
|
moveSucc() {
|
|
|
this.isMove = true
|
|
this.isMove = true
|
|
|
},
|
|
},
|
|
|
|
|
+ removeFile(item) {
|
|
|
|
|
+ console.log(item)
|
|
|
|
|
+ this.$confirm('确定将选择数据删除?', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ if (res === 'confirm') {
|
|
|
|
|
+ this.$api.task.delTaskFile({ ids: item.id }).then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.resultFiles = this.resultFiles.filter(e => e.id !== item.id)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
goProject() {
|
|
goProject() {
|
|
|
const routeData = this.$router.resolve({
|
|
const routeData = this.$router.resolve({
|
|
|
path: '/project',
|
|
path: '/project',
|
|
@@ -491,4 +533,14 @@ export default {
|
|
|
box-shadow: none;
|
|
box-shadow: none;
|
|
|
background-color: #eeeeee;
|
|
background-color: #eeeeee;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.tag {
|
|
|
|
|
+ min-width: 60px;
|
|
|
|
|
+ height: 20px;
|
|
|
|
|
+ border-radius: 20px;
|
|
|
|
|
+ background-color: #a3773d;
|
|
|
|
|
+ padding: 2px 10px;
|
|
|
|
|
+ margin: 0 5px;
|
|
|
|
|
+ color: white;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|