提交 63b9ff2a 编写于 作者: sq3536's avatar sq3536

Merge remote-tracking branch 'origin/master'

...@@ -615,6 +615,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue { ...@@ -615,6 +615,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
} }
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -635,6 +636,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue { ...@@ -635,6 +636,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
}); });
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -647,13 +649,17 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue { ...@@ -647,13 +649,17 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) { if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return; return;
} }
let newSelections:any[] = [];
model.selections.forEach((item: any) => { model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey)); const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) { if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) }; let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false }) Object.assign(_item, { _select: false })
this.viewSelections.push(_item); newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
} }
this.viewSelections = newSelections;
}); });
}); });
} }
...@@ -666,6 +672,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue { ...@@ -666,6 +672,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
public onCLickAllLeft():void { public onCLickAllLeft():void {
this.viewSelections = []; this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true; this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
......
...@@ -615,6 +615,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue { ...@@ -615,6 +615,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
} }
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -635,6 +636,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue { ...@@ -635,6 +636,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
}); });
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -647,13 +649,17 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue { ...@@ -647,13 +649,17 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) { if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return; return;
} }
let newSelections:any[] = [];
model.selections.forEach((item: any) => { model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey)); const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) { if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) }; let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false }) Object.assign(_item, { _select: false })
this.viewSelections.push(_item); newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
} }
this.viewSelections = newSelections;
}); });
}); });
} }
...@@ -666,6 +672,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue { ...@@ -666,6 +672,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
public onCLickAllLeft():void { public onCLickAllLeft():void {
this.viewSelections = []; this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true; this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
......
...@@ -615,6 +615,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue { ...@@ -615,6 +615,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
} }
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -635,6 +636,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue { ...@@ -635,6 +636,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
}); });
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -647,13 +649,17 @@ export default class SYS_ROLEMPickupViewBase extends Vue { ...@@ -647,13 +649,17 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) { if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return; return;
} }
let newSelections:any[] = [];
model.selections.forEach((item: any) => { model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey)); const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) { if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) }; let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false }) Object.assign(_item, { _select: false })
this.viewSelections.push(_item); newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
} }
this.viewSelections = newSelections;
}); });
}); });
} }
...@@ -666,6 +672,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue { ...@@ -666,6 +672,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
public onCLickAllLeft():void { public onCLickAllLeft():void {
this.viewSelections = []; this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true; this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
......
...@@ -615,6 +615,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue { ...@@ -615,6 +615,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
} }
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -635,6 +636,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue { ...@@ -635,6 +636,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
}); });
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -647,13 +649,17 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue { ...@@ -647,13 +649,17 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) { if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return; return;
} }
let newSelections:any[] = [];
model.selections.forEach((item: any) => { model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey)); const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) { if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) }; let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false }) Object.assign(_item, { _select: false })
this.viewSelections.push(_item); newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
} }
this.viewSelections = newSelections;
}); });
}); });
} }
...@@ -666,6 +672,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue { ...@@ -666,6 +672,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
public onCLickAllLeft():void { public onCLickAllLeft():void {
this.viewSelections = []; this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true; this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
......
...@@ -615,6 +615,7 @@ export default class SYS_USERMPickupViewBase extends Vue { ...@@ -615,6 +615,7 @@ export default class SYS_USERMPickupViewBase extends Vue {
} }
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -635,6 +636,7 @@ export default class SYS_USERMPickupViewBase extends Vue { ...@@ -635,6 +636,7 @@ export default class SYS_USERMPickupViewBase extends Vue {
}); });
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select); const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect; this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
...@@ -647,13 +649,17 @@ export default class SYS_USERMPickupViewBase extends Vue { ...@@ -647,13 +649,17 @@ export default class SYS_USERMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) { if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return; return;
} }
let newSelections:any[] = [];
model.selections.forEach((item: any) => { model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey)); const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) { if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) }; let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false }) Object.assign(_item, { _select: false })
this.viewSelections.push(_item); newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
} }
this.viewSelections = newSelections;
}); });
}); });
} }
...@@ -666,6 +672,7 @@ export default class SYS_USERMPickupViewBase extends Vue { ...@@ -666,6 +672,7 @@ export default class SYS_USERMPickupViewBase extends Vue {
public onCLickAllLeft():void { public onCLickAllLeft():void {
this.viewSelections = []; this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true; this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册