修复taskId是null的问题

This commit is contained in:
syruan 2025-07-26 13:40:04 +08:00
parent 883a608f12
commit 57ee52b105
1 changed files with 5 additions and 2 deletions

View File

@ -786,6 +786,7 @@ export default {
kgSignList: [], kgSignList: [],
outSignList: [], outSignList: [],
approveSignList: [], approveSignList: [],
currentRowData: null, //
} }
}, },
created() { created() {
@ -867,6 +868,7 @@ export default {
handleView(row) { handleView(row) {
const { id, publishTask } = row const { id, publishTask } = row
this.publishTask = publishTask this.publishTask = publishTask
this.currentRowData = row // taskId
this.title = '查看' this.title = '查看'
this.queryOutView.keyWord = '' this.queryOutView.keyWord = ''
this.showOutView = true this.showOutView = true
@ -1219,7 +1221,8 @@ export default {
// //
handleReject(row) { handleReject(row) {
this.$confirm('确定要驳回此条数据吗?', '提示', { console.log(row);
this.$confirm('确定要驳回此条数据吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -1228,7 +1231,7 @@ export default {
const rejectData = { const rejectData = {
id: row.id, id: row.id,
parentId: row.parentId, parentId: row.parentId,
taskId: row.taskId, taskId: this.currentRowData ? this.currentRowData.taskId : row.taskId, // 使taskId
typeId: row.typeId, typeId: row.typeId,
newTypeId: row.newTypeId, newTypeId: row.newTypeId,
publishTask: this.publishTask, publishTask: this.publishTask,