|
@@ -5140,18 +5140,29 @@ export default {
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
let arr = []
|
|
let arr = []
|
|
if(val.length>0){
|
|
if(val.length>0){
|
|
- for (let index = 0; index < val.length; index++) {
|
|
|
|
- let i = val[index];
|
|
|
|
- if( this.typeTem===2){
|
|
|
|
- arr.push(i.pkeyId)
|
|
|
|
- }else{
|
|
|
|
- arr.push(i.id)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // arr.push(i.id)
|
|
|
|
- }
|
|
|
|
|
|
|
|
- this.syncForm.formIds=arr.join(',')
|
|
|
|
|
|
+
|
|
|
|
+ if(this.syncForm.range==='2'){
|
|
|
|
+ for (let index = 0; index < val.length; index++) {
|
|
|
|
+ let i = val[index];
|
|
|
|
+ arr.push(i.pkeyId)
|
|
|
|
+ }
|
|
|
|
+ this.syncForm.formIds=arr.join(',')
|
|
|
|
+ }else{
|
|
|
|
+ for (let index = 0; index < val.length; index++) {
|
|
|
|
+ let i = val[index];
|
|
|
|
+ if( this.typeTem===2){
|
|
|
|
+ arr.push(i.pkeyId)
|
|
|
|
+ }else{
|
|
|
|
+ arr.push(i.id)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ console.log(arr,'arr');
|
|
|
|
+
|
|
|
|
+ this.syncForm.formIds=arr.join(',')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async handleCommand(command,row){
|
|
async handleCommand(command,row){
|