修复taskId是null的问题
This commit is contained in:
parent
883a608f12
commit
57ee52b105
|
|
@ -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,6 +1221,7 @@ export default {
|
||||||
|
|
||||||
// 处理驳回操作
|
// 处理驳回操作
|
||||||
handleReject(row) {
|
handleReject(row) {
|
||||||
|
console.log(row);
|
||||||
this.$confirm('确定要驳回此条数据吗?', '提示', {
|
this.$confirm('确定要驳回此条数据吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue