|
|
|
@ -12,6 +12,8 @@ |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
{{ '导出' }} |
|
|
|
</download-excel> |
|
|
|
<el-button v-if="isAuth('taskmanage:tasklist:save')" @click="addOrUpdateHandle()" type="primary">发起任务 |
|
|
|
</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
@ -93,13 +95,17 @@ |
|
|
|
fixed="right" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="220" |
|
|
|
width="300" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link type="text" size="small" @click="updateStatusDialog(scope.row)">更改状态 |</el-link> |
|
|
|
<el-link type="text" size="small" @click="addOrUpdateHandle(scope.row.taskId)">修改 |</el-link> |
|
|
|
<el-link type="text" size="small" @click="updateStatusDialog(scope.row)">更改最终状态 |</el-link> |
|
|
|
<el-link type="text" size="small" @click="chatHistoryDialog(scope.row.id)">沟通 |</el-link> |
|
|
|
<el-link type="text" size="small" @click="annex(scope.row.taskId)">任务附件 |</el-link> |
|
|
|
<el-link type="text" size="small" @click="annex(scope.row.id)"> 沟通附件</el-link> |
|
|
|
<el-link type="text" size="small" |
|
|
|
@click="deleteHandle(scope.row.id)">删除 |
|
|
|
</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -115,10 +121,9 @@ |
|
|
|
<el-form :model="dataForm" :inline="true" label-position="top" |
|
|
|
label-width="80px"> |
|
|
|
<el-form-item label="状态"> |
|
|
|
<el-select v-model="selectRow.status" style="width: 120px"> |
|
|
|
<el-option label="未受理" value="未受理"></el-option> |
|
|
|
<el-option label="已受理" value="已受理"></el-option> |
|
|
|
<el-option label="已结束" value="已结束"></el-option> |
|
|
|
<el-select v-model="selectRow.finalStatus" style="width: 120px"> |
|
|
|
<el-option label="未完成" value="未完成"></el-option> |
|
|
|
<el-option label="已完成" value="已完成"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -129,7 +134,10 @@ |
|
|
|
</el-dialog> |
|
|
|
<!-- 沟通记录 --> |
|
|
|
<chat-history v-if="chatHistoryVisible" ref="chatHistory" ></chat-history> |
|
|
|
<!-- 文件列表 --> |
|
|
|
<task-file-list v-if="taskFileVisible" ref="taskFileList"></task-file-list> |
|
|
|
<!-- 弹窗, 新增 / 修改 --> |
|
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -137,7 +145,8 @@ |
|
|
|
|
|
|
|
import ChatHistory from './chat-history.vue' |
|
|
|
import {getTaskDetailList,updateTask} from '@/api/taskmanage/tasklist.js' |
|
|
|
import TaskFileList from './task-file-list.vue' |
|
|
|
import TaskFileList from './task-file-upload-list.vue' |
|
|
|
import AddOrUpdate from "./tasklist-add-or-update"; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
@ -435,19 +444,21 @@ |
|
|
|
dataList: [], |
|
|
|
selectRow: { |
|
|
|
id: 0, |
|
|
|
status: '', |
|
|
|
finalStatus: '', |
|
|
|
}, |
|
|
|
dataListLoading: false, |
|
|
|
dataListSelections: [], |
|
|
|
chatHistoryVisible: false, |
|
|
|
statusVisible: false, |
|
|
|
taskFileVisible: false, |
|
|
|
addOrUpdateVisible: false, |
|
|
|
exportName: this.$route.meta.title + this.dayjs().format('YYYYMMDDHHmmss') |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
ChatHistory, |
|
|
|
TaskFileList |
|
|
|
TaskFileList, |
|
|
|
AddOrUpdate, |
|
|
|
}, |
|
|
|
activated() { |
|
|
|
// this.getDataList() |
|
|
|
@ -476,8 +487,8 @@ |
|
|
|
}, |
|
|
|
// 更改状态模态框 |
|
|
|
updateStatusDialog(row) { |
|
|
|
this.selectRow.status = row.status |
|
|
|
this.selectRow.id = row.id |
|
|
|
this.selectRow.finalStatus = row.finalStatus |
|
|
|
this.selectRow.id = row.taskId |
|
|
|
this.statusVisible = true; |
|
|
|
}, |
|
|
|
// 更改状态提交 |
|
|
|
@ -515,13 +526,13 @@ |
|
|
|
var ids = id ? [id] : this.dataListSelections.map(item => { |
|
|
|
return item.id |
|
|
|
}) |
|
|
|
this.$confirm(`确定进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { |
|
|
|
this.$confirm(`确定进行删除操作?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl('/taskmanage/tasklist/delete'), |
|
|
|
url: this.$http.adornUrl('/taskmanage/taskDetail/delete'), |
|
|
|
method: 'post', |
|
|
|
data: this.$http.adornData(ids, false) |
|
|
|
}).then(({data}) => { |
|
|
|
@ -534,6 +545,13 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 新增 / 修改 |
|
|
|
addOrUpdateHandle(id) { |
|
|
|
this.addOrUpdateVisible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.addOrUpdate.init(id) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 导出 |
|
|
|
fields() { |
|
|
|
let json = "{" |
|
|
|
|