From 3821b5cc96a7e6702a0cbc8187c6dc67d7eacf3e Mon Sep 17 00:00:00 2001
From: xuefei <564615061@qq.cm>
Date: 星期六, 29 十一月 2025 15:26:48 +0800
Subject: [PATCH] fix:批量通过和批量拒绝参数错误
---
pages/my-todo/my-todo.vue | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/pages/my-todo/my-todo.vue b/pages/my-todo/my-todo.vue
index 12359cc..6f9b577 100644
--- a/pages/my-todo/my-todo.vue
+++ b/pages/my-todo/my-todo.vue
@@ -54,7 +54,7 @@
<combination-card v-for="(item, index) in daibanData" index="index">
<template v-slot:top>
<view class="daibanTop">
- <u-checkbox size="30" iconSize="18" :key="item.id" :name="item.id+item.procInstId"></u-checkbox>
+ <u-checkbox size="30" iconSize="18" :key="item.id" :name="item.id+'@'+item.procInstId"></u-checkbox>
<text>{{ item.actBusiness.title }}</text>
</view>
</template>
@@ -396,13 +396,13 @@
console.log(a);
},
// 澶嶉�夋
- checkboxChange(n) {
- console.log('checkbox', n);
+ checkboxChange(n,v) {
+ console.log('checkbox', n,v);
},
totalSelectChange(n) {
if (n[0] == 'tatalSelect') {
this.daibanData.forEach(item => {
- this.totalSelectValue.push(item.id + item.procInstId)
+ this.totalSelectValue.push(item.id)
})
this.checkBoxValue = this.totalSelectValue
} else {
@@ -438,7 +438,7 @@
this.modalType = 0;
},
batchAdoptClick() {
- console.log('鎵归噺閫氳繃鎸夐挳')
+ console.log('鎵归噺閫氳繃鎸夐挳----------',this.checkBoxValue)
if (this.checkBoxValue.length != 0) {
this.adoptModalShow = true;
} else {
@@ -447,14 +447,15 @@
},
// 閫氳繃妯℃�佹
adoptModalConfirm() {
+ this.adoptDataBox = []
this.adoptModalShow = false;
if(this.checkBoxValue.length >= 1){
this.checkBoxValue.forEach(item => {
- this.adoptDataBox.push(item.slice(0, 6))
+ this.adoptDataBox.push(item.split("@")[0])
})
this.adoptForm.ids = this.adoptDataBox.toString();
}
- console.log(this.adoptForm,'this.adoptForm===鎻愪氦===鎵归噺')
+ console.log(this.checkBoxValue,'this.checkBoxValue--00000000000',this.adoptDataBox,this.adoptForm)
this.$reqPost('passAll', this.adoptForm).then(res => {
console.log('鏄惁杩樺師', this.adoptForm.ids, this.rejectForm.procInstIds);
if (res.code == 0) {
@@ -480,13 +481,15 @@
},
// 椹冲洖妯℃�佹
rejectModalConfirm() {
+ this.rejectDataBox = []
this.rejectModalShow = false;
if(this.checkBoxValue.length >= 1){
this.checkBoxValue.forEach(item => {
- this.rejectDataBox.push(item.slice(6, 12))
+ this.rejectDataBox.push(item.split("@")[1])
})
this.rejectForm.procInstIds = this.rejectDataBox.toString();
}
+ console.log(this.rejectForm)
this.$reqPost('backAll', this.rejectForm).then(res => {
if (res.code == 0) {
this.$u.toast('鎿嶄綔鎴愬姛锛�');
--
Gitblit v1.9.1