修复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: [],
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,