修复taskId是null的问题
This commit is contained in:
parent
883a608f12
commit
57ee52b105
|
|
@ -786,6 +786,7 @@ export default {
|
|||
kgSignList: [],
|
||||
outSignList: [],
|
||||
approveSignList: [],
|
||||
currentRowData: null, // 当前查看的行数据
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
@ -867,6 +868,7 @@ export default {
|
|||
handleView(row) {
|
||||
const { id, publishTask } = row
|
||||
this.publishTask = publishTask
|
||||
this.currentRowData = row // 保存当前行数据,用于驳回时获取taskId
|
||||
this.title = '查看'
|
||||
this.queryOutView.keyWord = ''
|
||||
this.showOutView = true
|
||||
|
|
@ -1219,7 +1221,8 @@ export default {
|
|||
|
||||
// 处理驳回操作
|
||||
handleReject(row) {
|
||||
this.$confirm('确定要驳回此条数据吗?', '提示', {
|
||||
console.log(row);
|
||||
this.$confirm('确定要驳回此条数据吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
|
|
@ -1228,7 +1231,7 @@ export default {
|
|||
const rejectData = {
|
||||
id: row.id,
|
||||
parentId: row.parentId,
|
||||
taskId: row.taskId,
|
||||
taskId: this.currentRowData ? this.currentRowData.taskId : row.taskId, // 使用主列表的taskId
|
||||
typeId: row.typeId,
|
||||
newTypeId: row.newTypeId,
|
||||
publishTask: this.publishTask,
|
||||
|
|
|
|||
Loading…
Reference in New Issue